Skip to content

Commit

Permalink
support openai account connections (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 authored Nov 30, 2023
1 parent 37f72f2 commit 66567f1
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions fern/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,13 @@
"type": "number",
"title": "Initial Message Delay",
"default": 0.0
},
"openai_model_name_override": {
"type": "string",
"title": "Openai Model Name Override"
},
"openai_account_connection": {
"$ref": "#/components/schemas/OpenAIAccountConnection"
}
},
"type": "object",
Expand Down Expand Up @@ -1619,6 +1626,17 @@
"type": "number",
"title": "Initial Message Delay",
"default": 0.0
},
"openai_model_name_override": {
"type": "string",
"title": "Openai Model Name Override"
},
"openai_account_connection": {
"anyOf": [
{ "$ref": "#/components/schemas/OpenAIAccountConnection" },
{ "type": "string", "format": "uuid" }
],
"title": "Openai Account Connection"
}
},
"type": "object",
Expand Down Expand Up @@ -1759,6 +1777,21 @@
{ "$ref": "#/components/schemas/Undefined" }
],
"title": "Initial Message Delay"
},
"openai_model_name_override": {
"anyOf": [
{ "type": "string" },
{ "$ref": "#/components/schemas/Undefined" }
],
"title": "Openai Model Name Override"
},
"openai_account_connection": {
"anyOf": [
{ "$ref": "#/components/schemas/OpenAIAccountConnection" },
{ "type": "string", "format": "uuid" },
{ "$ref": "#/components/schemas/Undefined" }
],
"title": "Openai Account Connection"
}
},
"type": "object",
Expand Down Expand Up @@ -1912,6 +1945,9 @@
"run_do_not_call_detection": {
"type": "boolean",
"title": "Run Do Not Call Detection"
},
"telephony_account_connection": {
"$ref": "#/components/schemas/TwilioAccountConnection"
}
},
"type": "object",
Expand Down Expand Up @@ -2054,6 +2090,17 @@
"type": "number",
"title": "Initial Message Delay",
"default": 0.0
},
"openai_model_name_override": {
"type": "string",
"title": "Openai Model Name Override"
},
"openai_account_connection": {
"anyOf": [
{ "$ref": "#/components/schemas/OpenAIAccountConnection" },
{ "type": "string", "format": "uuid" }
],
"title": "Openai Account Connection"
}
},
"type": "object",
Expand Down Expand Up @@ -2416,6 +2463,17 @@
"type": "number",
"title": "Initial Message Delay",
"default": 0.0
},
"openai_model_name_override": {
"type": "string",
"title": "Openai Model Name Override"
},
"openai_account_connection": {
"anyOf": [
{ "$ref": "#/components/schemas/OpenAIAccountConnection" },
{ "type": "string", "format": "uuid" }
],
"title": "Openai Account Connection"
}
},
"type": "object",
Expand Down Expand Up @@ -2487,6 +2545,13 @@
"run_do_not_call_detection": {
"type": "boolean",
"title": "Run Do Not Call Detection"
},
"telephony_account_connection": {
"anyOf": [
{ "type": "string", "format": "uuid" },
{ "$ref": "#/components/schemas/TwilioAccountConnection" }
],
"title": "Telephony Account Connection"
}
},
"type": "object",
Expand Down Expand Up @@ -2562,6 +2627,29 @@
"required": ["id", "user_id"],
"title": "NormalizedPrompt"
},
"OpenAIAccountConnection": {
"properties": {
"id": { "type": "string", "format": "uuid", "title": "Id" },
"user_id": { "type": "string", "format": "uuid", "title": "User Id" },
"type": {
"type": "string",
"enum": ["account_connection_openai"],
"title": "Type"
},
"credentials": { "$ref": "#/components/schemas/OpenAICredentials" }
},
"type": "object",
"required": ["id", "user_id", "type", "credentials"],
"title": "OpenAIAccountConnection"
},
"OpenAICredentials": {
"properties": {
"openai_api_key": { "type": "string", "title": "Openai Api Key" }
},
"type": "object",
"required": ["openai_api_key"],
"title": "OpenAICredentials"
},
"PhoneNumber": {
"properties": {
"id": { "type": "string", "format": "uuid", "title": "Id" },
Expand Down Expand Up @@ -3027,6 +3115,13 @@
},
"UpdateNumberRequest": {
"properties": {
"outbound_only": {
"anyOf": [
{ "type": "boolean" },
{ "$ref": "#/components/schemas/Undefined" }
],
"title": "Outbound Only"
},
"label": {
"anyOf": [
{ "type": "string" },
Expand Down

0 comments on commit 66567f1

Please sign in to comment.