Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Add Code Snippets to Spec Files
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Oct 12, 2023
1 parent a32c593 commit 13f3746
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions site/specs/ai-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,6 @@ components:
example:
$ref: '#/components/examples/googleBotResponseExample'
required:
- id
- provider
- displayName
- description
Expand Down Expand Up @@ -1292,8 +1291,6 @@ components:
updateBot:
type: object
properties:
id:
$ref: '#/components/schemas/id'
provider:
oneOf:
- $ref: '#/components/schemas/provider'
Expand All @@ -1319,8 +1316,6 @@ components:
oneOf:
- $ref: '#/components/schemas/googleTextToSpeechBot'
- $ref: '#/components/schemas/awsTextToSpeechBot'
required:
- id
updateAwsProvider:
type: object
properties:
Expand Down Expand Up @@ -1566,12 +1561,10 @@ components:
$ref: '#/components/schemas/googleProviderCredentials'
googleEsProviderResponse:
required:
- googleProvider
- region
- location
- environment
- projectId
- agentId
description: Google Provider is required
properties:
region:
Expand Down Expand Up @@ -1608,41 +1601,41 @@ components:
$ref: '#/components/schemas/googleProviderCredentials'
googleSpeechToTextBot:
required:
- providerId
- provider
- language
description: Google Bot is required
properties:
providerId:
provider:
$ref: '#/components/schemas/provider'
language:
$ref: '#/components/schemas/language'
googleTextToSpeechBot:
required:
- providerId
- provider
- language
description: Google Bot is required
properties:
providerId:
provider:
$ref: '#/components/schemas/provider'
language:
$ref: '#/components/schemas/language'
awsSpeechToTextBot:
required:
- providerId
- provider
description: Google Bot is required
properties:
providerId:
provider:
$ref: '#/components/schemas/provider'
language:
$ref: '#/components/schemas/language'
awsTextToSpeechBot:
required:
- providerId
- provider
- voiceName
- language
description: Google Bot is required
properties:
providerId:
provider:
$ref: '#/components/schemas/provider'
voiceName:
$ref: '#/components/schemas/voiceName'
Expand Down Expand Up @@ -1890,7 +1883,7 @@ components:
type: AWS
description: Aws provider description
awsProvider:
Region: us-west-1
region: us-west-1
awsCredentials:
accessKeyId: myaccesskey
secretAccessKey: mysecretkey
Expand Down Expand Up @@ -2065,6 +2058,7 @@ components:
location: us-east-1
environment: Production
projectId: myproject
agentId: myagent
errors: []
googleCxProviderGetResponseExample:
summary: An example of a Google-CX provider get response
Expand Down Expand Up @@ -2342,7 +2336,7 @@ components:
role:
- tts
awsProvider:
Region: us-west-1
region: us-west-1
awsCredentials:
accessKeyId: myaccesskey
secretAccessKey: mysecretkey
Expand Down Expand Up @@ -2390,7 +2384,7 @@ components:
role:
- tts
awsProvider:
Region: us-west-1
region: us-west-1
errors: []
awsProviderPostResponseExample:
summary: An example of an AWS provider post response
Expand All @@ -2410,7 +2404,7 @@ components:
- stt
description: Aws provider description
awsProvider:
Region: us-west-1
region: us-west-1
errors: []
awsProviderPutResponseExample:
summary: An example of an AWS provider put response
Expand All @@ -2437,7 +2431,7 @@ components:
type: AWS
description: Aws provider description
awsProvider:
Region: us-west-1
region: us-west-1
errors: []
awsProviderPatchResponseExample:
summary: An example of an AWS provider patch response
Expand All @@ -2464,7 +2458,7 @@ components:
type: AWS
description: Aws provider description
awsProvider:
Region: us-west-1
region: us-west-1
errors: []
cognigyProviderExample:
summary: An example of a Cognigy provider
Expand Down Expand Up @@ -2718,7 +2712,7 @@ components:
type: AWS
description: Aws provider description
awsProvider:
Region: us-west-1
region: us-west-1
awsCredentials:
accessKeyId: myaccesskey
secretAccessKey: mysecretkey
Expand Down

0 comments on commit 13f3746

Please sign in to comment.