diff --git a/fern/apis/fdr/definition/api/latest/type.yml b/fern/apis/fdr/definition/api/latest/type.yml index 39d485a5f8..e36ddc8ef5 100644 --- a/fern/apis/fdr/definition/api/latest/type.yml +++ b/fern/apis/fdr/definition/api/latest/type.yml @@ -60,7 +60,7 @@ types: - commons.WithAvailability properties: key: rootCommons.PropertyKey - valueShape: TypeReference + valueShape: TypeShape EnumType: properties: @@ -84,7 +84,7 @@ types: - commons.WithAvailability properties: displayName: optional - shape: TypeReference + shape: TypeShape DiscriminatedUnionType: properties: @@ -138,18 +138,18 @@ types: OptionalType: properties: - shape: TypeReference + shape: TypeShape default: optional ListType: properties: - itemShape: TypeReference + itemShape: TypeShape SetType: properties: - itemShape: TypeReference + itemShape: TypeShape MapType: properties: - keyShape: TypeReference - valueShape: TypeReference + keyShape: TypeShape + valueShape: TypeShape diff --git a/packages/fdr-sdk/package.json b/packages/fdr-sdk/package.json index 92649b5455..84600ccab4 100644 --- a/packages/fdr-sdk/package.json +++ b/packages/fdr-sdk/package.json @@ -25,6 +25,10 @@ "types": "./dist/client/types.d.ts", "default": "./dist/client/types.js" }, + "./traversers": { + "types": "./dist/utils/traversers/index.d.ts", + "default": "./dist/utils/traversers/index.js" + }, ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" diff --git a/packages/fdr-sdk/src/__test__/output/assemblyai/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/assemblyai/apiDefinitions.json index 4a62b5a25c..7ae06eede5 100644 --- a/packages/fdr-sdk/src/__test__/output/assemblyai/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/assemblyai/apiDefinitions.json @@ -390,11 +390,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -403,10 +409,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:TranscriptStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptStatus" + } + } } }, "description": "Filter by transcript status" @@ -414,11 +426,17 @@ { "key": "created_on", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -427,11 +445,17 @@ { "key": "before_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -440,11 +464,17 @@ { "key": "after_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -453,11 +483,17 @@ { "key": "throttled_only", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -828,9 +864,12 @@ { "key": "audio_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the audio or video file to transcribe." @@ -1942,9 +1981,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -2972,9 +3014,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -4010,9 +4055,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -4020,8 +4068,11 @@ { "key": "subtitle_format", "valueShape": { - "type": "id", - "id": "type_transcripts:SubtitleFormat" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SubtitleFormat" + } }, "description": "The format of the captions" } @@ -4030,11 +4081,17 @@ { "key": "chars_per_caption", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4374,9 +4431,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -4789,9 +4849,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -5186,9 +5249,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -5198,11 +5264,17 @@ { "key": "words", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5565,9 +5637,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the transcript" @@ -5898,9 +5973,12 @@ { "key": "prompt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Your text to prompt the model to produce a desired output, including any context you want to pass into the model." @@ -6272,11 +6350,17 @@ { "key": "answer_format", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6634,10 +6718,16 @@ { "key": "questions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_lemur:LemurQuestion" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_lemur:LemurQuestion" + } + } } }, "description": "A list of questions to ask" @@ -7062,12 +7152,18 @@ { "key": "answer_format", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "Bullet Points" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "Bullet Points" + } + } } } }, @@ -7423,9 +7519,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the LeMUR request whose data you want to delete. This would be found in the response of the original request." @@ -7755,10 +7854,13 @@ { "key": "expires_in", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 60 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 60 + } } }, "description": "The amount of time until the token expires in seconds" @@ -8136,11 +8238,17 @@ { "key": "sample_rate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8149,11 +8257,17 @@ { "key": "word_boost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8162,10 +8276,16 @@ { "key": "encoding", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_streaming:Streaming" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_streaming:Streaming" + } + } } }, "description": "The encoding of the audio data" @@ -8173,11 +8293,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8186,11 +8312,17 @@ { "key": "disable_partial_transcripts", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8199,14 +8331,20 @@ { "key": "enable_extra_session_information", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" - } - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } + } + } + }, "description": "Set to true to receive the SessionInformation message before the session ends. Defaults to false." } ], @@ -8214,11 +8352,17 @@ { "key": "Authentication", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8303,9 +8447,12 @@ { "key": "upload_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A URL that points to your audio file, accessible only by AssemblyAI's servers" @@ -8323,9 +8470,12 @@ { "key": "transcript_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the transcript" @@ -8333,8 +8483,11 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:TranscriptReadyStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptReadyStatus" + } }, "description": "The status of the transcript. Either completed or error." } @@ -8350,17 +8503,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:RedactedAudioStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:RedactedAudioStatus" + } }, "description": "The status of the redacted audio" }, { "key": "redacted_audio_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the redacted audio file" @@ -8406,9 +8565,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the transcript" @@ -8416,9 +8578,12 @@ { "key": "total_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5." @@ -8426,10 +8591,16 @@ { "key": "matches", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:WordSearchMatch" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:WordSearchMatch" + } + } } }, "description": "The matches of the search" @@ -8446,9 +8617,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The matched word" @@ -8456,9 +8630,12 @@ { "key": "count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total amount of times the word is in the transcript" @@ -8466,10 +8643,16 @@ { "key": "timestamps", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:WordSearchTimestamp" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:WordSearchTimestamp" + } + } } }, "description": "An array of timestamps" @@ -8477,11 +8660,17 @@ { "key": "indexes", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8498,9 +8687,12 @@ "value": { "type": "list", "itemShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -8516,9 +8708,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The start time in milliseconds" @@ -8526,9 +8721,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The end time in milliseconds" @@ -8546,21 +8744,33 @@ { "key": "language_code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:TranscriptLanguageCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptLanguageCode" + } + } } } }, { "key": "punctuate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8569,11 +8779,17 @@ { "key": "format_text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8582,11 +8798,17 @@ { "key": "dual_channel", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8595,21 +8817,33 @@ { "key": "speech_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SpeechModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SpeechModel" + } + } } } }, { "key": "webhook_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8618,11 +8852,17 @@ { "key": "webhook_auth_header_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8631,11 +8871,17 @@ { "key": "webhook_auth_header_value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8644,11 +8890,17 @@ { "key": "auto_highlights", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8657,11 +8909,17 @@ { "key": "audio_start_from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8670,11 +8928,17 @@ { "key": "audio_end_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8683,13 +8947,22 @@ { "key": "word_boost", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -8699,10 +8972,16 @@ { "key": "boost_param", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:TranscriptBoostParam" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptBoostParam" + } + } } }, "description": "The word boost parameter value" @@ -8710,11 +8989,17 @@ { "key": "filter_profanity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8723,11 +9008,17 @@ { "key": "redact_pii", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8736,11 +9027,17 @@ { "key": "redact_pii_audio", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8749,10 +9046,16 @@ { "key": "redact_pii_audio_quality", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:RedactPiiAudioQuality" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:RedactPiiAudioQuality" + } + } } }, "description": "Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details." @@ -8760,12 +9063,21 @@ { "key": "redact_pii_policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:PiiPolicy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:PiiPolicy" + } + } + } } } }, @@ -8774,21 +9086,33 @@ { "key": "redact_pii_sub", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SubstitutionPolicy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SubstitutionPolicy" + } + } } } }, { "key": "speaker_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8797,11 +9121,17 @@ { "key": "speakers_expected", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8810,11 +9140,17 @@ { "key": "content_safety", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8823,11 +9159,17 @@ { "key": "content_safety_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8836,11 +9178,17 @@ { "key": "iab_categories", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8849,11 +9197,17 @@ { "key": "language_detection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8862,12 +9216,21 @@ { "key": "custom_spelling", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptCustomSpelling" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptCustomSpelling" + } + } + } } } }, @@ -8876,11 +9239,17 @@ { "key": "disfluencies", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8889,11 +9258,17 @@ { "key": "sentiment_analysis", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8902,11 +9277,17 @@ { "key": "auto_chapters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8915,11 +9296,17 @@ { "key": "entity_detection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8928,11 +9315,17 @@ { "key": "speech_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -8941,11 +9334,17 @@ { "key": "summarization", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8954,10 +9353,16 @@ { "key": "summary_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SummaryModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SummaryModel" + } + } } }, "description": "The model to summarize the transcript" @@ -8965,10 +9370,16 @@ { "key": "summary_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SummaryType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SummaryType" + } + } } }, "description": "The type of summary" @@ -8976,11 +9387,17 @@ { "key": "custom_topics", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8989,13 +9406,22 @@ { "key": "topics", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -9075,11 +9501,17 @@ { "key": "from", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9088,10 +9520,13 @@ { "key": "to", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } + "type": "primitive", + "value": { + "type": "string" + } + } }, "description": "Word or phrase to replace with" } @@ -9107,11 +9542,14 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "The confidence score for the transcript of this utterance" @@ -9119,9 +9557,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The starting time, in milliseconds, of the utterance in the audio file" @@ -9129,9 +9570,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The ending time, in milliseconds, of the utterance in the audio file" @@ -9139,9 +9583,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The text for this utterance" @@ -9149,10 +9596,16 @@ { "key": "words", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptWord" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptWord" + } + } } }, "description": "The words in the utterance." @@ -9160,9 +9613,12 @@ { "key": "speaker", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. \"A\" for Speaker A, \"B\" for Speaker B, etc." @@ -9775,9 +10231,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique identifier of your transcript" @@ -9785,9 +10244,12 @@ { "key": "language_model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The language model that was used for the transcript" @@ -9795,9 +10257,12 @@ { "key": "acoustic_model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The acoustic model that was used for the transcript" @@ -9805,18 +10270,27 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:TranscriptStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptStatus" + } }, "description": "The status of your transcript. Possible values are queued, processing, completed, or error." }, { "key": "language_code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:TranscriptLanguageCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptLanguageCode" + } + } } }, "description": "The language of your audio file.\nPossible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).\nThe default value is 'en_us'." @@ -9824,9 +10298,12 @@ { "key": "audio_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the media that was transcribed" @@ -9834,11 +10311,17 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9847,12 +10330,21 @@ { "key": "words", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptWord" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptWord" + } + } + } } } }, @@ -9861,12 +10353,21 @@ { "key": "utterances", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptUtterance" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptUtterance" + } + } + } } } }, @@ -9875,13 +10376,19 @@ { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } + } } } }, @@ -9890,11 +10397,17 @@ { "key": "audio_duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -9903,11 +10416,17 @@ { "key": "punctuate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9916,11 +10435,17 @@ { "key": "format_text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9929,11 +10454,17 @@ { "key": "dual_channel", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9942,21 +10473,33 @@ { "key": "speech_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SpeechModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SpeechModel" + } + } } } }, { "key": "webhook_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9965,11 +10508,17 @@ { "key": "webhook_status_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9978,9 +10527,12 @@ { "key": "webhook_auth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether webhook authentication details were provided" @@ -9988,11 +10540,17 @@ { "key": "webhook_auth_header_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10001,11 +10559,17 @@ { "key": "speed_boost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10014,9 +10578,12 @@ { "key": "auto_highlights", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether Key Phrases is enabled, either true or false" @@ -10024,21 +10591,33 @@ { "key": "auto_highlights_result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:AutoHighlightsResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:AutoHighlightsResult" + } + } } } }, { "key": "audio_start_from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10047,11 +10626,17 @@ { "key": "audio_end_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10060,13 +10645,22 @@ { "key": "word_boost", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10076,11 +10670,17 @@ { "key": "boost_param", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10089,11 +10689,17 @@ { "key": "filter_profanity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10102,9 +10708,12 @@ { "key": "redact_pii", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether [PII Redaction](https://www.assemblyai.com/docs/models/pii-redaction) is enabled, either true or false" @@ -10112,11 +10721,17 @@ { "key": "redact_pii_audio", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10125,22 +10740,37 @@ { "key": "redact_pii_audio_quality", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:RedactPiiAudioQuality" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:RedactPiiAudioQuality" + } + } } } }, { "key": "redact_pii_policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:PiiPolicy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:PiiPolicy" + } + } + } } } }, @@ -10149,10 +10779,16 @@ { "key": "redact_pii_sub", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:SubstitutionPolicy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SubstitutionPolicy" + } + } } }, "description": "The replacement logic for detected PII, can be \"entity_type\" or \"hash\". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details." @@ -10160,11 +10796,17 @@ { "key": "speaker_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10173,11 +10815,17 @@ { "key": "speakers_expected", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10186,11 +10834,17 @@ { "key": "content_safety", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10199,21 +10853,33 @@ { "key": "content_safety_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:ContentSafetyLabelsResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:ContentSafetyLabelsResult" + } + } } } }, { "key": "iab_categories", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10222,21 +10888,33 @@ { "key": "iab_categories_result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:TopicDetectionModelResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TopicDetectionModelResult" + } + } } } }, { "key": "language_detection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10245,12 +10923,21 @@ { "key": "custom_spelling", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptCustomSpelling" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptCustomSpelling" + } + } + } } } }, @@ -10259,11 +10946,17 @@ { "key": "auto_chapters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10272,12 +10965,21 @@ { "key": "chapters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:Chapter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Chapter" + } + } + } } } }, @@ -10286,9 +10988,12 @@ { "key": "summarization", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled, either true or false" @@ -10296,11 +11001,17 @@ { "key": "summary_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10309,11 +11020,17 @@ { "key": "summary_model", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10322,11 +11039,17 @@ { "key": "summary", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10335,11 +11058,17 @@ { "key": "custom_topics", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10348,13 +11077,22 @@ { "key": "topics", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10364,11 +11102,17 @@ { "key": "disfluencies", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10377,11 +11121,17 @@ { "key": "sentiment_analysis", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10390,12 +11140,21 @@ { "key": "sentiment_analysis_results", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:SentimentAnalysisResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SentimentAnalysisResult" + } + } + } } } }, @@ -10404,11 +11163,17 @@ { "key": "entity_detection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10417,12 +11182,21 @@ { "key": "entities", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:Entity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Entity" + } + } + } } } }, @@ -10430,12 +11204,18 @@ }, { "key": "speech_threshold", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -10444,11 +11224,17 @@ { "key": "throttled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10457,11 +11243,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10480,18 +11272,27 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:AudioIntelligenceModelStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:AudioIntelligenceModelStatus" + } }, "description": "The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed." }, { "key": "results", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TopicDetectionResult" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TopicDetectionResult" + } + } } }, "description": "An array of results for the Topic Detection model" @@ -10499,17 +11300,26 @@ { "key": "summary", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -10528,35 +11338,53 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:AudioIntelligenceModelStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:AudioIntelligenceModelStatus" + } }, "description": "The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed." }, { "key": "results", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:ContentSafetyLabelResult" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:ContentSafetyLabelResult" + } + } } } }, { "key": "summary", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -10565,16 +11393,25 @@ { "key": "severity_score_summary", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:SeverityScoreSummary" + } } - }, - "valueShape": { - "type": "id", - "id": "type_transcripts:SeverityScoreSummary" } }, "description": "A summary of the Content Moderation severity results for the entire audio file" @@ -10592,9 +11429,12 @@ { "key": "gist", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An ultra-short summary (just a few words) of the content spoken in the chapter" @@ -10602,9 +11442,12 @@ { "key": "headline", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A single sentence summary of the content spoken during the chapter" @@ -10612,9 +11455,12 @@ { "key": "summary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A one paragraph summary of the content spoken during the chapter" @@ -10622,9 +11468,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The starting time, in milliseconds, for the chapter" @@ -10632,9 +11481,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The starting time, in milliseconds, for the chapter" @@ -10652,17 +11504,23 @@ { "key": "entity_type", "valueShape": { - "type": "id", - "id": "type_transcripts:EntityType" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:EntityType" + } }, "description": "The type of entity for the detected entity" }, { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The text for the detected entity" @@ -10670,9 +11528,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The starting time, in milliseconds, at which the detected entity appears in the audio file" @@ -10680,9 +11541,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The ending time, in milliseconds, for the detected entity in the audio file" @@ -10885,9 +11749,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The transcript of the sentence" @@ -10895,9 +11762,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The starting time, in milliseconds, of the sentence" @@ -10905,9 +11775,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The ending time, in milliseconds, of the sentence" @@ -10915,19 +11788,25 @@ { "key": "sentiment", "valueShape": { - "type": "id", - "id": "type_transcripts:Sentiment" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Sentiment" + } }, "description": "The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE" }, { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "The confidence score for the detected sentiment of the sentence, from 0 to 1" @@ -10935,11 +11814,17 @@ { "key": "speaker", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10974,11 +11859,14 @@ { "key": "relevance", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "How relevant the detected topic is of a detected topic" @@ -10986,9 +11874,12 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship" @@ -11006,9 +11897,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The text in the transcript in which a detected topic occurs" @@ -11016,12 +11910,21 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TopicDetectionResultLabelsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TopicDetectionResultLabelsItem" + } + } + } } } } @@ -11029,10 +11932,16 @@ { "key": "timestamp", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_transcripts:Timestamp" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Timestamp" + } + } } } } @@ -11048,9 +11957,12 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The label of the sensitive topic" @@ -11058,11 +11970,14 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "The confidence score for the topic being discussed, from 0 to 1" @@ -11070,11 +11985,14 @@ { "key": "severity", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "How severely the topic is discussed in the section, from 0 to 1" @@ -11091,9 +12009,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The transcript of the section flagged by the Content Moderation model" @@ -11101,10 +12022,16 @@ { "key": "labels", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:ContentSafetyLabel" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:ContentSafetyLabel" + } + } } }, "description": "An array of safety labels, one per sensitive topic that was detected in the section" @@ -11112,9 +12039,12 @@ { "key": "sentences_idx_start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The sentence index at which the section begins" @@ -11122,9 +12052,12 @@ { "key": "sentences_idx_end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The sentence index at which the section ends" @@ -11132,8 +12065,11 @@ { "key": "timestamp", "valueShape": { - "type": "id", - "id": "type_transcripts:Timestamp" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Timestamp" + } }, "description": "Timestamp information for the section" } @@ -11149,33 +12085,42 @@ { "key": "low", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "medium", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "high", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } } @@ -11192,18 +12137,27 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:AudioIntelligenceModelStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:AudioIntelligenceModelStatus" + } }, "description": "The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed." }, { "key": "results", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:AutoHighlightResult" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:AutoHighlightResult" + } + } } }, "description": "A temporally-sequential array of Key Phrases" @@ -11220,9 +12174,12 @@ { "key": "count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of times the key phrase appears in the audio file" @@ -11230,9 +12187,12 @@ { "key": "rank", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The total relevancy to the overall audio file of this key phrase - a greater number means more relevant" @@ -11240,9 +12200,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The text itself of the key phrase" @@ -11250,10 +12213,16 @@ { "key": "timestamps", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:Timestamp" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:Timestamp" + } + } } }, "description": "The timestamp of the of the key phrase" @@ -11270,49 +12239,67 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "speaker", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11330,59 +12317,83 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "words", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptWord" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptWord" + } + } } } }, { "key": "speaker", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11400,39 +12411,54 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "audio_duration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "sentences", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptSentence" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptSentence" + } + } } } } @@ -11448,59 +12474,83 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "words", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptWord" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptWord" + } + } } } }, { "key": "speaker", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11518,39 +12568,54 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } } }, { "key": "audio_duration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "paragraphs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptParagraph" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptParagraph" + } + } } } } @@ -11567,9 +12632,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results this page is limited to" @@ -11577,9 +12645,12 @@ { "key": "result_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The actual number of results in the page" @@ -11587,9 +12658,12 @@ { "key": "current_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL used to retrieve the current page of transcripts" @@ -11597,11 +12671,17 @@ { "key": "prev_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11610,11 +12690,17 @@ { "key": "next_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11632,63 +12718,87 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "resource_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "status", "valueShape": { - "type": "id", - "id": "type_transcripts:TranscriptStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptStatus" + } } }, { "key": "created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "completed", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "audio_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11707,17 +12817,26 @@ { "key": "page_details", "valueShape": { - "type": "id", - "id": "type_transcripts:PageDetails" + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:PageDetails" + } } }, { "key": "transcripts", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_transcripts:TranscriptListItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_transcripts:TranscriptListItem" + } + } } } } @@ -11748,8 +12867,11 @@ { "key": "message_type", "valueShape": { - "type": "id", - "id": "type_realtime:MessageType" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:MessageType" + } }, "description": "Describes the type of the message" } @@ -11764,43 +12886,61 @@ { "displayName": "Session Begins", "shape": { - "type": "id", - "id": "type_realtime:SessionBegins" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionBegins" + } } }, { "displayName": "Partial Transcript", "shape": { - "type": "id", - "id": "type_realtime:PartialTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:PartialTranscript" + } } }, { "displayName": "Final Transcript", "shape": { - "type": "id", - "id": "type_realtime:FinalTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:FinalTranscript" + } } }, { "displayName": "Session Information", "shape": { - "type": "id", - "id": "type_realtime:SessionInformation" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionInformation" + } } }, { "displayName": "Session Terminated", "shape": { - "type": "id", - "id": "type_realtime:SessionTerminated" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionTerminated" + } } }, { "displayName": "Realtime Error", "shape": { - "type": "id", - "id": "type_realtime:RealtimeError" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:RealtimeError" + } } } ] @@ -11815,9 +12955,12 @@ { "key": "error", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11869,15 +13012,21 @@ { "displayName": "Partial Transcript", "shape": { - "type": "id", - "id": "type_realtime:PartialTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:PartialTranscript" + } } }, { "displayName": "Final Transcript", "shape": { - "type": "id", - "id": "type_realtime:FinalTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:FinalTranscript" + } } } ] @@ -11892,10 +13041,13 @@ { "key": "message_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "SessionBegins" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "SessionBegins" + } } }, "description": "Describes the type of the message" @@ -11903,9 +13055,12 @@ { "key": "session_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the established session" @@ -11913,9 +13068,12 @@ { "key": "expires_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Timestamp when this session will expire" @@ -11933,10 +13091,13 @@ { "key": "message_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "SessionInformation" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "SessionInformation" + } } }, "description": "Describes the type of the message" @@ -11944,9 +13105,12 @@ { "key": "audio_duration_seconds", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The total duration of the audio in seconds" @@ -11963,10 +13127,13 @@ { "key": "message_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "SessionTerminated" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "SessionTerminated" + } } }, "description": "Describes the type of the message" @@ -11983,9 +13150,12 @@ { "key": "audio_start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Start time of audio sample relative to session start, in milliseconds" @@ -11993,9 +13163,12 @@ { "key": "audio_end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "End time of audio sample relative to session start, in milliseconds" @@ -12003,11 +13176,14 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "The confidence score of the entire transcription, between 0 and 1" @@ -12015,9 +13191,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The partial transcript for your audio" @@ -12025,10 +13204,16 @@ { "key": "words", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_realtime:Word" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:Word" + } + } } }, "description": "An array of objects, with the information for each word in the transcription text.\nIncludes the start and end time of the word in milliseconds, the confidence score of the word, and the text, which is the word itself." @@ -12036,9 +13221,12 @@ { "key": "created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The timestamp for the partial transcript" @@ -12057,10 +13245,13 @@ { "key": "message_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "PartialTranscript" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "PartialTranscript" + } } }, "description": "Describes the type of message" @@ -12079,10 +13270,13 @@ { "key": "message_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "FinalTranscript" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "FinalTranscript" + } } }, "description": "Describes the type of message" @@ -12090,9 +13284,12 @@ { "key": "punctuated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the text is punctuated and cased" @@ -12100,9 +13297,12 @@ { "key": "text_formatted", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the text is formatted, for example Dollar -> $" @@ -12119,9 +13319,12 @@ { "key": "start", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Start time of the word in milliseconds" @@ -12129,9 +13332,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "End time of the word in milliseconds" @@ -12139,11 +13345,14 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } } }, "description": "Confidence score of the word" @@ -12151,9 +13360,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The word itself" @@ -12184,9 +13396,12 @@ { "key": "force_end_utterance", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "A boolean value to communicate that you wish to force the end of the utterance" @@ -12204,11 +13419,14 @@ { "key": "end_utterance_silence_threshold", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0, - "maximum": 20000 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 20000 + } } }, "description": "The duration threshold in milliseconds" @@ -12225,9 +13443,12 @@ { "key": "terminate_session", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Set to true to end your streaming session forever" @@ -12261,9 +13482,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The temporary authentication token for Streaming Speech-to-Text" @@ -12280,9 +13504,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the deletion request of the LeMUR request" @@ -12290,9 +13517,12 @@ { "key": "request_id_to_purge", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the LeMUR request to purge the data for" @@ -12300,9 +13530,12 @@ { "key": "deleted", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the request data was deleted" @@ -12319,9 +13552,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the LeMUR request" @@ -12340,9 +13576,12 @@ { "key": "response", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The response generated by LeMUR" @@ -12361,10 +13600,16 @@ { "key": "response", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_lemur:LemurQuestionAnswer" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_lemur:LemurQuestionAnswer" + } + } } }, "description": "The answers generated by LeMUR and their questions" @@ -12382,9 +13627,12 @@ { "key": "question", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The question for LeMUR to answer" @@ -12392,9 +13640,12 @@ { "key": "answer", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The answer generated by LeMUR" @@ -12413,9 +13664,12 @@ { "key": "response", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The response generated by LeMUR" @@ -12434,9 +13688,12 @@ { "key": "response", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The response generated by LeMUR." @@ -12452,23 +13709,35 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -12484,13 +13753,22 @@ { "key": "transcript_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12500,11 +13778,17 @@ { "key": "input_text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12513,10 +13797,16 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_lemur:LemurBaseParamsContext" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_lemur:LemurBaseParamsContext" + } + } } }, "description": "Context to provide the model. This can be a string or a free-form JSON value." @@ -12524,10 +13814,16 @@ { "key": "final_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_lemur:LemurModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_lemur:LemurModel" + } + } } }, "description": "The model that is used for the final prompt after compression is performed.\nDefaults to \"default\"." @@ -12535,11 +13831,17 @@ { "key": "max_output_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -12548,11 +13850,17 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -12569,23 +13877,35 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -12601,9 +13921,12 @@ { "key": "question", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The question you wish to ask. For more complex questions use default model." @@ -12611,10 +13934,16 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_lemur:LemurQuestionContext" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_lemur:LemurQuestionContext" + } + } } }, "description": "Any context about the transcripts you wish to provide. This can be a string or any object." @@ -12622,11 +13951,17 @@ { "key": "answer_format", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12635,13 +13970,22 @@ { "key": "answer_options", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12702,43 +14046,61 @@ { "displayName": "Session Begins", "shape": { - "type": "id", - "id": "type_realtime:SessionBegins" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionBegins" + } } }, { "displayName": "Partial Transcript", "shape": { - "type": "id", - "id": "type_realtime:PartialTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:PartialTranscript" + } } }, { "displayName": "Final Transcript", "shape": { - "type": "id", - "id": "type_realtime:FinalTranscript" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:FinalTranscript" + } } }, { "displayName": "Session Information", "shape": { - "type": "id", - "id": "type_realtime:SessionInformation" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionInformation" + } } }, { "displayName": "Session Terminated", "shape": { - "type": "id", - "id": "type_realtime:SessionTerminated" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:SessionTerminated" + } } }, { "displayName": "Realtime Error", "shape": { - "type": "id", - "id": "type_realtime:RealtimeError" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:RealtimeError" + } } } ] @@ -12753,29 +14115,41 @@ { "displayName": "Audio Data", "shape": { - "type": "id", - "id": "type_realtime:AudioData" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:AudioData" + } } }, { "displayName": "Terminate Session", "shape": { - "type": "id", - "id": "type_realtime:TerminateSession" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:TerminateSession" + } } }, { "displayName": "Force End Utterance", "shape": { - "type": "id", - "id": "type_realtime:ForceEndUtterance" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:ForceEndUtterance" + } } }, { "displayName": "Configure End Utterance Silence Threshold", "shape": { - "type": "id", - "id": "type_realtime:ConfigureEndUtteranceSilenceThreshold" + "type": "alias", + "value": { + "type": "id", + "id": "type_realtime:ConfigureEndUtteranceSilenceThreshold" + } } } ] @@ -12790,9 +14164,12 @@ { "key": "error", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Error message" @@ -12800,12 +14177,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "error" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "error" + } + } } } } diff --git a/packages/fdr-sdk/src/__test__/output/astronomer/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/astronomer/apiDefinitions.json index 6ef6e3b1c1..a9456473c7 100644 --- a/packages/fdr-sdk/src/__test__/output/astronomer/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/astronomer/apiDefinitions.json @@ -29,10 +29,16 @@ { "key": "supportPlan", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_organization:ListOrganizationsRequestSupportPlan" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_organization:ListOrganizationsRequestSupportPlan" + } + } } }, "description": "Filters the Organization list by support plan." @@ -40,10 +46,16 @@ { "key": "product", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_organization:ListOrganizationsRequestProduct" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_organization:ListOrganizationsRequestProduct" + } + } } }, "description": "Filters the Organization list by product." @@ -51,11 +63,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -64,11 +82,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -77,10 +101,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_organization:ListOrganizationsRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_organization:ListOrganizationsRequestSortsItem" + } + } } }, "description": "A list of field names to sort by, and whether to show results as ascending or descending. Formatted as `:asc` or `:desc`." @@ -343,9 +373,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's ID." @@ -355,11 +388,17 @@ { "key": "isLookUpOnly", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -665,9 +704,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's ID." @@ -682,9 +724,12 @@ { "key": "billingEmail", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's billing email." @@ -692,9 +737,12 @@ { "key": "isScimEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether SCIM is enabled for the Organization." @@ -702,9 +750,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the Organization." @@ -1053,9 +1104,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to get cluster options for." @@ -1065,10 +1119,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_options:GetClusterOptionsRequestProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_options:GetClusterOptionsRequestProvider" + } + } } }, "description": "The cluster's cloud provider." @@ -1076,8 +1136,11 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_options:GetClusterOptionsRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_options:GetClusterOptionsRequestType" + } }, "description": "The cluster type." } @@ -1089,8 +1152,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:ClusterOptions" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterOptions" + } } } } @@ -1402,9 +1468,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to retrieve Deployment options for." @@ -1414,11 +1483,17 @@ { "key": "deploymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1427,10 +1502,16 @@ { "key": "deploymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_options:GetDeploymentOptionsRequestDeploymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_options:GetDeploymentOptionsRequestDeploymentType" + } + } } }, "description": "The runtime type of the deployment." @@ -1438,10 +1519,16 @@ { "key": "executor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_options:GetDeploymentOptionsRequestExecutor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_options:GetDeploymentOptionsRequestExecutor" + } + } } }, "description": "The executor of the deployment." @@ -1449,10 +1536,16 @@ { "key": "cloudProvider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_options:GetDeploymentOptionsRequestCloudProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_options:GetDeploymentOptionsRequestCloudProvider" + } + } } }, "description": "The cloud provider of the cluster for the deployment." @@ -1776,9 +1869,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's unique ID." @@ -1788,11 +1884,17 @@ { "key": "names", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1801,10 +1903,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_cluster:ListClustersRequestProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_cluster:ListClustersRequestProvider" + } + } } }, "description": "The cloud provider to list clusters for. Clusters from other providers will be filtered out of the results." @@ -1812,11 +1920,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -1825,11 +1939,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -1838,10 +1958,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_cluster:ListClustersRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_cluster:ListClustersRequestSortsItem" + } + } } }, "description": "A list of field names to sort by, and whether to show results as ascending or descending. Formatted as `:asc` or `:desc`." @@ -2125,9 +2251,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to create the cluster in." @@ -2518,9 +2647,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the cluster belongs." @@ -2528,9 +2660,12 @@ { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's ID." @@ -2847,9 +2982,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the cluster belongs." @@ -2857,9 +2995,12 @@ { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's ID" @@ -3246,9 +3387,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the cluster belongs." @@ -3256,9 +3400,12 @@ { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's ID." @@ -3508,9 +3655,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to list Deployments for." @@ -3520,11 +3670,17 @@ { "key": "deploymentIds", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3533,11 +3689,17 @@ { "key": "names", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3546,11 +3708,17 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3559,11 +3727,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -3572,11 +3746,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -3585,10 +3765,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_deployment:ListDeploymentsRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_deployment:ListDeploymentsRequestSortsItem" + } + } } }, "description": "A list of field names to sort by, and whether to show results as ascending or descending. Formatted as `:asc` or `:desc`." @@ -3919,9 +4105,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -4383,9 +4572,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Deployment belongs." @@ -4393,9 +4585,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -4774,9 +4969,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Deployment belongs." @@ -4784,9 +4982,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -5327,9 +5528,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Deployment belongs." @@ -5337,9 +5541,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -5596,9 +5803,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization ID" @@ -5606,9 +5816,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment ID" @@ -5623,9 +5836,12 @@ { "key": "isHibernating", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "The type of override to perform. Set this value to 'true' to have the Deployment hibernate regardless of its hibernation schedule. Set the value to 'false' to have the Deployment wake up regardless of its hibernation schedule. Use 'OverrideUntil' to define the length of the override." @@ -5633,11 +5849,17 @@ { "key": "overrideUntil", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -5734,9 +5956,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization ID" @@ -5744,9 +5969,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment ID" @@ -5817,9 +6045,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Deployment belongs." @@ -5827,9 +6058,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -5839,11 +6073,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5852,11 +6092,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6181,9 +6427,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -6191,9 +6440,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -6208,11 +6460,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6221,8 +6479,11 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_deploy:CreateDeployRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_deploy:CreateDeployRequestType" + } }, "description": "The type of the deploy." } @@ -6568,9 +6829,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -6578,9 +6842,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -6588,9 +6855,12 @@ { "key": "deployId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deploy's ID." @@ -6904,9 +7174,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -6914,9 +7187,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -6924,9 +7200,12 @@ { "key": "deployId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deploy's ID." @@ -6941,11 +7220,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7292,9 +7577,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -7302,9 +7590,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -7312,9 +7603,12 @@ { "key": "deployId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deploy's ID." @@ -7329,11 +7623,17 @@ { "key": "dagTarballVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7636,9 +7936,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization in which to create the Deployment." @@ -7646,9 +7949,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -7656,9 +7962,12 @@ { "key": "deployId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deploy's ID." @@ -7673,11 +7982,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8005,9 +8320,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to list Workspaces for." @@ -8017,11 +8335,17 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8030,11 +8354,17 @@ { "key": "names", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8043,11 +8373,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8056,11 +8392,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8069,10 +8411,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_workspace:ListWorkspacesRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_workspace:ListWorkspacesRequestSortsItem" + } + } } }, "description": "A list of field names to sort by, and whether to show results as ascending or descending. Formatted as `:asc` or `:desc`." @@ -8336,9 +8684,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Workspace will belong." @@ -8353,11 +8704,17 @@ { "key": "cicdEnforcedDefault", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8366,11 +8723,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8379,9 +8742,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's name." @@ -8708,9 +9074,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Workspace belongs." @@ -8718,9 +9087,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's ID." @@ -9013,9 +9385,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Workspace belongs." @@ -9023,9 +9398,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's ID." @@ -9040,9 +9418,12 @@ { "key": "cicdEnforcedDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether new Deployments enforce CI/CD deploys by default." @@ -9050,9 +9431,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's description." @@ -9060,9 +9444,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's name." @@ -9405,9 +9792,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Workspace belongs." @@ -9415,9 +9805,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's ID." @@ -9915,11 +10308,17 @@ { "key": "apiTokenName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9928,11 +10327,17 @@ { "key": "avatarUrl", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9941,11 +10346,17 @@ { "key": "fullName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9954,9 +10365,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The subject's ID." @@ -9964,10 +10378,16 @@ { "key": "subjectType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfileSubjectType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfileSubjectType" + } + } } }, "description": "The subject type." @@ -9975,11 +10395,17 @@ { "key": "username", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10054,17 +10480,23 @@ { "key": "cloudProvider", "valueShape": { - "type": "id", - "id": "type_:ClusterCloudProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterCloudProvider" + } }, "description": "The name of the cluster's cloud provider." }, { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the cluster was created in UTC. formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -10072,9 +10504,12 @@ { "key": "dbInstanceType", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of database instance that is used for the cluster." @@ -10082,9 +10517,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's ID." @@ -10092,11 +10530,17 @@ { "key": "isLimited", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10105,19 +10549,28 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ClusterMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterMetadata" + } + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's name." @@ -10125,12 +10578,21 @@ { "key": "nodePools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:NodePool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:NodePool" + } + } + } } } }, @@ -10139,9 +10601,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization that the cluster belongs to." @@ -10149,11 +10614,17 @@ { "key": "podSubnetRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10162,11 +10633,17 @@ { "key": "providerAccount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10175,9 +10652,12 @@ { "key": "region", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The region in which the cluster is created." @@ -10185,11 +10665,17 @@ { "key": "servicePeeringRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10198,11 +10684,17 @@ { "key": "serviceSubnetRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10211,20 +10703,32 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:ClusterStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterStatus" + } }, "description": "The status of the cluster." }, { "key": "tags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ClusterK8STag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterK8STag" + } + } + } } } }, @@ -10233,11 +10737,17 @@ { "key": "tenantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10246,17 +10756,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ClusterType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterType" + } }, "description": "The type of the cluster." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the cluster was last updated in UTC. formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -10264,9 +10780,12 @@ { "key": "vpcSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The VPC subnet range." @@ -10274,13 +10793,22 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10299,11 +10827,17 @@ { "key": "key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10312,11 +10846,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10334,13 +10874,22 @@ { "key": "externalIPs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10350,11 +10899,17 @@ { "key": "oidcIssuerUrl", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10390,10 +10945,16 @@ { "key": "databaseInstances", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProviderInstanceType" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderInstanceType" + } + } } }, "description": "The available database instances." @@ -10401,25 +10962,37 @@ { "key": "defaultDatabaseInstance", "valueShape": { - "type": "id", - "id": "type_:ProviderInstanceType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderInstanceType" + } } }, { "key": "defaultNodeInstance", "valueShape": { - "type": "id", - "id": "type_:ProviderInstanceType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderInstanceType" + } } }, { "key": "defaultPodSubnetRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10428,18 +11001,27 @@ { "key": "defaultRegion", "valueShape": { - "type": "id", - "id": "type_:ProviderRegion" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderRegion" + } } }, { "key": "defaultServicePeeringRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10448,11 +11030,17 @@ { "key": "defaultServiceSubnetRange", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10461,9 +11049,12 @@ { "key": "defaultVpcSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default VPC subnet range." @@ -10471,9 +11062,12 @@ { "key": "nodeCountDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The default number of nodes." @@ -10481,9 +11075,12 @@ { "key": "nodeCountMax", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of nodes." @@ -10491,9 +11088,12 @@ { "key": "nodeCountMin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The minimum number of nodes." @@ -10501,10 +11101,16 @@ { "key": "nodeInstances", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProviderInstanceType" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderInstanceType" + } + } } }, "description": "The available node instances." @@ -10512,18 +11118,27 @@ { "key": "provider", "valueShape": { - "type": "id", - "id": "type_:ClusterOptionsProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterOptionsProvider" + } }, "description": "The cloud provider." }, { "key": "regions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProviderRegion" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderRegion" + } + } } }, "description": "The available regions." @@ -10540,10 +11155,16 @@ { "key": "clusters", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Cluster" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Cluster" + } + } } }, "description": "The list of clusters in the current page." @@ -10551,9 +11172,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of clusters in one page." @@ -10561,9 +11185,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of clusters." @@ -10571,9 +11198,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of clusters." @@ -10623,19 +11253,28 @@ { "key": "cloudProvider", "valueShape": { - "type": "id", - "id": "type_:CreateAwsClusterRequestCloudProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAwsClusterRequestCloudProvider" + } }, "description": "The cluster's cloud provider." }, { "key": "dbInstanceType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10644,12 +11283,21 @@ { "key": "k8sTags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ClusterK8STag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterK8STag" + } + } + } } } }, @@ -10658,9 +11306,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's name." @@ -10668,12 +11319,21 @@ { "key": "nodePools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CreateNodePoolRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateNodePoolRequest" + } + } + } } } }, @@ -10682,11 +11342,17 @@ { "key": "providerAccount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10695,9 +11361,12 @@ { "key": "region", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's region." @@ -10705,17 +11374,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateAwsClusterRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAwsClusterRequestType" + } }, "description": "The cluster's type." }, { "key": "vpcSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The VPC subnet range." @@ -10723,13 +11398,22 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10781,19 +11465,28 @@ { "key": "cloudProvider", "valueShape": { - "type": "id", - "id": "type_:CreateAzureClusterRequestCloudProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAzureClusterRequestCloudProvider" + } }, "description": "The cluster's cloud provider." }, { "key": "dbInstanceType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10802,12 +11495,21 @@ { "key": "k8sTags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ClusterK8STag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterK8STag" + } + } + } } } }, @@ -10816,9 +11518,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's name." @@ -10826,12 +11531,21 @@ { "key": "nodePools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CreateNodePoolRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateNodePoolRequest" + } + } + } } } }, @@ -10840,11 +11554,17 @@ { "key": "providerAccount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10853,9 +11573,12 @@ { "key": "region", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's region." @@ -10863,11 +11586,17 @@ { "key": "tenantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10876,17 +11605,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateAzureClusterRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAzureClusterRequestType" + } }, "description": "The cluster's type." }, { "key": "vpcSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The VPC subnet range." @@ -10894,13 +11629,22 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -10918,22 +11662,31 @@ { "displayName": "Create Aws Cluster Request", "shape": { - "type": "id", - "id": "type_:CreateAwsClusterRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAwsClusterRequest" + } } }, { "displayName": "Create Azure Cluster Request", "shape": { - "type": "id", - "id": "type_:CreateAzureClusterRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateAzureClusterRequest" + } } }, { "displayName": "Create Gcp Cluster Request", "shape": { - "type": "id", - "id": "type_:CreateGcpClusterRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateGcpClusterRequest" + } } } ] @@ -10999,9 +11752,12 @@ { "key": "astroRuntimeVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Deployment's Astro Runtime version." @@ -11009,9 +11765,12 @@ { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the cluster where the Deployment will be created." @@ -11019,13 +11778,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -11035,9 +11803,12 @@ { "key": "defaultTaskPodCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores." @@ -11045,9 +11816,12 @@ { "key": "defaultTaskPodMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `DefaultTaskPodCpu`." @@ -11055,11 +11829,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11068,12 +11848,21 @@ { "key": "environmentVariables", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } + } } } }, @@ -11082,17 +11871,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:CreateDedicatedDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDedicatedDeploymentRequestExecutor" + } }, "description": "The Deployment's executor type." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -11100,9 +11895,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -11110,11 +11908,17 @@ { "key": "isDevelopmentMode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11123,9 +11927,12 @@ { "key": "isHighAvailability", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online." @@ -11133,9 +11940,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -11143,9 +11953,12 @@ { "key": "resourceQuotaCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores." @@ -11153,9 +11966,12 @@ { "key": "resourceQuotaMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `ResourceQuotaCpu`." @@ -11163,38 +11979,59 @@ { "key": "scalingSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingSpecRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingSpecRequest" + } + } } } }, { "key": "schedulerSize", "valueShape": { - "type": "id", - "id": "type_:CreateDedicatedDeploymentRequestSchedulerSize" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDedicatedDeploymentRequestSchedulerSize" + } }, "description": "The size of the scheduler pod." }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateDedicatedDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDedicatedDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueRequest" + } + } + } } } }, @@ -11203,11 +12040,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11216,9 +12059,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the workspace to which the Deployment belongs." @@ -11234,22 +12080,31 @@ { "displayName": "Create Dedicated Deployment Request", "shape": { - "type": "id", - "id": "type_:CreateDedicatedDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDedicatedDeploymentRequest" + } } }, { "displayName": "Create Hybrid Deployment Request", "shape": { - "type": "id", - "id": "type_:CreateHybridDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateHybridDeploymentRequest" + } } }, { "displayName": "Create Standard Deployment Request", "shape": { - "type": "id", - "id": "type_:CreateStandardDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateStandardDeploymentRequest" + } } } ] @@ -11297,19 +12152,28 @@ { "key": "cloudProvider", "valueShape": { - "type": "id", - "id": "type_:CreateGcpClusterRequestCloudProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateGcpClusterRequestCloudProvider" + } }, "description": "The cluster's cloud provider." }, { "key": "dbInstanceType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11318,12 +12182,21 @@ { "key": "k8sTags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ClusterK8STag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterK8STag" + } + } + } } } }, @@ -11332,9 +12205,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's name." @@ -11342,12 +12218,21 @@ { "key": "nodePools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CreateNodePoolRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateNodePoolRequest" + } + } + } } } }, @@ -11356,9 +12241,12 @@ { "key": "podSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The subnet range for Pods. For GCP clusters only." @@ -11366,11 +12254,17 @@ { "key": "providerAccount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11379,9 +12273,12 @@ { "key": "region", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's region." @@ -11389,9 +12286,12 @@ { "key": "servicePeeringRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The service subnet range. For GCP clusters only." @@ -11399,9 +12299,12 @@ { "key": "serviceSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The service peering range. For GCP clusters only." @@ -11409,17 +12312,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateGcpClusterRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateGcpClusterRequestType" + } }, "description": "The cluster's type." }, { "key": "vpcSubnetRange", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The VPC subnet range." @@ -11427,13 +12336,22 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -11485,9 +12403,12 @@ { "key": "astroRuntimeVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Deployment's Astro Runtime version." @@ -11495,9 +12416,12 @@ { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the cluster where the Deployment will be created." @@ -11505,13 +12429,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -11521,11 +12454,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11534,12 +12473,21 @@ { "key": "environmentVariables", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } + } } } }, @@ -11548,17 +12496,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:CreateHybridDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateHybridDeploymentRequestExecutor" + } }, "description": "The Deployment's executor type." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -11566,9 +12520,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -11576,9 +12533,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -11586,18 +12546,27 @@ { "key": "scheduler", "valueShape": { - "type": "id", - "id": "type_:DeploymentInstanceSpecRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentInstanceSpecRequest" + } } }, { "key": "taskPodNodePoolId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11606,20 +12575,32 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateHybridDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateHybridDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:HybridWorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HybridWorkerQueueRequest" + } + } + } } } }, @@ -11628,11 +12609,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11641,9 +12628,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the workspace to which the Deployment belongs." @@ -11660,11 +12650,17 @@ { "key": "isDefault", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11673,9 +12669,12 @@ { "key": "maxNodeCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of nodes that can be created in the node pool." @@ -11683,9 +12682,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the node pool." @@ -11693,9 +12695,12 @@ { "key": "nodeInstanceType", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of node instance that is used for the node pool." @@ -11781,9 +12786,12 @@ { "key": "astroRuntimeVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Deployment's Astro Runtime version." @@ -11791,10 +12799,16 @@ { "key": "cloudProvider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CreateStandardDeploymentRequestCloudProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateStandardDeploymentRequestCloudProvider" + } + } } }, "description": "The cloud provider for the Deployment's cluster. Optional if `ClusterId` is specified." @@ -11802,26 +12816,41 @@ { "key": "clusterId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, "description": "The ID of the cluster to which the Deployment will be created in. Optional if cloud provider and region is specified." }, { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -11831,9 +12860,12 @@ { "key": "defaultTaskPodCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores." @@ -11841,9 +12873,12 @@ { "key": "defaultTaskPodMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `DefaultTaskPodCpu`." @@ -11851,11 +12886,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11864,12 +12905,21 @@ { "key": "environmentVariables", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } + } } } }, @@ -11878,17 +12928,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:CreateStandardDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateStandardDeploymentRequestExecutor" + } }, "description": "The Deployment's executor type." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -11896,9 +12952,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -11906,11 +12965,17 @@ { "key": "isDevelopmentMode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11919,9 +12984,12 @@ { "key": "isHighAvailability", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online." @@ -11929,9 +12997,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -11939,11 +13010,17 @@ { "key": "region", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11952,9 +13029,12 @@ { "key": "resourceQuotaCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores." @@ -11962,9 +13042,12 @@ { "key": "resourceQuotaMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `ResourceQuotaCpu`." @@ -11972,38 +13055,59 @@ { "key": "scalingSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingSpecRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingSpecRequest" + } + } } } }, { "key": "schedulerSize", "valueShape": { - "type": "id", - "id": "type_:CreateStandardDeploymentRequestSchedulerSize" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateStandardDeploymentRequestSchedulerSize" + } }, "description": "The size of the scheduler pod." }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:CreateStandardDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateStandardDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueRequest" + } + } + } } } }, @@ -12012,11 +13116,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12025,9 +13135,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the workspace to which the Deployment belongs." @@ -12080,11 +13193,17 @@ { "key": "airflowVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12093,11 +13212,17 @@ { "key": "astroRuntimeVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12106,9 +13231,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the deploy was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -12116,21 +13244,33 @@ { "key": "createdBySubject", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } }, { "key": "dagTarballVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12139,11 +13279,17 @@ { "key": "dagsUploadUrl", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12152,9 +13298,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -12162,12 +13311,18 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } }, "description": "The deploy's description." @@ -12175,9 +13330,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The deploy's ID." @@ -12185,9 +13343,12 @@ { "key": "imageRepository", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the deploy's image repository." @@ -12195,9 +13356,12 @@ { "key": "imageTag", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The deploy's image tag. Appears only if specified in the most recent deploy." @@ -12205,9 +13369,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the deploy was triggered on a Deployment with DAG deploys enabled." @@ -12215,11 +13382,17 @@ { "key": "rollbackFromId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12228,27 +13401,39 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:DeployStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeployStatus" + } }, "description": "The status of the deploy." }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:DeployType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeployType" + } }, "description": "The type of deploy." }, { "key": "updatedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -12257,10 +13442,16 @@ { "key": "updatedBySubject", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } } @@ -12372,9 +13563,12 @@ { "key": "airflowVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's Airflow version." @@ -12382,9 +13576,12 @@ { "key": "astroRuntimeVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's Astro Runtime version." @@ -12392,10 +13589,16 @@ { "key": "cloudProvider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentCloudProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentCloudProvider" + } + } } }, "description": "The cloud provider of the cluster. Only for Standard Deployment." @@ -12403,11 +13606,17 @@ { "key": "clusterId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12416,11 +13625,17 @@ { "key": "clusterName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12429,13 +13644,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12445,9 +13669,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Deployment was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -12455,18 +13682,27 @@ { "key": "createdBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "dagTarballVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12475,11 +13711,17 @@ { "key": "defaultTaskPodCpu", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12488,11 +13730,17 @@ { "key": "defaultTaskPodMemory", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12501,11 +13749,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12514,11 +13768,17 @@ { "key": "desiredDagTarballVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12527,12 +13787,21 @@ { "key": "environmentVariables", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariable" + } + } + } } } }, @@ -12541,10 +13810,16 @@ { "key": "executor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentExecutor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentExecutor" + } + } } }, "description": "The Deployment's executor type." @@ -12552,13 +13827,22 @@ { "key": "externalIPs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12568,9 +13852,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's ID." @@ -12578,9 +13865,12 @@ { "key": "imageRepository", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the Deployment's image repository." @@ -12588,9 +13878,12 @@ { "key": "imageTag", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's custom image tag. Appears only if specified in the most recent deploy." @@ -12598,11 +13891,17 @@ { "key": "imageVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12611,9 +13910,12 @@ { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -12621,9 +13923,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -12631,11 +13936,17 @@ { "key": "isDevelopmentMode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -12644,11 +13955,17 @@ { "key": "isHighAvailability", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -12657,9 +13974,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -12667,9 +13987,12 @@ { "key": "namespace", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's namespace name in the Kubernetes cluster." @@ -12677,11 +14000,17 @@ { "key": "oidcIssuerUrl", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12690,9 +14019,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Deployment belongs." @@ -12700,11 +14032,17 @@ { "key": "region", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12713,11 +14051,17 @@ { "key": "resourceQuotaCpu", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12726,11 +14070,17 @@ { "key": "resourceQuotaMemory", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12739,9 +14089,12 @@ { "key": "runtimeVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Deprecated: runtimeVersion has been replaced with astroRuntimeVersion" @@ -12749,31 +14102,49 @@ { "key": "scalingSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingSpec" + } + } } } }, { "key": "scalingStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingStatus" + } + } } } }, { "key": "schedulerAu", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -12782,9 +14153,12 @@ { "key": "schedulerCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU limit for the Deployment's scheduler. Specified in number of CPU cores." @@ -12792,9 +14166,12 @@ { "key": "schedulerMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory limit for the Deployment's scheduler. Units in Gibibytes or `Gi`." @@ -12802,9 +14179,12 @@ { "key": "schedulerReplicas", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of schedulers to use in the Deployment." @@ -12812,10 +14192,16 @@ { "key": "schedulerSize", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentSchedulerSize" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentSchedulerSize" + } + } } }, "description": "The Deployment's scheduler size." @@ -12823,19 +14209,28 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:DeploymentStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentStatus" + } }, "description": "The status of the Deployment." }, { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12844,11 +14239,17 @@ { "key": "taskPodNodePoolId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12857,10 +14258,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentType" + } + } } }, "description": "The type of cluster that the Deployment runs on." @@ -12868,9 +14275,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Deployment was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -12878,16 +14288,22 @@ { "key": "updatedBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "webServerAirflowApiUrl", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's webserver's base url to directly access the Airflow api." @@ -12895,9 +14311,12 @@ { "key": "webServerCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU limit for the Deployment's webserver. Units are in number of CPU cores." @@ -12905,9 +14324,12 @@ { "key": "webServerIngressHostname", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's webserver's ingress hostname." @@ -12915,9 +14337,12 @@ { "key": "webServerMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory limit for the Deployment's webserver. Units in Gibibytes or `Gi`." @@ -12925,11 +14350,17 @@ { "key": "webServerReplicas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -12938,9 +14369,12 @@ { "key": "webServerUrl", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's webserver's url." @@ -12948,12 +14382,21 @@ { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerQueue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueue" + } + } + } } } }, @@ -12962,11 +14405,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12975,9 +14424,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Workspace to which the Deployment belongs." @@ -12985,11 +14437,17 @@ { "key": "workspaceName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13007,9 +14465,12 @@ { "key": "isSecret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the environment variable is a secret." @@ -13017,9 +14478,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The environment variable key, used to call the value in code." @@ -13027,9 +14491,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time when the environment variable was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -13037,11 +14504,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13059,9 +14532,12 @@ { "key": "isSecret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the environment variable is a secret." @@ -13069,21 +14545,30 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The environment variable key, used to call the value in code." }, - { - "key": "value", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + { + "key": "value", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13101,11 +14586,17 @@ { "key": "isActive", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -13114,11 +14605,17 @@ { "key": "isHibernating", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -13127,11 +14624,17 @@ { "key": "overrideUntil", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -13149,11 +14652,17 @@ { "key": "isHibernating", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -13162,11 +14671,17 @@ { "key": "overrideUntil", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13184,11 +14699,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13197,9 +14718,12 @@ { "key": "hibernateAtCron", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A 5-part cron expression defining the times at which the deployment should hibernate" @@ -13207,9 +14731,12 @@ { "key": "isEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Toggle this schedule on or off. If set to false, this schedule will have no effect on hibernation." @@ -13217,9 +14744,12 @@ { "key": "wakeAtCron", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A 5-part cron expression definingh the times at which the deployment should wake from hibernation" @@ -13236,22 +14766,37 @@ { "key": "override", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationOverride" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationOverride" + } + } } } }, { "key": "schedules", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentHibernationSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationSchedule" + } + } + } } } }, @@ -13269,22 +14814,37 @@ { "key": "override", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationOverrideRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationOverrideRequest" + } + } } } }, { "key": "schedules", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentHibernationSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationSchedule" + } + } + } } } }, @@ -13317,9 +14877,12 @@ { "key": "isHibernating", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "If the deployment is currently in hibernating state or not" @@ -13327,11 +14890,17 @@ { "key": "nextEventAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13340,10 +14909,16 @@ { "key": "nextEventType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationStatusNextEventType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationStatusNextEventType" + } + } } }, "description": "The type of the next scheduled event for the deployment. Either HIBERNATE or WAKE" @@ -13351,11 +14926,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13373,9 +14954,12 @@ { "key": "au", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of Astro unit allocated to the Deployment pod. Minimum `5`, Maximum `24`." @@ -13383,9 +14967,12 @@ { "key": "replicas", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of replicas the pod should have. Minimum `1`, Maximum `4`." @@ -13402,11 +14989,17 @@ { "key": "executors", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13415,17 +15008,26 @@ { "key": "resourceQuotas", "valueShape": { - "type": "id", - "id": "type_:ResourceQuotaOptions" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResourceQuotaOptions" + } } }, { "key": "runtimeReleases", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RuntimeRelease" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RuntimeRelease" + } + } } }, "description": "The available Astro Runtime versions." @@ -13433,10 +15035,16 @@ { "key": "schedulerMachines", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SchedulerMachine" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchedulerMachine" + } + } } }, "description": "The available scheduler sizes." @@ -13444,10 +15052,16 @@ { "key": "workerMachines", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerMachine" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerMachine" + } + } } }, "description": "The available worker machine types." @@ -13455,19 +15069,31 @@ { "key": "workerQueues", "valueShape": { - "type": "id", - "id": "type_:WorkerQueueOptions" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueOptions" + } } }, - { - "key": "workloadIdentityOptions", - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkloadIdentityOption" + { + "key": "workloadIdentityOptions", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkloadIdentityOption" + } + } + } } } }, @@ -13485,10 +15111,16 @@ { "key": "hibernationSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationSpec" + } + } } } } @@ -13504,10 +15136,16 @@ { "key": "hibernationSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationSpecRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationSpecRequest" + } + } } } } @@ -13523,10 +15161,16 @@ { "key": "hibernationStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentHibernationStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentHibernationStatus" + } + } } } } @@ -13542,10 +15186,16 @@ { "key": "deployments", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Deployment" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Deployment" + } + } } }, "description": "A list of Deployments in the current page." @@ -13553,9 +15203,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of Deployments in one page." @@ -13563,9 +15216,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of Deployments." @@ -13573,9 +15229,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Deployments." @@ -13592,10 +15251,16 @@ { "key": "deploys", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Deploy" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Deploy" + } + } } }, "description": "A list of deploys in the current page." @@ -13603,9 +15268,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of deploys in one page." @@ -13613,9 +15281,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of deploys." @@ -13623,9 +15294,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of deploys." @@ -13642,27 +15316,36 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "requestId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "statusCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -13678,11 +15361,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13691,9 +15380,12 @@ { "key": "isDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the worker queue is the default worker queue on the Deployment." @@ -13701,9 +15393,12 @@ { "key": "maxWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of workers that can run at once." @@ -13711,9 +15406,12 @@ { "key": "minWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The minimum number of workers running at once." @@ -13721,9 +15419,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The worker queue's name." @@ -13731,9 +15432,12 @@ { "key": "nodePoolId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The node pool ID associated with the worker queue." @@ -13741,9 +15445,12 @@ { "key": "workerConcurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of concurrent tasks that a worker Pod can run at a time." @@ -13760,11 +15467,17 @@ { "key": "concurrency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -13773,9 +15486,12 @@ { "key": "cpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU quantity. Units are in number of CPU cores." @@ -13783,11 +15499,17 @@ { "key": "ephemeralStorage", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13796,9 +15518,12 @@ { "key": "memory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory quantity. Units in Gibibytes or `Gi`." @@ -13830,9 +15555,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the domain was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -13840,13 +15568,22 @@ { "key": "enforcedLogins", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -13856,9 +15593,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The managed domain's ID." @@ -13866,9 +15606,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The managed domain's name/ URL." @@ -13876,9 +15619,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the managed domain belongs." @@ -13886,17 +15632,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:ManagedDomainStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ManagedDomainStatus" + } }, "description": "Whether the managed domain has completed the verification process." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the domain was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -13931,17 +15683,23 @@ { "key": "cloudProvider", "valueShape": { - "type": "id", - "id": "type_:NodePoolCloudProvider" + "type": "alias", + "value": { + "type": "id", + "id": "type_:NodePoolCloudProvider" + } }, "description": "The name of the cloud provider." }, { "key": "clusterId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the cluster that the node pool belongs to." @@ -13949,9 +15707,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the node pool was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -13959,9 +15720,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The node pool's ID." @@ -13969,9 +15733,12 @@ { "key": "isDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the node pool is the default node pool of the cluster." @@ -13979,9 +15746,12 @@ { "key": "maxNodeCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of nodes that can be created in the node pool." @@ -13989,9 +15759,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the node pool." @@ -13999,9 +15772,12 @@ { "key": "nodeInstanceType", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of node instance that is used for the node pool." @@ -14009,13 +15785,22 @@ { "key": "supportedAstroMachines", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14025,9 +15810,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the node pool was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -14125,11 +15913,17 @@ { "key": "billingEmail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14138,9 +15932,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Organization was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -14148,16 +15945,22 @@ { "key": "createdBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's ID." @@ -14165,9 +15968,12 @@ { "key": "isScimEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether SCIM is enabled for the Organization." @@ -14175,12 +15981,21 @@ { "key": "managedDomains", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ManagedDomain" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ManagedDomain" + } + } + } } } }, @@ -14189,9 +16004,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's name." @@ -14199,10 +16017,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrganizationPaymentMethod" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrganizationPaymentMethod" + } + } } }, "description": "The Organization's payment method." @@ -14210,10 +16034,16 @@ { "key": "product", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrganizationProduct" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrganizationProduct" + } + } } }, "description": "The Organization's product type." @@ -14221,10 +16051,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrganizationStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrganizationStatus" + } + } } }, "description": "The Organization's status." @@ -14232,19 +16068,28 @@ { "key": "supportPlan", "valueShape": { - "type": "id", - "id": "type_:OrganizationSupportPlan" + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrganizationSupportPlan" + } }, "description": "The Organization's support plan." }, { "key": "trialExpiresAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -14253,9 +16098,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Organization was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -14263,8 +16111,11 @@ { "key": "updatedBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } } ] @@ -14279,9 +16130,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of Organizations in the page." @@ -14289,9 +16143,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the Organizations in the page." @@ -14299,10 +16156,16 @@ { "key": "organizations", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } } }, "description": "The list of Organizations in the page." @@ -14310,9 +16173,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Organizations." @@ -14329,9 +16195,12 @@ { "key": "cpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of CPUs. Units are in number of CPU cores." @@ -14339,9 +16208,12 @@ { "key": "memory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The amount of memory. Units in Gibibytes or `Gi`." @@ -14349,9 +16221,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the instance type." @@ -14368,13 +16243,22 @@ { "key": "bannedInstances", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14384,11 +16268,17 @@ { "key": "limited", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -14397,9 +16287,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the region." @@ -14416,9 +16309,12 @@ { "key": "ceiling", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The maximum value." @@ -14426,9 +16322,12 @@ { "key": "default", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The default value." @@ -14436,9 +16335,12 @@ { "key": "floor", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The minimum value." @@ -14455,15 +16357,21 @@ { "key": "cpu", "valueShape": { - "type": "id", - "id": "type_:ResourceRange" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResourceRange" + } } }, { "key": "memory", "valueShape": { - "type": "id", - "id": "type_:ResourceRange" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResourceRange" + } } } ] @@ -14478,15 +16386,21 @@ { "key": "defaultPodSize", "valueShape": { - "type": "id", - "id": "type_:ResourceOption" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResourceOption" + } } }, { "key": "resourceQuota", "valueShape": { - "type": "id", - "id": "type_:ResourceOption" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResourceOption" + } } } ] @@ -14501,9 +16415,12 @@ { "key": "ceiling", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The maximum value." @@ -14511,9 +16428,12 @@ { "key": "default", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default value." @@ -14521,9 +16441,12 @@ { "key": "floor", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The minimum value." @@ -14540,9 +16463,12 @@ { "key": "airflowDatabaseMigration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the release requires an Airflow database migration." @@ -14550,9 +16476,12 @@ { "key": "airflowVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Airflow version that the Runtime image is based on." @@ -14560,9 +16489,12 @@ { "key": "channel", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The release channel." @@ -14570,9 +16502,12 @@ { "key": "releaseDate", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the version is released in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -14580,9 +16515,12 @@ { "key": "stellarDatabaseMigration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the release requires a Stellar database migration." @@ -14590,9 +16528,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Astro Runtime version." @@ -14627,16 +16568,22 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:SchedulerMachineName" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchedulerMachineName" + } }, "description": "The machine's name." }, { "key": "spec", "valueShape": { - "type": "id", - "id": "type_:MachineSpec" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MachineSpec" + } } } ] @@ -14674,11 +16621,17 @@ { "key": "dbInstanceType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14687,10 +16640,16 @@ { "key": "k8sTags", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ClusterK8STag" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClusterK8STag" + } + } } }, "description": "A list of Kubernetes tags to add to the cluster." @@ -14698,9 +16657,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The cluster's name." @@ -14708,12 +16670,21 @@ { "key": "nodePools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:UpdateNodePoolRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateNodePoolRequest" + } + } + } } } }, @@ -14722,13 +16693,22 @@ { "key": "workspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14798,13 +16778,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14814,9 +16803,12 @@ { "key": "defaultTaskPodCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores." @@ -14824,9 +16816,12 @@ { "key": "defaultTaskPodMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `DefaultTaskPodCpu`." @@ -14834,11 +16829,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14847,10 +16848,16 @@ { "key": "environmentVariables", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } } }, "description": "List of environment variables to add to the Deployment." @@ -14858,17 +16865,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:UpdateDedicatedDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateDedicatedDeploymentRequestExecutor" + } }, "description": "The executor Deployment's executor." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -14876,9 +16889,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -14886,11 +16902,17 @@ { "key": "isDevelopmentMode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -14899,9 +16921,12 @@ { "key": "isHighAvailability", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online." @@ -14909,9 +16934,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -14919,9 +16947,12 @@ { "key": "resourceQuotaCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores." @@ -14929,9 +16960,12 @@ { "key": "resourceQuotaMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `ResourceQuotaCpu`." @@ -14939,38 +16973,59 @@ { "key": "scalingSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingSpecRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingSpecRequest" + } + } } } }, { "key": "schedulerSize", "valueShape": { - "type": "id", - "id": "type_:UpdateDedicatedDeploymentRequestSchedulerSize" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateDedicatedDeploymentRequestSchedulerSize" + } }, "description": "The size of the scheduler pod." }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:UpdateDedicatedDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateDedicatedDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueRequest" + } + } + } } } }, @@ -14979,11 +17034,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14992,9 +17053,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Workspace to which the Deployment belongs." @@ -15010,22 +17074,31 @@ { "displayName": "Update Dedicated Deployment Request", "shape": { - "type": "id", - "id": "type_:UpdateDedicatedDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateDedicatedDeploymentRequest" + } } }, { "displayName": "Update Hybrid Deployment Request", "shape": { - "type": "id", - "id": "type_:UpdateHybridDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateHybridDeploymentRequest" + } } }, { "displayName": "Update Standard Deployment Request", "shape": { - "type": "id", - "id": "type_:UpdateStandardDeploymentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateStandardDeploymentRequest" + } } } ] @@ -15036,17 +17109,26 @@ "shape": { "type": "object", "extends": [], - "properties": [ - { - "key": "workspaceIds", - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "properties": [ + { + "key": "workspaceIds", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -15098,13 +17180,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -15114,11 +17205,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15127,10 +17224,16 @@ { "key": "environmentVariables", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } } }, "description": "List of environment variables to add to the Deployment." @@ -15138,17 +17241,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:UpdateHybridDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateHybridDeploymentRequestExecutor" + } }, "description": "The Deployment's executor type." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -15156,9 +17265,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -15166,9 +17278,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -15176,18 +17291,27 @@ { "key": "scheduler", "valueShape": { - "type": "id", - "id": "type_:DeploymentInstanceSpecRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentInstanceSpecRequest" + } } }, { "key": "taskPodNodePoolId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15196,20 +17320,32 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:UpdateHybridDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateHybridDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:HybridWorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HybridWorkerQueueRequest" + } + } + } } } }, @@ -15218,11 +17354,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15231,9 +17373,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Workspace to which the Deployment belongs." @@ -15250,11 +17395,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15263,11 +17414,17 @@ { "key": "isDefault", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15276,9 +17433,12 @@ { "key": "maxNodeCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of nodes that can be created in the node pool." @@ -15286,9 +17446,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the node pool." @@ -15296,9 +17459,12 @@ { "key": "nodeInstanceType", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of node instance that is used for the node pool." @@ -15366,13 +17532,22 @@ { "key": "contactEmails", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -15382,9 +17557,12 @@ { "key": "defaultTaskPodCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores." @@ -15392,9 +17570,12 @@ { "key": "defaultTaskPodMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `DefaultTaskPodCpu`." @@ -15402,11 +17583,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15415,10 +17602,16 @@ { "key": "environmentVariables", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentEnvironmentVariableRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentEnvironmentVariableRequest" + } + } } }, "description": "List of environment variables to add to the Deployment." @@ -15426,17 +17619,23 @@ { "key": "executor", "valueShape": { - "type": "id", - "id": "type_:UpdateStandardDeploymentRequestExecutor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateStandardDeploymentRequestExecutor" + } }, "description": "The executor Deployment's executor." }, { "key": "isCicdEnforced", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment requires that all deploys are made through CI/CD." @@ -15444,9 +17643,12 @@ { "key": "isDagDeployEnabled", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment has DAG deploys enabled." @@ -15454,11 +17656,17 @@ { "key": "isDevelopmentMode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15467,9 +17675,12 @@ { "key": "isHighAvailability", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online." @@ -15477,9 +17688,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment's name." @@ -15487,9 +17701,12 @@ { "key": "resourceQuotaCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores." @@ -15497,9 +17714,12 @@ { "key": "resourceQuotaMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi` and must be explicitly included. This value must always be twice the value of `ResourceQuotaCpu`." @@ -15507,38 +17727,59 @@ { "key": "scalingSpec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeploymentScalingSpecRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentScalingSpecRequest" + } + } } } }, { "key": "schedulerSize", "valueShape": { - "type": "id", - "id": "type_:UpdateStandardDeploymentRequestSchedulerSize" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateStandardDeploymentRequestSchedulerSize" + } }, "description": "The size of the scheduler pod." }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:UpdateStandardDeploymentRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateStandardDeploymentRequestType" + } }, "description": "The type of the Deployment." }, { "key": "workerQueues", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkerQueueRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueRequest" + } + } + } } } }, @@ -15547,11 +17788,17 @@ { "key": "workloadIdentity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15560,9 +17807,12 @@ { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Workspace to which the Deployment belongs." @@ -15609,23 +17859,32 @@ { "key": "concurrency", "valueShape": { - "type": "id", - "id": "type_:Range" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Range" + } } }, { "key": "name", "valueShape": { - "type": "id", - "id": "type_:WorkerMachineName" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerMachineName" + } }, "description": "The machine's name." }, { "key": "spec", "valueShape": { - "type": "id", - "id": "type_:MachineSpec" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MachineSpec" + } } } ] @@ -15640,11 +17899,17 @@ { "key": "astroMachine", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15653,9 +17918,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The worker queue's ID." @@ -15663,9 +17931,12 @@ { "key": "isDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the worker queue is the default worker queue in the Deployment." @@ -15673,9 +17944,12 @@ { "key": "maxWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of workers that can run at once." @@ -15683,9 +17957,12 @@ { "key": "minWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The minimum number of workers running at once." @@ -15693,9 +17970,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The worker queue's name." @@ -15703,11 +17983,17 @@ { "key": "nodePoolId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15716,9 +18002,12 @@ { "key": "podCpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The maximum number of CPU units available for a worker node. Units are in number of CPU cores." @@ -15726,9 +18015,12 @@ { "key": "podMemory", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The maximum amount of memory available for a worker node. Units are in Gibibytes or `Gi`." @@ -15736,9 +18028,12 @@ { "key": "workerConcurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of concurrent tasks that a worker Pod can run at a time." @@ -15755,22 +18050,31 @@ { "key": "maxWorkers", "valueShape": { - "type": "id", - "id": "type_:Range" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Range" + } } }, { "key": "minWorkers", "valueShape": { - "type": "id", - "id": "type_:Range" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Range" + } } }, { "key": "workerConcurrency", "valueShape": { - "type": "id", - "id": "type_:Range" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Range" + } } } ] @@ -15815,19 +18119,28 @@ { "key": "astroMachine", "valueShape": { - "type": "id", - "id": "type_:WorkerQueueRequestAstroMachine" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkerQueueRequestAstroMachine" + } }, "description": "The Astro machine for each worker in the queue. For Astro Hosted only." }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15836,9 +18149,12 @@ { "key": "isDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the worker queue is the default worker queue on the Deployment." @@ -15846,9 +18162,12 @@ { "key": "maxWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of workers that can run at once." @@ -15856,9 +18175,12 @@ { "key": "minWorkerCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The minimum number of workers running at once." @@ -15866,9 +18188,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The worker queue's name." @@ -15876,9 +18201,12 @@ { "key": "workerConcurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of concurrent tasks that a worker Pod can run at a time." @@ -15895,9 +18223,12 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The workload identity label." @@ -15905,9 +18236,12 @@ { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The workload identity role." @@ -15924,9 +18258,12 @@ { "key": "cicdEnforcedDefault", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether CI/CD deploys are enforced by default." @@ -15934,9 +18271,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Workspace was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`" @@ -15944,21 +18284,33 @@ { "key": "createdBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15967,9 +18319,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's ID." @@ -15977,9 +18332,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace's name." @@ -15987,21 +18345,30 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the organization to which the workspace belongs." }, { "key": "organizationName", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16010,9 +18377,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Workspace was updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`" @@ -16020,10 +18390,16 @@ { "key": "updatedBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } } @@ -16039,9 +18415,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of workspaces that can be retrieved per page." @@ -16049,9 +18428,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset for the current page of workspaces in the complete result." @@ -16059,9 +18441,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Workspaces in the paginated result." @@ -16069,10 +18454,16 @@ { "key": "workspaces", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Workspace" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Workspace" + } + } } }, "description": "An array of Workspace objects representing a list of workspaces." @@ -16148,10 +18539,16 @@ { "key": "scopeType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_authorization:ListPermissionGroupsRequestScopeType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_authorization:ListPermissionGroupsRequestScopeType" + } + } } }, "description": "Filter the returned permissions based on the scope they apply to. Note that currently, the only available permissions are in the `DEPLOYMENT` scope." @@ -16164,8 +18561,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:PermissionGroup" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PermissionGroup" + } } } } @@ -16386,9 +18786,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to invite the user to." @@ -16403,9 +18806,12 @@ { "key": "inviteeEmail", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The email of the user to invite." @@ -16413,8 +18819,11 @@ { "key": "role", "valueShape": { - "type": "id", - "id": "type_invite:CreateUserInviteRequestRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_invite:CreateUserInviteRequestRole" + } }, "description": "The user's Organization role." } @@ -16741,9 +19150,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where the user was invited to." @@ -16751,9 +19163,12 @@ { "key": "inviteId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The invite's ID." @@ -17003,9 +19418,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's ID." @@ -17015,10 +19433,16 @@ { "key": "scopeTypes", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_role:ListRoleTemplatesRequestScopeTypesItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_role:ListRoleTemplatesRequestScopeTypesItem" + } + } } }, "description": "Filter role templates based on the scope of permissions they include." @@ -17031,8 +19455,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:RoleTemplate" + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleTemplate" + } } } } @@ -17298,9 +19725,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Organization's ID." @@ -17310,11 +19740,17 @@ { "key": "includeDefaultRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -17323,10 +19759,16 @@ { "key": "scopeTypes", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_role:ListRolesRequestScopeTypesItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_role:ListRolesRequestScopeTypesItem" + } + } } }, "description": "Filter the list of roles based on the scope of each role." @@ -17334,11 +19776,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17347,11 +19795,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17360,10 +19814,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_role:ListRolesRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_role:ListRolesRequestSortsItem" + } + } } }, "description": "Sorting criteria, each criterion should conform to format 'fieldName:asc' or 'fieldName:desc'." @@ -17677,9 +20137,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to create the custom role." @@ -17694,11 +20157,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17707,9 +20176,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -17717,11 +20189,17 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17730,13 +20208,22 @@ { "key": "restrictedWorkspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -17746,10 +20233,13 @@ { "key": "scopeType", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "DEPLOYMENT" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "DEPLOYMENT" + } } } } @@ -18102,9 +20592,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the role belongs." @@ -18112,9 +20605,12 @@ { "key": "customRoleId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The custom role's ID." @@ -18129,11 +20625,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18142,9 +20644,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -18152,11 +20657,17 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18165,13 +20676,22 @@ { "key": "restrictedWorkspaceIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -18527,9 +21047,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the role belongs." @@ -18537,9 +21060,12 @@ { "key": "customRoleId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the role to delete." @@ -18793,9 +21319,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the role belongs." @@ -18803,9 +21332,12 @@ { "key": "roleId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's ID." @@ -19098,9 +21630,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Organization to list Teams for." @@ -19110,11 +21645,17 @@ { "key": "names", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19123,11 +21664,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19136,11 +21683,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19149,10 +21702,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_team:ListTeamsRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_team:ListTeamsRequestSortsItem" + } + } } }, "description": "Sorting criteria, each criterion should conform to format 'fieldName:asc' or 'fieldName:desc'" @@ -19468,9 +22027,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where the Team is created." @@ -19485,11 +22047,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19498,13 +22066,22 @@ { "key": "memberIds", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -19514,9 +22091,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team's name." @@ -19524,10 +22104,16 @@ { "key": "organizationRole", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_team:CreateTeamRequestOrganizationRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_team:CreateTeamRequestOrganizationRole" + } + } } }, "description": "The Team's Organization role." @@ -19866,9 +22452,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Team belongs." @@ -19876,9 +22465,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to retrieve data for." @@ -20184,9 +22776,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Team belongs." @@ -20194,9 +22789,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to update." @@ -20211,11 +22809,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20224,9 +22828,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team's name." @@ -20571,9 +23178,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to delete the Team from." @@ -20581,9 +23191,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to delete." @@ -20841,9 +23454,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Team belongs." @@ -20851,9 +23467,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to retrieve member information for." @@ -20863,11 +23482,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -20876,11 +23501,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -20889,10 +23520,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_team:ListTeamMembersRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_team:ListTeamMembersRequestSortsItem" + } + } } }, "description": "Sorting criteria, each criterion should conform to format 'fieldName:asc' or 'fieldName:desc'" @@ -21192,9 +23829,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "organization ID" @@ -21202,9 +23842,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "team ID" @@ -21219,11 +23862,17 @@ { "key": "memberIds", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21536,9 +24185,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the user belongs." @@ -21546,9 +24198,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to remove the user from." @@ -21556,9 +24211,12 @@ { "key": "memberId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the user to remove." @@ -21822,9 +24480,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Team belongs." @@ -21832,9 +24493,12 @@ { "key": "teamId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Team to update roles for." @@ -21849,12 +24513,21 @@ { "key": "deploymentRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentRole" + } + } + } } } }, @@ -21863,20 +24536,32 @@ { "key": "organizationRole", "valueShape": { - "type": "id", - "id": "type_team:UpdateTeamRolesRequestOrganizationRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_team:UpdateTeamRolesRequestOrganizationRole" + } }, "description": "The Team's Organization roles." }, { - "key": "workspaceRoles", - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkspaceRole" + "key": "workspaceRoles", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRole" + } + } + } } } }, @@ -22205,9 +24890,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to list tokens for." @@ -22217,11 +24905,17 @@ { "key": "workspaceId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22230,11 +24924,17 @@ { "key": "deploymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22243,11 +24943,17 @@ { "key": "includeOnlyOrganizationTokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -22256,11 +24962,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22269,11 +24981,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22282,10 +25000,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_apiToken:ListApiTokensRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_apiToken:ListApiTokensRequestSortsItem" + } + } } }, "description": "Sorting criteria, each criterion should conform to format 'fieldName:asc' or 'fieldName:desc'" @@ -22599,9 +25323,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to create the token." @@ -22616,11 +25343,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22629,11 +25362,17 @@ { "key": "entityId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22642,9 +25381,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the API token." @@ -22652,9 +25394,12 @@ { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role of the API token." @@ -22662,11 +25407,17 @@ { "key": "tokenExpiryPeriodInDays", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22675,8 +25426,11 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_apiToken:CreateApiTokenRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_apiToken:CreateApiTokenRequestType" + } }, "description": "The scope of the API token." } @@ -23026,9 +25780,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to retrieve token information." @@ -23036,9 +25793,12 @@ { "key": "tokenId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the token that you want to retrieve data for." @@ -23342,9 +26102,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to update an API token." @@ -23352,9 +26115,12 @@ { "key": "tokenId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The API token you want to update." @@ -23369,11 +26135,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23382,9 +26154,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the API token." @@ -23727,9 +26502,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to delete the token." @@ -23737,9 +26515,12 @@ { "key": "tokenId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The API token ID" @@ -23997,9 +26778,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to update an API token." @@ -24007,9 +26791,12 @@ { "key": "tokenId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The API token you want to update." @@ -24024,10 +26811,16 @@ { "key": "roles", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ApiTokenRole" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiTokenRole" + } + } } }, "description": "The roles of the API token." @@ -24387,9 +27180,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where you want to rotate an API token." @@ -24397,9 +27193,12 @@ { "key": "tokenId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The token to rotate" @@ -24699,9 +27498,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to list users for." @@ -24711,11 +27513,17 @@ { "key": "workspaceId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24724,11 +27532,17 @@ { "key": "deploymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24737,24 +27551,36 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, "description": "Offset for pagination" }, { - "key": "limit", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "key": "limit", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -24763,10 +27589,16 @@ { "key": "sorts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_user:ListUsersRequestSortsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_user:ListUsersRequestSortsItem" + } + } } }, "description": "Sorting criteria, each criterion should conform to format 'fieldName:asc' or 'fieldName:desc'" @@ -25032,9 +27864,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the user belongs." @@ -25042,9 +27877,12 @@ { "key": "userId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's ID." @@ -25337,9 +28175,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the user belongs." @@ -25347,9 +28188,12 @@ { "key": "userId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's ID" @@ -25364,12 +28208,21 @@ { "key": "deploymentRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentRole" + } + } + } } } }, @@ -25378,10 +28231,16 @@ { "key": "organizationRole", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_user:UpdateUserRolesRequestOrganizationRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_user:UpdateUserRolesRequestOrganizationRole" + } + } } }, "description": "The user's updated Organization role." @@ -25389,12 +28248,21 @@ { "key": "workspaceRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkspaceRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRole" + } + } + } } } }, @@ -26027,9 +28895,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the API token was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -26037,19 +28908,28 @@ { "key": "createdBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The description of the API token." @@ -26057,11 +28937,17 @@ { "key": "endAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -26070,11 +28956,17 @@ { "key": "expiryPeriodInDays", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26083,9 +28975,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The API token's ID." @@ -26093,11 +28988,17 @@ { "key": "lastUsedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -26106,9 +29007,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the API token." @@ -26116,12 +29020,21 @@ { "key": "roles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ApiTokenRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiTokenRole" + } + } + } } } }, @@ -26130,9 +29043,12 @@ { "key": "shortToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The short value of the API token." @@ -26140,9 +29056,12 @@ { "key": "startAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the API token will become valid in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -26150,11 +29069,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26163,17 +29088,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ApiTokenType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiTokenType" + } }, "description": "The type of the API token." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the API token was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -26181,10 +29112,16 @@ { "key": "updatedBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } } @@ -26218,9 +29155,12 @@ { "key": "entityId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the entity to which the API token is scoped for. For example, for Workspace API tokens, this is the Workspace ID." @@ -26228,17 +29168,23 @@ { "key": "entityType", "valueShape": { - "type": "id", - "id": "type_:ApiTokenRoleEntityType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiTokenRoleEntityType" + } }, "description": "The type of the entity to which the API token is scoped for." }, { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role of the API token." @@ -26255,9 +29201,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The limit of values in this page." @@ -26265,9 +29214,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of values in this page." @@ -26275,10 +29227,16 @@ { "key": "tokens", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ApiToken" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiToken" + } + } } }, "description": "The list of API tokens in this page." @@ -26286,9 +29244,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of API tokens." @@ -26320,24 +29281,36 @@ { "key": "apiTokenName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, "description": "The API token's name. Returned only when `SubjectType` is `SERVICEKEY`." - }, - { - "key": "avatarUrl", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + }, + { + "key": "avatarUrl", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26346,11 +29319,17 @@ { "key": "fullName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26359,9 +29338,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The subject's ID." @@ -26369,10 +29351,16 @@ { "key": "subjectType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfileSubjectType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfileSubjectType" + } + } } }, "description": "The subject type." @@ -26380,11 +29368,17 @@ { "key": "username", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26423,11 +29417,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26436,9 +29436,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -26446,11 +29449,17 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26459,8 +29468,11 @@ { "key": "scopeType", "valueShape": { - "type": "id", - "id": "type_:DefaultRoleScopeType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DefaultRoleScopeType" + } }, "description": "The role's scope." } @@ -26476,9 +29488,12 @@ { "key": "deploymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Deployment ID." @@ -26486,9 +29501,12 @@ { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the role for the subject in the Deployment." @@ -26505,27 +29523,36 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "requestId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "statusCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -26541,9 +29568,12 @@ { "key": "expiresAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time when the invite is expired in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -26551,9 +29581,12 @@ { "key": "inviteId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The invite ID." @@ -26561,23 +29594,32 @@ { "key": "invitee", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "inviter", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization where the invite was sent." @@ -26585,11 +29627,17 @@ { "key": "organizationName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26598,11 +29646,17 @@ { "key": "userId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26620,9 +29674,12 @@ { "key": "action", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The permission's action." @@ -26630,9 +29687,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The permission's description." @@ -26649,9 +29709,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The permission group's description." @@ -26659,9 +29722,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The permission group's name." @@ -26669,10 +29735,16 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PermissionEntry" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PermissionEntry" + } + } } }, "description": "The permission group's permissions." @@ -26680,9 +29752,12 @@ { "key": "scope", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The permission group's scope." @@ -26717,9 +29792,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time the role was created." @@ -26727,18 +29805,27 @@ { "key": "createdBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26747,9 +29834,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's ID." @@ -26757,9 +29847,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -26767,11 +29860,17 @@ { "key": "restrictedWorkspaceIds", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26780,17 +29879,23 @@ { "key": "scopeType", "valueShape": { - "type": "id", - "id": "type_:RoleScopeType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleScopeType" + } }, "description": "The role's scope." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time the role was last updated." @@ -26798,8 +29903,11 @@ { "key": "updatedBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } } ] @@ -26835,11 +29943,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26848,9 +29962,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -26858,11 +29975,17 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26871,8 +29994,11 @@ { "key": "scopeType", "valueShape": { - "type": "id", - "id": "type_:RoleTemplateScopeType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleTemplateScopeType" + } }, "description": "The role's scope." } @@ -26906,9 +30032,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time the role was created." @@ -26916,18 +30045,27 @@ { "key": "createdBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26936,9 +30074,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's ID." @@ -26946,9 +30087,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role's name." @@ -26956,11 +30100,17 @@ { "key": "permissions", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26969,11 +30119,17 @@ { "key": "restrictedWorkspaceIds", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26982,17 +30138,23 @@ { "key": "scopeType", "valueShape": { - "type": "id", - "id": "type_:RoleWithPermissionScopeType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleWithPermissionScopeType" + } }, "description": "The role's scope." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The time the role was last updated." @@ -27000,8 +30162,11 @@ { "key": "updatedBy", "valueShape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } } } ] @@ -27016,12 +30181,21 @@ { "key": "defaultRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DefaultRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DefaultRole" + } + } + } } } }, @@ -27030,9 +30204,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of custom roles returned." @@ -27040,9 +30217,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the custom roles." @@ -27050,10 +30230,16 @@ { "key": "roles", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Role" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Role" + } + } } }, "description": "The list of custom roles." @@ -27061,9 +30247,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of custom roles." @@ -27098,12 +30287,21 @@ { "key": "deploymentRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentRole" + } + } + } } } }, @@ -27112,10 +30310,16 @@ { "key": "organizationRole", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SubjectRolesOrganizationRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SubjectRolesOrganizationRole" + } + } } }, "description": "The subject's Organization role." @@ -27123,12 +30327,21 @@ { "key": "workspaceRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkspaceRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRole" + } + } + } } } }, @@ -27164,9 +30377,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Team was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -27174,22 +30390,37 @@ { "key": "createdBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } }, { "key": "deploymentRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentRole" + } + } + } } } }, @@ -27198,11 +30429,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27211,9 +30448,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team's ID." @@ -27221,9 +30461,12 @@ { "key": "isIdpManaged", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Team is managed by an identity provider (IdP)." @@ -27231,9 +30474,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team's name." @@ -27241,9 +30487,12 @@ { "key": "organizationId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the Organization to which the Team belongs." @@ -27251,19 +30500,28 @@ { "key": "organizationRole", "valueShape": { - "type": "id", - "id": "type_:TeamOrganizationRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TeamOrganizationRole" + } }, "description": "The Team's Organization role." }, { "key": "rolesCount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -27272,9 +30530,12 @@ { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the Team was last updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -27282,22 +30543,37 @@ { "key": "updatedBy", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BasicSubjectProfile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BasicSubjectProfile" + } + } } } }, { "key": "workspaceRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkspaceRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRole" + } + } + } } } }, @@ -27315,11 +30591,17 @@ { "key": "avatarUrl", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27328,11 +30610,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -27341,11 +30629,17 @@ { "key": "fullName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27354,9 +30648,12 @@ { "key": "userId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team member's ID." @@ -27364,9 +30661,12 @@ { "key": "username", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Team member's username." @@ -27383,9 +30683,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of Team members in one page." @@ -27393,9 +30696,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of Team members." @@ -27403,10 +30709,16 @@ { "key": "teamMembers", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TeamMember" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TeamMember" + } + } } }, "description": "The list of Team members in the current page." @@ -27414,9 +30726,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Team members." @@ -27433,9 +30748,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of Teams in one page." @@ -27443,9 +30761,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of Teams." @@ -27453,10 +30774,16 @@ { "key": "teams", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Team" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Team" + } + } } }, "description": "The list of Teams in the current page." @@ -27464,9 +30791,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Teams." @@ -27522,9 +30852,12 @@ { "key": "avatarUrl", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL for the user's profile image." @@ -27532,9 +30865,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the user was created in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -27542,12 +30878,21 @@ { "key": "deploymentRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DeploymentRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeploymentRole" + } + } + } } } }, @@ -27556,9 +30901,12 @@ { "key": "fullName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's full name." @@ -27566,9 +30914,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's ID." @@ -27576,10 +30927,16 @@ { "key": "organizationRole", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserOrganizationRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserOrganizationRole" + } + } } }, "description": "The user's Organization role." @@ -27587,17 +30944,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:UserStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserStatus" + } }, "description": "The user's status." }, { "key": "updatedAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time when the user was updated in UTC, formatted as `YYYY-MM-DDTHH:MM:SSZ`." @@ -27605,9 +30968,12 @@ { "key": "username", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's username." @@ -27615,12 +30981,21 @@ { "key": "workspaceRoles", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:WorkspaceRole" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRole" + } + } + } } } }, @@ -27638,9 +31013,12 @@ { "key": "limit", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The maximum number of users in one page." @@ -27648,9 +31026,12 @@ { "key": "offset", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The offset of the current page of users." @@ -27658,9 +31039,12 @@ { "key": "totalCount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of users." @@ -27668,10 +31052,16 @@ { "key": "users", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } } }, "description": "The list of users in the current page." @@ -27712,17 +31102,23 @@ { "key": "role", "valueShape": { - "type": "id", - "id": "type_:WorkspaceRoleRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkspaceRoleRole" + } }, "description": "The role of the subject in the Workspace." }, { "key": "workspaceId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The Workspace ID." diff --git a/packages/fdr-sdk/src/__test__/output/humanloop/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/humanloop/apiDefinitions.json index b8582524f7..f240845996 100644 --- a/packages/fdr-sdk/src/__test__/output/humanloop/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/humanloop/apiDefinitions.json @@ -34,11 +34,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47,11 +53,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60,11 +72,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73,11 +91,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -86,11 +110,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -99,11 +129,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -112,17 +148,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -131,11 +179,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -144,17 +198,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -163,11 +229,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -176,11 +248,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -189,10 +267,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -200,12 +284,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -214,10 +304,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -225,11 +318,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -238,11 +337,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -252,11 +357,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -265,10 +376,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -276,10 +393,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateStreamRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateStreamRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -287,10 +410,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateStreamRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateStreamRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -299,10 +428,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -310,8 +445,11 @@ { "key": "model_config", "valueShape": { - "type": "id", - "id": "type_:ModelConfigChatRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigChatRequest" + } }, "description": "The model configuration used to create a chat response." } @@ -659,11 +797,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -672,11 +816,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -685,11 +835,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -698,11 +854,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -711,11 +873,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -724,11 +892,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -737,17 +911,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -756,11 +942,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -769,17 +961,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -788,11 +992,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -801,11 +1011,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -814,10 +1030,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -825,12 +1047,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -839,10 +1067,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -850,11 +1081,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -863,11 +1100,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -877,11 +1120,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -890,10 +1139,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -901,10 +1156,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -912,10 +1173,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -924,10 +1191,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -935,8 +1208,11 @@ { "key": "model_config", "valueShape": { - "type": "id", - "id": "type_:ModelConfigChatRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigChatRequest" + } }, "description": "The model configuration used to create a chat response." } @@ -1173,11 +1449,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1186,11 +1468,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1199,11 +1487,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1212,11 +1506,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1225,11 +1525,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1238,11 +1544,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1251,17 +1563,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1270,11 +1594,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1283,17 +1613,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1302,11 +1644,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -1315,11 +1663,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1328,10 +1682,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -1339,12 +1699,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -1353,10 +1719,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -1364,11 +1733,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1377,11 +1752,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -1391,11 +1772,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -1404,10 +1791,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -1415,10 +1808,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateDeployedStreamRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateDeployedStreamRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -1426,10 +1825,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateDeployedStreamRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateDeployedStreamRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -1438,10 +1843,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -1449,11 +1860,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1797,11 +2214,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1810,11 +2233,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1823,11 +2252,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1836,11 +2271,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1849,11 +2290,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1862,11 +2309,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1875,17 +2328,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1894,11 +2359,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1907,17 +2378,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1926,11 +2409,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -1939,11 +2428,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1952,10 +2447,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -1963,12 +2464,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -1977,10 +2484,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -1988,11 +2498,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2001,11 +2517,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -2015,11 +2537,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2028,10 +2556,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -2039,10 +2573,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateDeployedRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateDeployedRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -2050,10 +2590,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateDeployedRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateDeployedRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -2062,10 +2608,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -2073,11 +2625,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2385,11 +2943,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2398,11 +2962,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2411,11 +2981,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2424,11 +3000,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2437,11 +3019,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2450,11 +3038,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2463,17 +3057,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -2482,11 +3088,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2495,17 +3107,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -2514,11 +3138,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2527,11 +3157,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2540,10 +3176,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -2551,12 +3193,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -2565,10 +3213,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -2576,11 +3227,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2589,11 +3246,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -2603,11 +3266,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2616,10 +3285,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -2627,10 +3302,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateConfigStreamRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateConfigStreamRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -2638,10 +3319,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateConfigStreamRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateConfigStreamRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -2650,10 +3337,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -2661,9 +3354,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifies the model configuration used to create a chat response." @@ -3008,11 +3704,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3021,11 +3723,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3034,11 +3742,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3047,11 +3761,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3060,11 +3780,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3073,11 +3799,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3086,17 +3818,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -3105,11 +3849,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3118,17 +3868,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -3137,11 +3899,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3150,11 +3918,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3163,10 +3937,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -3174,12 +3954,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -3188,10 +3974,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -3199,11 +3988,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3212,11 +4007,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -3226,11 +4027,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3239,10 +4046,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The messages passed to the to provider chat endpoint." @@ -3250,10 +4063,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateConfigRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateConfigRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -3261,10 +4080,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_chats:ChatsCreateConfigRequestToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_chats:ChatsCreateConfigRequestToolCall" + } + } } }, "description": "NB: Deprecated with new tool_choice. Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'name': } forces the model to use the provided tool of the same name.", @@ -3273,10 +4098,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -3284,9 +4115,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifies the model configuration used to create a chat response." @@ -3865,11 +4699,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3878,11 +4718,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3891,11 +4737,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3904,11 +4756,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3917,11 +4775,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3930,11 +4794,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3943,17 +4813,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -3962,11 +4844,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3975,17 +4863,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -3994,11 +4894,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4007,11 +4913,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4020,10 +4932,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -4031,12 +4949,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -4045,10 +4969,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -4056,11 +4983,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4069,11 +5002,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4083,11 +5022,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4096,11 +5041,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4109,11 +5060,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4122,8 +5079,11 @@ { "key": "model_config", "valueShape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequest" + } }, "description": "The model configuration used to generate." } @@ -4347,11 +5307,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4360,11 +5326,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4373,11 +5345,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4386,11 +5364,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4399,11 +5383,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4412,11 +5402,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4425,17 +5421,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -4444,11 +5452,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4457,17 +5471,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -4476,11 +5502,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4489,11 +5521,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4502,10 +5540,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -4513,12 +5557,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -4527,10 +5577,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -4538,11 +5591,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4551,11 +5610,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4565,11 +5630,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4578,11 +5649,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4591,11 +5668,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4604,8 +5687,11 @@ { "key": "model_config", "valueShape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequest" + } }, "description": "The model configuration used to generate." } @@ -4909,11 +5995,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4922,11 +6014,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4935,11 +6033,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4948,11 +6052,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4961,11 +6071,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4974,11 +6090,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4987,17 +6109,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5006,11 +6140,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5019,17 +6159,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5038,11 +6190,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5051,11 +6209,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5064,10 +6228,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -5075,12 +6245,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -5089,10 +6265,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -5100,11 +6279,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5113,11 +6298,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5127,11 +6318,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5140,11 +6337,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5153,11 +6356,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5166,11 +6375,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5390,11 +6605,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5403,11 +6624,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5416,11 +6643,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5429,11 +6662,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5442,11 +6681,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5455,11 +6700,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5468,17 +6719,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5487,11 +6750,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5500,17 +6769,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5519,11 +6800,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5532,11 +6819,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5545,10 +6838,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -5556,12 +6855,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -5570,10 +6875,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -5581,11 +6889,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5594,11 +6908,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5608,11 +6928,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5621,11 +6947,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5634,11 +6966,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5647,11 +6985,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5825,11 +7169,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5838,11 +7188,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5851,11 +7207,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5864,11 +7226,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5877,11 +7245,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5890,11 +7264,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5903,17 +7283,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5922,11 +7314,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5935,17 +7333,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -5954,11 +7364,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5967,11 +7383,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5980,10 +7402,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -5991,12 +7419,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -6005,10 +7439,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -6016,11 +7453,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6029,11 +7472,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6043,11 +7492,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -6056,11 +7511,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6069,11 +7530,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6082,9 +7549,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifies the model configuration used to create a chat response." @@ -6305,11 +7775,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6318,11 +7794,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6331,11 +7813,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6344,11 +7832,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6357,11 +7851,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6370,11 +7870,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6383,17 +7889,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -6402,11 +7920,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6415,17 +7939,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -6434,11 +7970,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -6447,11 +7989,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6460,10 +8008,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -6471,12 +8025,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -6485,10 +8045,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -6496,11 +8059,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6509,11 +8078,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6523,11 +8098,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -6536,11 +8117,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6549,11 +8136,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6562,9 +8155,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifies the model configuration used to create a chat response." @@ -6976,9 +8572,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of datapoint." @@ -7126,9 +8725,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of datapoint." @@ -7367,9 +8969,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7381,8 +8986,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } } } @@ -7504,9 +9112,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -7516,11 +9127,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7529,11 +9146,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -7547,8 +9170,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EvaluationResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationResponse" + } } } } @@ -7714,11 +9340,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7727,11 +9359,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7740,11 +9378,17 @@ { "key": "filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7753,11 +9397,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7766,10 +9416,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort projects by" @@ -7777,10 +9433,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -7950,9 +9612,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique project name." @@ -7960,11 +9625,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8167,9 +9838,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -8361,9 +10035,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -8467,9 +10144,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -8484,11 +10164,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8497,11 +10183,17 @@ { "key": "active_config_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8510,11 +10202,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8721,9 +10419,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -8733,11 +10434,17 @@ { "key": "evaluation_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -8750,8 +10457,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:ProjectConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectConfigResponse" + } } } } @@ -8895,9 +10605,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -8912,9 +10625,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of feedback to update." @@ -8922,20 +10638,32 @@ { "key": "class", "valueShape": { - "type": "id", - "id": "type_:FeedbackClass" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackClass" + } }, "description": "The data type associated to this feedback type; whether it is a 'text'/'select'/'multi_select'." }, { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FeedbackLabelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackLabelRequest" + } + } + } } } }, @@ -9083,9 +10811,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -9208,9 +10939,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -9220,11 +10954,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9233,11 +10973,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9456,9 +11202,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -9472,9 +11221,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the dataset." @@ -9482,9 +11234,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The description of the dataset." @@ -9625,8 +11380,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } } } @@ -9739,9 +11497,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of dataset. Starts with `evts_`." @@ -9867,9 +11628,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of dataset. Starts with `evts_`." @@ -9988,9 +11752,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of testset. Starts with `evts_`." @@ -10005,11 +11772,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10018,11 +11791,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10163,9 +11942,12 @@ { "key": "dataset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of dataset. Starts with `evts_`." @@ -10175,11 +11957,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10187,11 +11975,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10337,9 +12131,12 @@ { "key": "dataset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of dataset. Starts with `evts_`." @@ -10362,8 +12159,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } } } } @@ -10502,9 +12302,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of evaluation run. Starts with `ev_`." @@ -10514,11 +12317,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -10527,11 +12336,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10741,9 +12556,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of evaluation. Starts with `ev_`." @@ -10753,11 +12571,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10766,11 +12590,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10779,11 +12609,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10951,9 +12787,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -10968,9 +12807,12 @@ { "key": "config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the config to evaluate. Starts with `config_`." @@ -10978,11 +12820,17 @@ { "key": "evaluator_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10991,9 +12839,12 @@ { "key": "dataset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the dataset to use in this evaluation. Starts with `evts_`." @@ -11001,10 +12852,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization. Ensure you provide an API key for the provider for the model config you are evaluating, or have one saved to your organization." @@ -11012,11 +12869,17 @@ { "key": "hl_generated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11025,11 +12888,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11258,9 +13127,12 @@ { "key": "evaluation_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the evaluation run. Starts with `evrun_`." @@ -11270,11 +13142,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11290,9 +13168,12 @@ { "key": "datapoint_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The datapoint for which a log was generated. Must be one of the datapoints in the dataset being evaluated." @@ -11300,8 +13181,11 @@ { "key": "log", "valueShape": { - "type": "id", - "id": "type_:LogRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogRequest" + } }, "description": "The log generated for the datapoint." } @@ -11444,9 +13328,12 @@ { "key": "evaluation_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the evaluation run. Starts with `evrun_`." @@ -11456,11 +13343,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11476,9 +13369,12 @@ { "key": "log_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The log that was evaluated. Must have as its `source_datapoint_id` one of the datapoints in the dataset being evaluated." @@ -11486,9 +13382,12 @@ { "key": "evaluator_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the evaluator that evaluated the log. Starts with `evfn_`. Must be one of the evaluator IDs associated with the evaluation run being logged to." @@ -11496,10 +13395,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_evaluations:CreateEvaluationResultLogRequestResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_evaluations:CreateEvaluationResultLogRequestResult" + } + } } }, "description": "The result value of the evaluation." @@ -11507,11 +13412,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11870,9 +13781,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of evaluation run. Starts with `ev_`." @@ -11887,8 +13801,11 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:EvaluationStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationStatus" + } }, "description": "The new status of the evaluation." } @@ -12107,9 +14024,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of evaluation run. Starts with `ev_`." @@ -12124,13 +14044,22 @@ { "key": "evaluator_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12140,13 +14069,22 @@ { "key": "evaluator_version_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12356,9 +14294,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -12366,11 +14307,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12379,11 +14326,17 @@ { "key": "start_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12392,11 +14345,17 @@ { "key": "end_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12405,11 +14364,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -12417,11 +14382,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -12429,11 +14400,17 @@ { "key": "evaluatee_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12607,8 +14584,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } } } @@ -12798,11 +14778,14 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 1, - "maxLength": 1 + "type": "primitive", + "value": { + "type": "string", + "minLength": 1, + "maxLength": 1 + } } }, "description": "The name of the evaluator." @@ -12810,9 +14793,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The description of the evaluator." @@ -12820,27 +14806,39 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } }, "description": "The type of the return value of the evaluator." }, { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12849,10 +14847,16 @@ { "key": "model_config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequest" + } + } } }, "description": "The model configuration used to generate." @@ -12860,8 +14864,11 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorType" + } }, "description": "The type of the evaluator." } @@ -13091,9 +15098,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -13305,9 +15315,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -13410,9 +15423,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -13426,11 +15442,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13439,11 +15461,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13452,10 +15480,16 @@ { "key": "arguments_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } + } } }, "description": "Whether this evaluator is target-free or target-required." @@ -13463,10 +15497,16 @@ { "key": "return_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } + } } }, "description": "The type of the return value of the evaluator." @@ -13474,11 +15514,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13487,10 +15533,16 @@ { "key": "model_config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequest" + } + } } }, "description": "The model configuration used to generate." @@ -13844,20 +15896,29 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13865,11 +15926,17 @@ { "key": "metadata_search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13877,21 +15944,33 @@ { "key": "version_status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } } }, { "key": "start_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13899,11 +15978,17 @@ { "key": "end_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13911,11 +15996,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -13923,232 +16014,238 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" - } - } - } - } - ], - "response": { - "statusCode": 200, - "body": { - "type": "alias", - "value": { - "type": "id", - "id": "type_:PaginatedDataLogResponse" - } - } - }, - "errors": [ - { - "description": "Validation Error", - "statusCode": 422, - "shape": { "type": "alias", "value": { - "type": "id", - "id": "type_:HTTPValidationError" - } - }, - "examples": [] - } - ], - "examples": [ - { - "path": "/logs", - "responseStatusCode": 200, - "pathParameters": {}, - "queryParameters": { - "project_id": "project_id" - }, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "records": [ - { - "id": "id", - "config": { - "type": "generic", - "id": "config", - "name": "config", - "status": "config" - }, - "evaluation_results": [ - { - "id": "id", - "evaluator_id": "evaluator_id", - "evaluator_version_id": "evaluator_version_id", - "log_id": "log_id", - "updated_at": "2024-01-15T09:30:00Z", - "created_at": "2024-01-15T09:30:00Z" - } - ], - "observability_status": "pending", - "updated_at": "2024-01-15T09:30:00Z", - "project": "project", - "project_id": "project_id", - "session_id": "session_id", - "session_reference_id": "session_reference_id", - "parent_id": "parent_id", - "parent_reference_id": "parent_reference_id", - "inputs": { - "key": "value" - }, - "source": "source", - "metadata": { - "key": "value" - }, - "save": true, - "source_datapoint_id": "source_datapoint_id", - "reference_id": "reference_id", - "messages": [ - { - "role": "user" - } - ], - "output": "output", - "judgment": true, - "config_id": "config_id", - "environment": "environment", - "feedback": [ - { - "type": "rating", - "value": true, - "id": "id" - } - ], - "created_at": "2024-01-15T09:30:00Z", - "error": "error", - "stdout": "stdout", - "duration": 1.1, - "output_message": { - "role": "user" - }, - "prompt_tokens": 1, - "output_tokens": 1, - "prompt_cost": 1.1, - "output_cost": 1.1, - "provider_request": { - "key": "value" - }, - "provider_response": { - "key": "value" - }, - "user": "user", - "provider_latency": 1.1, - "tokens": 1, - "raw_output": "raw_output", - "finish_reason": "finish_reason", - "tools": [ - { - "id": "id", - "name": "name", - "signature": "signature", - "result": "result" - } - ], - "tool_choice": "none", - "batch_ids": [ - "batch_ids" - ] + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } } - ], - "page": 1, - "size": 1, - "total": 1 - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -G https://api.humanloop.com/v4/logs \\\n -H \"X-API-KEY: \" \\\n -d project_id=project_id", - "generated": true } - ] - } - }, - { - "path": "/logs", - "responseStatusCode": 422, - "pathParameters": {}, - "queryParameters": { - "project_id": "string", - "search": "string", - "metadata_search": "string" - }, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "detail": [ - { - "loc": [ - "string" - ], - "msg": "string", - "type": "string" - } - ] } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -G https://api.humanloop.com/v4/logs \\\n -H \"X-API-KEY: \" \\\n -d project_id=string \\\n -d search=string \\\n -d metadata_search=string", - "generated": true - } - ] } } - ] - }, - "endpoint_logs.log": { - "id": "endpoint_logs.log", - "namespace": [ - "subpackage_logs" ], - "description": "Log a datapoint or array of datapoints to your Humanloop project.", - "method": "POST", - "path": [ - { - "type": "literal", - "value": "/logs" - } - ], - "auth": [ - "default" - ], - "defaultEnvironment": "Default", - "environments": [ - { - "id": "Default", - "baseUrl": "https://api.humanloop.com/v4" - } - ], - "request": { - "contentType": "application/json", - "body": { - "type": "alias", - "value": { - "type": "id", - "id": "type_logs:LogsLogRequest" - } - } - }, "response": { "statusCode": 200, "body": { "type": "alias", "value": { "type": "id", - "id": "type_logs:LogsLogResponse" + "id": "type_:PaginatedDataLogResponse" + } + } + }, + "errors": [ + { + "description": "Validation Error", + "statusCode": 422, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HTTPValidationError" + } + }, + "examples": [] + } + ], + "examples": [ + { + "path": "/logs", + "responseStatusCode": 200, + "pathParameters": {}, + "queryParameters": { + "project_id": "project_id" + }, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "records": [ + { + "id": "id", + "config": { + "type": "generic", + "id": "config", + "name": "config", + "status": "config" + }, + "evaluation_results": [ + { + "id": "id", + "evaluator_id": "evaluator_id", + "evaluator_version_id": "evaluator_version_id", + "log_id": "log_id", + "updated_at": "2024-01-15T09:30:00Z", + "created_at": "2024-01-15T09:30:00Z" + } + ], + "observability_status": "pending", + "updated_at": "2024-01-15T09:30:00Z", + "project": "project", + "project_id": "project_id", + "session_id": "session_id", + "session_reference_id": "session_reference_id", + "parent_id": "parent_id", + "parent_reference_id": "parent_reference_id", + "inputs": { + "key": "value" + }, + "source": "source", + "metadata": { + "key": "value" + }, + "save": true, + "source_datapoint_id": "source_datapoint_id", + "reference_id": "reference_id", + "messages": [ + { + "role": "user" + } + ], + "output": "output", + "judgment": true, + "config_id": "config_id", + "environment": "environment", + "feedback": [ + { + "type": "rating", + "value": true, + "id": "id" + } + ], + "created_at": "2024-01-15T09:30:00Z", + "error": "error", + "stdout": "stdout", + "duration": 1.1, + "output_message": { + "role": "user" + }, + "prompt_tokens": 1, + "output_tokens": 1, + "prompt_cost": 1.1, + "output_cost": 1.1, + "provider_request": { + "key": "value" + }, + "provider_response": { + "key": "value" + }, + "user": "user", + "provider_latency": 1.1, + "tokens": 1, + "raw_output": "raw_output", + "finish_reason": "finish_reason", + "tools": [ + { + "id": "id", + "name": "name", + "signature": "signature", + "result": "result" + } + ], + "tool_choice": "none", + "batch_ids": [ + "batch_ids" + ] + } + ], + "page": 1, + "size": 1, + "total": 1 + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -G https://api.humanloop.com/v4/logs \\\n -H \"X-API-KEY: \" \\\n -d project_id=project_id", + "generated": true + } + ] + } + }, + { + "path": "/logs", + "responseStatusCode": 422, + "pathParameters": {}, + "queryParameters": { + "project_id": "string", + "search": "string", + "metadata_search": "string" + }, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "detail": [ + { + "loc": [ + "string" + ], + "msg": "string", + "type": "string" + } + ] + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -G https://api.humanloop.com/v4/logs \\\n -H \"X-API-KEY: \" \\\n -d project_id=string \\\n -d search=string \\\n -d metadata_search=string", + "generated": true + } + ] + } + } + ] + }, + "endpoint_logs.log": { + "id": "endpoint_logs.log", + "namespace": [ + "subpackage_logs" + ], + "description": "Log a datapoint or array of datapoints to your Humanloop project.", + "method": "POST", + "path": [ + { + "type": "literal", + "value": "/logs" + } + ], + "auth": [ + "default" + ], + "defaultEnvironment": "Default", + "environments": [ + { + "id": "Default", + "baseUrl": "https://api.humanloop.com/v4" + } + ], + "request": { + "contentType": "application/json", + "body": { + "type": "alias", + "value": { + "type": "id", + "id": "type_logs:LogsLogRequest" + } + } + }, + "response": { + "statusCode": 200, + "body": { + "type": "alias", + "value": { + "type": "id", + "id": "type_logs:LogsLogResponse" } } }, @@ -14263,11 +16360,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14365,9 +16468,12 @@ { "key": "reference_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A unique string to reference the datapoint. Identifies the logged datapoint created with the same `reference_id`." @@ -14640,9 +16746,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of log to return. Starts with `data_`." @@ -14897,9 +17006,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of logged datapoint to return. Starts with `data_`." @@ -15173,11 +17285,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15186,11 +17304,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15199,10 +17323,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -15210,9 +17340,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used. E.g. text-davinci-002." @@ -15220,12 +17353,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -15234,12 +17373,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -15248,12 +17393,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -15262,10 +17413,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_modelConfigs:ProjectModelConfigRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_modelConfigs:ProjectModelConfigRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -15273,12 +17430,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -15287,12 +17450,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -15301,17 +17470,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -15320,11 +17501,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15333,10 +17520,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -15344,11 +17537,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15357,11 +17556,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15370,11 +17575,17 @@ { "key": "prompt_template", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15383,12 +17594,21 @@ { "key": "chat_template", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -15397,10 +17617,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "Which of the providers model endpoints to use. For example Complete or Edit." @@ -15408,12 +17634,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_modelConfigs:ProjectModelConfigRequestToolsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_modelConfigs:ProjectModelConfigRequestToolsItem" + } + } + } } } }, @@ -15573,9 +17808,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of the model config. Starts with `config_`." @@ -15779,9 +18017,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of the model config. Starts with `config_`." @@ -16026,9 +18267,12 @@ { "key": "config", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -16233,9 +18477,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project to return sessions for. Sessions that contain any datapoints associated to this project will be returned. Starts with `pr_`." @@ -16243,11 +18490,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16256,11 +18509,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16507,9 +18766,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of session to return. Starts with `sesh_`." @@ -16649,9 +18911,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -16661,15 +18926,204 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "Name for the environment. E.g. 'production'. If not provided, will return the active config for the default environment." + } + ], + "response": { + "statusCode": 200, + "body": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetModelConfigResponse" + } + } + }, + "errors": [ + { + "description": "Validation Error", + "statusCode": 422, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HTTPValidationError" + } + }, + "examples": [] + } + ], + "examples": [ + { + "path": "/projects/id/active-config", + "responseStatusCode": 200, + "pathParameters": { + "id": "id" + }, + "queryParameters": {}, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "project_id": "project_id", + "project_name": "project_name", + "created_at": "2024-01-15T09:30:00Z", + "updated_at": "2024-01-15T09:30:00Z", + "last_used": "2024-01-15T09:30:00Z", + "config": { + "type": "generic", + "id": "config", + "name": "config", + "status": "config", + "created_by": { + "id": "id", + "email_address": "email_address", + "verified": true, + "full_name": "full_name" + }, + "description": "config", + "other": { + "key": "value" + } + }, + "num_datapoints": 1, + "evaluation_aggregates": [ + { + "model_config_id": "model_config_id", + "evaluator_id": "evaluator_id", + "evaluator_version_id": "evaluator_version_id", + "aggregate_value": 1.1 + } + ], + "environment_id": "environment_id" + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl https://api.humanloop.com/v4/projects/id/active-config \\\n -H \"X-API-KEY: \"", + "generated": true + } + ] + } + }, + { + "path": "/projects/:id/active-config", + "responseStatusCode": 422, + "pathParameters": { + "id": ":id" + }, + "queryParameters": { + "environment": "string" + }, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "detail": [ + { + "loc": [ + "string" + ], + "msg": "string", + "type": "string" + } + ] + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -G https://api.humanloop.com/v4/projects/:id/active-config \\\n -H \"X-API-KEY: \" \\\n -d environment=string", + "generated": true + } + ] + } + } + ] + }, + "endpoint_projects/activeConfig.deactivate": { + "id": "endpoint_projects/activeConfig.deactivate", + "namespace": [ + "subpackage_projects", + "subpackage_projects/activeConfig" + ], + "description": "Remove the project's active config, if set.\n\nThis has no effect if the project does not have an active model config set.", + "method": "DELETE", + "path": [ + { + "type": "literal", + "value": "/projects/" + }, + { + "type": "pathParameter", + "value": "id" + }, + { + "type": "literal", + "value": "/active-config" + } + ], + "auth": [ + "default" + ], + "defaultEnvironment": "Default", + "environments": [ + { + "id": "Default", + "baseUrl": "https://api.humanloop.com/v4" + } + ], + "pathParameters": [ + { + "key": "id", + "valueShape": { + "type": "alias", + "value": { "type": "primitive", "value": { "type": "string" } } }, - "description": "Name for the environment. E.g. 'production'. If not provided, will return the active config for the default environment." + "description": "String ID of project. Starts with `pr_`." + } + ], + "queryParameters": [ + { + "key": "environment", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "Name for the environment. E.g. 'production'. If not provided, will delete the active config for the default environment." } ], "response": { @@ -16678,181 +19132,7 @@ "type": "alias", "value": { "type": "id", - "id": "type_:GetModelConfigResponse" - } - } - }, - "errors": [ - { - "description": "Validation Error", - "statusCode": 422, - "shape": { - "type": "alias", - "value": { - "type": "id", - "id": "type_:HTTPValidationError" - } - }, - "examples": [] - } - ], - "examples": [ - { - "path": "/projects/id/active-config", - "responseStatusCode": 200, - "pathParameters": { - "id": "id" - }, - "queryParameters": {}, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "project_id": "project_id", - "project_name": "project_name", - "created_at": "2024-01-15T09:30:00Z", - "updated_at": "2024-01-15T09:30:00Z", - "last_used": "2024-01-15T09:30:00Z", - "config": { - "type": "generic", - "id": "config", - "name": "config", - "status": "config", - "created_by": { - "id": "id", - "email_address": "email_address", - "verified": true, - "full_name": "full_name" - }, - "description": "config", - "other": { - "key": "value" - } - }, - "num_datapoints": 1, - "evaluation_aggregates": [ - { - "model_config_id": "model_config_id", - "evaluator_id": "evaluator_id", - "evaluator_version_id": "evaluator_version_id", - "aggregate_value": 1.1 - } - ], - "environment_id": "environment_id" - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl https://api.humanloop.com/v4/projects/id/active-config \\\n -H \"X-API-KEY: \"", - "generated": true - } - ] - } - }, - { - "path": "/projects/:id/active-config", - "responseStatusCode": 422, - "pathParameters": { - "id": ":id" - }, - "queryParameters": { - "environment": "string" - }, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "detail": [ - { - "loc": [ - "string" - ], - "msg": "string", - "type": "string" - } - ] - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -G https://api.humanloop.com/v4/projects/:id/active-config \\\n -H \"X-API-KEY: \" \\\n -d environment=string", - "generated": true - } - ] - } - } - ] - }, - "endpoint_projects/activeConfig.deactivate": { - "id": "endpoint_projects/activeConfig.deactivate", - "namespace": [ - "subpackage_projects", - "subpackage_projects/activeConfig" - ], - "description": "Remove the project's active config, if set.\n\nThis has no effect if the project does not have an active model config set.", - "method": "DELETE", - "path": [ - { - "type": "literal", - "value": "/projects/" - }, - { - "type": "pathParameter", - "value": "id" - }, - { - "type": "literal", - "value": "/active-config" - } - ], - "auth": [ - "default" - ], - "defaultEnvironment": "Default", - "environments": [ - { - "id": "Default", - "baseUrl": "https://api.humanloop.com/v4" - } - ], - "pathParameters": [ - { - "key": "id", - "valueShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "description": "String ID of project. Starts with `pr_`." - } - ], - "queryParameters": [ - { - "key": "environment", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "description": "Name for the environment. E.g. 'production'. If not provided, will delete the active config for the default environment." - } - ], - "response": { - "statusCode": 200, - "body": { - "type": "alias", - "value": { - "type": "id", - "id": "type_:ProjectResponse" + "id": "type_:ProjectResponse" } } }, @@ -17039,9 +19319,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project. Starts with `pr_`." @@ -17054,8 +19337,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EnvironmentProjectConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentProjectConfigResponse" + } } } } @@ -17177,9 +19463,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -17193,9 +19482,12 @@ { "key": "config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model config unique identifier generated by Humanloop." @@ -17203,12 +19495,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentRequest" + } + } + } } } }, @@ -17224,8 +19525,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EnvironmentProjectConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentProjectConfigResponse" + } } } } @@ -17363,18 +19667,24 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -17475,36 +19785,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17518,25 +19840,37 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17552,36 +19886,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17595,25 +19941,37 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17629,36 +19987,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17672,25 +20042,37 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17706,36 +20088,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17749,25 +20143,37 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17783,36 +20189,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17826,25 +20244,37 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17860,36 +20290,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -17903,59 +20345,83 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - } - }, - { - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { "type": "primitive", "value": { "type": "string" } } } - } - ] - } - }, - "type_datasets:Request": { - "name": "Request", - "shape": { - "type": "undiscriminatedUnion", - "variants": [ - { - "displayName": "Create Datapoints by Logs Request", - "shape": { - "type": "id", - "id": "type_:CreateDatapointsByLogsRequest" - } }, { - "displayName": "Create Datapoint Request", "shape": { - "type": "id", - "id": "type_:CreateDatapointRequest" - } - }, + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } + } + ] + } + }, + "type_datasets:Request": { + "name": "Request", + "shape": { + "type": "undiscriminatedUnion", + "variants": [ + { + "displayName": "Create Datapoints by Logs Request", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDatapointsByLogsRequest" + } + } + }, { + "displayName": "Create Datapoint Request", "shape": { - "type": "list", - "itemShape": { + "type": "alias", + "value": { "type": "id", "id": "type_:CreateDatapointRequest" } } + }, + { + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDatapointRequest" + } + } + } + } } ] } @@ -17968,25 +20434,34 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } } @@ -18000,18 +20475,27 @@ "variants": [ { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FeedbackRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackRequest" + } + } } } }, { "displayName": "Feedback Request", "shape": { - "type": "id", - "id": "type_:FeedbackRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackRequest" + } } } ] @@ -18024,18 +20508,27 @@ "variants": [ { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FeedbackResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackResponse" + } + } } } }, { "displayName": "Feedback Response", "shape": { - "type": "id", - "id": "type_:FeedbackResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackResponse" + } } } ] @@ -18048,18 +20541,27 @@ "variants": [ { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogRequest" + } + } } } }, { "displayName": "Log Request", "shape": { - "type": "id", - "id": "type_:LogRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogRequest" + } } } ] @@ -18072,18 +20574,27 @@ "variants": [ { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CreateLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateLogResponse" + } + } } } }, { "displayName": "Create Log Response", "shape": { - "type": "id", - "id": "type_:CreateLogResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateLogResponse" + } } } ] @@ -18097,19 +20608,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18125,15 +20645,21 @@ { "displayName": "Linked Tool Request", "shape": { - "type": "id", - "id": "type_:LinkedToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LinkedToolRequest" + } } }, { "displayName": "Model Config Tool Request", "shape": { - "type": "id", - "id": "type_:ModelConfigToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigToolRequest" + } } } ] @@ -18147,15 +20673,21 @@ { "displayName": "Model Config Chat Request", "shape": { - "type": "id", - "id": "type_:ModelConfigChatRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigChatRequest" + } } }, { "displayName": "Model Config Completion Request", "shape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequest" + } } } ] @@ -18170,9 +20702,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of config. Starts with `config_`." @@ -18180,17 +20715,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18199,10 +20746,16 @@ { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the config." @@ -18210,9 +20763,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Whether the config is committed or not." @@ -18220,9 +20776,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of config." @@ -18230,11 +20789,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18243,9 +20808,12 @@ { "key": "agent_class", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Class of the agent." @@ -18253,12 +20821,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolConfigRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolConfigRequest" + } + } + } } } }, @@ -18267,8 +20844,11 @@ { "key": "model_config", "valueShape": { - "type": "id", - "id": "type_:ModelConfigRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigRequest" + } }, "description": "Model config associated with the agent." } @@ -18284,17 +20864,23 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sentiment", "valueShape": { - "type": "id", - "id": "type_:LabelSentiment" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LabelSentiment" + } }, "description": "Whether the feedback sentiment is positive or negative." } @@ -18311,9 +20897,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID for the model inputs and output logged to Humanloop. Use this when recording feedback later." @@ -18321,9 +20910,12 @@ { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index for the sampled generation for a given input. The num_samples request parameter controls how many samples are generated." @@ -18331,9 +20923,12 @@ { "key": "output", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Output text returned from the provider model with leading and trailing whitespaces stripped." @@ -18341,9 +20936,12 @@ { "key": "raw_output", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Raw output text returned from the provider model." @@ -18351,17 +20949,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18370,11 +20980,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18383,9 +20999,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model configuration used to create the generation." @@ -18393,12 +21012,21 @@ { "key": "tool_results", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResultResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResultResponse" + } + } + } } } }, @@ -18407,12 +21035,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -18421,10 +21058,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FunctionTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionTool" + } + } } }, "description": "Deprecated: Please use tool_calls field within the output_message.JSON definition of the tool to call and the corresponding argument values. Will be populated when finish_reason='tool_call'.", @@ -18433,12 +21076,21 @@ { "key": "tool_calls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolCall" + } + } + } } } }, @@ -18447,8 +21099,11 @@ { "key": "output_message", "valueShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } }, "description": "The message returned by the provider." } @@ -18486,18 +21141,27 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCallContentItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCallContentItem" + } + } } } } @@ -18513,10 +21177,16 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Content" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Content" + } + } } }, "description": "The content of the message." @@ -18524,11 +21194,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18537,11 +21213,17 @@ { "key": "tool_call_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18550,20 +21232,32 @@ { "key": "role", "valueShape": { - "type": "id", - "id": "type_:ChatRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatRole" + } }, "description": "Role of the message author." }, { "key": "tool_calls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolCall" + } + } + } } } }, @@ -18572,10 +21266,16 @@ { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FunctionTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionTool" + } + } } }, "description": "NB: Deprecated in favour of tool_calls. A tool call requested by the assistant.", @@ -18592,36 +21292,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -18637,11 +21349,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18650,12 +21368,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -18664,11 +21388,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18677,24 +21407,36 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "description": "The suffix that comes after a completion of inserted text. Useful for completions that act like inserts." + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "The suffix that comes after a completion of inserted text. Useful for completions that act like inserts." }, { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18703,10 +21445,16 @@ { "key": "data", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatDataResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatDataResponse" + } + } } }, "description": "Array containing the chat responses." @@ -18714,10 +21462,16 @@ { "key": "usage", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Usage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Usage" + } + } } }, "description": "Counts of the number of tokens used and related stats." @@ -18725,17 +21479,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18744,9 +21510,15 @@ { "key": "provider_responses", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } }, "description": "The raw responses returned by the model provider." @@ -18754,17 +21526,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18773,11 +21557,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18786,10 +21576,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatResponseToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatResponseToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -18827,11 +21623,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18840,12 +21642,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -18854,11 +21662,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18867,11 +21681,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18880,11 +21700,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18893,10 +21719,16 @@ { "key": "data", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DataResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DataResponse" + } + } } }, "description": "Array containing the generation responses." @@ -18904,10 +21736,16 @@ { "key": "usage", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Usage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Usage" + } + } } }, "description": "Counts of the number of tokens used and related stats." @@ -18915,17 +21753,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18934,9 +21784,15 @@ { "key": "provider_responses", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } }, "description": "The raw responses returned by the model provider." @@ -18944,17 +21800,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -18963,11 +21831,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19051,55 +21925,82 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -19115,19 +22016,31 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -19137,12 +22050,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -19151,18 +22073,30 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDatapointRequestTargetValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:CreateDatapointRequestTargetValue" } } }, @@ -19180,11 +22114,17 @@ { "key": "log_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19202,9 +22142,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of logged datapoint. Starts with `data_`." @@ -19212,9 +22155,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project the datapoint belongs to. Starts with `pr_`." @@ -19222,11 +22168,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19244,9 +22196,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of session. Starts with `sesh_`." @@ -19263,27 +22218,39 @@ { "key": "time_unit", "valueShape": { - "type": "id", - "id": "type_:TimeUnit" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeUnit" + } } }, { "key": "time_range_days", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "model_config_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19300,9 +22267,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID for the model inputs and output logged to Humanloop. Use this when recording feedback later." @@ -19310,9 +22280,12 @@ { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index for the sampled generation for a given input. The num_samples request parameter controls how many samples are generated." @@ -19320,9 +22293,12 @@ { "key": "output", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Output text returned from the provider model with leading and trailing whitespaces stripped." @@ -19330,9 +22306,12 @@ { "key": "raw_output", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Raw output text returned from the provider model." @@ -19340,15 +22319,24 @@ { "key": "inputs", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } }, "description": "The inputs passed to the prompt template." @@ -19356,11 +22344,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19369,9 +22363,12 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model configuration used to create the generation." @@ -19379,12 +22376,21 @@ { "key": "tool_results", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResultResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResultResponse" + } + } + } } } }, @@ -19400,55 +22406,82 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -19464,20 +22497,29 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "dataset_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19485,19 +22527,31 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -19506,12 +22560,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } } @@ -19519,18 +22582,30 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponseTargetValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:DatapointResponseTargetValue" } } } @@ -19547,18 +22622,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Datasets are now files and do not belong to projects. If this dataset was created before that change, the legacy project ID will be provided here, otherwise an empty string will be returned.", @@ -19567,20 +22648,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19588,27 +22678,36 @@ { "key": "datapoint_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } } @@ -19624,9 +22723,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project the model config belongs to. Starts with `pr_`." @@ -19634,9 +22736,12 @@ { "key": "project_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the project the model config belongs to." @@ -19644,11 +22749,17 @@ { "key": "model_config_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19657,11 +22768,17 @@ { "key": "model_config_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19670,9 +22787,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the environment." @@ -19680,9 +22800,12 @@ { "key": "environment_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the environment." @@ -19690,9 +22813,12 @@ { "key": "environment_tag", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Tag for the environment e.g. 'default' or 'other'." @@ -19709,9 +22835,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of the environment. Starts with `env_`." @@ -19719,11 +22848,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19741,27 +22876,42 @@ { "key": "datapoint", "valueShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } } }, { "key": "log", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } } }, { "key": "evaluation_results", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationResultResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationResultResponse" + } + } } } } @@ -19777,9 +22927,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID for the evaluation. Starts with `ev_`." @@ -19787,80 +22940,119 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:EvaluationStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationStatus" + } } }, { "key": "config", "valueShape": { - "type": "id", - "id": "type_:ConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigResponse" + } } }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "evaluators", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } + } } } }, { "key": "dataset", "valueShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } }, { "key": "dataset_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "dataset_snapshot", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } + } } } }, { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelConfigEvaluatorAggregateResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigEvaluatorAggregateResponse" + } + } + } } } } @@ -19875,35 +23067,50 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19920,38 +23127,53 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "evaluator_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "evaluation_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19959,30 +23181,45 @@ { "key": "log_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "log", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } } }, { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19990,30 +23227,48 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Value" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Value" + } + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20021,28 +23276,40 @@ { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "evaluator_log", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } } } @@ -20094,9 +23361,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of config. Starts with `config_`." @@ -20104,17 +23374,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -20123,10 +23405,16 @@ { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the config." @@ -20134,9 +23422,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Whether the config is committed or not." @@ -20144,9 +23435,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of config." @@ -20154,11 +23448,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20167,9 +23467,12 @@ { "key": "evaluator_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of evaluator." @@ -20177,10 +23480,16 @@ { "key": "model_config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigResponse" + } + } } }, "description": "The model config defining the LLM evaluator." @@ -20188,11 +23497,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20201,10 +23516,16 @@ { "key": "arguments_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } + } } }, "description": "Whether this evaluator is target-free or target-required." @@ -20212,10 +23533,16 @@ { "key": "return_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } + } } }, "description": "The type of the return value of the evaluator." @@ -20232,11 +23559,14 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 1, - "maxLength": 1 + "type": "primitive", + "value": { + "type": "string", + "minLength": 1, + "maxLength": 1 + } } }, "description": "The name of the evaluator." @@ -20244,9 +23574,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The description of the evaluator." @@ -20254,27 +23587,39 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } }, "description": "The type of the return value of the evaluator." }, { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20283,10 +23628,16 @@ { "key": "model_config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigResponse" + } + } } }, "description": "The model config defining the LLM evaluator." @@ -20294,17 +23645,23 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorType" + } }, "description": "The type of the evaluator." }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID for the evaluator. Starts with `evfn_`." @@ -20312,28 +23669,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "logging_project", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectResponse" + } + } } }, "description": "The project where the evaluator logs are stored." @@ -20418,36 +23787,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20463,27 +23847,39 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:FeedbackType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackType" + } }, "description": "The type of feedback. The default feedback types available are 'rating', 'action', 'issue', 'correction', and 'comment'." }, { "key": "value", "valueShape": { - "type": "id", - "id": "type_:FeedbackValue" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackValue" + } }, "description": "The feedback value to set. This would be the appropriate text for 'correction' or 'comment', or a label to apply for 'rating', 'action', or 'issue'." }, { "key": "data_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20492,11 +23888,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20505,11 +23907,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -20548,19 +23956,28 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LabelSentiment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LabelSentiment" + } + } } } } @@ -20576,15 +23993,21 @@ { "displayName": "Feedback Type", "shape": { - "type": "id", - "id": "type_:FeedbackType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackType" + } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20599,36 +24022,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20644,18 +24082,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:FeedbackRequestType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackRequestType" + } }, "description": "The type of feedback. The default feedback types available are 'rating', 'action', 'issue', 'correction', and 'comment'." }, { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FeedbackRequestValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackRequestValue" + } + } } }, "description": "The feedback value to be set. This field should be left blank when unsetting 'rating', 'correction' or 'comment', but is required otherwise." @@ -20663,11 +24110,17 @@ { "key": "data_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20676,11 +24129,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20689,11 +24148,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -20702,11 +24167,17 @@ { "key": "unset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -20724,15 +24195,21 @@ { "displayName": "Feedback Type", "shape": { - "type": "id", - "id": "type_:FeedbackType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackType" + } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20747,36 +24224,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20792,27 +24284,39 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:FeedbackResponseType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackResponseType" + } }, "description": "The type of feedback. The default feedback types available are 'rating', 'action', 'issue', 'correction', and 'comment'." }, { "key": "value", "valueShape": { - "type": "id", - "id": "type_:FeedbackResponseValue" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackResponseValue" + } }, "description": "The feedback value to set. This would be the appropriate text for 'correction' or 'comment', or a label to apply for 'rating', 'action', or 'issue'." }, { "key": "data_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20821,11 +24325,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20834,11 +24344,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -20847,9 +24363,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of user feedback. Starts with `ann_`, short for annotation." @@ -20866,15 +24385,21 @@ { "displayName": "Feedback Type", "shape": { - "type": "id", - "id": "type_:FeedbackType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackType" + } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20890,20 +24415,32 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:FeedbackTypeModelType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackTypeModelType" + } }, "description": "The type of feedback. The default feedback types available are 'rating', 'action', 'issue', 'correction', and 'comment'." }, { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CategoricalFeedbackLabel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CategoricalFeedbackLabel" + } + } + } } } }, @@ -20919,8 +24456,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FeedbackTypeModel" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackTypeModel" + } } } } @@ -20959,20 +24499,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "arguments", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20990,9 +24539,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -21008,9 +24560,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of config. Starts with `config_`." @@ -21018,17 +24573,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "unknown" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } }, @@ -21037,10 +24604,16 @@ { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the config." @@ -21048,9 +24621,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Whether the config is committed or not." @@ -21058,9 +24634,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of config." @@ -21068,11 +24647,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21091,9 +24676,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project the model config belongs to. Starts with `pr_`." @@ -21101,9 +24689,12 @@ { "key": "project_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the project the model config belongs to." @@ -21111,38 +24702,53 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "last_used", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "num_datapoints", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21151,12 +24757,21 @@ { "key": "evaluation_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelConfigEvaluatorAggregateResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigEvaluatorAggregateResponse" + } + } + } } } }, @@ -21165,18 +24780,27 @@ { "key": "config", "valueShape": { - "type": "id", - "id": "type_:ConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigResponse" + } } }, { "key": "environment_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21194,12 +24818,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationError" + } + } + } } } } @@ -21216,8 +24849,11 @@ { "key": "image_url", "valueShape": { - "type": "id", - "id": "type_:ImageUrl" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageUrl" + } }, "description": "The message's image content." } @@ -21251,9 +24887,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Either a URL of the image or the base64 encoded image data." @@ -21261,10 +24900,16 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageUrlDetail" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageUrlDetail" + } + } } }, "description": "Specify the detail level of the image provided to the model. For more details see: https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding" @@ -21302,9 +24947,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the linked tool. Starts with \"oc\\_\"" @@ -21312,10 +24960,13 @@ { "key": "source", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "organization" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "organization" + } } }, "description": "The source of the linked tool. For a linked tool it should be `organization`" @@ -21323,11 +24974,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21336,11 +24993,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21349,11 +25012,17 @@ { "key": "strict", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -21362,17 +25031,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -21388,36 +25069,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -21457,16 +25153,25 @@ { "displayName": "Feedback", "shape": { - "type": "id", - "id": "type_:Feedback" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Feedback" + } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Feedback" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Feedback" + } + } } } } @@ -21483,11 +25188,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21496,11 +25207,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21509,11 +25226,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21522,11 +25245,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21535,11 +25264,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21548,11 +25283,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21561,17 +25302,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -21580,11 +25333,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21593,17 +25352,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -21612,11 +25383,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -21625,11 +25402,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21638,11 +25421,17 @@ { "key": "reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21651,12 +25440,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -21665,11 +25463,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21678,21 +25482,33 @@ { "key": "judgment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Judgment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Judgment" + } + } } } }, { "key": "config_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21701,10 +25517,16 @@ { "key": "config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Config" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Config" + } + } } }, "description": "The model config used for this generation. Required unless `config_id` is provided." @@ -21712,11 +25534,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21725,10 +25553,16 @@ { "key": "feedback", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogRequestFeedback" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogRequestFeedback" + } + } } }, "description": "Optional parameter to provide feedback with your logged datapoint." @@ -21736,11 +25570,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -21749,11 +25589,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21762,11 +25608,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21775,11 +25627,17 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -21788,10 +25646,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The message returned by the provider." @@ -21799,11 +25663,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21812,11 +25682,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21825,11 +25701,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -21838,11 +25720,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -21851,17 +25739,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -21870,17 +25770,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -21897,36 +25809,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -21942,11 +25866,17 @@ { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21955,11 +25885,17 @@ { "key": "project_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21968,11 +25904,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21981,11 +25923,17 @@ { "key": "session_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21994,11 +25942,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22007,11 +25961,17 @@ { "key": "parent_reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22020,17 +25980,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -22039,11 +26011,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22052,17 +26030,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -22071,11 +26061,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -22084,11 +26080,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22097,9 +26099,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of logged datapoint. Starts with `data_`." @@ -22107,11 +26112,17 @@ { "key": "reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22120,12 +26131,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -22134,11 +26154,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22147,21 +26173,33 @@ { "key": "judgment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Judgment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Judgment" + } + } } } }, { "key": "config_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22170,18 +26208,27 @@ { "key": "config", "valueShape": { - "type": "id", - "id": "type_:ConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigResponse" + } } }, { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22190,12 +26237,21 @@ { "key": "feedback", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FeedbackResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackResponse" + } + } + } } } } @@ -22203,11 +26259,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -22216,11 +26278,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22229,11 +26297,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22242,11 +26316,17 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -22255,10 +26335,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } } }, "description": "The message returned by the provider." @@ -22266,11 +26352,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22279,11 +26371,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22292,11 +26390,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -22305,11 +26409,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -22318,17 +26428,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -22337,17 +26459,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -22356,11 +26490,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22369,11 +26509,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -22382,11 +26528,17 @@ { "key": "tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22395,11 +26547,17 @@ { "key": "raw_output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22408,11 +26566,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22421,12 +26585,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResultResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResultResponse" + } + } + } } } } @@ -22434,10 +26607,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponseToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponseToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: 'none' forces the model to not call a tool; the default when no tools are provided as part of the model config. 'auto' the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {'type': 'function', 'function': {name': }} forces the model to use the named function." @@ -22445,39 +26624,60 @@ { "key": "evaluation_results", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationResultResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationResultResponse" + } + } } } }, { "key": "observability_status", "valueShape": { - "type": "id", - "id": "type_:ObservabilityStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ObservabilityStatus" + } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "batch_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -22495,19 +26695,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22523,15 +26732,21 @@ { "displayName": "Linked Tool Request", "shape": { - "type": "id", - "id": "type_:LinkedToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LinkedToolRequest" + } } }, { "displayName": "Model Config Tool Request", "shape": { - "type": "id", - "id": "type_:ModelConfigToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigToolRequest" + } } } ] @@ -22547,11 +26762,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22560,11 +26781,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22573,10 +26800,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -22584,9 +26817,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used. E.g. text-davinci-002." @@ -22594,12 +26830,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -22608,12 +26850,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -22622,12 +26870,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -22636,10 +26890,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigChatRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigChatRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -22647,12 +26907,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -22661,12 +26927,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -22675,17 +26947,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -22694,11 +26978,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22707,10 +26997,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -22718,10 +27014,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -22729,12 +27031,21 @@ { "key": "chat_template", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -22743,12 +27054,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelConfigChatRequestToolsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigChatRequestToolsItem" + } + } + } } } }, @@ -22765,19 +27085,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22795,11 +27124,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22808,11 +27143,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22821,10 +27162,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -22832,9 +27179,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used. E.g. text-davinci-002." @@ -22842,12 +27192,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -22856,12 +27212,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -22870,12 +27232,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -22884,10 +27252,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigCompletionRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigCompletionRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -22895,12 +27269,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -22909,12 +27289,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -22923,17 +27309,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "unknown" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } }, @@ -22942,11 +27340,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22955,10 +27359,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -22966,10 +27376,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -22977,11 +27393,17 @@ { "key": "prompt_template", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22999,38 +27421,53 @@ { "key": "model_config_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "evaluator_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "aggregate_value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -23046,19 +27483,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -23074,15 +27520,21 @@ { "displayName": "Linked Tool Request", "shape": { - "type": "id", - "id": "type_:LinkedToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LinkedToolRequest" + } } }, { "displayName": "Model Config Tool Request", "shape": { - "type": "id", - "id": "type_:ModelConfigToolRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigToolRequest" + } } } ] @@ -23098,11 +27550,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23111,11 +27569,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23124,10 +27588,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -23135,9 +27605,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used. E.g. text-davinci-002." @@ -23145,12 +27618,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -23159,12 +27638,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -23173,12 +27658,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -23187,10 +27678,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -23198,12 +27695,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -23212,12 +27715,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -23226,17 +27735,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -23245,11 +27766,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -23258,10 +27785,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -23269,10 +27802,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -23280,11 +27819,17 @@ { "key": "prompt_template", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23293,12 +27838,21 @@ { "key": "chat_template", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -23307,12 +27861,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelConfigRequestToolsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigRequestToolsItem" + } + } + } } } }, @@ -23329,19 +27892,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -23359,9 +27931,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of config. Starts with `config_`." @@ -23369,17 +27944,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -23388,11 +27975,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23401,11 +27994,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23414,10 +28013,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -23425,9 +28030,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used. E.g. text-davinci-002." @@ -23435,12 +28043,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -23449,12 +28063,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -23463,12 +28083,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -23477,10 +28103,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelConfigResponseStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigResponseStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -23488,12 +28120,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -23502,12 +28140,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -23516,11 +28160,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -23529,10 +28179,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only type json_object is currently supported for chat." @@ -23540,25 +28196,40 @@ { "key": "prompt_template", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, "description": "Prompt template that will take your specified inputs to form your final request to the model. NB: Input variables within the prompt template should be specified with syntax: {{INPUT_NAME}}." - }, - { - "key": "chat_template", - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageWithToolCall" + }, + { + "key": "chat_template", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageWithToolCall" + } + } + } } } }, @@ -23567,12 +28238,21 @@ { "key": "tool_configs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolConfigResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolConfigResponse" + } + } + } } } }, @@ -23582,12 +28262,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } + } + } } } }, @@ -23596,10 +28285,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -23617,9 +28312,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the tool shown to the model." @@ -23627,11 +28325,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23640,11 +28344,17 @@ { "key": "strict", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -23653,17 +28363,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -23672,10 +28394,16 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolSource" + } + } } }, "description": "Source of the tool. If defined at an organization level will be 'organization' else 'inline'." @@ -23683,11 +28411,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23696,17 +28430,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -23715,11 +28461,17 @@ { "key": "preset_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23812,37 +28564,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -23858,37 +28625,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationDatapointSnapshotResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationDatapointSnapshotResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -23904,37 +28686,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -23950,37 +28747,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -23996,37 +28808,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProjectResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -24042,37 +28869,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SessionResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SessionResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -24106,9 +28948,12 @@ { "key": "project_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project the model config belongs to. Starts with `pr_`." @@ -24116,9 +28961,12 @@ { "key": "project_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the project the model config belongs to." @@ -24126,38 +28974,53 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "last_used", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "num_datapoints", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -24166,12 +29029,21 @@ { "key": "evaluation_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelConfigEvaluatorAggregateResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelConfigEvaluatorAggregateResponse" + } + } + } } } }, @@ -24180,8 +29052,11 @@ { "key": "config", "valueShape": { - "type": "id", - "id": "type_:ConfigResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigResponse" + } } } ] @@ -24196,9 +29071,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of input." @@ -24215,9 +29093,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Project ID" @@ -24225,9 +29106,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique project name." @@ -24235,10 +29119,16 @@ { "key": "active_config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectConfigResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectConfigResponse" + } + } } }, "description": "Config that has been set as the project's active deployment." @@ -24246,10 +29136,16 @@ { "key": "users", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProjectUserResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectUserResponse" + } + } } }, "description": "Users associated to the project." @@ -24257,9 +29153,12 @@ { "key": "data_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The count of datapoints that have been logged to the project." @@ -24267,17 +29166,23 @@ { "key": "feedback_types", "valueShape": { - "type": "id", - "id": "type_:FeedbackTypes" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FeedbackTypes" + } }, "description": "The feedback types that have been defined in the project." }, { "key": "team_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID of the team the project belongs to. Starts with `tm_`." @@ -24285,22 +29190,37 @@ { "key": "config_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConfigType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigType" + } + } } } }, { "key": "active_evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } + } + } } } }, @@ -24309,11 +29229,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24322,18 +29248,24 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } } @@ -24367,9 +29299,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of user. Starts with `usr_`." @@ -24377,9 +29312,12 @@ { "key": "email_address", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's email address." @@ -24387,11 +29325,17 @@ { "key": "full_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24409,11 +29353,17 @@ { "key": "openai", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24421,11 +29371,17 @@ { "key": "ai21", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24433,11 +29389,17 @@ { "key": "mock", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24445,11 +29407,17 @@ { "key": "anthropic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24457,11 +29425,17 @@ { "key": "bedrock", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24469,11 +29443,17 @@ { "key": "cohere", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24481,11 +29461,17 @@ { "key": "openai_azure", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24493,11 +29479,17 @@ { "key": "openai_azure_endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24529,24 +29521,39 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:Type" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Type" + } } }, { "key": "json_schema", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24564,9 +29571,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of project the datapoint belongs to. Starts with `pr_`." @@ -24574,17 +29584,23 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:FileType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileType" + } }, "description": "Type of project. e.g. `prompt` or `tool`." } @@ -24600,9 +29616,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of session. Starts with `sesh_`." @@ -24610,11 +29629,17 @@ { "key": "reference_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24623,10 +29648,16 @@ { "key": "projects", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SessionProjectResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SessionProjectResponse" + } + } } }, "description": "List of projects that have datapoints associated to this session." @@ -24634,9 +29665,12 @@ { "key": "datapoints_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of datapoints associated to this session." @@ -24644,17 +29678,29 @@ { "key": "first_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24663,11 +29709,17 @@ { "key": "last_output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24676,18 +29728,24 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } } @@ -24718,9 +29776,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The message's text content." @@ -24756,24 +29817,33 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FunctionTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionTool" + } } } ] @@ -24789,15 +29859,21 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FunctionToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionToolChoice" + } } } ] @@ -24813,9 +29889,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the tool shown to the model." @@ -24823,11 +29902,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24836,11 +29921,17 @@ { "key": "strict", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -24849,17 +29940,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24868,10 +29971,16 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolSource" + } + } } }, "description": "Source of the tool. If defined at an organization level will be 'organization' else 'inline'." @@ -24879,11 +29988,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24892,17 +30007,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24911,11 +30038,17 @@ { "key": "preset_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24933,9 +30066,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of config. Starts with `config_`." @@ -24943,17 +30079,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24962,10 +30110,16 @@ { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the config." @@ -24973,9 +30127,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Whether the config is committed or not." @@ -24983,9 +30140,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name for the tool referenced by the model." @@ -24993,11 +30153,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25006,10 +30172,16 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolSource" + } + } } }, "description": "Source of the tool. If defined at an organization level will be 'organization' else 'inline'." @@ -25017,11 +30189,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25030,17 +30208,29 @@ { "key": "setup_schema", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25049,17 +30239,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25068,11 +30270,17 @@ { "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25081,11 +30289,17 @@ { "key": "is_preset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -25094,11 +30308,17 @@ { "key": "preset_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25116,9 +30336,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the tool. Starts with either `config_` or `oc_`." @@ -25126,9 +30349,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name for the tool referenced by the model." @@ -25136,11 +30362,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25149,17 +30381,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25168,11 +30412,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25191,36 +30441,48 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "signature", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "result", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -25265,11 +30527,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25278,11 +30546,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25291,11 +30565,17 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -25313,9 +30593,12 @@ { "key": "prompt_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of tokens used in the prompt." @@ -25323,9 +30606,12 @@ { "key": "generation_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of tokens produced by the generation." @@ -25333,9 +30619,12 @@ { "key": "total_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Total number of tokens used by the prompt and generation combined." @@ -25352,9 +30641,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of user. Starts with `usr_`." @@ -25362,9 +30654,12 @@ { "key": "email_address", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The user's email address." @@ -25372,11 +30667,17 @@ { "key": "full_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25385,9 +30686,12 @@ { "key": "verified", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the user has verified their email address." @@ -25402,17 +30706,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -25428,28 +30738,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -25567,11 +30889,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25580,11 +30908,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25600,11 +30934,17 @@ { "key": "evaluation_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25613,11 +30953,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25626,11 +30972,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25639,10 +30991,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } }, "description": "The message returned by the provider." @@ -25650,11 +31008,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -25663,11 +31027,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -25676,11 +31046,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -25689,11 +31065,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -25702,11 +31084,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25715,12 +31103,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -25729,10 +31126,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptLogRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptLogRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: \n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt. \n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt. \n- `'required'` means the model can decide to call one or more of the provided tools. \n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -25740,10 +31143,16 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequest" + } + } } }, "description": "Details of your Prompt. A new Prompt version will be created if the provided details are new." @@ -25751,11 +31160,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -25764,11 +31179,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -25777,11 +31198,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25790,11 +31217,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -25803,11 +31236,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25816,11 +31255,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -25829,11 +31274,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25842,17 +31293,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25861,17 +31324,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25880,17 +31355,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25899,11 +31386,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25912,17 +31405,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25931,11 +31436,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25944,11 +31455,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25957,13 +31474,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25973,11 +31499,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25986,11 +31518,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25999,11 +31537,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -28427,9 +33971,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -28437,9 +33984,12 @@ { "key": "log_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -28454,10 +34004,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } }, "description": "The message returned by the provider." @@ -28465,11 +34021,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -28478,11 +34040,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -28491,11 +34059,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -28504,11 +34078,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -28517,11 +34097,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28530,12 +34116,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -28544,10 +34139,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptLogUpdateRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptLogUpdateRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: \n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt. \n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt. \n- `'required'` means the model can decide to call one or more of the provided tools. \n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -28555,11 +34156,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28568,11 +34175,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -28581,11 +34194,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28594,11 +34213,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -28607,11 +34232,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28620,17 +34251,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -28639,17 +34282,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -28658,17 +34313,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -28677,11 +34344,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28690,17 +34363,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -28709,11 +34394,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -28722,11 +34413,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -30319,11 +36016,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30332,11 +36035,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30352,11 +36061,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30365,11 +36080,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30378,12 +36099,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -30392,10 +36122,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptsCallStreamRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptsCallStreamRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: \n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt. \n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt. \n- `'required'` means the model can decide to call one or more of the provided tools. \n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -30403,10 +36139,16 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequest" + } + } } }, "description": "Details of your Prompt. A new Prompt version will be created if the provided details are new." @@ -30414,17 +36156,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -30433,11 +36187,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30446,17 +36206,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -30465,11 +36237,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -30478,11 +36256,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -30491,11 +36275,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30504,11 +36294,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30517,13 +36313,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -30533,11 +36338,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30546,11 +36357,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30559,11 +36376,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -30572,10 +36395,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -30583,12 +36412,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -30597,10 +36432,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -30608,11 +36446,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -30621,11 +36465,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -30634,11 +36484,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32729,11 +38585,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32742,11 +38604,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32762,11 +38630,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32775,11 +38649,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32788,12 +38668,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -32802,10 +38691,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptsCallRequestToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptsCallRequestToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported: \n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt. \n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt. \n- `'required'` means the model can decide to call one or more of the provided tools. \n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -32813,10 +38708,16 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequest" + } + } } }, "description": "Details of your Prompt. A new Prompt version will be created if the provided details are new." @@ -32824,17 +38725,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -32843,11 +38756,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32856,17 +38775,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -32875,11 +38806,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -32888,11 +38825,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -32901,11 +38844,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32914,11 +38863,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32927,13 +38882,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -32943,11 +38907,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32956,11 +38926,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32969,11 +38945,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -32982,10 +38964,16 @@ { "key": "provider_api_keys", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProviderApiKeys" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProviderApiKeys" + } + } } }, "description": "API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization." @@ -32993,12 +38981,18 @@ { "key": "num_samples", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -33007,10 +39001,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If true, tokens will be sent as data-only server-sent events. If num_samples > 1, samples are streamed back independently." @@ -33018,11 +39015,17 @@ { "key": "return_inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -33031,11 +39034,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -33044,11 +39053,17 @@ { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -35342,11 +41357,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -35355,11 +41376,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -35368,11 +41395,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -35381,11 +41414,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -35394,10 +41433,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort Prompts by" @@ -35405,10 +41450,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -35776,11 +41827,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -35789,11 +41846,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -35802,9 +41865,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used, e.g. `gpt-4`. See [supported models](https://humanloop.com/docs/supported-models)" @@ -35812,10 +41878,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -35823,10 +41895,16 @@ { "key": "template", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptRequestTemplate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptRequestTemplate" + } + } } }, "description": "For chat endpoint, provide a Chat template. For completion endpoint, provide a Prompt template. Input variables within the template should be specified with double curly bracket syntax: {{INPUT_NAME}}." @@ -35834,10 +41912,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -35845,12 +41929,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -35859,12 +41949,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -35873,12 +41969,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -35887,10 +41989,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_prompts:PromptRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_prompts:PromptRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -35898,12 +42006,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -35912,12 +42026,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -35926,17 +42046,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -35945,11 +42077,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -35958,10 +42096,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only `{\"type\": \"json_object\"}` is currently supported for chat." @@ -35969,12 +42113,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } + } } } }, @@ -35983,13 +42136,22 @@ { "key": "linked_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -35999,17 +42161,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -36018,11 +42192,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37235,9 +43415,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -37247,11 +43430,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37260,11 +43449,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37589,226 +43784,232 @@ { "key": "id", "valueShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "description": "Unique identifier for Prompt." - } - ], - "errors": [ - { - "description": "Validation Error", - "statusCode": 422, - "shape": { "type": "alias", "value": { - "type": "id", - "id": "type_:HttpValidationError" - } - }, - "examples": [] - } - ], - "examples": [ - { - "path": "/prompts/pr_30gco7dx6JDq4200GVOHa", - "responseStatusCode": 204, - "name": "Delete prompt", - "pathParameters": { - "id": "pr_30gco7dx6JDq4200GVOHa" - }, - "queryParameters": {}, - "headers": {}, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -X DELETE https://api.humanloop.com/v5/prompts/pr_30gco7dx6JDq4200GVOHa \\\n -H \"X-API-KEY: \"", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.prompts.delete(\n id=\"pr_30gco7dx6JDq4200GVOHa\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.prompts.delete(\"pr_30gco7dx6JDq4200GVOHa\");\n", - "generated": true - } - ] - } - }, - { - "path": "/prompts/:id", - "responseStatusCode": 422, - "pathParameters": { - "id": ":id" - }, - "queryParameters": {}, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "detail": [ - { - "loc": [ - "string" - ], - "msg": "string", - "type": "string" - } - ] - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -X DELETE https://api.humanloop.com/v5/prompts/:id \\\n -H \"X-API-KEY: \"", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.prompts.delete(\n id=\"pr_30gco7dx6JDq4200GVOHa\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.prompts.delete(\"pr_30gco7dx6JDq4200GVOHa\");\n", - "generated": true - } - ] - } - } - ], - "snippetTemplates": { - "typescript": { - "type": "v1", - "functionInvocation": { - "type": "generic", - "imports": [], - "templateString": "await client.prompts.delete(\n\t$FERN_INPUT\n)", - "isOptional": false, - "inputDelimiter": ",\n\t", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "$FERN_INPUT", - "isOptional": false, - "inputDelimiter": ",\n\t", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "$FERN_INPUT", - "isOptional": true, - "templateInputs": [ - { - "type": "payload", - "location": "PATH", - "path": "id" - } - ] - } - } - ] - } - } - ] - }, - "clientInstantiation": { - "type": "generic", - "imports": [ - "import { HumanloopClient } from \"humanloop\";" - ], - "templateString": "const client = new HumanloopClient($FERN_INPUT);", - "isOptional": false, - "inputDelimiter": ",", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "{ $FERN_INPUT }", - "isOptional": true, - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "apiKey: $FERN_INPUT", - "isOptional": false, - "templateInputs": [ - { - "type": "payload", - "location": "AUTH", - "path": "Authorization" - } - ] - } - } - ] - } + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "description": "Unique identifier for Prompt." + } + ], + "errors": [ + { + "description": "Validation Error", + "statusCode": 422, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HttpValidationError" + } + }, + "examples": [] + } + ], + "examples": [ + { + "path": "/prompts/pr_30gco7dx6JDq4200GVOHa", + "responseStatusCode": 204, + "name": "Delete prompt", + "pathParameters": { + "id": "pr_30gco7dx6JDq4200GVOHa" + }, + "queryParameters": {}, + "headers": {}, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -X DELETE https://api.humanloop.com/v5/prompts/pr_30gco7dx6JDq4200GVOHa \\\n -H \"X-API-KEY: \"", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.prompts.delete(\n id=\"pr_30gco7dx6JDq4200GVOHa\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.prompts.delete(\"pr_30gco7dx6JDq4200GVOHa\");\n", + "generated": true + } + ] + } + }, + { + "path": "/prompts/:id", + "responseStatusCode": 422, + "pathParameters": { + "id": ":id" + }, + "queryParameters": {}, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "detail": [ + { + "loc": [ + "string" + ], + "msg": "string", + "type": "string" + } + ] + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -X DELETE https://api.humanloop.com/v5/prompts/:id \\\n -H \"X-API-KEY: \"", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.prompts.delete(\n id=\"pr_30gco7dx6JDq4200GVOHa\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.prompts.delete(\"pr_30gco7dx6JDq4200GVOHa\");\n", + "generated": true + } + ] + } + } + ], + "snippetTemplates": { + "typescript": { + "type": "v1", + "functionInvocation": { + "type": "generic", + "imports": [], + "templateString": "await client.prompts.delete(\n\t$FERN_INPUT\n)", + "isOptional": false, + "inputDelimiter": ",\n\t", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "$FERN_INPUT", + "isOptional": false, + "inputDelimiter": ",\n\t", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "$FERN_INPUT", + "isOptional": true, + "templateInputs": [ + { + "type": "payload", + "location": "PATH", + "path": "id" + } + ] + } + } + ] + } + } + ] + }, + "clientInstantiation": { + "type": "generic", + "imports": [ + "import { HumanloopClient } from \"humanloop\";" + ], + "templateString": "const client = new HumanloopClient($FERN_INPUT);", + "isOptional": false, + "inputDelimiter": ",", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "{ $FERN_INPUT }", + "isOptional": true, + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "apiKey: $FERN_INPUT", + "isOptional": false, + "templateInputs": [ + { + "type": "payload", + "location": "AUTH", + "path": "Authorization" + } + ] + } + } + ] + } + } + ] + } + } + } + }, + "endpoint_prompts.move": { + "id": "endpoint_prompts.move", + "namespace": [ + "subpackage_prompts" + ], + "description": "Move the Prompt to a different path or change the name.", + "method": "PATCH", + "path": [ + { + "type": "literal", + "value": "/prompts/" + }, + { + "type": "pathParameter", + "value": "id" + } + ], + "auth": [ + "default" + ], + "defaultEnvironment": "Default", + "environments": [ + { + "id": "Default", + "baseUrl": "https://api.humanloop.com/v5" + } + ], + "pathParameters": [ + { + "key": "id", + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" } - ] - } - } - } - }, - "endpoint_prompts.move": { - "id": "endpoint_prompts.move", - "namespace": [ - "subpackage_prompts" - ], - "description": "Move the Prompt to a different path or change the name.", - "method": "PATCH", - "path": [ - { - "type": "literal", - "value": "/prompts/" - }, - { - "type": "pathParameter", - "value": "id" - } - ], - "auth": [ - "default" - ], - "defaultEnvironment": "Default", - "environments": [ - { - "id": "Default", - "baseUrl": "https://api.humanloop.com/v5" - } - ], - "pathParameters": [ - { - "key": "id", - "valueShape": { - "type": "primitive", - "value": { - "type": "string" } }, "description": "Unique identifier for Prompt." @@ -37823,11 +44024,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37836,11 +44043,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38178,9 +44391,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -38190,10 +44406,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "Filter versions by status: 'uncommitted', 'committed'. If no status is provided, all versions are returned." @@ -38201,11 +44423,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -38550,9 +44778,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -38560,9 +44791,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Prompt." @@ -38923,9 +45157,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -39465,9 +45702,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -39475,9 +45715,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to deploy the Version to." @@ -39487,9 +45730,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Prompt." @@ -39861,9 +46107,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -39871,9 +46120,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to remove the deployment from." @@ -40109,9 +46361,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -40124,8 +46379,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileEnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponse" + } } } } @@ -40395,11 +46653,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40408,11 +46672,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40428,11 +46698,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40441,11 +46717,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40454,11 +46736,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -40467,11 +46755,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -40480,11 +46774,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40493,11 +46793,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -40506,11 +46812,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40519,11 +46831,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -40532,11 +46850,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40545,17 +46869,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -40564,17 +46900,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -40583,17 +46931,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -40602,11 +46962,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40615,17 +46981,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -40634,11 +47012,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40647,11 +47031,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40660,13 +47050,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -40676,11 +47075,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40689,11 +47094,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40702,11 +47113,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -40715,10 +47132,16 @@ { "key": "tool", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolKernelRequest" + } + } } }, "description": "Details of your Tool. A new Tool version will be created if the provided details are new." @@ -41655,9 +48078,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -41665,9 +48091,12 @@ { "key": "log_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -41682,11 +48111,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41695,11 +48130,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -41708,11 +48149,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41721,11 +48168,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -41734,11 +48187,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41747,17 +48206,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -41766,17 +48237,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -41785,17 +48268,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -41804,11 +48299,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41817,17 +48318,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -41836,11 +48349,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -41849,11 +48368,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -42619,11 +49144,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -42632,11 +49163,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -42645,11 +49182,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42658,11 +49201,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42671,10 +49220,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort Tools by" @@ -42682,10 +49237,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -43023,11 +49584,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43036,11 +49603,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43049,10 +49622,16 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } } }, "description": "Callable function specification of the Tool shown to the model for tool calling." @@ -43060,11 +49639,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43073,17 +49658,29 @@ { "key": "setup_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -43092,17 +49689,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -43111,10 +49720,16 @@ { "key": "tool_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilesToolType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilesToolType" + } + } } }, "description": "Type of Tool." @@ -43122,11 +49737,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43653,9 +50274,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -43665,11 +50289,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43678,11 +50308,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -43976,9 +50612,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -44193,9 +50832,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -44210,11 +50852,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44223,11 +50871,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44534,9 +51188,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Tool." @@ -44546,10 +51203,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "Filter versions by status: 'uncommitted', 'committed'. If no status is provided, all versions are returned." @@ -44557,11 +51220,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -44875,9 +51544,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -44885,9 +51557,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Tool." @@ -45217,9 +51892,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -45728,9 +52406,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -45738,9 +52419,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to deploy the Version to." @@ -45750,9 +52434,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Tool." @@ -46056,9 +52743,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -46066,9 +52756,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to remove the deployment from." @@ -46305,9 +52998,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Tool." @@ -46320,8 +53016,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileEnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponse" + } } } } @@ -46560,11 +53259,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46573,11 +53278,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46586,11 +53297,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46599,11 +53316,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46612,10 +53335,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort Datasets by" @@ -46623,10 +53352,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -46959,11 +53694,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46972,11 +53713,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46992,11 +53739,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47005,11 +53758,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47018,10 +53777,16 @@ { "key": "datapoints", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CreateDatapointRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDatapointRequest" + } + } } }, "description": "The Datapoints to create this Dataset version with. Modify the `action` field to determine how these Datapoints are used." @@ -47029,10 +53794,16 @@ { "key": "action", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UpdateDatesetAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpdateDatesetAction" + } + } } }, "description": "The action to take with the provided Datapoints.\n\n - If `\"set\"`, the created version will only contain the Datapoints provided in this request. \n - If `\"add\"`, the created version will contain the Datapoints provided in this request in addition to the Datapoints in the target version. \n - If `\"remove\"`, the created version will contain the Datapoints in the target version except for the Datapoints provided in this request. \n\nIf `\"add\"` or `\"remove\"`, one of the `version_id` or `environment` query parameters may be provided." @@ -47040,17 +53811,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -47059,11 +53842,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48094,9 +54883,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -48106,11 +54898,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48119,11 +54917,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48132,11 +54936,17 @@ { "key": "include_datapoints", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -48463,9 +55273,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -48679,9 +55492,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -48696,11 +55512,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48709,11 +55531,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49045,9 +55873,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -49057,11 +55888,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49070,11 +55907,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49083,11 +55926,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -49096,11 +55945,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -49445,9 +56300,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -49457,10 +56315,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "Filter versions by status: 'uncommitted', 'committed'. If no status is provided, all versions are returned." @@ -49756,9 +56620,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -49766,9 +56633,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Dataset." @@ -50098,9 +56968,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Dataset" @@ -50110,11 +56983,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -50123,11 +57002,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -50149,9 +57034,12 @@ "key": "commit_message", "description": "Commit message for the new Dataset version.", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -50552,9 +57440,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -50562,9 +57453,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to deploy the Version to." @@ -50574,9 +57468,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Dataset." @@ -50880,9 +57777,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -50890,9 +57790,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to remove the deployment from." @@ -51129,9 +58032,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Dataset." @@ -51144,8 +58050,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileEnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponse" + } } } } @@ -51440,11 +58349,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51453,11 +58368,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51466,11 +58387,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51479,11 +58406,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51492,10 +58425,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort Evaluators by" @@ -51503,10 +58442,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -51850,11 +58795,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51863,11 +58814,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51876,11 +58833,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51889,8 +58852,11 @@ { "key": "spec", "valueShape": { - "type": "id", - "id": "type_evaluators:SrcExternalAppModelsV5EvaluatorsEvaluatorRequestSpec" + "type": "alias", + "value": { + "type": "id", + "id": "type_evaluators:SrcExternalAppModelsV5EvaluatorsEvaluatorRequestSpec" + } } } ] @@ -53508,9 +60474,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -53520,11 +60489,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -53533,11 +60508,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -53837,9 +60818,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -54054,9 +61038,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -54071,11 +61058,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54084,11 +61077,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54401,9 +61400,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator." @@ -54413,10 +61415,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "Filter versions by status: 'uncommitted', 'committed'. If no status is provided, all versions are returned." @@ -54424,11 +61432,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -54746,9 +61760,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Prompt." @@ -54756,9 +61773,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Evaluator." @@ -55098,9 +62118,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -55108,9 +62131,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to deploy the Version to." @@ -55120,9 +62146,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Evaluator." @@ -55432,9 +62461,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -55442,9 +62474,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to remove the deployment from." @@ -55681,9 +62716,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluator." @@ -55696,8 +62734,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileEnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponse" + } } } } @@ -55942,11 +62983,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55955,11 +63002,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55975,11 +63028,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55988,11 +63047,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56001,11 +63066,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -56014,11 +63085,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -56027,11 +63104,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56040,11 +63123,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -56053,11 +63142,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56066,11 +63161,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -56079,11 +63180,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56092,17 +63199,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -56111,17 +63230,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -56130,17 +63261,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -56149,11 +63292,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56162,17 +63311,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -56181,9 +63342,12 @@ { "key": "parent_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier of the evaluated Log. The newly created Log will have this one set as parent." @@ -56191,11 +63355,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56204,11 +63374,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56217,13 +63393,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -56233,11 +63418,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56246,11 +63437,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56259,11 +63456,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -56272,10 +63475,16 @@ { "key": "judgment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_evaluators:CreateEvaluatorLogRequestJudgment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_evaluators:CreateEvaluatorLogRequestJudgment" + } + } } }, "description": "Evaluator assessment of the Log." @@ -56283,10 +63492,16 @@ { "key": "spec", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_evaluators:CreateEvaluatorLogRequestSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_evaluators:CreateEvaluatorLogRequestSpec" + } + } } } } @@ -58422,9 +65637,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -58434,11 +65652,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58447,11 +65671,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58821,225 +66051,231 @@ { "key": "id", "valueShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "description": "Unique identifier for Flow." - } - ], - "errors": [ - { - "description": "Validation Error", - "statusCode": 422, - "shape": { "type": "alias", "value": { - "type": "id", - "id": "type_:HttpValidationError" - } - }, - "examples": [] - } - ], - "examples": [ - { - "path": "/flows/id", - "responseStatusCode": 204, - "pathParameters": { - "id": "id" - }, - "queryParameters": {}, - "headers": {}, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -X DELETE https://api.humanloop.com/v5/flows/id \\\n -H \"X-API-KEY: \"", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.flows.delete(\n id=\"id\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.flows.delete(\"id\");\n", - "generated": true + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "description": "Unique identifier for Flow." + } + ], + "errors": [ + { + "description": "Validation Error", + "statusCode": 422, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:HttpValidationError" + } + }, + "examples": [] + } + ], + "examples": [ + { + "path": "/flows/id", + "responseStatusCode": 204, + "pathParameters": { + "id": "id" + }, + "queryParameters": {}, + "headers": {}, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -X DELETE https://api.humanloop.com/v5/flows/id \\\n -H \"X-API-KEY: \"", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.flows.delete(\n id=\"id\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.flows.delete(\"id\");\n", + "generated": true + } + ] + } + }, + { + "path": "/flows/:id", + "responseStatusCode": 422, + "pathParameters": { + "id": ":id" + }, + "queryParameters": {}, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "detail": [ + { + "loc": [ + "string" + ], + "msg": "string", + "type": "string" + } + ] + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -X DELETE https://api.humanloop.com/v5/flows/:id \\\n -H \"X-API-KEY: \"", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.flows.delete(\n id=\"id\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.flows.delete(\"id\");\n", + "generated": true + } + ] + } + } + ], + "snippetTemplates": { + "typescript": { + "type": "v1", + "functionInvocation": { + "type": "generic", + "imports": [], + "templateString": "await client.flows.delete(\n\t$FERN_INPUT\n)", + "isOptional": false, + "inputDelimiter": ",\n\t", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "$FERN_INPUT", + "isOptional": false, + "inputDelimiter": ",\n\t", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "$FERN_INPUT", + "isOptional": true, + "templateInputs": [ + { + "type": "payload", + "location": "PATH", + "path": "id" + } + ] + } + } + ] + } + } + ] + }, + "clientInstantiation": { + "type": "generic", + "imports": [ + "import { HumanloopClient } from \"humanloop\";" + ], + "templateString": "const client = new HumanloopClient($FERN_INPUT);", + "isOptional": false, + "inputDelimiter": ",", + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "{ $FERN_INPUT }", + "isOptional": true, + "templateInputs": [ + { + "type": "template", + "value": { + "type": "generic", + "imports": [], + "templateString": "apiKey: $FERN_INPUT", + "isOptional": false, + "templateInputs": [ + { + "type": "payload", + "location": "AUTH", + "path": "Authorization" + } + ] + } + } + ] + } + } + ] + } + } + } + }, + "endpoint_flows.move": { + "id": "endpoint_flows.move", + "namespace": [ + "subpackage_flows" + ], + "description": "Move the Flow to a different path or change the name.", + "method": "PATCH", + "path": [ + { + "type": "literal", + "value": "/flows/" + }, + { + "type": "pathParameter", + "value": "id" + } + ], + "auth": [ + "default" + ], + "defaultEnvironment": "Default", + "environments": [ + { + "id": "Default", + "baseUrl": "https://api.humanloop.com/v5" + } + ], + "pathParameters": [ + { + "key": "id", + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" } - ] - } - }, - { - "path": "/flows/:id", - "responseStatusCode": 422, - "pathParameters": { - "id": ":id" - }, - "queryParameters": {}, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "detail": [ - { - "loc": [ - "string" - ], - "msg": "string", - "type": "string" - } - ] - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -X DELETE https://api.humanloop.com/v5/flows/:id \\\n -H \"X-API-KEY: \"", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from humanloop import Humanloop\n\nclient = Humanloop(\n api_key=\"YOUR_API_KEY\",\n)\nclient.flows.delete(\n id=\"id\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { HumanloopClient } from \"humanloop\";\n\nconst client = new HumanloopClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.flows.delete(\"id\");\n", - "generated": true - } - ] - } - } - ], - "snippetTemplates": { - "typescript": { - "type": "v1", - "functionInvocation": { - "type": "generic", - "imports": [], - "templateString": "await client.flows.delete(\n\t$FERN_INPUT\n)", - "isOptional": false, - "inputDelimiter": ",\n\t", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "$FERN_INPUT", - "isOptional": false, - "inputDelimiter": ",\n\t", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "$FERN_INPUT", - "isOptional": true, - "templateInputs": [ - { - "type": "payload", - "location": "PATH", - "path": "id" - } - ] - } - } - ] - } - } - ] - }, - "clientInstantiation": { - "type": "generic", - "imports": [ - "import { HumanloopClient } from \"humanloop\";" - ], - "templateString": "const client = new HumanloopClient($FERN_INPUT);", - "isOptional": false, - "inputDelimiter": ",", - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "{ $FERN_INPUT }", - "isOptional": true, - "templateInputs": [ - { - "type": "template", - "value": { - "type": "generic", - "imports": [], - "templateString": "apiKey: $FERN_INPUT", - "isOptional": false, - "templateInputs": [ - { - "type": "payload", - "location": "AUTH", - "path": "Authorization" - } - ] - } - } - ] - } - } - ] - } - } - } - }, - "endpoint_flows.move": { - "id": "endpoint_flows.move", - "namespace": [ - "subpackage_flows" - ], - "description": "Move the Flow to a different path or change the name.", - "method": "PATCH", - "path": [ - { - "type": "literal", - "value": "/flows/" - }, - { - "type": "pathParameter", - "value": "id" - } - ], - "auth": [ - "default" - ], - "defaultEnvironment": "Default", - "environments": [ - { - "id": "Default", - "baseUrl": "https://api.humanloop.com/v5" - } - ], - "pathParameters": [ - { - "key": "id", - "valueShape": { - "type": "primitive", - "value": { - "type": "string" } }, "description": "Unique identifier for Flow." @@ -59054,11 +66290,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59067,11 +66309,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59080,11 +66328,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59473,11 +66727,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -59486,11 +66746,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -59499,11 +66765,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59512,11 +66784,17 @@ { "key": "user_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59525,10 +66803,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort Flows by" @@ -59536,10 +66820,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -59928,11 +67218,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59941,11 +67237,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59954,15 +67256,24 @@ { "key": "attributes", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } }, "description": "A key-value object identifying the Flow Version." @@ -59970,11 +67281,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60380,11 +67697,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60393,11 +67716,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60413,11 +67742,17 @@ { "key": "evaluation_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60426,11 +67761,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60439,11 +67780,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60452,11 +67799,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -60465,11 +67818,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -60478,11 +67837,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60491,11 +67856,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -60504,11 +67875,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60517,11 +67894,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -60530,11 +67913,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60543,17 +67932,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -60562,17 +67963,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -60581,17 +67994,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -60600,11 +68025,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60613,17 +68044,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -60632,11 +68075,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60645,11 +68094,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60658,13 +68113,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -60674,11 +68138,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60687,11 +68157,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60700,11 +68176,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -60713,11 +68195,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60726,10 +68214,16 @@ { "key": "flow", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FlowKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowKernelRequest" + } + } } }, "description": "Flow used to generate the Trace." @@ -60737,10 +68231,16 @@ { "key": "trace_status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TraceStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TraceStatus" + } + } } }, "description": "Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. If you do not intend to add more Logs to the Trace after creation, set this to `complete`." @@ -61531,9 +69031,12 @@ { "key": "log_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of the Flow Log." @@ -61548,17 +69051,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -61567,11 +69082,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61580,11 +69101,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61593,8 +69120,11 @@ { "key": "trace_status", "valueShape": { - "type": "id", - "id": "type_:TraceStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TraceStatus" + } }, "description": "Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on completed Traces." } @@ -62248,9 +69778,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -62260,10 +69793,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "Filter versions by status: 'uncommitted', 'committed'. If no status is provided, all versions are returned." @@ -62271,11 +69810,17 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -62640,9 +70185,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -62650,9 +70198,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Flow." @@ -63062,9 +70613,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -63072,9 +70626,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to deploy the Version to." @@ -63084,9 +70641,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific version of the Flow." @@ -63466,9 +71026,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -63476,9 +71039,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment to remove the deployment from." @@ -63714,9 +71280,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Flow." @@ -63729,8 +71298,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileEnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponse" + } } } } @@ -64033,9 +71605,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -64602,11 +72177,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -64615,11 +72196,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -64628,11 +72215,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -64641,10 +72234,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileType" + } + } } }, "description": "List of file types to filter for." @@ -64652,11 +72251,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -64665,10 +72270,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProjectSortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectSortBy" + } + } } }, "description": "Field to sort files by" @@ -64676,10 +72287,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortOrder" + } + } } }, "description": "Direction to sort by." @@ -65086,9 +72703,12 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Filter by File ID. Only Evaluations for the specified File will be returned." @@ -65096,11 +72716,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -65109,11 +72735,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -65492,20 +73124,32 @@ { "key": "dataset", "valueShape": { - "type": "id", - "id": "type_:EvaluationsDatasetRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationsDatasetRequest" + } }, "description": "Dataset to use in this Evaluation." }, { "key": "evaluatees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluateeRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluateeRequest" + } + } + } } } }, @@ -65514,10 +73158,16 @@ { "key": "evaluators", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationsRequest" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationsRequest" + } + } } }, "description": "The Evaluators used to evaluate." @@ -65525,11 +73175,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -65538,10 +73194,16 @@ { "key": "file", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileRequest" + } + } } }, "description": "The File to associate with the Evaluation." @@ -66245,9 +73907,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluation." @@ -66582,9 +74247,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluation." @@ -66799,9 +74467,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluation." @@ -66816,10 +74487,16 @@ { "key": "dataset", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluationsDatasetRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationsDatasetRequest" + } + } } }, "description": "Dataset to use in this Evaluation." @@ -66827,12 +74504,21 @@ { "key": "evaluatees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluateeRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluateeRequest" + } + } + } } } }, @@ -66841,12 +74527,21 @@ { "key": "evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationsRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationsRequest" + } + } + } } } }, @@ -66855,11 +74550,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -66868,10 +74569,16 @@ { "key": "file", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileRequest" + } + } } }, "description": "The File to associate with the Evaluation." @@ -67606,9 +75313,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluation." @@ -67623,8 +75333,11 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:EvaluationStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationStatus" + } } } ] @@ -67998,9 +75711,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Evaluation." @@ -68265,9 +75981,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of evaluation. Starts with `ev_` or `evr_`." @@ -68277,11 +75996,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -68290,11 +76015,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -68695,9 +76426,12 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the File to list Logs for." @@ -68705,11 +76439,17 @@ { "key": "page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -68718,11 +76458,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -68731,11 +76477,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -68744,10 +76496,16 @@ { "key": "version_status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } + } } }, "description": "If provided, only Logs belonging to Versions with the specified status will be returned." @@ -68755,11 +76513,17 @@ { "key": "search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -68768,11 +76532,17 @@ { "key": "metadata_search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -68781,11 +76551,17 @@ { "key": "start_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -68794,11 +76570,17 @@ { "key": "end_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -68807,11 +76589,17 @@ { "key": "include_parent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -68820,11 +76608,17 @@ { "key": "in_trace_filter", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -69245,11 +77039,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -69464,9 +77264,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for Log." @@ -69699,36 +77502,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -69742,36 +77557,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -69785,36 +77612,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -69828,36 +77667,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -69871,18 +77722,27 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } } } @@ -69897,19 +77757,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -69925,29 +77794,41 @@ { "displayName": "Llm Evaluator Request", "shape": { - "type": "id", - "id": "type_:LlmEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LlmEvaluatorRequest" + } } }, { "displayName": "Code Evaluator Request", "shape": { - "type": "id", - "id": "type_:CodeEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CodeEvaluatorRequest" + } } }, { "displayName": "Human Evaluator Request", "shape": { - "type": "id", - "id": "type_:HumanEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:HumanEvaluatorRequest" + } } }, { "displayName": "External Evaluator Request", "shape": { - "type": "id", - "id": "type_:ExternalEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalEvaluatorRequest" + } } } ] @@ -69961,36 +77842,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } } @@ -70005,29 +77901,41 @@ { "displayName": "Llm Evaluator Request", "shape": { - "type": "id", - "id": "type_:LlmEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LlmEvaluatorRequest" + } } }, { "displayName": "Code Evaluator Request", "shape": { - "type": "id", - "id": "type_:CodeEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CodeEvaluatorRequest" + } } }, { "displayName": "Human Evaluator Request", "shape": { - "type": "id", - "id": "type_:HumanEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:HumanEvaluatorRequest" + } } }, { "displayName": "External Evaluator Request", "shape": { - "type": "id", - "id": "type_:ExternalEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalEvaluatorRequest" + } } } ] @@ -70043,9 +77951,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator Version." @@ -70053,9 +77964,12 @@ { "key": "total_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Logs generated by this Evaluator Version on the Evaluated Version's Logs. This includes Nulls and Errors." @@ -70063,9 +77977,12 @@ { "key": "num_judgments", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Evaluator judgments for this Evaluator Version. This excludes Nulls and Errors." @@ -70073,9 +77990,12 @@ { "key": "num_nulls", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of null judgments (i.e. abstentions) for this Evaluator Version." @@ -70083,9 +78003,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of errored Evaluators for this Evaluator Version." @@ -70093,9 +78016,12 @@ { "key": "num_true", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of `True` judgments for this Evaluator Version." @@ -70103,9 +78029,12 @@ { "key": "num_false", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of `False` judgments for this Evaluator Version." @@ -70121,15 +78050,21 @@ { "displayName": "Text Chat Content", "shape": { - "type": "id", - "id": "type_:TextChatContent" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TextChatContent" + } } }, { "displayName": "Image Chat Content", "shape": { - "type": "id", - "id": "type_:ImageChatContent" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageChatContent" + } } } ] @@ -70143,18 +78078,27 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessageContentItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageContentItem" + } + } } } } @@ -70170,10 +78114,16 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessageContent" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageContent" + } + } } }, "description": "The content of the message." @@ -70181,11 +78131,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70194,11 +78150,17 @@ { "key": "tool_call_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70207,20 +78169,32 @@ { "key": "role", "valueShape": { - "type": "id", - "id": "type_:ChatRole" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatRole" + } }, "description": "Role of the message author." }, { "key": "tool_calls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolCall" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolCall" + } + } + } } } }, @@ -70259,33 +78233,51 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this Evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } }, "description": "The type of the return value of the Evaluator." }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -70294,19 +78286,25 @@ { "key": "evaluator_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "python" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "python" + } } } }, { "key": "code", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The code for the Evaluator. This code will be executed in a sandboxed environment." @@ -70323,9 +78321,12 @@ { "key": "commit_message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Message describing the changes made." @@ -70340,55 +78341,82 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -70404,19 +78432,31 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -70426,12 +78466,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -70440,18 +78489,30 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateDatapointRequestTargetValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:CreateDatapointRequestTargetValue" } } }, @@ -70469,9 +78530,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String identifier of the new Log." @@ -70479,9 +78543,12 @@ { "key": "parent_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier of the evaluated parent Log." @@ -70489,11 +78556,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70502,9 +78575,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier of Evaluator Version for which the Log was registered." @@ -70522,9 +78598,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -70532,9 +78611,12 @@ { "key": "flow_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Flow." @@ -70542,9 +78624,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Flow Version." @@ -70552,10 +78637,16 @@ { "key": "trace_status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TraceStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TraceStatus" + } + } } }, "description": "Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces." @@ -70572,9 +78663,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of log." @@ -70582,9 +78676,12 @@ { "key": "prompt_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Prompt the log belongs to." @@ -70592,9 +78689,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the specific version of the Prompt." @@ -70602,11 +78702,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70624,9 +78730,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String ID of log." @@ -70634,9 +78743,12 @@ { "key": "tool_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Tool the log belongs to." @@ -70644,9 +78756,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the specific version of the Tool." @@ -70654,11 +78769,17 @@ { "key": "session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70676,27 +78797,39 @@ { "key": "time_unit", "valueShape": { - "type": "id", - "id": "type_:TimeUnit" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeUnit" + } } }, { "key": "time_range_days", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "model_config_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -70711,55 +78844,82 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -70775,19 +78935,31 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -70797,12 +78969,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -70811,18 +78992,30 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponseTargetValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:DatapointResponseTargetValue" } } }, @@ -70831,9 +79024,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Datapoint. Starts with `dp_`." @@ -70851,9 +79047,12 @@ { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Path of the Dataset, including the name, which is used as a unique identifier." @@ -70861,9 +79060,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Dataset. Starts with `ds_`." @@ -70871,11 +79073,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70884,9 +79092,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the Dataset, which is used as a unique identifier." @@ -70894,9 +79105,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific Dataset Version. If no query params provided, the default deployed Dataset Version is returned. Starts with `dsv_`." @@ -70904,12 +79118,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "dataset" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "dataset" + } + } } } } @@ -70917,12 +79137,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } + } + } } } }, @@ -70931,28 +79160,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the Dataset." @@ -70960,28 +79201,40 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } }, "description": "The status of the Dataset Version." }, { "key": "last_used_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -70990,9 +79243,12 @@ { "key": "datapoints_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of Datapoints in this Dataset version." @@ -71000,12 +79256,21 @@ { "key": "datapoints", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } + } + } } } }, @@ -71014,17 +79279,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -71042,35 +79319,47 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "tag", "valueShape": { - "type": "id", - "id": "type_:EnvironmentTag" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentTag" + } } } ] @@ -71099,29 +79388,41 @@ { "displayName": "Prompt Response", "shape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } } }, { "displayName": "Tool Response", "shape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } } }, { "displayName": "Evaluator Response", "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "displayName": "Flow Response", "shape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } } } ] @@ -71137,11 +79438,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71150,11 +79457,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71163,11 +79476,17 @@ { "key": "file_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71176,11 +79495,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71189,11 +79514,17 @@ { "key": "batch_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71202,11 +79533,17 @@ { "key": "orchestrated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -71225,18 +79562,27 @@ { "key": "version", "valueShape": { - "type": "id", - "id": "type_:EvaluatedVersionResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatedVersionResponse" + } } }, { "key": "batch_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71245,9 +79591,12 @@ { "key": "orchestrated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Prompt/Tool is orchestrated by Humanloop. Default is `True`. If `False`, a log for the Prompt/Tool should be submitted by the user via the API." @@ -71264,16 +79613,22 @@ { "key": "version", "valueShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "key": "orchestrated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether the Evaluator is orchestrated by Humanloop. Default is `True`. If `False`, a log for the Evaluator should be submitted by the user via the API." @@ -71290,26 +79645,38 @@ { "key": "evaluated_version", "valueShape": { - "type": "id", - "id": "type_:EvaluatedVersionResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatedVersionResponse" + } }, "description": "The version of the Prompt, Tool or Evaluator that the Log belongs to." }, { "key": "datapoint", "valueShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } }, "description": "The Datapoint used to generate the Log" }, { "key": "log", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } }, "description": "The Log that was evaluated by the Evaluator." @@ -71317,10 +79684,16 @@ { "key": "evaluator_logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } }, "description": "The Evaluator Logs containing the judgments for the Log." @@ -71337,9 +79710,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluation. Starts with `evr`." @@ -71347,18 +79723,27 @@ { "key": "dataset", "valueShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } }, "description": "The Dataset used in the Evaluation." }, { "key": "evaluatees", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluateeResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluateeResponse" + } + } } }, "description": "The Prompt/Tool Versions included in the Evaluation." @@ -71366,10 +79751,16 @@ { "key": "evaluators", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationEvaluatorResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationEvaluatorResponse" + } + } } }, "description": "The Evaluator Versions used to evaluate." @@ -71377,32 +79768,47 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:EvaluationStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationStatus" + } }, "description": "The current status of the Evaluation.\n\n- `\"pending\"`: The Evaluation has been created but is not actively being worked on by Humanloop.\n- `\"running\"`: Humanloop is checking for any missing Logs and Evaluator Logs, and will generate them where appropriate.\n- `\"completed\"`: All Logs an Evaluator Logs have been generated.\n- `\"cancelled\"`: The Evaluation has been cancelled by the user. Humanloop will stop generating Logs and Evaluator Logs." }, { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, "description": "Name of the Evaluation to help identify it. Must be unique among Evaluations associated with File." }, { - "key": "file_id", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "key": "file_id", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71411,39 +79817,57 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71461,18 +79885,27 @@ { "key": "overall_stats", "valueShape": { - "type": "id", - "id": "type_:OverallStats" + "type": "alias", + "value": { + "type": "id", + "id": "type_:OverallStats" + } }, "description": "Stats for the Evaluation Report as a whole." }, { "key": "version_stats", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VersionStatsResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatsResponse" + } + } } }, "description": "Stats for each Evaluated Version in the Evaluation Report." @@ -71480,11 +79913,17 @@ { "key": "progress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71493,11 +79932,17 @@ { "key": "report", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71506,8 +79951,11 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:EvaluationStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationStatus" + } }, "description": "The current status of the Evaluation." } @@ -71543,15 +79991,21 @@ { "displayName": "Monitoring Evaluator Version Request", "shape": { - "type": "id", - "id": "type_:MonitoringEvaluatorVersionRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorVersionRequest" + } } }, { "displayName": "Monitoring Evaluator Environment Request", "shape": { - "type": "id", - "id": "type_:MonitoringEvaluatorEnvironmentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorEnvironmentRequest" + } } } ] @@ -71565,15 +80019,21 @@ { "displayName": "Monitoring Evaluator Version Request", "shape": { - "type": "id", - "id": "type_:MonitoringEvaluatorVersionRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorVersionRequest" + } } }, { "displayName": "Monitoring Evaluator Environment Request", "shape": { - "type": "id", - "id": "type_:MonitoringEvaluatorEnvironmentRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorEnvironmentRequest" + } } } ] @@ -71588,12 +80048,21 @@ { "key": "activate", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorActivationDeactivationRequestActivateItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorActivationDeactivationRequestActivateItem" + } + } + } } } }, @@ -71602,12 +80071,21 @@ { "key": "deactivate", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorActivationDeactivationRequestDeactivateItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorActivationDeactivationRequestDeactivateItem" + } + } + } } } }, @@ -71625,9 +80103,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The aggregated value of the evaluator." @@ -71635,9 +80116,12 @@ { "key": "evaluator_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the evaluator." @@ -71645,9 +80129,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the evaluator version." @@ -71655,18 +80142,24 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } } @@ -71697,11 +80190,17 @@ { "key": "min", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -71710,11 +80209,17 @@ { "key": "max", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -71723,11 +80228,17 @@ { "key": "step", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -71745,9 +80256,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the option." @@ -71755,10 +80269,16 @@ { "key": "valence", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Valence" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Valence" + } + } } }, "description": "Whether this option should be considered positive or negative." @@ -71774,36 +80294,51 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } } @@ -71820,11 +80355,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -71833,11 +80374,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -71846,11 +80393,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71859,11 +80412,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -71872,11 +80431,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71885,11 +80450,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -71898,11 +80469,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71911,17 +80488,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -71930,17 +80519,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -71949,17 +80550,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -71968,11 +80581,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -71981,17 +80600,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72000,11 +80631,17 @@ { "key": "parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72013,11 +80650,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72026,11 +80669,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72039,13 +80688,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -72055,11 +80713,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72068,11 +80732,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72081,11 +80751,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -72094,10 +80770,16 @@ { "key": "judgment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorLogResponseJudgment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponseJudgment" + } + } } }, "description": "Evaluator assessment of the Log." @@ -72105,9 +80787,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -72115,10 +80800,16 @@ { "key": "evaluator_logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponse" + } + } } }, "description": "List of Evaluator Logs associated with the Log. These contain Evaluator judgments on the Log." @@ -72126,11 +80817,17 @@ { "key": "trace_flow_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72139,11 +80836,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72152,12 +80855,21 @@ { "key": "trace_children", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } + } } } }, @@ -72166,18 +80878,27 @@ { "key": "evaluator", "valueShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } }, "description": "Evaluator used to generate the judgment." }, { "key": "parent", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } }, "description": "The Log that was evaluated. Only provided if the ?include_parent query parameter is set for the" @@ -72193,29 +80914,41 @@ { "displayName": "Llm Evaluator Request", "shape": { - "type": "id", - "id": "type_:LlmEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LlmEvaluatorRequest" + } } }, { "displayName": "Code Evaluator Request", "shape": { - "type": "id", - "id": "type_:CodeEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CodeEvaluatorRequest" + } } }, { "displayName": "Human Evaluator Request", "shape": { - "type": "id", - "id": "type_:HumanEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:HumanEvaluatorRequest" + } } }, { "displayName": "External Evaluator Request", "shape": { - "type": "id", - "id": "type_:ExternalEvaluatorRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalEvaluatorRequest" + } } } ] @@ -72231,9 +80964,12 @@ { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Path of the Evaluator including the Evaluator name, which is used as a unique identifier." @@ -72241,9 +80977,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator." @@ -72251,11 +80990,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72264,11 +81009,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72277,16 +81028,22 @@ { "key": "spec", "valueShape": { - "type": "id", - "id": "type_:EvaluatorResponseSpec" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponseSpec" + } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the Evaluator, which is used as a unique identifier." @@ -72294,9 +81051,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific Evaluator Version. If no query params provided, the default deployed Evaluator Version is returned." @@ -72304,12 +81064,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "evaluator" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "evaluator" + } + } } } } @@ -72317,12 +81083,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } + } + } } } }, @@ -72331,28 +81106,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the Evaluator." @@ -72360,25 +81147,34 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } } }, { "key": "last_used_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "version_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated for this Evaluator Version" @@ -72386,9 +81182,12 @@ { "key": "total_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated across all Evaluator Versions" @@ -72396,10 +81195,16 @@ { "key": "inputs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:InputResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InputResponse" + } + } } }, "description": "Inputs associated to the Evaluator. Inputs correspond to any of the variables used within the Evaluator template." @@ -72407,12 +81212,21 @@ { "key": "evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MonitoringEvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorResponse" + } + } + } } } }, @@ -72421,12 +81235,21 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorAggregate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorAggregate" + } + } + } } } }, @@ -72435,17 +81258,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72487,33 +81322,51 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this Evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } }, "description": "The type of the return value of the Evaluator." }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72522,10 +81375,13 @@ { "key": "evaluator_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "external" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "external" + } } } } @@ -72541,36 +81397,51 @@ { "displayName": "Prompt Response", "shape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } } }, { "displayName": "Tool Response", "shape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } } }, { "displayName": "Dataset Response", "shape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } }, { "displayName": "Evaluator Response", "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "displayName": "Flow Response", "shape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } } } ] @@ -72586,44 +81457,62 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "tag", "valueShape": { - "type": "id", - "id": "type_:EnvironmentTag" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentTag" + } } }, { "key": "file", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileEnvironmentResponseFile" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileEnvironmentResponseFile" + } + } } }, "description": "The version of the File that is deployed to the Environment, if one is deployed." @@ -72640,11 +81529,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72653,11 +81548,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72699,15 +81600,24 @@ { "key": "attributes", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } }, "description": "A key-value object identifying the Flow Version." @@ -72725,11 +81635,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -72738,11 +81654,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -72751,11 +81673,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72764,11 +81692,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -72777,11 +81711,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72790,11 +81730,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -72803,11 +81749,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72816,17 +81768,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72835,17 +81799,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72854,17 +81830,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72873,11 +81861,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72886,17 +81880,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -72905,11 +81911,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72918,11 +81930,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72931,13 +81949,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -72947,11 +81974,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72960,11 +81993,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -72973,11 +82012,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -72986,9 +82031,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -72996,10 +82044,16 @@ { "key": "evaluator_logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponse" + } + } } }, "description": "List of Evaluator Logs associated with the Log. These contain Evaluator judgments on the Log." @@ -73007,11 +82061,17 @@ { "key": "trace_flow_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73020,11 +82080,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73033,12 +82099,21 @@ { "key": "trace_children", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } + } } } }, @@ -73047,18 +82122,27 @@ { "key": "flow", "valueShape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } }, "description": "Flow used to generate the Log." }, { "key": "trace_status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TraceStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TraceStatus" + } + } } }, "description": "Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on completed Traces." @@ -73076,9 +82160,12 @@ { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Path of the Flow, including the name, which is used as a unique identifier." @@ -73086,9 +82173,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Flow. Starts with fl\\_." @@ -73096,11 +82186,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73109,15 +82205,24 @@ { "key": "attributes", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } }, "description": "A key-value object identifying the Flow Version." @@ -73125,11 +82230,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73138,9 +82249,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the Flow." @@ -73148,9 +82262,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific Flow Version. If no query params provided, the default deployed Flow Version is returned." @@ -73158,12 +82275,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "flow" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "flow" + } + } } } } @@ -73171,12 +82294,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } + } + } } } }, @@ -73185,28 +82317,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the Flow." @@ -73214,26 +82358,35 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } }, "description": "The status of the Flow Version." }, { "key": "last_used_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "version_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated for this Flow Version" @@ -73241,12 +82394,21 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorAggregate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorAggregate" + } + } + } } } }, @@ -73255,12 +82417,21 @@ { "key": "evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MonitoringEvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorResponse" + } + } + } } } }, @@ -73279,20 +82450,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "arguments", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -73310,9 +82490,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -73328,12 +82511,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationError" + } + } + } } } } @@ -73374,33 +82566,51 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this Evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:HumanEvaluatorRequestReturnType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:HumanEvaluatorRequestReturnType" + } }, "description": "The type of the return value of the Evaluator." }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -73409,21 +82619,30 @@ { "key": "evaluator_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "human" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "human" + } } } }, { "key": "instructions", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73432,12 +82651,21 @@ { "key": "options", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorJudgmentOptionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorJudgmentOptionResponse" + } + } + } } } }, @@ -73446,10 +82674,16 @@ { "key": "number_limits", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorJudgmentNumberLimit" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorJudgmentNumberLimit" + } + } } }, "description": "Limits on the judgment that can be applied. Only for Evaluators with `return_type` of `'number'`." @@ -73457,10 +82691,16 @@ { "key": "number_valence", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Valence" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Valence" + } + } } }, "description": "The valence of the number judgment. Only for Evaluators with `return_type` of `'number'`. If 'positive', a higher number is better. If 'negative', a lower number is better." @@ -73477,18 +82717,24 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "image_url" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "image_url" + } } } }, { "key": "image_url", "valueShape": { - "type": "id", - "id": "type_:ImageUrl" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageUrl" + } }, "description": "The message's image content." } @@ -73522,9 +82768,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Either a URL of the image or the base64 encoded image data." @@ -73532,10 +82781,16 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageUrlDetail" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageUrlDetail" + } + } } }, "description": "Specify the detail level of the image provided to the model. For more details see: https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding" @@ -73552,9 +82807,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of input." @@ -73571,33 +82829,51 @@ { "key": "arguments_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorArgumentsType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorArgumentsType" + } }, "description": "Whether this Evaluator is target-free or target-required." }, { "key": "return_type", "valueShape": { - "type": "id", - "id": "type_:EvaluatorReturnTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorReturnTypeEnum" + } }, "description": "The type of the return value of the Evaluator." }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -73606,20 +82882,29 @@ { "key": "evaluator_type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "llm" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "llm" + } } } }, { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequest" + } + } } }, "description": "The prompt parameters used to generate." @@ -73636,9 +82921,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name for the tool referenced by the model." @@ -73646,9 +82934,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Description of the tool referenced by the model" @@ -73656,11 +82947,17 @@ { "key": "strict", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -73669,17 +82966,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -73688,9 +82997,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Tool linked." @@ -73698,9 +83010,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Tool Version linked." @@ -73717,10 +83032,16 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } + } } }, "description": "The list of Datasets." @@ -73737,10 +83058,16 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } + } } }, "description": "The list of Evaluators." @@ -73757,10 +83084,16 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } + } } }, "description": "The list of Flows." @@ -73777,10 +83110,16 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } + } } }, "description": "The list of Prompts." @@ -73797,10 +83136,16 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } + } } }, "description": "The list of Tools." @@ -73816,29 +83161,41 @@ { "displayName": "Prompt Log Response", "shape": { - "type": "id", - "id": "type_:PromptLogResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptLogResponse" + } } }, { "displayName": "Tool Log Response", "shape": { - "type": "id", - "id": "type_:ToolLogResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolLogResponse" + } } }, { "displayName": "Evaluator Log Response", "shape": { - "type": "id", - "id": "type_:EvaluatorLogResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponse" + } } }, { "displayName": "Flow Log Response", "shape": { - "type": "id", - "id": "type_:FlowLogResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowLogResponse" + } } } ] @@ -73907,9 +83264,12 @@ { "key": "evaluator_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator to be used for monitoring." @@ -73917,9 +83277,12 @@ { "key": "environment_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Environment. The Evaluator Version deployed to this Environment will be used for monitoring." @@ -73936,18 +83299,27 @@ { "key": "version_reference", "valueShape": { - "type": "id", - "id": "type_:VersionReferenceResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionReferenceResponse" + } }, "description": "The Evaluator Version used for monitoring. This can be a specific Version by ID, or a Version deployed to an Environment." }, { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } + } } }, "description": "The deployed Version." @@ -73955,26 +83327,35 @@ { "key": "state", "valueShape": { - "type": "id", - "id": "type_:MonitoringEvaluatorState" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorState" + } }, "description": "The state of the Monitoring Evaluator. Either `active` or `inactive`" }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } } @@ -74005,9 +83386,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator Version to be used for monitoring." @@ -74025,9 +83409,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator Version." @@ -74035,9 +83422,12 @@ { "key": "total_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Logs generated by this Evaluator Version on the Evaluated Version's Logs. This includes Nulls and Errors." @@ -74045,9 +83435,12 @@ { "key": "num_judgments", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Evaluator judgments for this Evaluator Version. This excludes Nulls and Errors." @@ -74055,9 +83448,12 @@ { "key": "num_nulls", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of null judgments (i.e. abstentions) for this Evaluator Version." @@ -74065,9 +83461,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of errored Evaluators for this Evaluator Version." @@ -74075,23 +83474,35 @@ { "key": "mean", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } }, { - "key": "std", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "key": "std", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -74099,17 +83510,26 @@ { "key": "percentiles", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -74147,9 +83567,12 @@ { "key": "num_datapoints", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Datapoints in the Evaluation Report's Dataset Version." @@ -74157,9 +83580,12 @@ { "key": "total_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Logs in the Evaluation Report." @@ -74167,9 +83593,12 @@ { "key": "total_evaluator_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Evaluator Logs in the Evaluation Report." @@ -74186,37 +83615,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatapointResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatapointResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74232,37 +83676,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74278,37 +83737,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationReportLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationReportLogResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74324,37 +83798,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluationResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74370,37 +83859,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74416,37 +83920,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74462,37 +83981,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74508,37 +84042,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74554,37 +84103,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74599,36 +84163,51 @@ { "displayName": "Prompt Response", "shape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } } }, { "displayName": "Tool Response", "shape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } } }, { "displayName": "Dataset Response", "shape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } }, { "displayName": "Evaluator Response", "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "displayName": "Flow Response", "shape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } } } ] @@ -74643,37 +84222,52 @@ { "key": "records", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponseRecordsItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponseRecordsItem" + } + } } } }, { "key": "page", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -74726,11 +84320,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -74739,11 +84339,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -74752,11 +84358,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -74765,11 +84377,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -74778,11 +84396,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -74791,10 +84415,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } }, "description": "The message returned by the provider." @@ -74802,11 +84432,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -74815,11 +84451,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -74828,11 +84470,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -74841,11 +84489,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -74854,11 +84508,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -74867,9 +84527,12 @@ { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the sample in the batch." @@ -74885,36 +84548,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -74930,11 +84605,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -74943,11 +84624,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -74956,12 +84643,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -74970,10 +84666,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptCallResponseToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptCallResponseToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported:\n\n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.\n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.\n- `'required'` means the model can decide to call one or more of the provided tools.\n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -74981,25 +84683,40 @@ { "key": "prompt", "valueShape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } }, "description": "Prompt used to generate the Log." }, { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75008,11 +84725,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75021,17 +84744,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75040,11 +84775,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75053,11 +84794,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75066,13 +84813,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -75082,11 +84838,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75095,11 +84857,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75108,11 +84876,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -75121,9 +84895,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the log." @@ -75131,11 +84908,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75144,10 +84927,16 @@ { "key": "logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PromptCallLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptCallLogResponse" + } + } } }, "description": "The logs generated by the Prompt call." @@ -75165,11 +84954,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75178,11 +84973,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -75191,11 +84992,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75204,11 +85011,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75217,11 +85030,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75230,10 +85049,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } }, "description": "The message returned by the provider." @@ -75241,11 +85066,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -75254,11 +85085,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -75267,11 +85104,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75280,11 +85123,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75293,11 +85142,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75306,9 +85161,12 @@ { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the sample in the batch." @@ -75316,9 +85174,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the log." @@ -75326,9 +85187,12 @@ { "key": "prompt_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Prompt the log belongs to." @@ -75336,9 +85200,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the specific version of the Prompt." @@ -75354,18 +85221,27 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } } } @@ -75380,19 +85256,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -75409,9 +85294,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used, e.g. `gpt-4`. See [supported models](https://humanloop.com/docs/supported-models)" @@ -75419,10 +85307,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -75430,10 +85324,16 @@ { "key": "template", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequestTemplate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequestTemplate" + } + } } }, "description": "For chat endpoint, provide a Chat template. For completion endpoint, provide a Prompt template. Input variables within the template should be specified with double curly bracket syntax: {{INPUT_NAME}}." @@ -75441,10 +85341,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -75452,12 +85358,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -75466,12 +85378,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -75480,12 +85398,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -75494,10 +85418,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptKernelRequestStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptKernelRequestStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -75505,12 +85435,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -75519,12 +85455,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -75533,17 +85475,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75552,11 +85506,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -75565,10 +85525,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only `{\"type\": \"json_object\"}` is currently supported for chat." @@ -75576,12 +85542,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } + } } } }, @@ -75590,13 +85565,22 @@ { "key": "linked_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -75606,17 +85590,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75633,36 +85629,48 @@ "variants": [ { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "none" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "none" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "auto" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "auto" + } } } }, { "shape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "required" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "required" + } } } }, { "displayName": "Tool Choice", "shape": { - "type": "id", - "id": "type_:ToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolChoice" + } } } ] @@ -75678,10 +85686,16 @@ { "key": "output_message", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } }, "description": "The message returned by the provider." @@ -75689,11 +85703,17 @@ { "key": "prompt_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -75702,11 +85722,17 @@ { "key": "output_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -75715,11 +85741,17 @@ { "key": "prompt_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75728,11 +85760,17 @@ { "key": "output_cost", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75741,11 +85779,17 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75754,12 +85798,21 @@ { "key": "messages", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } + } } } }, @@ -75768,10 +85821,16 @@ { "key": "tool_choice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptLogResponseToolChoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptLogResponseToolChoice" + } + } } }, "description": "Controls how the model uses tools. The following options are supported:\n\n- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.\n- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.\n- `'required'` means the model can decide to call one or more of the provided tools.\n- `{'type': 'function', 'function': {name': }}` forces the model to use the named function." @@ -75779,19 +85838,28 @@ { "key": "prompt", "valueShape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } }, "description": "Prompt used to generate the Log." }, { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -75800,11 +85868,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -75813,11 +85887,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75826,11 +85906,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -75839,11 +85925,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75852,11 +85944,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -75865,11 +85963,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75878,17 +85982,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75897,17 +86013,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75916,17 +86044,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75935,11 +86075,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75948,17 +86094,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -75967,11 +86125,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75980,11 +86144,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -75993,13 +86163,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -76009,11 +86188,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76022,11 +86207,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76035,11 +86226,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -76048,9 +86245,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -76058,10 +86258,16 @@ { "key": "evaluator_logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponse" + } + } } }, "description": "List of Evaluator Logs associated with the Log. These contain Evaluator judgments on the Log." @@ -76069,11 +86275,17 @@ { "key": "trace_flow_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76082,11 +86294,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76095,12 +86313,21 @@ { "key": "trace_children", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } + } } } }, @@ -76117,18 +86344,27 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } + } } } } @@ -76143,19 +86379,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76173,9 +86418,12 @@ { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Path of the Prompt, including the name, which is used as a unique identifier." @@ -76183,9 +86431,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Prompt." @@ -76193,11 +86444,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76206,9 +86463,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model instance used, e.g. `gpt-4`. See [supported models](https://humanloop.com/docs/supported-models)" @@ -76216,10 +86476,16 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelEndpoints" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelEndpoints" + } + } } }, "description": "The provider model endpoint used." @@ -76227,10 +86493,16 @@ { "key": "template", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptResponseTemplate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponseTemplate" + } + } } }, "description": "For chat endpoint, provide a Chat template. For completion endpoint, provide a Prompt template. Input variables within the template should be specified with double curly bracket syntax: {{INPUT_NAME}}." @@ -76238,10 +86510,16 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelProviders" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelProviders" + } + } } }, "description": "The company providing the underlying model service." @@ -76249,12 +86527,18 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } }, @@ -76263,12 +86547,18 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -76277,12 +86567,18 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -76291,10 +86587,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PromptResponseStop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponseStop" + } + } } }, "description": "The string (or list of strings) after which the model will stop generating. The returned text will not contain the stop sequence." @@ -76302,12 +86604,18 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -76316,12 +86624,18 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0 + } + } } } }, @@ -76330,17 +86644,29 @@ { "key": "other", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -76349,11 +86675,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -76362,10 +86694,16 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormat" + } + } } }, "description": "The format of the response. Only `{\"type\": \"json_object\"}` is currently supported for chat." @@ -76373,12 +86711,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } + } } } }, @@ -76387,12 +86734,21 @@ { "key": "linked_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LinkedToolResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LinkedToolResponse" + } + } + } } } }, @@ -76401,17 +86757,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -76420,11 +86788,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -76433,9 +86807,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the Prompt." @@ -76443,9 +86820,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific Prompt Version. If no query params provided, the default deployed Prompt Version is returned." @@ -76453,12 +86833,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "prompt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "prompt" + } + } } } } @@ -76466,12 +86852,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } + } + } } } }, @@ -76480,28 +86875,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the Prompt." @@ -76509,26 +86916,35 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } }, "description": "The status of the Prompt Version." }, { "key": "last_used_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "version_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated for this Prompt Version" @@ -76536,9 +86952,12 @@ { "key": "total_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated across all Prompt Versions" @@ -76546,10 +86965,16 @@ { "key": "inputs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:InputResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InputResponse" + } + } } }, "description": "Inputs associated to the Prompt. Inputs correspond to any of the variables used within the Prompt template." @@ -76557,12 +86982,21 @@ { "key": "evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MonitoringEvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorResponse" + } + } + } } } }, @@ -76571,12 +87005,21 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorAggregate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorAggregate" + } + } + } } } }, @@ -76594,11 +87037,17 @@ { "key": "openai", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76606,11 +87055,17 @@ { "key": "ai21", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76618,11 +87073,17 @@ { "key": "mock", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76630,11 +87091,17 @@ { "key": "anthropic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76642,11 +87109,17 @@ { "key": "bedrock", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76654,11 +87127,17 @@ { "key": "cohere", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76666,11 +87145,17 @@ { "key": "openai_azure", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76678,11 +87163,17 @@ { "key": "openai_azure_endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -76714,24 +87205,39 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ResponseFormatType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResponseFormatType" + } } }, { "key": "json_schema", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -76750,9 +87256,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator Version." @@ -76760,9 +87269,12 @@ { "key": "total_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Logs generated by this Evaluator Version on the Evaluated Version's Logs. This includes Nulls and Errors." @@ -76770,9 +87282,12 @@ { "key": "num_judgments", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Evaluator judgments for this Evaluator Version. This excludes Nulls and Errors." @@ -76780,9 +87295,12 @@ { "key": "num_nulls", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of null judgments (i.e. abstentions) for this Evaluator Version." @@ -76790,9 +87308,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of errored Evaluators for this Evaluator Version." @@ -76800,17 +87321,26 @@ { "key": "num_judgments_per_option", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -76843,19 +87373,25 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "text" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "text" + } } } }, { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The message's text content." @@ -76873,9 +87409,12 @@ { "key": "evaluator_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluator Version." @@ -76883,9 +87422,12 @@ { "key": "total_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Logs generated by this Evaluator Version on the Evaluated Version's Logs. This includes Nulls and Errors." @@ -76893,9 +87435,12 @@ { "key": "num_judgments", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of Evaluator judgments for this Evaluator Version. This excludes Nulls and Errors." @@ -76903,9 +87448,12 @@ { "key": "num_nulls", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of null judgments (i.e. abstentions) for this Evaluator Version." @@ -76913,9 +87461,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of errored Evaluators for this Evaluator Version." @@ -76951,24 +87502,33 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ChatToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatToolType" + } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FunctionTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionTool" + } } } ] @@ -76984,15 +87544,21 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ChatToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatToolType" + } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FunctionToolChoice" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FunctionToolChoice" + } } } ] @@ -77007,9 +87573,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name for the tool referenced by the model." @@ -77017,9 +87586,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Description of the tool referenced by the model" @@ -77027,11 +87599,17 @@ { "key": "strict", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -77040,17 +87618,29 @@ { "key": "parameters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77068,10 +87658,16 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } } }, "description": "Callable function specification of the Tool shown to the model for tool calling." @@ -77079,11 +87675,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77092,17 +87694,29 @@ { "key": "setup_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77111,17 +87725,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77140,11 +87766,17 @@ { "key": "start_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -77153,11 +87785,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -77166,11 +87804,17 @@ { "key": "output", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77179,11 +87823,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -77192,11 +87842,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77205,11 +87861,17 @@ { "key": "provider_latency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -77218,11 +87880,17 @@ { "key": "stdout", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77231,17 +87899,29 @@ { "key": "provider_request", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77250,17 +87930,29 @@ { "key": "provider_response", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77269,17 +87961,29 @@ { "key": "inputs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77288,11 +87992,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77301,17 +88011,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77320,11 +88042,17 @@ { "key": "source_datapoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77333,11 +88061,17 @@ { "key": "trace_parent_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77346,13 +88080,22 @@ { "key": "batches", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -77362,11 +88105,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77375,11 +88124,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77388,11 +88143,17 @@ { "key": "save", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -77401,9 +88162,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Log." @@ -77411,10 +88175,16 @@ { "key": "evaluator_logs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorLogResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorLogResponse" + } + } } }, "description": "List of Evaluator Logs associated with the Log. These contain Evaluator judgments on the Log." @@ -77422,11 +88192,17 @@ { "key": "trace_flow_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77435,11 +88211,17 @@ { "key": "trace_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77448,12 +88230,21 @@ { "key": "trace_children", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogResponse" + } + } + } } } }, @@ -77462,8 +88253,11 @@ { "key": "tool", "valueShape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } }, "description": "Tool used to generate the Log." } @@ -77480,9 +88274,12 @@ { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Path of the Tool, including the name, which is used as a unique identifier." @@ -77490,9 +88287,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Tool." @@ -77500,11 +88300,17 @@ { "key": "directory_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77513,10 +88319,16 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolFunction" + } + } } }, "description": "Callable function specification of the Tool shown to the model for tool calling." @@ -77524,11 +88336,17 @@ { "key": "source_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77537,17 +88355,29 @@ { "key": "setup_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77556,17 +88386,29 @@ { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -77575,10 +88417,16 @@ { "key": "tool_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilesToolType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilesToolType" + } + } } }, "description": "Type of Tool." @@ -77586,11 +88434,17 @@ { "key": "commit_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77599,9 +88453,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the Tool, which is used as a unique identifier." @@ -77609,9 +88466,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the specific Tool Version. If no query params provided, the default deployed Tool Version is returned." @@ -77619,12 +88479,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "tool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "tool" + } + } } } } @@ -77632,12 +88498,21 @@ { "key": "environments", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } + } + } } } }, @@ -77646,28 +88521,40 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "created_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UserResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserResponse" + } + } } }, "description": "The user who created the Tool." @@ -77675,26 +88562,35 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:VersionStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatus" + } }, "description": "The status of the Tool Version." }, { "key": "last_used_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } } }, { "key": "version_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated for this Tool Version" @@ -77702,9 +88598,12 @@ { "key": "total_logs_count", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of logs that have been generated across all Tool Versions" @@ -77712,10 +88611,16 @@ { "key": "inputs", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:InputResponse" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InputResponse" + } + } } }, "description": "Inputs associated to the Prompt. Inputs correspond to any of the variables used within the Tool template." @@ -77723,12 +88628,21 @@ { "key": "evaluators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MonitoringEvaluatorResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MonitoringEvaluatorResponse" + } + } + } } } }, @@ -77737,11 +88651,17 @@ { "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -77750,12 +88670,21 @@ { "key": "evaluator_aggregates", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EvaluatorAggregate" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorAggregate" + } + } + } } } }, @@ -77831,17 +88760,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -77857,28 +88792,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -77894,36 +88841,51 @@ { "displayName": "Prompt Response", "shape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } } }, { "displayName": "Tool Response", "shape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } } }, { "displayName": "Dataset Response", "shape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } }, { "displayName": "Evaluator Response", "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "displayName": "Flow Response", "shape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } } } ] @@ -77939,26 +88901,35 @@ { "key": "file", "valueShape": { - "type": "id", - "id": "type_:VersionDeploymentResponseFile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionDeploymentResponseFile" + } }, "description": "The File that the deployed Version belongs to." }, { "key": "environment", "valueShape": { - "type": "id", - "id": "type_:EnvironmentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EnvironmentResponse" + } }, "description": "The Environment that the Version is deployed to." }, { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "environment" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "environment" + } } } } @@ -77974,36 +88945,51 @@ { "displayName": "Prompt Response", "shape": { - "type": "id", - "id": "type_:PromptResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PromptResponse" + } } }, { "displayName": "Tool Response", "shape": { - "type": "id", - "id": "type_:ToolResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponse" + } } }, { "displayName": "Dataset Response", "shape": { - "type": "id", - "id": "type_:DatasetResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetResponse" + } } }, { "displayName": "Evaluator Response", "shape": { - "type": "id", - "id": "type_:EvaluatorResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluatorResponse" + } } }, { "displayName": "Flow Response", "shape": { - "type": "id", - "id": "type_:FlowResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FlowResponse" + } } } ] @@ -78019,18 +89005,24 @@ { "key": "version", "valueShape": { - "type": "id", - "id": "type_:VersionIdResponseVersion" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionIdResponseVersion" + } }, "description": "The specific Version being referenced." }, { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "version" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "version" + } } } } @@ -78045,15 +89037,21 @@ { "displayName": "Version Deployment Response", "shape": { - "type": "id", - "id": "type_:VersionDeploymentResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionDeploymentResponse" + } } }, { "displayName": "Version ID Response", "shape": { - "type": "id", - "id": "type_:VersionIdResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionIdResponse" + } } } ] @@ -78067,29 +89065,41 @@ { "displayName": "Numeric Evaluator Stats Response", "shape": { - "type": "id", - "id": "type_:NumericEvaluatorStatsResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:NumericEvaluatorStatsResponse" + } } }, { "displayName": "Boolean Evaluator Stats Response", "shape": { - "type": "id", - "id": "type_:BooleanEvaluatorStatsResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BooleanEvaluatorStatsResponse" + } } }, { "displayName": "Select Evaluator Stats Response", "shape": { - "type": "id", - "id": "type_:SelectEvaluatorStatsResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SelectEvaluatorStatsResponse" + } } }, { "displayName": "Text Evaluator Stats Response", "shape": { - "type": "id", - "id": "type_:TextEvaluatorStatsResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TextEvaluatorStatsResponse" + } } } ] @@ -78105,9 +89115,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the Evaluated Version." @@ -78115,9 +89128,12 @@ { "key": "num_logs", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of existing Logs for this Evaluated Version within the Evaluation Report. These are Logs that have been generated by this Evaluated Version on a Datapoint belonging to the Evaluation Report's Dataset Version." @@ -78125,10 +89141,16 @@ { "key": "evaluator_version_stats", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VersionStatsResponseEvaluatorVersionStatsItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VersionStatsResponseEvaluatorVersionStatsItem" + } + } } }, "description": "Stats for each Evaluator Version used to evaluate this Evaluated Version." @@ -78205,11 +89227,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78218,11 +89246,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78231,11 +89265,17 @@ { "key": "file_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78244,11 +89284,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78267,11 +89313,17 @@ { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78280,11 +89332,17 @@ { "key": "path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78293,11 +89351,17 @@ { "key": "file_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78306,11 +89370,17 @@ { "key": "environment", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -78319,11 +89389,17 @@ { "key": "orchestrated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, diff --git a/packages/fdr-sdk/src/__test__/output/hume/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/hume/apiDefinitions.json index 2229a30135..2c75a4438b 100644 --- a/packages/fdr-sdk/src/__test__/output/hume/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/hume/apiDefinitions.json @@ -29,11 +29,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -42,10 +48,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Status" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Status" + } + } } }, "description": "Include only jobs with these statuses." @@ -53,10 +65,16 @@ { "key": "when", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:When" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:When" + } + } } }, "description": "Include only jobs that were created before or after `timestamp_ms`." @@ -64,11 +82,17 @@ { "key": "timestamp_ms", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -77,10 +101,16 @@ { "key": "sort_by", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortBy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortBy" + } + } } }, "description": "The job timestamp to sort by." @@ -88,10 +118,16 @@ { "key": "direction", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Direction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Direction" + } + } } }, "description": "The sort direction." @@ -99,10 +135,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Type" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Type" + } + } } }, "description": "Include only jobs of these types." @@ -115,8 +157,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:UnionJob" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UnionJob" + } } } } @@ -325,9 +370,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -507,9 +555,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -521,8 +572,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:UnionPredictResult" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UnionPredictResult" + } } } } @@ -829,9 +883,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -907,10 +964,16 @@ "type": "property", "key": "json", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:InferenceBaseRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceBaseRequest" + } + } } } }, @@ -1025,9 +1088,12 @@ { "key": "X-Hume-Api-Key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1064,11 +1130,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1086,20 +1158,32 @@ { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeRange" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeRange" + } + } } } }, { "key": "emotions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } } @@ -1116,12 +1200,21 @@ { "key": "predictions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_stream:StreamBurstBurstPredictionsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstBurstPredictionsItem" + } + } + } } } } @@ -1138,11 +1231,17 @@ { "key": "frame", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -1151,11 +1250,17 @@ { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -1164,21 +1269,33 @@ { "key": "bbox", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BoundingBox" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BoundingBox" + } + } } } }, { "key": "prob", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -1187,11 +1304,17 @@ { "key": "face_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1200,30 +1323,48 @@ { "key": "emotions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } }, { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" - } - } - }, - { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } + } + } + }, + { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } } @@ -1240,12 +1381,21 @@ { "key": "predictions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_stream:StreamBurstFacePredictionsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstFacePredictionsItem" + } + } + } } } } @@ -1262,10 +1412,16 @@ { "key": "emotions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } } @@ -1282,12 +1438,21 @@ { "key": "predictions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_stream:StreamBurstFacemeshPredictionsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstFacemeshPredictionsItem" + } + } + } } } } @@ -1304,11 +1469,17 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1317,40 +1488,64 @@ { "key": "position", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TextPosition" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TextPosition" + } + } } } }, { "key": "emotions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } }, { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Sentiment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Sentiment" + } + } } } }, { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Toxicity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Toxicity" + } + } } } } @@ -1367,12 +1562,21 @@ { "key": "predictions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_stream:StreamBurstLanguagePredictionsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstLanguagePredictionsItem" + } + } + } } } } @@ -1389,20 +1593,32 @@ { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeRange" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeRange" + } + } } } }, { "key": "emotions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EmotionEmbedding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbedding" + } + } } } } @@ -1419,12 +1635,21 @@ { "key": "predictions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_stream:StreamBurstProsodyPredictionsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstProsodyPredictionsItem" + } + } + } } } } @@ -1441,11 +1666,17 @@ { "key": "payload_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1454,10 +1685,16 @@ { "key": "job_details", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstJobDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstJobDetails" + } + } } }, "description": "If the job_details flag was set in the request, details about the current streaming job will be returned in the response body." @@ -1465,10 +1702,16 @@ { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstBurst" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstBurst" + } + } } }, "description": "Response for the vocal burst emotion model." @@ -1476,10 +1719,16 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstFace" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstFace" + } + } } }, "description": "Response for the facial expression emotion model." @@ -1487,10 +1736,16 @@ { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstFacemesh" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstFacemesh" + } + } } }, "description": "Response for the facemesh emotion model." @@ -1498,10 +1753,16 @@ { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstLanguage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstLanguage" + } + } } }, "description": "Response for the language emotion model." @@ -1509,10 +1770,16 @@ { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamBurstProsody" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurstProsody" + } + } } }, "description": "Response for the speech prosody emotion model." @@ -1530,11 +1797,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1552,11 +1825,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1565,11 +1844,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1578,11 +1863,17 @@ { "key": "payload_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1591,10 +1882,16 @@ { "key": "job_details", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamErrorJobDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamErrorJobDetails" + } + } } }, "description": "If the job_details flag was set in the request, details about the current streaming job will be returned in the response body." @@ -1612,11 +1909,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1634,11 +1937,17 @@ { "key": "warning", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1647,11 +1956,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1660,11 +1975,17 @@ { "key": "payload_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1673,10 +1994,16 @@ { "key": "job_details", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamJobDetailsJobDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamJobDetailsJobDetails" + } + } } }, "description": "If the job_details flag was set in the request, details about the current streaming job will be returned in the response body." @@ -1692,22 +2019,31 @@ { "displayName": "Stream Burst", "shape": { - "type": "id", - "id": "type_stream:StreamBurst" + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamBurst" + } } }, { "displayName": "Stream Error", "shape": { - "type": "id", - "id": "type_stream:StreamError" + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamError" + } } }, { "displayName": "Stream Job Details", "shape": { - "type": "id", - "id": "type_stream:StreamJobDetails" + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamJobDetails" + } } } ] @@ -1723,17 +2059,29 @@ { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1742,17 +2090,29 @@ { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1761,11 +2121,17 @@ { "key": "identify_faces", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -1774,12 +2140,18 @@ { "key": "fps_pred", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 3 + } + } } } }, @@ -1788,12 +2160,18 @@ { "key": "prob_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 3 + } + } } } }, @@ -1802,12 +2180,18 @@ { "key": "min_face_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 3 + } + } } } }, @@ -1826,17 +2210,29 @@ { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1845,17 +2241,29 @@ { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1864,11 +2272,17 @@ { "key": "granularity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1887,17 +2301,29 @@ { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1906,10 +2332,16 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamDataModelsFace" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamDataModelsFace" + } + } } }, "description": "Configuration for the facial expression emotion model.\n\nNote: Using the `reset_stream` parameter does not have any effect on face identification. A single face identifier cache is maintained over a full session whether `reset_stream` is used or not." @@ -1917,17 +2349,29 @@ { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1936,10 +2380,16 @@ { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamDataModelsLanguage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamDataModelsLanguage" + } + } } }, "description": "Configuration for the language emotion model." @@ -1947,17 +2397,29 @@ { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -1975,11 +2437,17 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1987,10 +2455,16 @@ { "key": "models", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_stream:StreamDataModels" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_stream:StreamDataModels" + } + } } }, "description": "Configuration used to specify which models should be used and with what settings." @@ -1998,14 +2472,20 @@ { "key": "stream_window_ms", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 500, - "maximum": 10000, - "default": 5000 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 500, + "maximum": 10000, + "default": 5000 + } + } } } }, @@ -2014,11 +2494,17 @@ { "key": "reset_stream", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2027,11 +2513,17 @@ { "key": "raw_text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2040,11 +2532,17 @@ { "key": "job_details", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2053,11 +2551,17 @@ { "key": "payload_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2184,12 +2688,18 @@ { "key": "x", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -2198,12 +2708,18 @@ { "key": "y", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -2212,12 +2728,18 @@ { "key": "w", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -2226,12 +2748,18 @@ { "key": "h", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -2249,17 +2777,26 @@ { "key": "time", "valueShape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } } }, { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -2267,10 +2804,16 @@ { "key": "descriptions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DescriptionsScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DescriptionsScore" + } + } } }, "description": "Modality-specific descriptive features and their scores." @@ -2285,13 +2828,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -2305,9 +2854,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -2315,9 +2867,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -2325,9 +2880,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -2344,9 +2902,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -2354,9 +2915,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -2364,19 +2928,25 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" - } - }, + "type": "primitive", + "value": { + "type": "integer" + } + } + }, "description": "When this job ended (Unix timestamp in milliseconds)." }, { "key": "num_predictions", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of predictions that were generated by this job." @@ -2384,9 +2954,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of errors that occurred while running this job." @@ -2403,9 +2976,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -2413,9 +2989,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -2423,9 +3002,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -2433,9 +3015,12 @@ { "key": "num_predictions", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of predictions that were generated by this job." @@ -2443,9 +3028,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of errors that occurred while running this job." @@ -2462,9 +3050,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -2472,9 +3063,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -2482,9 +3076,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -2492,25 +3089,40 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:TrainingCustomModel" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingCustomModel" + } } }, { "key": "alternatives", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingCustomModel" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:TrainingCustomModel" } } } @@ -2527,17 +3139,26 @@ { "key": "output", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -2545,18 +3166,24 @@ { "key": "error", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "task_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2572,20 +3199,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2593,12 +3229,21 @@ { "key": "tags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Tag" + } + } + } } } } @@ -2614,15 +3259,21 @@ { "displayName": "Dataset Id", "shape": { - "type": "id", - "id": "type_:DatasetId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetId" + } } }, { "displayName": "Dataset Version Id", "shape": { - "type": "id", - "id": "type_:DatasetVersionId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetVersionId" + } } } ] @@ -2637,9 +3288,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2655,9 +3309,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2673,9 +3330,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the descriptive feature being expressed." @@ -2683,9 +3343,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Embedding value for the descriptive feature being expressed." @@ -2716,12 +3379,21 @@ { "key": "registry_file_details", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RegistryFileDetail" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RegistryFileDetail" + } + } + } } } }, @@ -2739,9 +3411,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the emotion being expressed." @@ -2749,9 +3424,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Embedding value for the emotion being expressed." @@ -2768,9 +3446,12 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error message." @@ -2778,9 +3459,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -2797,10 +3481,16 @@ { "key": "validation", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ValidationArgs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationArgs" + } + } } } } @@ -2816,12 +3506,18 @@ { "key": "fps_pred", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 3 + } + } } } }, @@ -2830,27 +3526,39 @@ { "key": "prob_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.99 - } - } - }, - "description": "Face detection probability threshold. Faces detected with a probability less than this threshold will be omitted from the response." - }, - { - "key": "identify_faces", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.99 + } + } + } + } + }, + "description": "Face detection probability threshold. Faces detected with a probability less than this threshold will be omitted from the response." + }, + { + "key": "identify_faces", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2859,13 +3567,19 @@ { "key": "min_face_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 10, - "default": 60 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 10, + "default": 60 + } + } } } }, @@ -2874,31 +3588,49 @@ { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "save_faces", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2916,9 +3648,12 @@ { "key": "frame", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Frame number" @@ -2926,9 +3661,12 @@ { "key": "time", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Time in seconds when face detection occurred." @@ -2936,9 +3674,12 @@ { "key": "prob", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The predicted probability that a detected face was actually a face." @@ -2946,17 +3687,26 @@ { "key": "box", "valueShape": { - "type": "id", - "id": "type_:BoundingBox" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BoundingBox" + } } }, { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -2964,12 +3714,21 @@ { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacsScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacsScore" + } + } + } } } }, @@ -2978,12 +3737,21 @@ { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DescriptionsScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DescriptionsScore" + } + } + } } } }, @@ -3001,10 +3769,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -3021,9 +3795,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the FACS 2.0 feature being expressed." @@ -3031,9 +3808,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Embedding value for the FACS 2.0 feature being expressed." @@ -3050,9 +3830,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -3060,9 +3843,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -3070,9 +3856,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -3080,9 +3869,12 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error message." @@ -3099,11 +3891,17 @@ { "key": "filename", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3112,11 +3910,17 @@ { "key": "content_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3125,9 +3929,12 @@ { "key": "md5sum", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The MD5 checksum of the file." @@ -3165,9 +3972,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3175,10 +3985,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BurstPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BurstPrediction" + } + } } } } @@ -3194,9 +4010,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3204,10 +4023,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacePrediction" + } + } } } } @@ -3223,9 +4048,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3233,10 +4061,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacemeshPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacemeshPrediction" + } + } } } } @@ -3252,9 +4086,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3262,13 +4099,19 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LanguagePrediction" - } - } - } + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LanguagePrediction" + } + } + } + } + } ] } }, @@ -3281,9 +4124,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3291,10 +4137,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:NerPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:NerPrediction" + } + } } } } @@ -3310,9 +4162,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -3320,10 +4175,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProsodyPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProsodyPrediction" + } + } } } } @@ -3339,9 +4200,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -3349,9 +4213,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -3368,33 +4235,54 @@ { "key": "models", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Models" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Models" + } + } } } }, { "key": "transcription", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Transcription" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Transcription" + } + } } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3404,13 +4292,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3420,13 +4317,22 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3436,11 +4342,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3449,11 +4361,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3471,9 +4389,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -3481,8 +4402,11 @@ { "key": "models", "valueShape": { - "type": "id", - "id": "type_:ModelsPredictions" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelsPredictions" + } } } ] @@ -3497,33 +4421,54 @@ { "key": "models", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Models" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Models" + } + } } } }, { "key": "transcription", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Transcription" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Transcription" + } + } } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3533,13 +4478,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3549,13 +4503,22 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3565,11 +4528,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3578,11 +4547,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3591,10 +4566,16 @@ { "key": "files", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } + } } } } @@ -3610,20 +4591,32 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:InferencePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferencePrediction" + } + } } } }, { "key": "errors", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Error" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Error" + } + } } } } @@ -3639,28 +4632,43 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:InferenceResults" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceResults" + } + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3678,9 +4686,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -3688,24 +4699,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:EmbeddingGenerationBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmbeddingGenerationBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateEmbeddingGeneration" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateEmbeddingGeneration" + } } } ] @@ -3720,9 +4740,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -3730,24 +4753,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:InferenceRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateInference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateInference" + } } } ] @@ -3762,9 +4794,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -3772,24 +4807,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:TlInferenceBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateTlInference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateTlInference" + } } } ] @@ -3804,9 +4848,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -3814,24 +4861,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:TrainingBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateTraining" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateTraining" + } } } ] @@ -3846,9 +4902,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the started job." @@ -3865,41 +4924,65 @@ { "key": "granularity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Granularity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Granularity" + } + } } } }, { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3917,9 +5000,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A segment of text (like a word or a sentence)." @@ -3927,28 +5013,43 @@ { "key": "position", "valueShape": { - "type": "id", - "id": "type_:PositionInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PositionInterval" + } } }, { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } + } } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -3957,11 +5058,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -3970,10 +5077,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -3981,12 +5094,21 @@ { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SentimentScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SentimentScore" + } + } + } } } }, @@ -3995,12 +5117,21 @@ { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToxicityScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToxicityScore" + } + } + } } } }, @@ -4018,60 +5149,96 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Face" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Face" + } + } } } }, { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Prosody" - } - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Prosody" + } + } + } + } + }, { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Language" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Language" + } + } } } }, { "key": "ner", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Ner" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Ner" + } + } } } }, { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } } @@ -4087,60 +5254,96 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullFacePrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullFacePrediction" + } + } } } }, { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullBurstPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullBurstPrediction" + } + } } } }, { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataProsodyPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataProsodyPrediction" + } + } } } }, { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataLanguagePrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataLanguagePrediction" + } + } } } }, { "key": "ner", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataNerPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataNerPrediction" + } + } } } }, { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullFacemeshPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullFacemeshPrediction" + } + } } } } @@ -4156,11 +5359,17 @@ { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4178,9 +5387,12 @@ { "key": "entity", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The recognized topic or entity." @@ -4188,16 +5400,22 @@ { "key": "position", "valueShape": { - "type": "id", - "id": "type_:PositionInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PositionInterval" + } } }, { "key": "entity_confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Our NER model's relative confidence in the recognized topic or entity." @@ -4205,9 +5423,12 @@ { "key": "support", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "A measure of how often the entity is linked to by other entities." @@ -4215,9 +5436,12 @@ { "key": "uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A URL which provides more information about the recognized topic or entity." @@ -4225,9 +5449,12 @@ { "key": "link_word", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The specific word to which the emotion predictions are linked." @@ -4235,21 +5462,33 @@ { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } + } } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4258,11 +5497,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4271,10 +5516,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -4290,13 +5541,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -4311,9 +5568,12 @@ { "key": "begin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the first character in the text segment, inclusive." @@ -4321,9 +5581,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the last character in the text segment, exclusive." @@ -4340,20 +5603,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsBurstPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsBurstPrediction" + } + } } } } @@ -4369,20 +5644,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsFacePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsFacePrediction" + } + } } } } @@ -4398,20 +5685,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" - } - } - }, - { - "key": "grouped_predictions", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } + } + } + }, + { + "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsFacemeshPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsFacemeshPrediction" + } + } } } } @@ -4427,20 +5726,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsLanguagePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsLanguagePrediction" + } + } } } } @@ -4456,20 +5767,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsNerPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsNerPrediction" + } + } } } } @@ -4485,20 +5808,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsProsodyPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsProsodyPrediction" + } + } } } } @@ -4514,31 +5849,49 @@ { "key": "granularity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Granularity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Granularity" + } + } } } }, { "key": "window", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Window" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Window" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4556,11 +5909,17 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4569,18 +5928,27 @@ { "key": "time", "valueShape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4589,11 +5957,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4602,10 +5976,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -4622,9 +6002,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -4641,9 +6024,12 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File ID in the Asset Registry" @@ -4651,9 +6037,12 @@ { "key": "file_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "URL to the file in the Asset Registry" @@ -4668,13 +6057,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -4688,9 +6083,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Level of sentiment, ranging from `1` (negative) to `9` (positive)" @@ -4698,9 +6096,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Prediction for this level of sentiment" @@ -4792,9 +6193,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the source media file." @@ -5139,9 +6543,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -5149,25 +6556,37 @@ { "key": "file_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "custom_models", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelPrediction" + } } - }, - "valueShape": { - "type": "id", - "id": "type_:CustomModelPrediction" } } } @@ -5183,20 +6602,32 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TlInferencePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferencePrediction" + } + } } } }, { "key": "errors", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Error" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Error" + } + } } } } @@ -5212,28 +6643,43 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" - } + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } }, { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TlInferenceResults" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceResults" + } + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5251,18 +6697,24 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5276,25 +6728,34 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5347,13 +6808,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -5368,9 +6835,12 @@ { "key": "begin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Beginning of time range in seconds." @@ -5378,9 +6848,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "End of time range in seconds." @@ -5397,20 +6870,32 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:CustomModel" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModel" + } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -5420,13 +6905,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -5436,11 +6930,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5449,11 +6949,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5470,15 +6976,21 @@ { "displayName": "Custom Model Id", "shape": { - "type": "id", - "id": "type_:CustomModelId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelId" + } } }, { "displayName": "Custom Model Version Id", "shape": { - "type": "id", - "id": "type_:CustomModelVersionId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelVersionId" + } } } ] @@ -5493,9 +7005,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5511,9 +7026,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5529,9 +7047,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Category of toxicity." @@ -5539,9 +7060,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Prediction for this category of toxicity" @@ -5558,26 +7082,38 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:CustomModelRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelRequest" + } } }, { "key": "dataset", "valueShape": { - "type": "id", - "id": "type_:Dataset" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Dataset" + } } }, { "key": "target_feature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "label" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "label" + } + } } } } @@ -5585,32 +7121,53 @@ { "key": "task", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Task" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Task" + } + } } } }, { "key": "evaluation", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluationArgs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationArgs" + } + } } } }, { "key": "alternatives", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Alternative" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Alternative" + } + } + } } } } @@ -5618,11 +7175,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5630,11 +7193,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5651,26 +7220,35 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - } - }, - { - "key": "version_id", - "valueShape": { - "type": "optional", - "shape": { "type": "primitive", "value": { "type": "string" } } } - } - ] - } + }, + { + "key": "version_id", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } + } + ] + } }, "type_:Transcription": { "name": "Transcription", @@ -5681,21 +7259,33 @@ { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Bcp47Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Bcp47Tag" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5704,14 +7294,20 @@ { "key": "confidence_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.5 + } + } } } }, @@ -5730,9 +7326,12 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Value between `0.0` and `1.0` indicating our transcription model's relative confidence in the transcription of your media file." @@ -5740,10 +7339,16 @@ { "key": "detected_language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Bcp47Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Bcp47Tag" + } + } } } } @@ -5778,13 +7383,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -5874,15 +7485,21 @@ { "displayName": "Inference Source Predict Result", "shape": { - "type": "id", - "id": "type_:InferenceSourcePredictResult" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceSourcePredictResult" + } } }, { "displayName": "Tl Inference Source Predict Result", "shape": { - "type": "id", - "id": "type_:TlInferenceSourcePredictResult" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceSourcePredictResult" + } } } ] @@ -5897,10 +7514,16 @@ { "key": "positive_label", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } + } } } } @@ -5930,13 +7553,19 @@ { "key": "length", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0.5, - "default": 4 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0.5, + "default": 4 + } + } } } }, @@ -5945,13 +7574,19 @@ { "key": "step", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0.5, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0.5, + "default": 1 + } + } } } }, @@ -5969,11 +7604,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5982,11 +7623,17 @@ { "key": "score", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -6003,8 +7650,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EmotionEmbeddingItem" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionEmbeddingItem" + } } } } @@ -6019,12 +7669,18 @@ { "key": "begin", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -6033,12 +7689,18 @@ { "key": "end", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -6057,12 +7719,18 @@ { "key": "begin", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -6071,12 +7739,18 @@ { "key": "end", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0 + } + } } } }, @@ -6094,11 +7768,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6107,11 +7787,17 @@ { "key": "score", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -6128,8 +7814,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:SentimentItem" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SentimentItem" + } } } } @@ -6143,11 +7832,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6156,15 +7851,21 @@ { "key": "score", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" - } - } - }, - "description": "Prediction for this category of toxicity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } + }, + "description": "Prediction for this category of toxicity" } ] } @@ -6177,8 +7878,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:ToxicityItem" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToxicityItem" + } } } } @@ -6232,11 +7936,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6245,11 +7955,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6258,11 +7974,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -6384,8 +8106,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileWithAttributesInput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileWithAttributesInput" + } } } } @@ -6397,8 +8122,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FileWithAttributes" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileWithAttributes" + } } } } @@ -6628,9 +8356,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a File" @@ -6737,9 +8468,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a File" @@ -6805,9 +8539,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a File" @@ -6817,9 +8554,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "New File name" @@ -6932,9 +8672,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a File" @@ -6996,11 +8739,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7009,11 +8758,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7022,11 +8777,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7035,11 +8796,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -7168,9 +8935,12 @@ "key": "name", "description": "Name of the Dataset to be created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, @@ -7298,9 +9068,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset" @@ -7402,9 +9175,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset" @@ -7435,8 +9211,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:ReturnDataset" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnDataset" + } } } } @@ -7538,9 +9317,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset" @@ -7610,9 +9392,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset" @@ -7622,11 +9407,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7635,11 +9426,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7648,11 +9445,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -7777,9 +9580,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset" @@ -7789,24 +9595,36 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" - } - } - }, - "description": "Index of the first result" - }, - { - "key": "page_size", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } + } + }, + "description": "Index of the first result" + }, + { + "key": "page_size", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7815,11 +9633,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -7833,8 +9657,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FilePage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilePage" + } } } } @@ -7938,9 +9765,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset version" @@ -8033,9 +9863,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Dataset version" @@ -8045,11 +9878,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8058,11 +9897,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8071,11 +9916,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8089,8 +9940,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:FilePage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilePage" + } } } } @@ -8190,11 +10044,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8203,11 +10063,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8216,11 +10082,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -8229,11 +10101,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8360,9 +10238,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Model" @@ -8474,9 +10355,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Model" @@ -8486,9 +10370,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "New Model name" @@ -8598,11 +10485,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8611,11 +10504,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8624,11 +10523,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8637,11 +10542,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8655,8 +10566,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:ExternalModelVersion" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalModelVersion" + } } } } @@ -8747,9 +10661,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Model version" @@ -8759,11 +10676,17 @@ { "key": "shared_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8870,9 +10793,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated ID of a Model Version" @@ -9148,9 +11074,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Attribute name (key)" @@ -9158,9 +11087,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Attribute description (value)" @@ -9178,9 +11110,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File name" @@ -9188,11 +11123,17 @@ { "key": "uri", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9201,9 +11142,12 @@ { "key": "hume_storage", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Flag which denotes whether the file is stored with Hume" @@ -9211,9 +11155,12 @@ { "key": "data_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File type: video, audio, video_no_audio, image, text, or mediapipe_facemesh" @@ -9230,19 +11177,31 @@ { "key": "file", "valueShape": { - "type": "id", - "id": "type_:FileInput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileInput" + } } }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AttributeFilter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AttributeFilter" + } + } + } } } }, @@ -9261,9 +11220,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated File ID" @@ -9271,11 +11233,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9284,11 +11252,17 @@ { "key": "uri", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9297,11 +11271,17 @@ { "key": "upload_uri", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9310,11 +11290,17 @@ { "key": "thumbnail_uri", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9323,9 +11309,12 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated User ID" @@ -9333,9 +11322,12 @@ { "key": "data_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File type: video, audio, video_no_audio, image, text, or mediapipe_facemesh" @@ -9343,11 +11335,17 @@ { "key": "created_on", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9356,11 +11354,17 @@ { "key": "modified_on", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9369,25 +11373,43 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -9397,11 +11419,17 @@ { "key": "hume_storage", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9410,11 +11438,17 @@ { "key": "hume_storage_upload_timestamp", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9423,9 +11457,12 @@ { "key": "is_sanitized", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Indicates whether this file has been sanitized for sharing" @@ -9433,9 +11470,12 @@ { "key": "is_owned_by_reader", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Indicates whether this file is owned by the current file reader" @@ -9443,11 +11483,17 @@ { "key": "is_linked_to_publicly_shared", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9456,14 +11502,20 @@ { "key": "is_linked_to_hume_model", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" - } - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } + } + } + }, "description": "Indicates whether this file is linked to a Hume-owned model that is publicly shared" } ] @@ -9478,19 +11530,31 @@ { "key": "file", "valueShape": { - "type": "id", - "id": "type_:AuthorizedFile" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizedFile" + } } }, { "key": "attributes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AttributeFilter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AttributeFilter" + } + } + } } } }, @@ -9506,13 +11570,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -9550,9 +11620,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Dataset version ID" @@ -9560,9 +11633,12 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated User ID" @@ -9570,9 +11646,12 @@ { "key": "labels_file_uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Dataset Labels file URI" @@ -9580,16 +11659,25 @@ { "key": "feature_types", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetVersionFeatureTypesValue" + } } - }, - "valueShape": { - "type": "id", - "id": "type_:DatasetVersionFeatureTypesValue" } }, "description": "Feature types of label mapped to feature type" @@ -9597,9 +11685,12 @@ { "key": "dataset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Dataset ID of the parent Dataset" @@ -9607,9 +11698,12 @@ { "key": "dataset_version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Dataset version number" @@ -9617,9 +11711,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Created date and time" @@ -9636,11 +11733,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9649,9 +11752,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Dataset name" @@ -9659,21 +11765,33 @@ { "key": "latest_version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DatasetVersion" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetVersion" + } + } } } }, { "key": "modified_on", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9682,25 +11800,43 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -9743,9 +11879,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Dataset name" @@ -9753,9 +11892,12 @@ { "key": "labels_file_uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "URI of a Labels File" @@ -9763,16 +11905,25 @@ { "key": "feature_types", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetLabelsFileUriInputFeatureTypesValue" + } } - }, - "valueShape": { - "type": "id", - "id": "type_:DatasetLabelsFileUriInputFeatureTypesValue" } }, "description": "Feature types as key, value pairs" @@ -9789,9 +11940,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Model ID" @@ -9799,9 +11953,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model name" @@ -9809,9 +11966,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Created date and time" @@ -9819,9 +11979,12 @@ { "key": "modified_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Updated date and time" @@ -9829,9 +11992,12 @@ { "key": "total_stars", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Total stars on this model" @@ -9839,9 +12005,12 @@ { "key": "model_is_starred_by_user", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Model is starred by this user" @@ -9849,9 +12018,12 @@ { "key": "archived", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Model is archived." @@ -9859,19 +12031,28 @@ { "key": "latest_version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExternalModelVersion" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalModelVersion" + } + } } } }, { "key": "is_publicly_shared", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Model is shared publicly" @@ -9916,9 +12097,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Model version ID" @@ -9926,19 +12110,25 @@ { "key": "model_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, + "type": "primitive", + "value": { + "type": "string" + } + } + }, "description": "Hume-generated Model ID of the parent Model" }, { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated User ID" @@ -9946,9 +12136,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model version number" @@ -9956,9 +12149,12 @@ { "key": "source_uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model version's source file URI" @@ -9966,9 +12162,12 @@ { "key": "dataset_version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Dataset version ID for the Dataset version the Model version was trained on" @@ -9976,9 +12175,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Created date and time" @@ -9986,25 +12188,43 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -10014,11 +12234,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10027,12 +12253,21 @@ { "key": "tags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ExternalModelVersionTag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalModelVersionTag" + } + } + } } } }, @@ -10041,10 +12276,16 @@ { "key": "file_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExternalModelVersionFileType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalModelVersionFileType" + } + } } }, "description": "File type: video, audio, video_no_audio, image, text, or mediapipe_facemesh" @@ -10052,11 +12293,17 @@ { "key": "target_feature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10065,11 +12312,17 @@ { "key": "task_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10078,11 +12331,17 @@ { "key": "training_job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10101,9 +12360,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Tag name (key)" @@ -10111,9 +12373,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Tag description (value)" @@ -10130,12 +12395,21 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ExternalModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExternalModel" + } + } + } } } } @@ -10143,21 +12417,33 @@ { "key": "pageable", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PageableObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PageableObject" + } + } } } }, { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10165,11 +12451,17 @@ { "key": "last", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10177,11 +12469,17 @@ { "key": "total_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10189,11 +12487,17 @@ { "key": "total_pages", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10201,11 +12505,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10213,11 +12523,17 @@ { "key": "number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10225,21 +12541,33 @@ { "key": "sort", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortObject" - } - } - }, - { - "key": "first", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortObject" + } + } + } + } + }, + { + "key": "first", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10247,11 +12575,17 @@ { "key": "number_of_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10259,11 +12593,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10280,11 +12620,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10292,21 +12638,33 @@ { "key": "sort", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortObject" + } + } } } }, { "key": "paged", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10314,11 +12672,17 @@ { "key": "unpaged", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10326,11 +12690,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10338,11 +12708,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10359,11 +12735,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10371,11 +12753,17 @@ { "key": "sorted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10383,11 +12771,17 @@ { "key": "unsorted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10404,11 +12798,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10425,12 +12825,21 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FileWithAttributes" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileWithAttributes" + } + } + } } } } @@ -10438,21 +12847,33 @@ { "key": "pageable", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PageableObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PageableObject" + } + } } } }, { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10460,11 +12881,17 @@ { "key": "last", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10472,11 +12899,17 @@ { "key": "total_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10484,11 +12917,17 @@ { "key": "total_pages", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10496,11 +12935,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10508,11 +12953,17 @@ { "key": "number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10520,21 +12971,33 @@ { "key": "sort", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortObject" + } + } } } }, { "key": "first", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10542,11 +13005,17 @@ { "key": "number_of_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10554,11 +13023,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10575,12 +13050,21 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnDataset" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnDataset" + } + } + } } } } @@ -10588,21 +13072,33 @@ { "key": "pageable", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PageableObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PageableObject" + } + } } } }, { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10610,11 +13106,17 @@ { "key": "last", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10622,11 +13124,17 @@ { "key": "total_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10634,11 +13142,17 @@ { "key": "total_pages", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10646,11 +13160,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10658,11 +13178,17 @@ { "key": "number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10670,21 +13196,33 @@ { "key": "sort", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortObject" + } + } } } }, { "key": "first", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10692,11 +13230,17 @@ { "key": "number_of_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10704,11 +13248,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10725,12 +13275,21 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DatasetVersion" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetVersion" + } + } + } } } } @@ -10738,21 +13297,33 @@ { "key": "pageable", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PageableObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PageableObject" + } + } } } }, { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10760,11 +13331,17 @@ { "key": "last", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10772,11 +13349,17 @@ { "key": "total_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10784,11 +13367,17 @@ { "key": "total_pages", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10796,11 +13385,17 @@ { "key": "size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10808,11 +13403,17 @@ { "key": "number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10820,21 +13421,33 @@ { "key": "sort", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SortObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SortObject" + } + } } } }, { "key": "first", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10842,11 +13455,17 @@ { "key": "number_of_elements", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -10854,11 +13473,17 @@ { "key": "empty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10875,9 +13500,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Dataset version ID" @@ -10885,9 +13513,12 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated User ID" @@ -10895,9 +13526,12 @@ { "key": "labels_file_uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Dataset Labels file URI" @@ -10905,9 +13539,12 @@ { "key": "feature_type_json_uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Feature types json file URI" @@ -10915,9 +13552,12 @@ { "key": "dataset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Hume-generated Dataset ID" @@ -10925,9 +13565,12 @@ { "key": "dataset_version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Dataset version number" @@ -10935,9 +13578,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Created date and time" @@ -10945,9 +13591,12 @@ { "key": "is_most_recent_version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Boolean indicating that this is the most recent version" @@ -11073,9 +13722,12 @@ { "key": "x", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "x-coordinate of bounding box top left corner." @@ -11083,9 +13735,12 @@ { "key": "y", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "y-coordinate of bounding box top left corner." @@ -11093,9 +13748,12 @@ { "key": "w", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Bounding box width." @@ -11103,9 +13761,12 @@ { "key": "h", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Bounding box height." @@ -11122,17 +13783,26 @@ { "key": "time", "valueShape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } } }, { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -11140,10 +13810,16 @@ { "key": "descriptions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DescriptionsScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DescriptionsScore" + } + } } }, "description": "Modality-specific descriptive features and their scores." @@ -11158,13 +13834,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -11178,9 +13860,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -11188,9 +13873,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -11198,9 +13886,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -11217,9 +13908,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -11227,9 +13921,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -11237,9 +13934,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -11247,9 +13947,12 @@ { "key": "num_predictions", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of predictions that were generated by this job." @@ -11257,9 +13960,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of errors that occurred while running this job." @@ -11276,9 +13982,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -11286,9 +13995,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -11296,9 +14008,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -11306,9 +14021,12 @@ { "key": "num_predictions", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of predictions that were generated by this job." @@ -11316,9 +14034,12 @@ { "key": "num_errors", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of errors that occurred while running this job." @@ -11335,9 +14056,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -11345,9 +14069,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -11355,9 +14082,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -11365,25 +14095,40 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:TrainingCustomModel" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingCustomModel" + } } }, { "key": "alternatives", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingCustomModel" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:TrainingCustomModel" } } } @@ -11400,17 +14145,26 @@ { "key": "output", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -11418,18 +14172,24 @@ { "key": "error", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "task_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11445,20 +14205,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -11466,12 +14235,21 @@ { "key": "tags", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Tag" + } + } + } } } } @@ -11487,15 +14265,21 @@ { "displayName": "Dataset Id", "shape": { - "type": "id", - "id": "type_:DatasetId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetId" + } } }, { "displayName": "Dataset Version Id", "shape": { - "type": "id", - "id": "type_:DatasetVersionId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:DatasetVersionId" + } } } ] @@ -11510,9 +14294,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11528,9 +14315,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11546,9 +14336,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the descriptive feature being expressed." @@ -11556,9 +14349,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Embedding value for the descriptive feature being expressed." @@ -11589,12 +14385,21 @@ { "key": "registry_file_details", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RegistryFileDetail" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RegistryFileDetail" + } + } + } } } }, @@ -11612,9 +14417,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the emotion being expressed." @@ -11622,9 +14430,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Embedding value for the emotion being expressed." @@ -11641,9 +14452,12 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error message." @@ -11651,9 +14465,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -11670,10 +14487,16 @@ { "key": "validation", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ValidationArgs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationArgs" + } + } } } } @@ -11689,12 +14512,18 @@ { "key": "fps_pred", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 3 + } + } } } }, @@ -11703,14 +14532,20 @@ { "key": "prob_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.99 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.99 + } + } } } }, @@ -11719,11 +14554,17 @@ { "key": "identify_faces", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11732,13 +14573,19 @@ { "key": "min_face_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 10, - "default": 60 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 10, + "default": 60 + } + } } } }, @@ -11747,31 +14594,49 @@ { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "save_faces", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11789,9 +14654,12 @@ { "key": "frame", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Frame number" @@ -11799,9 +14667,12 @@ { "key": "time", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Time in seconds when face detection occurred." @@ -11809,9 +14680,12 @@ { "key": "prob", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "The predicted probability that a detected face was actually a face." @@ -11819,17 +14693,26 @@ { "key": "box", "valueShape": { - "type": "id", - "id": "type_:BoundingBox" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BoundingBox" + } } }, { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -11837,12 +14720,21 @@ { "key": "facs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacsScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacsScore" + } + } + } } } }, @@ -11851,12 +14743,21 @@ { "key": "descriptions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:DescriptionsScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DescriptionsScore" + } + } + } } } }, @@ -11874,10 +14775,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -11894,9 +14801,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the FACS 2.0 feature being expressed." @@ -11904,9 +14814,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Embedding value for the FACS 2.0 feature being expressed." @@ -11923,9 +14836,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -11933,9 +14849,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -11943,9 +14862,12 @@ { "key": "ended_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job ended (Unix timestamp in milliseconds)." @@ -11953,9 +14875,12 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error message." @@ -11972,11 +14897,17 @@ { "key": "filename", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11985,11 +14916,17 @@ { "key": "content_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11998,9 +14935,12 @@ { "key": "md5sum", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The MD5 checksum of the file." @@ -12038,9 +14978,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12048,10 +14991,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BurstPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BurstPrediction" + } + } } } } @@ -12067,9 +15016,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12077,10 +15029,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacePrediction" + } + } } } } @@ -12096,9 +15054,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12106,10 +15067,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:FacemeshPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FacemeshPrediction" + } + } } } } @@ -12125,9 +15092,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12135,10 +15105,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LanguagePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LanguagePrediction" + } + } } } } @@ -12154,9 +15130,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12164,10 +15143,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:NerPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:NerPrediction" + } + } } } } @@ -12183,9 +15168,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals." @@ -12193,10 +15181,16 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProsodyPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProsodyPrediction" + } + } } } } @@ -12212,9 +15206,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -12222,9 +15219,12 @@ { "key": "started_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job started (Unix timestamp in milliseconds)." @@ -12241,33 +15241,54 @@ { "key": "models", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Models" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Models" + } + } } } }, { "key": "transcription", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Transcription" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Transcription" + } + } } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12277,13 +15298,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12293,13 +15323,22 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12309,11 +15348,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12322,11 +15367,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -12344,9 +15395,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -12354,8 +15408,11 @@ { "key": "models", "valueShape": { - "type": "id", - "id": "type_:ModelsPredictions" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelsPredictions" + } } } ] @@ -12370,33 +15427,54 @@ { "key": "models", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Models" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Models" + } + } } } }, { "key": "transcription", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Transcription" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Transcription" + } + } } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12406,13 +15484,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12422,13 +15509,22 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12438,11 +15534,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12451,11 +15553,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -12464,10 +15572,16 @@ { "key": "files", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } + } } } } @@ -12483,20 +15597,32 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:InferencePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferencePrediction" + } + } } } }, { "key": "errors", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Error" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Error" + } + } } } } @@ -12512,28 +15638,43 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:InferenceResults" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceResults" + } + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12551,9 +15692,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -12561,24 +15705,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:EmbeddingGenerationBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmbeddingGenerationBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateEmbeddingGeneration" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateEmbeddingGeneration" + } } } ] @@ -12593,9 +15746,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -12603,24 +15759,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:InferenceRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateInference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateInference" + } } } ] @@ -12635,9 +15800,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -12645,24 +15813,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:TlInferenceBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateTlInference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateTlInference" + } } } ] @@ -12677,9 +15854,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID associated with this job." @@ -12687,24 +15867,33 @@ { "key": "user_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "request", "valueShape": { - "type": "id", - "id": "type_:TrainingBaseRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TrainingBaseRequest" + } } }, { "key": "state", "valueShape": { - "type": "id", - "id": "type_:StateTraining" + "type": "alias", + "value": { + "type": "id", + "id": "type_:StateTraining" + } } } ] @@ -12719,9 +15908,12 @@ { "key": "job_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the started job." @@ -12738,41 +15930,65 @@ { "key": "granularity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Granularity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Granularity" + } + } } } }, { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -12790,9 +16006,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A segment of text (like a word or a sentence)." @@ -12800,28 +16019,43 @@ { "key": "position", "valueShape": { - "type": "id", - "id": "type_:PositionInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PositionInterval" + } } }, { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } + } } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -12830,11 +16064,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -12843,10 +16083,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -12854,12 +16100,21 @@ { "key": "sentiment", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SentimentScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SentimentScore" + } + } + } } } }, @@ -12868,12 +16123,21 @@ { "key": "toxicity", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ToxicityScore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToxicityScore" + } + } + } } } }, @@ -12891,60 +16155,96 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Face" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Face" + } + } } } }, { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } }, { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Prosody" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Prosody" + } + } } } }, { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Language" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Language" + } + } } } }, { "key": "ner", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Ner" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Ner" + } + } } } }, { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Unconfigurable" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Unconfigurable" + } + } } } } @@ -12960,60 +16260,96 @@ { "key": "face", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullFacePrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullFacePrediction" + } + } } } }, { "key": "burst", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullBurstPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullBurstPrediction" + } + } } } }, { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataProsodyPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataProsodyPrediction" + } + } } } }, { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataLanguagePrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataLanguagePrediction" + } + } } } }, { "key": "ner", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalTranscriptionMetadataNerPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalTranscriptionMetadataNerPrediction" + } + } } } }, { "key": "facemesh", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PredictionsOptionalNullFacemeshPrediction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PredictionsOptionalNullFacemeshPrediction" + } + } } } } @@ -13029,11 +16365,17 @@ { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -13051,9 +16393,12 @@ { "key": "entity", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The recognized topic or entity." @@ -13061,16 +16406,22 @@ { "key": "position", "valueShape": { - "type": "id", - "id": "type_:PositionInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PositionInterval" + } } }, { "key": "entity_confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Our NER model's relative confidence in the recognized topic or entity." @@ -13078,9 +16429,12 @@ { "key": "support", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "A measure of how often the entity is linked to by other entities." @@ -13088,9 +16442,12 @@ { "key": "uri", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A URL which provides more information about the recognized topic or entity." @@ -13098,9 +16455,12 @@ { "key": "link_word", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The specific word to which the emotion predictions are linked." @@ -13108,21 +16468,33 @@ { "key": "time", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } + } } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -13131,11 +16503,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -13144,10 +16522,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -13163,13 +16547,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -13184,9 +16574,12 @@ { "key": "begin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the first character in the text segment, inclusive." @@ -13194,9 +16587,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The index of the last character in the text segment, exclusive." @@ -13213,20 +16609,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsBurstPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsBurstPrediction" + } + } } } } @@ -13242,20 +16650,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsFacePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsFacePrediction" + } + } } } } @@ -13271,20 +16691,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Null" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Null" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsFacemeshPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsFacemeshPrediction" + } + } } } } @@ -13300,20 +16732,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsLanguagePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsLanguagePrediction" + } + } } } } @@ -13329,20 +16773,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsNerPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsNerPrediction" + } + } } } } @@ -13358,20 +16814,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TranscriptionMetadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TranscriptionMetadata" + } + } } } }, { "key": "grouped_predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GroupedPredictionsProsodyPrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GroupedPredictionsProsodyPrediction" + } + } } } } @@ -13387,31 +16855,49 @@ { "key": "granularity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Granularity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Granularity" + } + } } } }, { "key": "window", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Window" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Window" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -13429,11 +16915,17 @@ { "key": "text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -13442,18 +16934,27 @@ { "key": "time", "valueShape": { - "type": "id", - "id": "type_:TimeInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TimeInterval" + } } }, { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -13462,11 +16963,17 @@ { "key": "speaker_confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -13475,10 +16982,16 @@ { "key": "emotions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:EmotionScore" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScore" + } + } } }, "description": "A high-dimensional embedding in emotion space." @@ -13495,9 +17008,12 @@ { "key": "created_timestamp_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "When this job was created (Unix timestamp in milliseconds)." @@ -13514,9 +17030,12 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File ID in the Asset Registry" @@ -13524,9 +17043,12 @@ { "key": "file_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "URL to the file in the Asset Registry" @@ -13541,13 +17063,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -13561,9 +17089,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Level of sentiment, ranging from `1` (negative) to `9` (positive)" @@ -13571,9 +17102,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Prediction for this level of sentiment" @@ -13665,9 +17199,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The URL of the source media file." @@ -14012,9 +17549,12 @@ { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A file path relative to the top level source URL or file." @@ -14022,25 +17562,37 @@ { "key": "file_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "custom_models", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelPrediction" + } } - }, - "valueShape": { - "type": "id", - "id": "type_:CustomModelPrediction" } } } @@ -14056,20 +17608,32 @@ { "key": "predictions", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TlInferencePrediction" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferencePrediction" + } + } } } }, { "key": "errors", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Error" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Error" + } + } } } } @@ -14085,28 +17649,43 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TlInferenceResults" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceResults" + } + } } } }, { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14124,18 +17703,24 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14149,25 +17734,34 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14220,13 +17814,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -14241,9 +17841,12 @@ { "key": "begin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Beginning of time range in seconds." @@ -14251,9 +17854,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "End of time range in seconds." @@ -14270,20 +17876,32 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:CustomModel" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModel" + } } }, { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14293,13 +17911,22 @@ { "key": "registry_files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -14309,11 +17936,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14322,11 +17955,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -14343,15 +17982,21 @@ { "displayName": "Custom Model Id", "shape": { - "type": "id", - "id": "type_:CustomModelId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelId" + } } }, { "displayName": "Custom Model Version Id", "shape": { - "type": "id", - "id": "type_:CustomModelVersionId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelVersionId" + } } } ] @@ -14366,9 +18011,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14384,9 +18032,12 @@ { "key": "version_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14402,9 +18053,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Category of toxicity." @@ -14412,9 +18066,12 @@ { "key": "score", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Prediction for this category of toxicity" @@ -14431,26 +18088,38 @@ { "key": "custom_model", "valueShape": { - "type": "id", - "id": "type_:CustomModelRequest" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomModelRequest" + } } }, { "key": "dataset", "valueShape": { - "type": "id", - "id": "type_:Dataset" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Dataset" + } } }, { "key": "target_feature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "label" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "label" + } + } } } } @@ -14458,32 +18127,53 @@ { "key": "task", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Task" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Task" + } + } } } }, { "key": "evaluation", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EvaluationArgs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EvaluationArgs" + } + } } } }, { "key": "alternatives", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Alternative" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Alternative" + } + } + } } } } @@ -14491,11 +18181,17 @@ { "key": "callback_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14503,11 +18199,17 @@ { "key": "notify", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -14524,20 +18226,29 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "version_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14554,21 +18265,33 @@ { "key": "language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Bcp47Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Bcp47Tag" + } + } } } }, { "key": "identify_speakers", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -14577,14 +18300,20 @@ { "key": "confidence_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.5 + } + } } } }, @@ -14603,9 +18332,12 @@ { "key": "confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Value between `0.0` and `1.0` indicating our transcription model's relative confidence in the transcription of your media file." @@ -14613,10 +18345,16 @@ { "key": "detected_language", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Bcp47Tag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Bcp47Tag" + } + } } } } @@ -14651,13 +18389,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -14747,15 +18491,21 @@ { "displayName": "Inference Source Predict Result", "shape": { - "type": "id", - "id": "type_:InferenceSourcePredictResult" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InferenceSourcePredictResult" + } } }, { "displayName": "Tl Inference Source Predict Result", "shape": { - "type": "id", - "id": "type_:TlInferenceSourcePredictResult" + "type": "alias", + "value": { + "type": "id", + "id": "type_:TlInferenceSourcePredictResult" + } } } ] @@ -14770,10 +18520,16 @@ { "key": "positive_label", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } + } } } } @@ -14803,13 +18559,19 @@ { "key": "length", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0.5, - "default": 4 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0.5, + "default": 4 + } + } } } }, @@ -14818,13 +18580,19 @@ { "key": "step", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0.5, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0.5, + "default": 1 + } + } } } }, @@ -14886,11 +18654,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -14899,11 +18673,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -14912,11 +18692,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15026,9 +18812,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Tool." @@ -15036,11 +18825,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15049,11 +18844,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15062,9 +18863,12 @@ { "key": "parameters", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Stringified JSON defining the parameters used by this version of the Tool." @@ -15072,11 +18876,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15092,8 +18902,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } } } } @@ -15178,9 +18991,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15190,11 +19006,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15203,11 +19025,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15216,11 +19044,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15315,9 +19149,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15332,11 +19169,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15345,11 +19188,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15358,9 +19207,12 @@ { "key": "parameters", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Stringified JSON defining the parameters used by this version of the Tool." @@ -15368,11 +19220,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15388,8 +19246,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } } } } @@ -15475,9 +19336,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15539,9 +19403,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15556,9 +19423,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Tool." @@ -15636,9 +19506,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15646,9 +19519,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a tool. Version numbers should be integers." @@ -15661,8 +19537,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } } } } @@ -15748,9 +19627,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15758,9 +19640,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a tool. Version numbers should be integers." @@ -15831,9 +19716,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -15841,9 +19729,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a tool. Version numbers should be integers." @@ -15858,11 +19749,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15878,8 +19775,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } } } } @@ -15959,11 +19859,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15972,11 +19878,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15985,11 +19897,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16080,9 +19998,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Prompt." @@ -16090,11 +20011,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16103,9 +20030,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Text used for this version of the Prompt." @@ -16120,8 +20050,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } } } } @@ -16200,9 +20133,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a tool. Formatted as a UUID." @@ -16212,11 +20148,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16225,11 +20167,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16238,11 +20186,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16334,9 +20288,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16351,11 +20308,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16364,9 +20327,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Text used for this version of the Prompt." @@ -16381,8 +20347,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } } } } @@ -16462,9 +20431,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16526,9 +20498,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16543,9 +20518,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Prompt." @@ -16623,9 +20601,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16633,9 +20614,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a prompt. Version numbers should be integers." @@ -16648,8 +20632,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } } } } @@ -16732,9 +20719,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16742,9 +20732,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a prompt. Version numbers should be integers." @@ -16815,9 +20808,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a prompt. Formatted as a UUID." @@ -16825,9 +20821,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a prompt. Version numbers should be integers." @@ -16842,11 +20841,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16862,8 +20867,11 @@ "value": { "type": "optional", "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } } } } @@ -16938,11 +20946,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16951,11 +20965,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16964,11 +20984,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -17070,9 +21096,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Config." @@ -17080,11 +21109,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17093,44 +21128,74 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedPromptSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedPromptSpec" + } + } } } }, { "key": "voice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedVoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedVoice" + } + } } } }, { "key": "language_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedLanguageModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedLanguageModel" + } + } } } }, { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedUserDefinedToolSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedUserDefinedToolSpec" + } + } + } + } } } } @@ -17140,14 +21205,26 @@ { "key": "builtin_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedBuiltinTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedBuiltinTool" + } + } + } + } } } } @@ -17279,9 +21356,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17291,11 +21371,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17304,11 +21390,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17317,11 +21409,17 @@ { "key": "restrict_to_most_recent", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -17424,9 +21522,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17441,11 +21542,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17454,44 +21561,74 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedPromptSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedPromptSpec" + } + } } } }, { "key": "voice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedVoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedVoice" + } + } } } }, { "key": "language_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedLanguageModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedLanguageModel" + } + } } } }, { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedUserDefinedToolSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedUserDefinedToolSpec" + } + } + } + } } } } @@ -17501,14 +21638,26 @@ { "key": "builtin_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedBuiltinTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedBuiltinTool" + } + } + } + } } } } @@ -17640,9 +21789,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17704,9 +21856,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17721,9 +21876,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Config." @@ -17801,9 +21959,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17811,9 +21972,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a config. Version numbers should be integers." @@ -17946,9 +22110,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -17956,9 +22123,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a config. Version numbers should be integers." @@ -18029,9 +22199,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a config. Formatted as a UUID." @@ -18039,9 +22212,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a config. Version numbers should be integers." @@ -18056,11 +22232,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18188,11 +22370,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18201,11 +22389,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18298,9 +22492,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a chat. Formatted as a UUID." @@ -18310,11 +22507,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18323,11 +22526,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18426,11 +22635,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18439,11 +22654,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18535,9 +22756,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a chat. Formatted as a UUID." @@ -18547,11 +22771,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18560,11 +22790,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18573,11 +22809,17 @@ { "key": "ascending_order", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -18692,11 +22934,17 @@ { "key": "access_token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18705,11 +22953,17 @@ { "key": "config_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18718,11 +22972,17 @@ { "key": "config_version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18731,11 +22991,17 @@ { "key": "resumed_chat_group_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18777,71 +23043,101 @@ { "displayName": "Assistant End", "shape": { - "type": "id", - "id": "type_:AssistantEnd" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AssistantEnd" + } } }, { "displayName": "Assistant Message", "shape": { - "type": "id", - "id": "type_:AssistantMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AssistantMessage" + } } }, { "displayName": "Audio Output", "shape": { - "type": "id", - "id": "type_:AudioOutput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AudioOutput" + } } }, { "displayName": "Chat Metadata", "shape": { - "type": "id", - "id": "type_:ChatMetadata" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMetadata" + } } }, { "displayName": "Web Socket Error", "shape": { - "type": "id", - "id": "type_:WebSocketError" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebSocketError" + } } }, { "displayName": "User Interruption", "shape": { - "type": "id", - "id": "type_:UserInterruption" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserInterruption" + } } }, { "displayName": "User Message", "shape": { - "type": "id", - "id": "type_:UserMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserMessage" + } } }, { "displayName": "Tool Call Message", "shape": { - "type": "id", - "id": "type_:ToolCallMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolCallMessage" + } } }, { "displayName": "Tool Response Message", "shape": { - "type": "id", - "id": "type_:ToolResponseMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponseMessage" + } } }, { "displayName": "Tool Error Message", "shape": { - "type": "id", - "id": "type_:ToolErrorMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolErrorMessage" + } } } ] @@ -18855,57 +23151,81 @@ { "displayName": "Audio Input", "shape": { - "type": "id", - "id": "type_:AudioInput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AudioInput" + } } }, { "displayName": "Session Settings", "shape": { - "type": "id", - "id": "type_:SessionSettings" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SessionSettings" + } } }, { "displayName": "User Input", "shape": { - "type": "id", - "id": "type_:UserInput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:UserInput" + } } }, { "displayName": "Assistant Input", "shape": { - "type": "id", - "id": "type_:AssistantInput" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AssistantInput" + } } }, { "displayName": "Tool Response Message", "shape": { - "type": "id", - "id": "type_:ToolResponseMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponseMessage" + } } }, { "displayName": "Tool Error Message", "shape": { - "type": "id", - "id": "type_:ToolErrorMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolErrorMessage" + } } }, { "displayName": "Pause Assistant Message", "shape": { - "type": "id", - "id": "type_:PauseAssistantMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PauseAssistantMessage" + } } }, { "displayName": "Resume Assistant Message", "shape": { - "type": "id", - "id": "type_:ResumeAssistantMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ResumeAssistantMessage" + } } } ] @@ -18921,9 +23241,12 @@ { "key": "tool_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of Tool. Values from the ToolType enum." @@ -18931,9 +23254,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a Tool. Formatted as a UUID." @@ -18941,9 +23267,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique." @@ -18951,9 +23280,12 @@ { "key": "version_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Inidicates whether this tool is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum." @@ -18961,11 +23293,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18974,9 +23312,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Tool." @@ -18984,9 +23325,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the first version of this tool was created." @@ -18994,9 +23338,12 @@ { "key": "modified_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when this version of the tool was created." @@ -19004,11 +23351,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19017,11 +23370,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19030,9 +23389,12 @@ { "key": "parameters", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Stringified JSON defining the parameters used by this version of the Tool." @@ -19050,9 +23412,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a Prompt. Formatted as a UUID." @@ -19060,9 +23425,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique." @@ -19070,9 +23438,12 @@ { "key": "version_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Inidicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum." @@ -19080,11 +23451,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19093,9 +23470,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Prompt." @@ -19103,9 +23483,12 @@ { "key": "created_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the first version of this prompt was created." @@ -19113,9 +23496,12 @@ { "key": "modified_on", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when this version of the prompt was created." @@ -19123,9 +23509,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Text used for this version of the Prompt." @@ -19143,9 +23532,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Tool." @@ -19153,11 +23545,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19200,10 +23598,16 @@ { "key": "model_provider", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PostedLanguageModelModelProvider" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedLanguageModelModelProvider" + } + } } }, "description": "The provider of this model. Based on the enum modelProvider." @@ -19211,11 +23615,17 @@ { "key": "model_resource", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19224,11 +23634,17 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -19247,9 +23663,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a Prompt. Formatted as a UUID." @@ -19257,11 +23676,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19280,9 +23705,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a Tool. Formatted as a UUID." @@ -19290,11 +23718,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19328,12 +23762,18 @@ { "key": "provider", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "HUME_AI" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "HUME_AI" + } + } } } }, @@ -19342,8 +23782,11 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:PostedVoiceName" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PostedVoiceName" + } }, "description": "String with the name of the voice to use." } @@ -19360,9 +23803,12 @@ { "key": "tool_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of Tool. Values from the ToolType enum." @@ -19370,9 +23816,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name applied to all versions of a particular Tool." @@ -19380,11 +23829,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19403,11 +23858,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19416,11 +23877,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19429,11 +23896,17 @@ { "key": "version_description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19442,11 +23915,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19455,24 +23934,36 @@ { "key": "created_on", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, "description": "The timestamp when the first version of this config was created." - }, - { - "key": "modified_on", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + }, + { + "key": "modified_on", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19481,44 +23972,74 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } + } } } }, { "key": "voice", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnVoice" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnVoice" + } + } } } }, { "key": "language_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnLanguageModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnLanguageModel" + } + } } } }, { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } + } + } + } } } } @@ -19528,14 +24049,26 @@ { "key": "builtin_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnBuiltinTool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnBuiltinTool" + } + } + } + } } } } @@ -19555,11 +24088,17 @@ { "key": "model_provider", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19568,11 +24107,17 @@ { "key": "model_resource", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19581,11 +24126,17 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -19604,9 +24155,12 @@ { "key": "provider", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The provider of the voice to use. Based on the enum VoiceProvider." @@ -19614,9 +24168,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String with the name of the voice to use." @@ -19634,9 +24191,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -19644,9 +24204,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -19654,12 +24217,21 @@ { "key": "tools_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnUserDefinedTool" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnUserDefinedTool" + } + } + } } } }, @@ -19678,9 +24250,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -19688,9 +24263,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -19698,12 +24276,21 @@ { "key": "prompts_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnPrompt" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnPrompt" + } + } + } } } }, @@ -19722,11 +24309,17 @@ { "key": "page_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19735,11 +24328,17 @@ { "key": "page_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19748,12 +24347,21 @@ { "key": "configs_page", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnConfig" + } + } + } } } }, @@ -19772,9 +24380,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a chat. Formatted as a UUID." @@ -19782,9 +24393,12 @@ { "key": "chat_group_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID." @@ -19792,11 +24406,17 @@ { "key": "tag", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19805,9 +24425,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The status of the chat. Values from the ChatStatus enum." @@ -19815,9 +24438,12 @@ { "key": "start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the chat started, formatted as a Unix epoch milliseconds." @@ -19825,11 +24451,17 @@ { "key": "end_timestamp", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19838,11 +24470,17 @@ { "key": "event_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19851,11 +24489,17 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19864,10 +24508,16 @@ { "key": "config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnConfigSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnConfigSpec" + } + } } } } @@ -19884,9 +24534,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a Config. Formatted as a UUID." @@ -19894,11 +24547,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19917,9 +24576,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -19927,9 +24589,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -19937,10 +24602,16 @@ { "key": "chats_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnChat" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnChat" + } + } } }, "description": "List of chats and their metadata returned for the specified page number and page size." @@ -19958,9 +24629,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a chat event. Formatted as a UUID." @@ -19968,9 +24642,12 @@ { "key": "chat_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat this event occurred in. Formatted as a UUID." @@ -19978,9 +24655,12 @@ { "key": "timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds." @@ -19988,9 +24668,12 @@ { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role of the user who generated the chat event. Values from the Role enum." @@ -19998,9 +24681,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of chat event. Values from the ChatEventType enum." @@ -20008,11 +24694,17 @@ { "key": "message_text", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20021,11 +24713,17 @@ { "key": "emotion_features", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20034,11 +24732,17 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20057,9 +24761,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for a chat. Formatted as a UUID." @@ -20067,9 +24774,12 @@ { "key": "chat_group_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID." @@ -20077,11 +24787,17 @@ { "key": "tag", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20090,9 +24806,12 @@ { "key": "status", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The status of the chat. Values from the ChatStatus enum." @@ -20100,9 +24819,12 @@ { "key": "start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the chat started, formatted as a Unix epoch milliseconds." @@ -20110,11 +24832,17 @@ { "key": "end_timestamp", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -20123,10 +24851,16 @@ { "key": "events_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnChatEvent" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnChatEvent" + } + } } }, "description": "List of chat events with the specified page number and page size." @@ -20134,11 +24868,17 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20147,9 +24887,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -20157,9 +24900,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -20167,10 +24913,16 @@ { "key": "config", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnConfigSpec" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnConfigSpec" + } + } } } } @@ -20187,9 +24939,12 @@ { "key": "timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp for when chat status was measured. Formatted as a Unix epoch milliseconds." @@ -20197,9 +24952,12 @@ { "key": "total_user_active_chats", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of active chats for this user." @@ -20207,11 +24965,17 @@ { "key": "max_allowed_active_chats", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -20220,9 +24984,12 @@ { "key": "more_active_chats_allowed", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Boolean indicating if the user is allowed to start more chats." @@ -20230,14 +24997,26 @@ { "key": "per_tag", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ReturnActiveChatCountPerTag" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnActiveChatCountPerTag" + } + } + } + } } } } @@ -20257,9 +25036,12 @@ { "key": "tag", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "User tag applied to a chat." @@ -20267,9 +25049,12 @@ { "key": "total_tag_active_chats", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of active chats for this user with the specified tag." @@ -20287,9 +25072,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID." @@ -20297,9 +25085,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -20307,9 +25098,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -20317,9 +25111,12 @@ { "key": "pagination_direction", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The direction of the pagination (ASC or DESC)." @@ -20327,10 +25124,16 @@ { "key": "events_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnChatEvent" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnChatEvent" + } + } } }, "description": "List of chat_events returned for the specified page number and page size." @@ -20348,9 +25151,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID." @@ -20358,9 +25164,12 @@ { "key": "first_start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds." @@ -20368,9 +25177,12 @@ { "key": "most_recent_start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds." @@ -20378,9 +25190,12 @@ { "key": "num_chats", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of chats in this chat group." @@ -20388,9 +25203,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -20398,9 +25216,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -20408,10 +25229,16 @@ { "key": "chats_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnChat" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnChat" + } + } } }, "description": "List of chats and their metadata returned for the specified page number and page size." @@ -20419,11 +25246,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -20441,9 +25274,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID." @@ -20451,9 +25287,12 @@ { "key": "first_start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds." @@ -20461,9 +25300,12 @@ { "key": "most_recent_start_timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds." @@ -20471,11 +25313,17 @@ { "key": "most_recent_chat_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20484,9 +25332,12 @@ { "key": "num_chats", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The total number of chats in this chat group." @@ -20494,11 +25345,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -20516,9 +25373,12 @@ { "key": "page_number", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The page number of the returned results." @@ -20526,9 +25386,12 @@ { "key": "page_size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of results returned per page." @@ -20536,10 +25399,16 @@ { "key": "chat_groups_page", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ReturnChatGroup" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReturnChatGroup" + } + } } }, "description": "List of chat_groups and their metadata returned for the specified page number and page size." @@ -20557,11 +25426,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20569,10 +25444,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "assistant_end" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "assistant_end" + } } }, "description": "The type of message sent through the socket; for an Assistant End message, this must be 'assistant_end'." @@ -20590,11 +25468,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20602,9 +25486,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Text to be synthesized." @@ -20612,10 +25499,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "assistant_input" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "assistant_input" + } } }, "description": "The type of message sent through the socket; for an Assistant Input message, this must be 'assistant_input'." @@ -20632,12 +25522,18 @@ "properties": [ { "key": "custom_session_id", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20645,9 +25541,12 @@ { "key": "from_text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Indicates if this message was constructed from a text input message." @@ -20655,11 +25554,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20668,26 +25573,35 @@ { "key": "message", "valueShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } }, "description": "Transcript of the message." }, { "key": "models", "valueShape": { - "type": "id", - "id": "type_:Inference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Inference" + } }, "description": "Inference model results." }, { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "assistant_message" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "assistant_message" + } } }, "description": "The type of message sent through the socket; for an Assistant Message, this must be 'assistant_message'." @@ -20704,9 +25618,12 @@ { "key": "channels", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of channels." @@ -20714,17 +25631,23 @@ { "key": "encoding", "valueShape": { - "type": "id", - "id": "type_:Encoding" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Encoding" + } }, "description": "Audio encoding." }, { "key": "sample_rate", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Audio sample rate." @@ -20742,11 +25665,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20754,9 +25683,12 @@ { "key": "data", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Base64 encoded audio input." @@ -20764,10 +25696,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "audio_input" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "audio_input" + } } }, "description": "The type of message sent through the socket; for an Audio Input message, this must be 'audio_input'." @@ -20785,11 +25720,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20797,9 +25738,12 @@ { "key": "data", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Base64 encoded audio output." @@ -20807,9 +25751,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the audio output." @@ -20817,10 +25764,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "audio_output" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "audio_output" + } } }, "description": "The type of message sent through the socket; for an Audio Output message, this must be 'audio_output'." @@ -20850,11 +25800,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20862,8 +25818,11 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:BuiltInTool" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BuiltInTool" + } } } ] @@ -20878,15 +25837,21 @@ { "displayName": "Tool Response Message", "shape": { - "type": "id", - "id": "type_:ToolResponseMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolResponseMessage" + } } }, { "displayName": "Tool Error Message", "shape": { - "type": "id", - "id": "type_:ToolErrorMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolErrorMessage" + } } } ] @@ -20901,11 +25866,17 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20913,28 +25884,43 @@ { "key": "role", "valueShape": { - "type": "id", - "id": "type_:Role" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Role" + } }, "description": "Role of who is providing the message." }, { "key": "tool_call", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolCallMessage" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolCallMessage" + } + } } } }, { "key": "tool_result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ChatMessageToolResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessageToolResult" + } + } } }, "description": "Function call response from client." @@ -20952,9 +25938,12 @@ { "key": "chat_group_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the chat group. Used to resume a chat." @@ -20962,9 +25951,12 @@ { "key": "chat_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the chat." @@ -20972,11 +25964,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20984,10 +25982,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "chat_metadata" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "chat_metadata" + } } }, "description": "The type of message sent through the socket; for a Chat Metadata message, this must be 'chat_metadata'." @@ -21004,9 +26005,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "User context to inject." @@ -21014,10 +26018,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ContextType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContextType" + } + } } }, "description": "The persistence level of the injected context." @@ -21051,432 +26061,576 @@ { "key": "Admiration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Adoration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Aesthetic Appreciation", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Amusement", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Anger", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Anxiety", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Awe", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Awkwardness", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Boredom", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Calmness", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Concentration", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Confusion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Contemplation", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Contempt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Contentment", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Craving", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Desire", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Determination", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Disappointment", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Disgust", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Distress", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Doubt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Ecstasy", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Embarrassment", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Empathic Pain", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Entrancement", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Envy", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Excitement", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Fear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Guilt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Horror", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Interest", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Joy", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Love", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Nostalgia", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Pain", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Pride", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Realization", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Relief", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Romance", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Sadness", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Satisfaction", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Shame", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Surprise (negative)", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Surprise (positive)", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Sympathy", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Tiredness", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Triumph", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } } @@ -21506,9 +26660,12 @@ { "key": "code", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Error code." @@ -21516,11 +26673,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21528,9 +26691,12 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Error message." @@ -21538,9 +26704,12 @@ { "key": "slug", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Error slug." @@ -21548,10 +26717,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "error" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "error" + } } }, "description": "The type of message sent through the socket; for a Web Socket Error message, this must be 'error'." @@ -21581,10 +26753,16 @@ { "key": "prosody", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProsodyInference" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProsodyInference" + } + } } } } @@ -21600,9 +26778,12 @@ { "key": "begin", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Start time of the interval in milliseconds." @@ -21610,9 +26791,12 @@ { "key": "end", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "End time of the interval in milliseconds." @@ -21630,11 +26814,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21642,12 +26832,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "pause_assistant_message" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "pause_assistant_message" + } + } } } }, @@ -21665,8 +26861,11 @@ { "key": "scores", "valueShape": { - "type": "id", - "id": "type_:EmotionScores" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EmotionScores" + } } } ] @@ -21682,11 +26881,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21694,12 +26899,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "resume_assistant_message" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "resume_assistant_message" + } + } } } }, @@ -21741,22 +26952,37 @@ { "key": "audio", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AudioConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AudioConfiguration" + } + } } } }, { "key": "builtin_tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BuiltinToolConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BuiltinToolConfig" + } + } + } } } } @@ -21764,11 +26990,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21776,11 +27008,17 @@ { "key": "language_model_api_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21788,11 +27026,17 @@ { "key": "system_prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21800,12 +27044,21 @@ { "key": "tools", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Tool" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Tool" + } + } + } } } } @@ -21813,10 +27066,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "session_settings" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "session_settings" + } } }, "description": "The type of message sent through the socket; for a Session Settings message, this must be 'session_settings'." @@ -21833,11 +27089,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21845,11 +27107,17 @@ { "key": "fallback_content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21857,9 +27125,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the tool." @@ -21867,9 +27138,12 @@ { "key": "parameters", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Parameters of the tool. Is a stringified JSON schema." @@ -21877,8 +27151,11 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } }, "description": "Type of tool." } @@ -21895,11 +27172,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21907,9 +27190,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the tool called." @@ -21917,9 +27203,12 @@ { "key": "parameters", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Parameters of the tool call. Is a stringified JSON schema." @@ -21927,9 +27216,12 @@ { "key": "response_required", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Whether a response is required from the developer." @@ -21937,9 +27229,12 @@ { "key": "tool_call_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the tool call." @@ -21947,20 +27242,29 @@ { "key": "tool_type", "valueShape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } }, "description": "Type of tool called, either 'builtin' or 'function'." }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "tool_call" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "tool_call" + } + } } } }, @@ -21979,11 +27283,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21991,11 +27301,17 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22003,11 +27319,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22015,9 +27337,12 @@ { "key": "error", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Error message from the tool call, not exposed to the LLM or user." @@ -22025,19 +27350,28 @@ { "key": "level", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ErrorLevel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorLevel" + } + } } } }, { "key": "tool_call_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the tool call." @@ -22045,22 +27379,34 @@ { "key": "tool_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "tool_error" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "tool_error" + } + } } } }, @@ -22079,9 +27425,12 @@ { "key": "content", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Return value of the tool call." @@ -22089,11 +27438,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22101,9 +27456,12 @@ { "key": "tool_call_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the tool call." @@ -22111,11 +27469,17 @@ { "key": "tool_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22123,22 +27487,34 @@ { "key": "tool_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ToolType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ToolType" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "tool_response" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "tool_response" + } + } } } }, @@ -22171,11 +27547,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22183,9 +27565,12 @@ { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "User text to insert into the conversation." @@ -22193,10 +27578,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "user_input" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "user_input" + } } }, "description": "The type of message sent through the socket; for a User Input message, this must be ‘user_input’." @@ -22214,11 +27602,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22226,9 +27620,12 @@ { "key": "time", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Unix timestamp of the detected user interruption." @@ -22236,10 +27633,13 @@ { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "user_interruption" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "user_interruption" + } } }, "description": "The type of message sent through the socket; for a User Interruption message, this must be 'user_interruption'." @@ -22257,11 +27657,17 @@ { "key": "custom_session_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22269,9 +27675,12 @@ { "key": "from_text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Indicates if this message was constructed from a text input message." @@ -22279,34 +27688,46 @@ { "key": "message", "valueShape": { - "type": "id", - "id": "type_:ChatMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ChatMessage" + } }, "description": "Transcript of the message." }, { "key": "models", "valueShape": { - "type": "id", - "id": "type_:Inference" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Inference" + } }, "description": "Inference model results." }, { "key": "time", "valueShape": { - "type": "id", - "id": "type_:MillisecondInterval" + "type": "alias", + "value": { + "type": "id", + "id": "type_:MillisecondInterval" + } }, "description": "Start and End time of user message." }, { "key": "type", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "user_message" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "user_message" + } } } } @@ -22322,12 +27743,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "tts" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "tts" + } + } } } } @@ -22344,12 +27771,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "text_input" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "text_input" + } + } } } } @@ -22366,12 +27799,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "function_call_response" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "function_call_response" + } + } } } } diff --git a/packages/fdr-sdk/src/__test__/output/octoai/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/octoai/apiDefinitions.json index ebad369a0f..664bbce1d7 100644 --- a/packages/fdr-sdk/src/__test__/output/octoai/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/octoai/apiDefinitions.json @@ -98,18 +98,24 @@ { "key": "country", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "company", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -311,9 +317,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint to retrieve" @@ -427,9 +436,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint to delete" @@ -503,9 +515,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint to retrieve" @@ -632,8 +647,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EndpointResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EndpointResponse" + } } } } @@ -740,9 +758,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -832,9 +853,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -908,9 +932,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -920,11 +947,17 @@ { "key": "begin_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -933,11 +966,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -946,11 +985,17 @@ { "key": "max_lines", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -959,11 +1004,17 @@ { "key": "replica_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -977,8 +1028,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:LogEntry" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogEntry" + } } } } @@ -1049,9 +1103,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -1061,11 +1118,17 @@ { "key": "replica_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1079,8 +1142,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:LogEntry" + "type": "alias", + "value": { + "type": "id", + "id": "type_:LogEntry" + } } } } @@ -1147,9 +1213,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -1159,11 +1228,17 @@ { "key": "begin_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -1172,11 +1247,17 @@ { "key": "end_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -1185,11 +1266,17 @@ { "key": "max_lines", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -1198,11 +1285,17 @@ { "key": "replica_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1216,8 +1309,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EventEntry" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EventEntry" + } } } } @@ -1295,9 +1391,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The endpoint name" @@ -1307,11 +1406,17 @@ { "key": "replica_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1325,8 +1430,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:EventEntry" + "type": "alias", + "value": { + "type": "id", + "id": "type_:EventEntry" + } } } } @@ -1475,9 +1583,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the secret to retrieve" @@ -1551,9 +1662,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the secret to create or update" @@ -1568,9 +1682,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1651,9 +1768,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the secret to delete" @@ -1726,9 +1846,12 @@ "value": { "type": "list", "itemShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1866,9 +1989,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the registry credential to retrieve" @@ -1943,9 +2069,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the registry credential to create or update" @@ -1960,23 +2089,35 @@ { "key": "username", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - } - }, - { - "key": "password", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } + }, + { + "key": "password", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2056,9 +2197,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of the registry credential to delete" @@ -2131,8 +2275,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:RegistryCredentialSummary" + "type": "alias", + "value": { + "type": "id", + "id": "type_:RegistryCredentialSummary" + } } } } @@ -2195,8 +2342,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:HostedEndpoint" + "type": "alias", + "value": { + "type": "id", + "id": "type_:HostedEndpoint" + } } } } @@ -2289,8 +2439,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:InstanceTypeInfo" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InstanceTypeInfo" + } } } } @@ -2342,11 +2495,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2363,11 +2522,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2384,11 +2549,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2428,47 +2599,65 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "provider", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "country", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2476,11 +2665,17 @@ { "key": "company", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2488,8 +2683,11 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:AccountStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountStatus" + } } } ] @@ -2534,13 +2732,19 @@ { "key": "min_replicas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 999 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 999 + } + } } } }, @@ -2549,13 +2753,19 @@ { "key": "max_replicas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 999 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 999 + } + } } } }, @@ -2564,13 +2774,19 @@ { "key": "scale_to_zero", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 3600 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 3600 + } + } } } }, @@ -2579,12 +2795,18 @@ { "key": "display_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -2593,12 +2815,18 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -2607,11 +2835,17 @@ { "key": "image_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2620,11 +2854,17 @@ { "key": "registry_credential", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2633,11 +2873,17 @@ { "key": "health_check_path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2646,21 +2892,33 @@ { "key": "visibility", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EndpointUpdateVisibility" - } - }, - "description": "Visibility of the endpoint" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EndpointUpdateVisibility" + } + } + } + }, + "description": "Visibility of the endpoint" }, { "key": "endpoint_state", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EndpointUpdateEndpointState" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EndpointUpdateEndpointState" + } + } } }, "description": "State of a endpoint" @@ -2668,17 +2926,29 @@ { "key": "env_overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -2687,11 +2957,17 @@ { "key": "instance_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2700,13 +2976,22 @@ { "key": "container_secrets", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -2716,13 +3001,19 @@ { "key": "concurrency_per_replica", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "maximum": 500 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "maximum": 500 + } + } } } }, @@ -2740,9 +3031,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the endpoint" @@ -2750,12 +3044,18 @@ { "key": "display_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -2764,12 +3064,18 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -2778,9 +3084,12 @@ { "key": "port", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Port number of the endpoint" @@ -2788,11 +3097,17 @@ { "key": "health_check_path", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2801,11 +3116,17 @@ { "key": "auto_volume_experimental", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -2814,12 +3135,21 @@ { "key": "volumes_experimental", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VolumeExperimental" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VolumeExperimental" + } + } + } } } }, @@ -2828,13 +3158,19 @@ { "key": "min_replicas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 999 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 999 + } + } } } }, @@ -2843,13 +3179,19 @@ { "key": "max_replicas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 999 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 999 + } + } } } }, @@ -2858,13 +3200,19 @@ { "key": "scale_to_zero", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 3600 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 3600 + } + } } } }, @@ -2873,11 +3221,17 @@ { "key": "image_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2886,11 +3240,17 @@ { "key": "registry_credential", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2899,10 +3259,16 @@ { "key": "visibility", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EndpointUpdateVisibility" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EndpointUpdateVisibility" + } + } } }, "description": "Visibility of the endpoint" @@ -2910,10 +3276,16 @@ { "key": "endpoint_state", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EndpointUpdateEndpointState" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EndpointUpdateEndpointState" + } + } } }, "description": "State of a endpoint" @@ -2921,17 +3293,29 @@ { "key": "env_overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -2940,11 +3324,17 @@ { "key": "instance_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2953,13 +3343,22 @@ { "key": "container_secrets", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -2969,13 +3368,19 @@ { "key": "concurrency_per_replica", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "maximum": 500 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "maximum": 500 + } + } } } }, @@ -2993,27 +3398,36 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "path", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -3029,19 +3443,25 @@ { "key": "port_num", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } } }, { "key": "proto", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -3057,9 +3477,12 @@ { "key": "image_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "URL of the docker image" @@ -3067,10 +3490,16 @@ { "key": "exposed_ports", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ContainerPort" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContainerPort" + } + } } }, "description": "Ports exposed by container" @@ -3078,17 +3507,26 @@ { "key": "labels", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3097,11 +3535,17 @@ { "key": "env", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3119,9 +3563,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Opaque token for accessing the volume using OctoAI tooling (e.g. CLI)" @@ -3138,9 +3585,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Secret key" @@ -3148,9 +3598,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Secret value" @@ -3167,9 +3620,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The lookup key for this credential" @@ -3177,9 +3633,12 @@ { "key": "username", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Username corresponding to this credential" @@ -3187,9 +3646,12 @@ { "key": "password", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The password for the credential" @@ -3206,9 +3668,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The lookup key for this credntial" @@ -3216,9 +3681,12 @@ { "key": "username", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Username corresponding to this credential" @@ -3255,10 +3723,13 @@ { "key": "count_2xx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the number of 2xx response codes" @@ -3266,10 +3737,13 @@ { "key": "count_3xx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the number of 3xx response codes" @@ -3277,10 +3751,13 @@ { "key": "count_4xx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the number of 4xx response codes" @@ -3288,10 +3765,13 @@ { "key": "count_5xx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the number of 5xx response codes" @@ -3299,10 +3779,13 @@ { "key": "p99_millis", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the quantile for p99 response times in milliseconds" @@ -3310,10 +3793,13 @@ { "key": "p95_millis", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the quantile for p95 response times in milliseconds" @@ -3321,10 +3807,13 @@ { "key": "p50_millis", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } }, "description": "the quantile for p50 response times in milliseconds" @@ -3341,9 +3830,12 @@ { "key": "timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "time of the log entry (ISO8601 format)" @@ -3351,11 +3843,17 @@ { "key": "replica_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3364,8 +3862,11 @@ { "key": "event", "valueShape": { - "type": "id", - "id": "type_:Event" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Event" + } }, "description": "event log data" } @@ -3396,20 +3897,29 @@ { "key": "level", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:EventLevel" - } - }, - "description": "type of event" - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:EventLevel" + } + } + } + }, + "description": "type of event" + }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "type of the event" @@ -3417,11 +3927,17 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3430,11 +3946,17 @@ { "key": "tenant_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3443,11 +3965,17 @@ { "key": "account_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3456,11 +3984,17 @@ { "key": "instance_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3469,17 +4003,29 @@ { "key": "details", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -3497,9 +4043,12 @@ { "key": "timestamp", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "time of the log entry (ISO8601 format)" @@ -3507,9 +4056,12 @@ { "key": "replica_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "unique ID of the replica" @@ -3517,9 +4069,12 @@ { "key": "data", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "user-provided log data" @@ -3560,9 +4115,12 @@ { "key": "account_key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "account key for this replica" @@ -3570,9 +4128,12 @@ { "key": "endpoint_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "endpoint name" @@ -3580,9 +4141,12 @@ { "key": "replica_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "unique ID of the replica" @@ -3590,27 +4154,36 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:ReplicaStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ReplicaStatus" + } }, "description": "status of the replica" }, { "key": "restarts", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer", - "minimum": 0 + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0 + } } } }, { "key": "age", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "number of seconds this replica has been ready. set to -1 if replica is not ready" @@ -3629,11 +4202,17 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3642,10 +4221,16 @@ { "key": "replicas", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Replica" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Replica" + } + } } }, "description": "Active replicas for the endpoint" @@ -3664,9 +4249,12 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Endpoint to query against" @@ -3674,11 +4262,17 @@ { "key": "is_live", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3711,9 +4305,12 @@ { "key": "instance_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "String to specify when creating/updating an endpoint" @@ -3721,9 +4318,12 @@ { "key": "display_name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "User-friendly name of the instance type" @@ -3731,9 +4331,12 @@ { "key": "vcpu", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of vCPUs available on the instance type" @@ -3741,9 +4344,12 @@ { "key": "ram", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Amount of memory in GB available on the instance type" @@ -3751,9 +4357,12 @@ { "key": "vram", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Amount of video memory in GB available on the instance type" @@ -3761,17 +4370,23 @@ { "key": "accelerator", "valueShape": { - "type": "id", - "id": "type_:InstanceTypeInfoAccelerator" + "type": "alias", + "value": { + "type": "id", + "id": "type_:InstanceTypeInfoAccelerator" + } }, "description": "Type of accelerator attached to this instance type" }, { "key": "available", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "If the hardware target is available right now" @@ -3779,9 +4394,12 @@ { "key": "price", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Price per second in dollars (e.g. 0.0001 for 1/100th of a cent) to use this instance type" @@ -3854,11 +4472,17 @@ { "key": "face_enhance", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -3867,11 +4491,17 @@ { "key": "init_image_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3879,11 +4509,17 @@ { "key": "init_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3891,10 +4527,16 @@ { "key": "model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UpscalingModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UpscalingModel" + } + } } }, "description": "One of UpscalingModel, identifies the upscaling model to use." @@ -3902,11 +4544,17 @@ { "key": "output_image_height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -3914,11 +4562,17 @@ { "key": "output_image_width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -3926,10 +4580,16 @@ { "key": "output_image_encoding", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageEncoding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageEncoding" + } + } } }, "description": "Define which encoding process should be applied before returning the modified image." @@ -3937,11 +4597,17 @@ { "key": "scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -4058,11 +4724,17 @@ { "key": "init_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4070,11 +4742,17 @@ { "key": "init_image_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4082,20 +4760,32 @@ { "key": "output_image_encoding", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "alpha_matting", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4103,13 +4793,19 @@ { "key": "alpha_matting_foreground_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 255 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } } } } @@ -4117,13 +4813,19 @@ { "key": "alpha_matting_background_threshold", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 255 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } } } } @@ -4131,13 +4833,19 @@ { "key": "alpha_matting_erode_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 255 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } } } } @@ -4145,11 +4853,17 @@ { "key": "only_mask", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4157,11 +4871,17 @@ { "key": "post_process_mask", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4169,11 +4889,20 @@ { "key": "bgcolor", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -4290,11 +5019,17 @@ { "key": "init_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4302,11 +5037,17 @@ { "key": "init_image_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4314,10 +5055,16 @@ { "key": "image_encoding", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageEncoding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageEncoding" + } + } } }, "description": "Define which encoding process should be applied before returning the modified image." @@ -4325,38 +5072,62 @@ { "key": "transfer_images", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "map", + "keyShape": { + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } - } - } - } - } - } - }, - { - "key": "prompt", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": "prompt", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4364,11 +5135,17 @@ { "key": "negative_prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4376,22 +5153,34 @@ { "key": "sampler", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Scheduler" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Scheduler" + } + } } } }, { "key": "steps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 20 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 20 + } + } } } } @@ -4399,21 +5188,33 @@ { "key": "inpainting_base_model", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ADetailerInpaintingBaseModel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ADetailerInpaintingBaseModel" + } + } } } }, { "key": "checkpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4421,21 +5222,36 @@ { "key": "loras", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -4445,11 +5261,17 @@ { "key": "use_refiner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4457,12 +5279,18 @@ { "key": "style_preset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "base" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "base" + } + } } } } @@ -4470,13 +5298,19 @@ { "key": "strength", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 1, - "default": 0.9 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 1, + "default": 0.9 + } + } } } } @@ -4484,13 +5318,19 @@ { "key": "cfg_scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 50, - "default": 7.5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 50, + "default": 7.5 + } + } } } }, @@ -4499,10 +5339,16 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ADetailerRequestSeed" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ADetailerRequestSeed" + } + } } }, "description": "Integer number or list of integers representing the seeds of random generators. Fixing random seed is useful when attempting to generate a specific image. Must be greater than 0 and less than 2^32." @@ -4510,13 +5356,19 @@ { "key": "mask_dilation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "default": 4 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "default": 4 + } + } } } }, @@ -4525,13 +5377,19 @@ { "key": "mask_blur", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "default": 4 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "default": 4 + } + } } } }, @@ -4540,13 +5398,19 @@ { "key": "mask_padding", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "default": 32 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "default": 32 + } + } } } }, @@ -4555,11 +5419,17 @@ { "key": "max_num_detections", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -4567,12 +5437,18 @@ { "key": "confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 0.3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 0.3 + } + } } } }, @@ -4581,19 +5457,28 @@ { "key": "detector", "valueShape": { - "type": "id", - "id": "type_:ADetailerDetector" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ADetailerDetector" + } }, "description": "Detection model to use. Configures whether e.g. faces or hands or people are targeted for after-detailing." }, { "key": "union_masks", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -4708,21 +5593,33 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" - } + "type": "primitive", + "value": { + "type": "integer" + } + } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", "value": { - "type": "integer" + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } } } } @@ -4786,11 +5683,17 @@ { "key": "image_b64", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4798,9 +5701,12 @@ { "key": "num_objects_inpainted", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of objects that were successfully inpainted." @@ -4808,9 +5714,12 @@ { "key": "num_objects_detected", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of objects that were successfully detected." @@ -4818,9 +5727,12 @@ { "key": "num_removed_for_safety", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of inpainting requests that violated the OctoAI Terms of Service." @@ -4837,12 +5749,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationError" + } + } + } } } } @@ -4875,11 +5796,17 @@ { "key": "image_b64", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4887,9 +5814,12 @@ { "key": "removed_for_safety", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the image was removed for safety, False otherwise." @@ -4991,17 +5921,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -5017,28 +5953,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5084,11 +6032,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5096,11 +6050,17 @@ { "key": "is_public", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5108,51 +6068,81 @@ { "key": "data_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:DataType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:DataType" + } + } } } }, { "key": "asset_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:AssetType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:AssetType" + } + } } } }, { "key": "engine", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } + } } } }, { "key": "engine_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:BaseEngineType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngineType" + } + } } } }, { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -5160,11 +6150,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -5172,11 +6168,17 @@ { "key": "get_preview_urls", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5184,11 +6186,17 @@ { "key": "asset_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5196,11 +6204,17 @@ { "key": "owner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5794,27 +6808,39 @@ { "key": "asset_type", "valueShape": { - "type": "id", - "id": "type_asset-library:AssetType" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:AssetType" + } }, "description": "Asset type." }, { "key": "data", "valueShape": { - "type": "id", - "id": "type_asset-library:Data" - }, + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Data" + } + }, "description": "Asset data." }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5822,11 +6848,17 @@ { "key": "hf_repo", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5834,11 +6866,17 @@ { "key": "hf_token_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5846,11 +6884,17 @@ { "key": "is_public", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5859,9 +6903,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset name." @@ -5869,11 +6916,17 @@ { "key": "skip_validation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5882,10 +6935,16 @@ { "key": "transfer_api_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:TransferApiType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:TransferApiType" + } + } } }, "description": "Transfer API type." @@ -5893,13 +6952,19 @@ { "key": "url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "minLength": 1, - "maxLength": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "minLength": 1, + "maxLength": 1 + } + } } } } @@ -7524,9 +8589,12 @@ { "key": "asset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7752,9 +8820,12 @@ { "key": "asset_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7768,11 +8839,17 @@ { "key": "skip_validation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -7781,12 +8858,18 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -8095,9 +9178,12 @@ { "key": "asset_owner_and_name_or_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -8106,10 +9192,16 @@ { "key": "transfer_api_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:TransferApiType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:TransferApiType" + } + } } } } @@ -8408,11 +9500,17 @@ { "key": "continue_on_rejection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -8420,11 +9518,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8432,17 +9536,23 @@ { "key": "details", "valueShape": { - "type": "id", - "id": "type_fine-tuning:Details" + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:Details" + } }, "description": "Details of the tune." }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the tune." @@ -9402,9 +10512,12 @@ { "key": "tune_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the tune." @@ -9672,9 +10785,12 @@ { "key": "tune_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the tune." @@ -9687,13 +10803,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -9911,9 +11033,12 @@ { "key": "tune_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the tune to cancel." @@ -10177,11 +11302,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10190,11 +11321,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10203,11 +11340,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10216,22 +11359,34 @@ { "key": "tune_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_fine-tuning:TuneType" - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:TuneType" + } + } + } + }, "description": "The type of the tune to filter on." }, { "key": "base_checkpoint_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10240,11 +11395,17 @@ { "key": "trigger_words", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10253,11 +11414,17 @@ { "key": "engine", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18676,9 +19843,12 @@ { "key": "image", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Starting point image encoded in base64 string." @@ -18686,11 +19856,17 @@ { "key": "height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -18698,11 +19874,17 @@ { "key": "width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -18710,13 +19892,19 @@ { "key": "cfg_scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 10, - "default": 3 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 10, + "default": 3 + } + } } } }, @@ -18725,13 +19913,19 @@ { "key": "steps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "maximum": 50, - "default": 25 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "maximum": 50, + "default": 25 + } + } } } }, @@ -18740,14 +19934,20 @@ { "key": "motion_scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 5, - "default": 0.5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 5, + "default": 0.5 + } + } } } }, @@ -18756,14 +19956,20 @@ { "key": "noise_aug_strength", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.02 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.02 + } + } } } }, @@ -18772,13 +19978,19 @@ { "key": "num_videos", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "maximum": 16, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "maximum": 16, + "default": 1 + } + } } } }, @@ -18787,14 +19999,20 @@ { "key": "fps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "maximum": 25, - "default": 7 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 7 + } + } } } }, @@ -18803,10 +20021,16 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_image-gen:VideoGenerationRequestSeed" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:VideoGenerationRequestSeed" + } + } } }, "description": "Integer number or list of integers representing the seeds of random generators.Fixing random seed is useful when attempting to generate a specific video/animation (or set of videos/animations). Must be greater than 0 and less than 2^32." @@ -18814,11 +20038,17 @@ { "key": "enable_safety", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -18827,11 +20057,17 @@ { "key": "force_asset_download", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -18840,11 +20076,17 @@ { "key": "force_asset_gpu_copy", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -19439,14 +20681,20 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -19455,11 +20703,17 @@ { "key": "ignore_eos", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19467,21 +20721,36 @@ { "key": "logit_bias", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -19491,11 +20760,17 @@ { "key": "loglikelihood", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19503,11 +20778,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19515,13 +20796,19 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 512 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 512 + } + } } } }, @@ -19530,10 +20817,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ChatMessage" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatMessage" + } + } } }, "description": "A list of messages comprising the conversation so far." @@ -19541,9 +20834,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The identifier of the model to use.Can be a shared tenancy or custom model identifier." @@ -19551,13 +20847,19 @@ { "key": "n", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 1 + } + } } } } @@ -19565,24 +20867,36 @@ { "key": "octoai", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ChatCompletionRequestExt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionRequestExt" + } + } } } }, { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -19591,12 +20905,18 @@ { "key": "repetition_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -19605,30 +20925,45 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ChatCompletionResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionResponseFormat" + } + } } } }, { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Stop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Stop" + } + } } } }, { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If set, tokens will be streamed incrementally to users." @@ -19636,24 +20971,36 @@ { "key": "stream_options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:StreamOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:StreamOptions" + } + } } } }, { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 2, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 2, + "default": 1 + } + } } } }, @@ -19662,12 +21009,18 @@ { "key": "top_logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 0 + } + } } } } @@ -19675,13 +21028,19 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 1, + "default": 1 + } + } } } }, @@ -19690,11 +21049,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21186,14 +22551,20 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -21202,11 +22573,17 @@ { "key": "ignore_eos", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -21214,21 +22591,36 @@ { "key": "logit_bias", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -21238,11 +22630,17 @@ { "key": "loglikelihood", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -21250,11 +22648,17 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -21262,13 +22666,19 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 512 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 512 + } + } } } }, @@ -21277,10 +22687,16 @@ { "key": "messages", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ChatMessage" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatMessage" + } + } } }, "description": "A list of messages comprising the conversation so far." @@ -21288,9 +22704,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The identifier of the model to use.Can be a shared tenancy or custom model identifier." @@ -21298,13 +22717,19 @@ { "key": "n", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 1 + } + } } } } @@ -21312,24 +22737,36 @@ { "key": "octoai", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ChatCompletionRequestExt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionRequestExt" + } + } } } }, { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -21338,12 +22775,18 @@ { "key": "repetition_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -21352,30 +22795,45 @@ { "key": "response_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ChatCompletionResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionResponseFormat" + } + } } } }, { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Stop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Stop" + } + } } } }, { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If set, tokens will be streamed incrementally to users." @@ -21383,24 +22841,36 @@ { "key": "stream_options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:StreamOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:StreamOptions" + } + } } } }, { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 2, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 2, + "default": 1 + } + } } } }, @@ -21409,12 +22879,18 @@ { "key": "top_logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 0 + } + } } } } @@ -21422,13 +22898,19 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 1, + "default": 1 + } + } } } }, @@ -21437,11 +22919,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -22867,12 +24355,18 @@ { "key": "best_of", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -22881,11 +24375,17 @@ { "key": "echo", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -22894,14 +24394,20 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -22910,21 +24416,36 @@ { "key": "logit_bias", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -22934,11 +24455,17 @@ { "key": "loglikelihood", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -22947,13 +24474,19 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 5 + } + } } } } @@ -22961,13 +24494,19 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 16 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 16 + } + } } } }, @@ -22976,9 +24515,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model name to use for completion." @@ -22986,13 +24528,19 @@ { "key": "n", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 1 + } + } } } }, @@ -23001,14 +24549,20 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -23017,10 +24571,16 @@ { "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Prompt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Prompt" + } + } } }, "description": "The prompt to generate completions from." @@ -23028,12 +24588,18 @@ { "key": "repetition_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -23042,12 +24608,18 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 0 + } + } } } } @@ -23055,10 +24627,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Stop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Stop" + } + } } }, "description": "Strings that stop the generation when they are generated." @@ -23066,10 +24644,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": true + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": true + } } }, "description": "If set, tokens will be streamed incrementally to users." @@ -23077,21 +24658,33 @@ { "key": "stream_options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:StreamOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:StreamOptions" + } + } } } }, { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -23099,14 +24692,20 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 2, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 2, + "default": 1 + } + } } } }, @@ -23115,13 +24714,19 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 1, + "default": 1 + } + } } } }, @@ -23130,11 +24735,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24065,12 +25676,18 @@ { "key": "best_of", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } }, @@ -24079,11 +25696,17 @@ { "key": "echo", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -24092,14 +25715,20 @@ { "key": "frequency_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } } } }, @@ -24108,21 +25737,36 @@ { "key": "logit_bias", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -24132,11 +25776,17 @@ { "key": "loglikelihood", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -24145,13 +25795,19 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 0, - "maximum": 5 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 0, + "maximum": 5 + } + } } } } @@ -24159,13 +25815,19 @@ { "key": "max_tokens", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 16 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 16 + } + } } } }, @@ -24174,9 +25836,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Model name to use for completion." @@ -24184,13 +25849,19 @@ { "key": "n", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "default": 1 + } + } } } }, @@ -24199,26 +25870,38 @@ { "key": "presence_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": -2, - "maximum": 2, - "default": 0 - } - } - }, - "description": "Penalizes new tokens based on whether they appear in the generated text so far" - }, - { - "key": "prompt", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": -2, + "maximum": 2, + "default": 0 + } + } + } + } + }, + "description": "Penalizes new tokens based on whether they appear in the generated text so far" + }, + { + "key": "prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Prompt" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Prompt" + } + } } }, "description": "The prompt to generate completions from." @@ -24226,12 +25909,18 @@ { "key": "repetition_penalty", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "default": 1 + } + } } } }, @@ -24240,12 +25929,18 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 0 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 0 + } + } } } } @@ -24253,10 +25948,16 @@ { "key": "stop", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Stop" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Stop" + } + } } }, "description": "Strings that stop the generation when they are generated." @@ -24264,10 +25965,13 @@ { "key": "stream", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "booleanLiteral", - "value": false + "type": "literal", + "value": { + "type": "booleanLiteral", + "value": false + } } }, "description": "If set, tokens will be streamed incrementally to users." @@ -24275,21 +25979,33 @@ { "key": "stream_options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:StreamOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:StreamOptions" + } + } } } }, { "key": "suffix", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24297,14 +26013,20 @@ { "key": "temperature", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 2, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 2, + "default": 1 + } + } } } }, @@ -24313,13 +26035,19 @@ { "key": "top_p", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 1, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 1, + "default": 1 + } + } } } }, @@ -24328,11 +26056,17 @@ { "key": "user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25234,17 +26968,23 @@ { "key": "asset_type", "valueShape": { - "type": "id", - "id": "type_asset-library:AssetType" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:AssetType" + } }, "description": "Asset type." }, { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset creation time." @@ -25252,17 +26992,23 @@ { "key": "data", "valueShape": { - "type": "id", - "id": "type_asset-library:Data" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Data" + } }, "description": "Asset data." }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Description." @@ -25270,10 +27016,16 @@ { "key": "file_structure", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileStructure" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileStructure" + } + } } }, "description": "File structure." @@ -25281,11 +27033,17 @@ { "key": "hf_repo", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25293,9 +27051,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset id." @@ -25303,11 +27064,17 @@ { "key": "is_public", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -25316,9 +27083,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset name." @@ -25326,9 +27096,12 @@ { "key": "size_bytes", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Size in bytes." @@ -25336,17 +27109,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_asset-library:Status" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Status" + } }, "description": "Asset status." }, { "key": "status_details", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset status." @@ -25354,17 +27133,29 @@ { "key": "status_info", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25373,9 +27164,12 @@ { "key": "tenant_uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset tenant ID." @@ -25383,13 +27177,19 @@ { "key": "url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "minLength": 1, - "maxLength": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "minLength": 1, + "maxLength": 1 + } + } } } } @@ -25505,10 +27305,16 @@ { "key": "data_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:DataType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:DataType" + } + } } }, "description": "Data type." @@ -25516,18 +27322,27 @@ { "key": "engine", "valueShape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } }, "description": "Engine type." }, { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileFormat" + } + } } }, "description": "File format." @@ -25544,11 +27359,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25596,20 +27417,29 @@ { "key": "asset", "valueShape": { - "type": "id", - "id": "type_asset-library:Asset" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Asset" + } }, "description": "Asset." }, { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -25618,8 +27448,11 @@ { "key": "transfer_api", "valueShape": { - "type": "id", - "id": "type_asset-library:CreateAssetResponseTransferApi" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:CreateAssetResponseTransferApi" + } }, "description": "Asset transfer API." } @@ -25655,9 +27488,12 @@ { "key": "deleted_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Deletion time." @@ -25665,9 +27501,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset ID." @@ -25684,10 +27523,16 @@ { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileExtension" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileExtension" + } + } } }, "description": "File format." @@ -25695,11 +27540,17 @@ { "key": "preview_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25707,12 +27558,18 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "" + } + } } } }, @@ -25790,12 +27647,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_asset-library:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:ValidationError" + } + } + } } } } @@ -25812,18 +27678,27 @@ { "key": "engine", "valueShape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } }, "description": "Engine type." }, { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileFormat" + } + } } }, "description": "File format." @@ -25840,10 +27715,16 @@ { "key": "data", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_asset-library:Asset" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Asset" + } + } } }, "description": "List of assets." @@ -25851,9 +27732,12 @@ { "key": "has_more", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if there are more asset to show." @@ -25861,9 +27745,12 @@ { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Total number of assets." @@ -25880,11 +27767,17 @@ { "key": "checkpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25892,10 +27785,16 @@ { "key": "data_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:DataType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:DataType" + } + } } }, "description": "Data type." @@ -25903,18 +27802,27 @@ { "key": "engine", "valueShape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } }, "description": "Engine type." }, { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileFormat" + } + } } }, "description": "File format." @@ -25922,13 +27830,22 @@ { "key": "trigger_words", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25955,9 +27872,12 @@ { "key": "get_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Get asset URL." @@ -25965,9 +27885,12 @@ { "key": "put_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Asset URL to upload." @@ -26015,16 +27938,22 @@ { "key": "asset", "valueShape": { - "type": "id", - "id": "type_asset-library:Asset" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:Asset" + } }, "description": "Asset." }, { "key": "transfer_api", "valueShape": { - "type": "id", - "id": "type_asset-library:RetrieveAssetResponseTransferApi" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:RetrieveAssetResponseTransferApi" + } }, "description": "Transfer API." } @@ -26069,9 +27998,12 @@ { "key": "aws_access_key_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "AWS access key." @@ -26079,9 +28011,12 @@ { "key": "aws_secret_access_key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "AWS secret accesss key." @@ -26089,11 +28024,17 @@ { "key": "aws_session_token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26101,9 +28042,12 @@ { "key": "s3_bucket", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "S3 bucket." @@ -26111,11 +28055,17 @@ { "key": "s3_endpoint_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26123,9 +28073,12 @@ { "key": "s3_key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "S3 key." @@ -26133,9 +28086,12 @@ { "key": "s3_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "S3 full URL." @@ -26152,10 +28108,16 @@ { "key": "data_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:DataType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:DataType" + } + } } }, "description": "Data type." @@ -26163,18 +28125,27 @@ { "key": "engine", "valueShape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } }, "description": "Engine type." }, { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileFormat" + } + } } }, "description": "File format." @@ -26182,13 +28153,22 @@ { "key": "trigger_words", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26221,10 +28201,16 @@ { "key": "data_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:DataType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:DataType" + } + } } }, "description": "Data type." @@ -26232,18 +28218,27 @@ { "key": "engine", "valueShape": { - "type": "id", - "id": "type_asset-library:BaseEngine" + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:BaseEngine" + } }, "description": "Engine type." }, { "key": "file_format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_asset-library:FileFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:FileFormat" + } + } } }, "description": "File format." @@ -26258,17 +28253,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -26284,28 +28285,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_asset-library:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_asset-library:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -26402,12 +28415,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_fine-tuning:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:ValidationError" + } + } + } } } } @@ -26425,10 +28447,16 @@ { "key": "data", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_fine-tuning:Tune" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:Tune" + } + } } }, "description": "List of tunes." @@ -26436,9 +28464,12 @@ { "key": "has_more", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if it has more items than the returned list." @@ -26446,9 +28477,12 @@ { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Total number of tunes." @@ -26466,18 +28500,27 @@ { "key": "base_checkpoint", "valueShape": { - "type": "id", - "id": "type_fine-tuning:LoraTuneCheckpoint" + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:LoraTuneCheckpoint" + } }, "description": "The base checkpoint used for this LoRA Tune." }, { "key": "files", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_fine-tuning:LoraTuneFile" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:LoraTuneFile" + } + } } }, "description": "The files used for this LoRA Tune." @@ -26485,11 +28528,17 @@ { "key": "resize_images", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -26497,11 +28546,17 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26509,9 +28564,12 @@ { "key": "steps", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of steps used for this LoRA Tune." @@ -26519,11 +28577,17 @@ { "key": "trigger_words", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26542,9 +28606,12 @@ { "key": "checkpoint_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The checkpoint asset ID." @@ -26552,21 +28619,33 @@ { "key": "engine", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_fine-tuning:BaseEngine" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:BaseEngine" + } + } } } }, { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26584,11 +28663,17 @@ { "key": "caption", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26596,11 +28681,14 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, + "type": "primitive", + "value": { + "type": "string" + } + } + }, "description": "The ID of the file on asset lake." } ] @@ -26616,11 +28704,17 @@ { "key": "asset_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26629,11 +28723,17 @@ { "key": "inline_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -26675,9 +28775,12 @@ { "key": "created_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time this tune task was created." @@ -26685,11 +28788,17 @@ { "key": "deleted_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -26697,9 +28806,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The description of the tune." @@ -26707,17 +28819,23 @@ { "key": "details", "valueShape": { - "type": "id", - "id": "type_fine-tuning:TuneDetails" + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:TuneDetails" + } }, "description": "Tune details." }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID of the LoRA tune." @@ -26725,9 +28843,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the tune." @@ -26735,11 +28856,17 @@ { "key": "output_lora_ids", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26748,27 +28875,39 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_fine-tuning:TuneResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:TuneResult" + } + } } } }, { "key": "status", "valueShape": { - "type": "id", - "id": "type_fine-tuning:TuneStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:TuneStatus" + } }, "description": "The status of the associated task." }, { "key": "status_details", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The details of the status, only used when the associated task failed." @@ -26776,11 +28915,17 @@ { "key": "succeeded_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -26788,9 +28933,12 @@ { "key": "tenant_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The tenant who requested the LoRA tune." @@ -26798,17 +28946,23 @@ { "key": "tune_type", "valueShape": { - "type": "id", - "id": "type_fine-tuning:TuneType" + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:TuneType" + } }, "description": "The type of this tune." }, { "key": "updated_at", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The time this tune task was updated." @@ -26826,11 +28980,17 @@ { "key": "number_of_available_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26838,13 +28998,22 @@ { "key": "output_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26853,13 +29022,22 @@ { "key": "rejected_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26868,13 +29046,22 @@ { "key": "unready_assets", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26935,17 +29122,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -26961,28 +29154,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_fine-tuning:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_fine-tuning:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -26997,21 +29202,33 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", "value": { - "type": "integer" + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } } } } @@ -27029,14 +29246,23 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_image-gen:ValidationError" - } - } + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:ValidationError" + } + } + } + } + } } } ] @@ -27067,11 +29293,17 @@ { "key": "image_b64", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27079,9 +29311,12 @@ { "key": "removed_for_safety", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the image was removed for safety, False otherwise." @@ -27089,9 +29324,12 @@ { "key": "seed", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Seed used to generate the image. It can be used to recreate the generation." @@ -27099,11 +29337,17 @@ { "key": "safety_score", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -27119,21 +29363,33 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", "value": { - "type": "integer" + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } } } } @@ -27152,9 +29408,12 @@ { "key": "prompt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Text describing the image content to generate." @@ -27162,11 +29421,17 @@ { "key": "prompt_2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27174,11 +29439,17 @@ { "key": "negative_prompt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27186,11 +29457,17 @@ { "key": "negative_prompt_2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27198,11 +29475,17 @@ { "key": "checkpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27210,11 +29493,17 @@ { "key": "controlnet", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27222,11 +29511,17 @@ { "key": "vae", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27234,21 +29529,36 @@ { "key": "textual_inversions", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -27258,21 +29568,36 @@ { "key": "loras", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } } } } @@ -27282,10 +29607,16 @@ { "key": "sampler", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_image-gen:Scheduler" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:Scheduler" + } + } } }, "description": "Sampler name (also known as 'scheduler') to use during image generation." @@ -27293,11 +29624,17 @@ { "key": "height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -27305,11 +29642,17 @@ { "key": "width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -27317,13 +29660,19 @@ { "key": "cfg_scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "maximum": 50, - "default": 12 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "maximum": 50, + "default": 12 + } + } } } }, @@ -27332,13 +29681,19 @@ { "key": "steps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "maximum": 200, - "default": 30 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "maximum": 200, + "default": 30 + } + } } } }, @@ -27347,13 +29702,19 @@ { "key": "num_images", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "maximum": 16, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "maximum": 16, + "default": 1 + } + } } } }, @@ -27362,10 +29723,16 @@ { "key": "seed", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_image-gen:ImageGenerationRequestSeed" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:ImageGenerationRequestSeed" + } + } } }, "description": "Integer number or list of integers representing the seeds of random generators. Fixing random seed is useful when attempting to generate a specific image. Must be greater than 0 and less than 2^32." @@ -27373,11 +29740,17 @@ { "key": "controlnet_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27385,11 +29758,17 @@ { "key": "init_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27397,11 +29776,17 @@ { "key": "mask_image", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27409,14 +29794,20 @@ { "key": "strength", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.8 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.8 + } + } } } }, @@ -27425,21 +29816,33 @@ { "key": "style_preset", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_image-gen:SDXLStyles" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:SDXLStyles" + } + } } } }, { "key": "use_refiner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27448,14 +29851,20 @@ { "key": "high_noise_frac", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1, - "default": 0.8 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1, + "default": 0.8 + } + } } } }, @@ -27464,13 +29873,19 @@ { "key": "controlnet_conditioning_scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "default": 1 + } + } } } }, @@ -27479,13 +29894,19 @@ { "key": "controlnet_early_stop", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double", - "minimum": 0, - "maximum": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double", + "minimum": 0, + "maximum": 1 + } + } } } } @@ -27493,11 +29914,17 @@ { "key": "controlnet_preprocess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27506,13 +29933,19 @@ { "key": "clip_skip", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "minimum": 1, - "maximum": 12 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "minimum": 1, + "maximum": 12 + } + } } } } @@ -27520,11 +29953,17 @@ { "key": "outpainting", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27533,11 +29972,17 @@ { "key": "enable_safety", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27546,10 +29991,16 @@ { "key": "image_encoding", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_image-gen:ImageEncoding" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:ImageEncoding" + } + } } }, "description": "Define which encoding process should be applied before returning the generated image(s)." @@ -27557,23 +30008,41 @@ { "key": "transfer_images", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "map", + "keyShape": { + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } } } } @@ -27584,11 +30053,17 @@ { "key": "force_asset_download", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27597,11 +30072,17 @@ { "key": "force_asset_gpu_copy", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -27620,10 +30101,16 @@ { "key": "images", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_image-gen:ImageGeneration" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:ImageGeneration" + } + } } }, "description": "List of ImageGeneration(s) generated by the request." @@ -27631,9 +30118,12 @@ { "key": "prediction_time_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Total runtime of the image generation(s)." @@ -27951,17 +30441,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -27977,28 +30473,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_image-gen:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28015,11 +30523,17 @@ { "key": "video", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28027,9 +30541,12 @@ { "key": "removed_for_safety", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the video/animation was removed for safety, False otherwise." @@ -28037,9 +30554,12 @@ { "key": "seed", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Seed used to generate the video/animation. It can be used to recreate the generation." @@ -28047,11 +30567,17 @@ { "key": "safety_score", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -28069,10 +30595,16 @@ { "key": "videos", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_image-gen:VideoGeneration" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_image-gen:VideoGeneration" + } + } } }, "description": "List of VideoGeneration(s) generated by the request." @@ -28080,9 +30612,12 @@ { "key": "prediction_time_ms", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Total runtime of the video(s) generation(s)." @@ -28098,19 +30633,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28126,43 +30670,67 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } }, { "shape": { - "type": "list", - "itemShape": { + "type": "alias", + "value": { "type": "list", "itemShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } } } } @@ -28181,19 +30749,28 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:FinishReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:FinishReason" + } + } } } }, { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "A unique identifier for the chat completion.Each chunk has the same ID." @@ -28201,18 +30778,27 @@ { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Logprobs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Logprobs" + } + } } } }, { "key": "message", "valueShape": { - "type": "id", - "id": "type_text-gen:ChatMessage" + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatMessage" + } }, "description": "A chat completion message generated by the model." } @@ -28229,10 +30815,16 @@ { "key": "choices", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ChatCompletionChunkChoice" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionChunkChoice" + } + } } }, "description": "A list of chat completion choices.Can be more than one if n is greater than 1." @@ -28240,9 +30832,12 @@ { "key": "created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The Unix timestamp (in seconds) of when the chat completion was created." @@ -28250,9 +30845,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A unique identifier for the entire chat completion request. Each chunk in the stream has the same ID." @@ -28260,9 +30858,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model used for the chat completion." @@ -28270,19 +30871,31 @@ { "key": "object", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "usage", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:UsageStats" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:UsageStats" + } + } } } } @@ -28299,36 +30912,54 @@ { "key": "delta", "valueShape": { - "type": "id", - "id": "type_text-gen:ChatCompletionDelta" + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionDelta" + } } }, { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:FinishReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:FinishReason" + } + } } } }, { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Logprobs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Logprobs" + } + } } } } @@ -28345,11 +30976,17 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28357,11 +30994,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28379,10 +31022,16 @@ { "key": "vllm", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ChatCompletionRequestExtVLLM" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionRequestExtVLLM" + } + } } } } @@ -28398,12 +31047,18 @@ { "key": "best_of", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": 1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": 1 + } + } } } } @@ -28411,23 +31066,35 @@ { "key": "ignore_eos", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } }, - { - "key": "skip_special_tokens", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + { + "key": "skip_special_tokens", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28435,13 +31102,22 @@ { "key": "stop_token_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "integer" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } } } } @@ -28450,12 +31126,18 @@ { "key": "top_k", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer", - "default": -1 + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer", + "default": -1 + } + } } } } @@ -28463,11 +31145,17 @@ { "key": "use_beam_search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28485,10 +31173,16 @@ { "key": "choices", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ChatCompletionChoice" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ChatCompletionChoice" + } + } } }, "description": "A list of chat completion choices.Can be more than one if n is greater than 1." @@ -28496,9 +31190,12 @@ { "key": "created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The Unix timestamp (in seconds) of when the chat completion was created." @@ -28506,9 +31203,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A unique identifier for the chat completion." @@ -28516,9 +31216,12 @@ { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The model used for the chat completion." @@ -28526,17 +31229,26 @@ { "key": "object", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "usage", "valueShape": { - "type": "id", - "id": "type_text-gen:UsageStats" + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:UsageStats" + } }, "description": "Usage statistics for the completion request." } @@ -28552,17 +31264,29 @@ { "key": "schema", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -28570,9 +31294,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28589,11 +31316,17 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28601,9 +31334,12 @@ { "key": "role", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The role of the author of this message." @@ -28620,38 +31356,56 @@ { "key": "finish_reason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:FinishReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:FinishReason" + } + } } } }, { "key": "index", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } }, { "key": "logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:Logprobs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:Logprobs" + } + } } } }, { "key": "text", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28668,19 +31422,28 @@ { "key": "choices", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:CompletionChoice" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:CompletionChoice" + } + } } } }, { "key": "created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The Unix timestamp (in seconds) of when the completion was created." @@ -28688,46 +31451,67 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "model", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "object", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "system_fingerprint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "usage", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:UsageStats" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:UsageStats" + } + } } } } @@ -28741,19 +31525,28 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28771,11 +31564,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28783,21 +31582,30 @@ { "key": "message", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "object", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string", - "default": "error" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string", + "default": "error" + } + } } } } @@ -28805,11 +31613,17 @@ { "key": "param", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28817,29 +31631,47 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "validation_errors", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:ErrorResponseValidationErrorsValue" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ErrorResponseValidationErrorsValue" + } + } + } + } } } } @@ -28885,9 +31717,12 @@ { "key": "arguments", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The arguments to the function call." @@ -28895,9 +31730,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The name of the function to call." @@ -28914,12 +31752,21 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ValidationError" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ValidationError" + } + } + } } } } @@ -28937,14 +31784,26 @@ { "key": "content", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_text-gen:LogprobsContent" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:LogprobsContent" + } + } + } + } } } } @@ -28964,11 +31823,20 @@ { "key": "bytes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -28976,9 +31844,12 @@ { "key": "logprob", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Logprob corresponding to the token" @@ -28986,9 +31857,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "New generated token or token from prompt for loglikelihood case" @@ -28996,12 +31870,21 @@ { "key": "top_logprobs", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:TopLogprobs" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:TopLogprobs" + } + } + } } } }, @@ -29019,11 +31902,17 @@ { "key": "include_usage", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -29042,17 +31931,23 @@ { "key": "function", "valueShape": { - "type": "id", - "id": "type_text-gen:FunctionCall" + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:FunctionCall" + } }, "description": "The function called by the model." }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A unique ID for the tool call used to reference it in the response." @@ -29060,9 +31955,15 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -29079,11 +31980,20 @@ { "key": "bytes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -29091,9 +32001,12 @@ { "key": "logprob", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Logprob corresponding to the top token" @@ -29101,9 +32014,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Token from the top list" @@ -29121,9 +32037,12 @@ { "key": "completion_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of tokens in the prompt." @@ -29131,9 +32050,12 @@ { "key": "prompt_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Number of tokens in the prompt." @@ -29141,9 +32063,12 @@ { "key": "total_tokens", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Total number of tokens used in the request (prompt + completion)." @@ -29158,17 +32083,23 @@ "variants": [ { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "shape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } } } @@ -29184,28 +32115,40 @@ { "key": "loc", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_text-gen:ValidationErrorLocItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_text-gen:ValidationErrorLocItem" + } + } } } }, { "key": "msg", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } diff --git a/packages/fdr-sdk/src/__test__/output/polytomic/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/polytomic/apiDefinitions.json index 1ca25a61e3..092aba0cd7 100644 --- a/packages/fdr-sdk/src/__test__/output/polytomic/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/polytomic/apiDefinitions.json @@ -281,17 +281,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -299,11 +311,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -311,11 +329,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -323,11 +347,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -582,9 +612,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -826,9 +859,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1110,9 +1146,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1126,17 +1165,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -1144,11 +1195,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1156,11 +1213,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1168,11 +1231,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1180,11 +1249,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1780,11 +1855,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1792,11 +1873,17 @@ { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1804,11 +1891,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1979,9 +2072,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2183,9 +2279,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2199,11 +2298,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2211,11 +2316,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2223,11 +2334,17 @@ { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2235,11 +2352,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2464,9 +2587,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2480,11 +2606,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2492,11 +2624,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2504,11 +2642,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2649,18 +2793,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2792,18 +2942,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2935,18 +3091,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2960,11 +3122,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2972,11 +3140,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2984,11 +3158,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2996,11 +3176,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3316,9 +3502,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -3524,9 +3713,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -3540,11 +3732,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3552,13 +3750,22 @@ { "key": "identities", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -3877,18 +4084,24 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -4036,11 +4249,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4048,20 +4267,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -4078,11 +4309,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4091,17 +4328,29 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -4110,11 +4359,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4123,11 +4378,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4145,18 +4406,30 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -4200,12 +4473,18 @@ { "key": "X-Polytomic-Version", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "2021-05-23" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2021-05-23" + } + } } } } @@ -4245,9 +4524,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -4513,9 +4795,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -4524,11 +4809,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4950,11 +5241,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -4962,37 +5259,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -5000,20 +5321,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5021,11 +5351,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5034,11 +5370,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5047,20 +5389,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -5068,13 +5419,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -5083,20 +5443,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -5105,17 +5477,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -5123,9 +5507,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5438,9 +5825,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5449,11 +5839,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5646,9 +6042,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5657,11 +6056,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5894,9 +6299,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -5910,11 +6318,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5922,37 +6336,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -5960,20 +6398,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -5981,11 +6428,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5994,11 +6447,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6007,20 +6466,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6028,13 +6496,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -6043,20 +6520,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -6065,17 +6554,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -6083,9 +6584,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -6463,9 +6967,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -6750,9 +7257,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -6761,21 +7271,36 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -6954,9 +7479,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -6970,12 +7498,21 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -7294,18 +7831,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7478,18 +8021,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7503,11 +8052,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -7515,11 +8070,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8097,17 +8658,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -8115,20 +8688,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8136,13 +8718,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -8151,11 +8742,17 @@ { "key": "redirect_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8164,20 +8761,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8513,9 +9119,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -8736,9 +9345,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -8747,11 +9359,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -9025,9 +9643,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -9041,17 +9662,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -9059,20 +9692,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -9080,13 +9722,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -9095,11 +9746,17 @@ { "key": "reconnect", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -9107,11 +9764,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -9119,11 +9782,17 @@ { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -9515,9 +10184,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -9725,9 +10397,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -10020,9 +10695,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -10036,17 +10714,29 @@ { "key": "query", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -10368,9 +11058,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -10379,11 +11072,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -10391,11 +11090,17 @@ { "key": "search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -10707,9 +11412,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -10723,11 +11431,17 @@ { "key": "refresh", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -10735,9 +11449,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11052,9 +11769,12 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -11068,10 +11788,16 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } } @@ -11330,11 +12056,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -11857,11 +12589,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -12207,9 +12945,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -12218,11 +12959,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -12491,9 +13238,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -12502,11 +13252,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -12736,9 +13492,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -12747,11 +13506,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -12766,12 +13531,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -12779,17 +13553,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -12797,32 +13583,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12831,11 +13635,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -12843,13 +13653,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12858,20 +13677,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -12879,13 +13707,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -12894,12 +13731,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -12907,13 +13753,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -13269,9 +14124,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -13280,11 +14138,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -13544,11 +14408,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13556,11 +14426,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -13568,11 +14444,17 @@ { "key": "starting_after", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -13580,11 +14462,17 @@ { "key": "ending_before", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -13592,11 +14480,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -13919,18 +14813,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14477,11 +15377,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14489,11 +15395,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14501,11 +15413,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14513,20 +15431,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14534,11 +15461,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14761,9 +15694,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14927,9 +15863,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -15111,9 +16050,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -15127,11 +16069,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15139,11 +16087,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15151,11 +16105,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15163,20 +16123,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15184,11 +16153,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15423,9 +16398,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -15594,9 +16572,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -15610,20 +16591,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15861,18 +16851,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -16087,18 +17083,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -16313,18 +17315,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -16338,20 +17346,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -16597,18 +17614,24 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -16617,11 +17640,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -16989,20 +18018,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17010,12 +18048,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -17333,9 +18380,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -17546,9 +18596,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -17770,9 +18823,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -17786,20 +18842,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17807,12 +18872,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -18289,20 +19363,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18612,9 +19695,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -18777,9 +19863,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -19001,9 +20090,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -19017,20 +20109,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19600,11 +20701,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19612,22 +20719,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -19635,11 +20757,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19647,12 +20775,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -19660,39 +20797,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19700,12 +20855,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -19714,12 +20878,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -19728,13 +20901,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -19743,18 +20925,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19762,8 +20953,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -20335,9 +21529,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20623,9 +21820,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20846,9 +22046,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -20862,11 +22065,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -20874,22 +22083,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -20897,11 +22121,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20909,12 +22139,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -20922,39 +22161,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20962,12 +22219,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -20976,12 +22242,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -20990,13 +22265,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -21005,18 +22289,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -21024,8 +22317,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -21520,9 +22816,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -21807,9 +23106,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -21823,13 +23125,22 @@ { "key": "identities", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -21838,11 +23149,17 @@ { "key": "resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -22154,9 +23471,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -22394,9 +23714,12 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -22580,18 +23903,24 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -22825,27 +24154,36 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -23122,36 +24460,48 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -23536,20 +24886,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -23557,11 +24916,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -23787,9 +25149,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -23952,9 +25317,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -24136,9 +25504,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -24152,20 +25523,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24173,11 +25553,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -24393,11 +25776,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24405,20 +25794,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -24455,15 +25856,21 @@ { "key": "item", "valueShape": { - "type": "id", - "id": "type_:BulkSelectiveMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSelectiveMode" + } } }, { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } } ] @@ -24478,12 +25885,21 @@ { "key": "schedules", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkItemizedSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkItemizedSchedule" + } + } + } } } } @@ -24491,9 +25907,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -24509,11 +25928,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24521,11 +25946,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24533,18 +25964,27 @@ { "key": "frequency", "valueShape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24552,11 +25992,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24564,11 +26010,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24576,10 +26028,16 @@ { "key": "multi", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkMultiScheduleConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkMultiScheduleConfiguration" + } + } } } } @@ -24707,13 +26165,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -24725,13 +26189,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -24745,11 +26215,17 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24757,27 +26233,36 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -24793,11 +26278,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24805,10 +26296,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelRelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelationTo" + } + } } } } @@ -24824,11 +26321,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24836,11 +26339,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24857,11 +26366,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -24870,17 +26385,29 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -24889,11 +26416,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24902,11 +26435,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24962,21 +26501,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JsonschemaForm" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JsonschemaForm" + } + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24984,21 +26535,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25032,11 +26595,17 @@ { "key": "does_not_report_operation_counts", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25044,11 +26613,17 @@ { "key": "new_target_label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25056,11 +26631,17 @@ { "key": "optional_target_mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25068,11 +26649,17 @@ { "key": "primary_metadata_object", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25080,11 +26667,17 @@ { "key": "requires_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25092,11 +26685,17 @@ { "key": "supports_field_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25104,11 +26703,17 @@ { "key": "supports_field_type_selection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25116,11 +26721,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25128,11 +26739,17 @@ { "key": "target_creator", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25140,11 +26757,17 @@ { "key": "use_field_names_as_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25202,11 +26825,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25223,10 +26852,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:APIKeyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:APIKeyResponse" + } + } } } } @@ -25242,10 +26877,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ActivateSyncOutput" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ActivateSyncOutput" + } + } } } } @@ -25261,9 +26902,12 @@ { "key": "active", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } } @@ -25279,11 +26923,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25291,11 +26941,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25312,11 +26968,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25324,11 +26986,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25336,11 +27004,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25357,10 +27031,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } } } } @@ -25376,17 +27056,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -25394,12 +27086,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SupportedMode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SupportedMode" + } + } + } } } } @@ -25416,10 +27117,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncDest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncDest" + } + } } } } @@ -25435,12 +27142,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } + } } } } @@ -25457,11 +27173,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25469,17 +27191,29 @@ { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -25487,11 +27221,17 @@ { "key": "destination_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25499,11 +27239,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25511,11 +27257,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25523,11 +27275,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25535,11 +27293,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25547,11 +27311,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25559,13 +27329,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25574,27 +27353,45 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } + } } } }, { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -25602,11 +27399,17 @@ { "key": "source_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25623,10 +27426,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } } } } @@ -25642,22 +27451,37 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" - } - } + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } + } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25675,10 +27499,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSource" + } + } } } } @@ -25694,11 +27524,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -25706,11 +27545,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25727,12 +27572,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } + } } } } @@ -25749,11 +27603,17 @@ { "key": "has_items", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25761,11 +27621,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -25773,13 +27642,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25797,18 +27675,30 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigurationValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:ConfigurationValue" } } } @@ -25816,20 +27706,35 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMeta" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMeta" + } + } + } + } } } } @@ -25838,13 +27743,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -25862,11 +27776,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -25874,9 +27794,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -25892,11 +27818,17 @@ { "key": "allows_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -25904,12 +27836,21 @@ { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionParameterValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValue" + } + } + } } } } @@ -25926,20 +27867,35 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionParameterValuesResp" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValuesResp" + } + } + } + } } } } @@ -25957,10 +27913,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } } } } @@ -25976,11 +27938,17 @@ { "key": "api_calls_last_24_hours", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -25989,17 +27957,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -26007,11 +27987,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26019,11 +28005,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26031,11 +28023,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26043,13 +28041,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26058,11 +28065,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26070,11 +28083,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26082,10 +28101,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -26101,17 +28126,29 @@ { "key": "envConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -26119,11 +28156,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26131,11 +28174,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26143,11 +28192,17 @@ { "key": "use_oauth", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -26164,12 +28219,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionType" + } + } + } } } } @@ -26186,11 +28250,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26198,11 +28268,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26210,13 +28286,22 @@ { "key": "operations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26234,10 +28319,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CreateConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateConnectionResponseSchema" + } + } } } } @@ -26253,11 +28344,17 @@ { "key": "auth_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26266,11 +28363,17 @@ { "key": "auth_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26279,17 +28382,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -26297,11 +28412,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26309,11 +28430,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26321,11 +28448,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26333,13 +28466,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26348,11 +28490,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26360,11 +28508,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26372,10 +28526,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -26391,12 +28551,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -26404,17 +28573,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -26422,32 +28603,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26456,11 +28655,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26468,13 +28673,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26483,20 +28697,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26504,13 +28727,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26519,12 +28751,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -26532,13 +28773,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26555,13 +28805,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -26574,15 +28830,21 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -26597,21 +28859,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } }, { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26619,11 +28893,17 @@ { "key": "enricher_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26632,12 +28912,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } }, @@ -26646,10 +28935,16 @@ { "key": "mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherMapping" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherMapping" + } + } } } } @@ -26665,11 +28960,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -26677,20 +28978,32 @@ { "key": "event", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26698,11 +29011,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26710,11 +29029,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26731,13 +29056,22 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26755,12 +29089,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Event" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Event" + } + } + } } } } @@ -26777,11 +29120,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26789,11 +29138,17 @@ { "key": "insert", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26801,11 +29156,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26813,11 +29174,17 @@ { "key": "update", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -26834,11 +29201,17 @@ { "key": "expires", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -26846,13 +29219,22 @@ { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -26870,10 +29252,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionLogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionLogResponse" + } + } } } } @@ -26890,21 +29278,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26913,28 +29313,43 @@ { "key": "field_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFieldReferenceType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFieldReferenceType" + } + } } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -26942,9 +29357,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -26960,10 +29381,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMetaResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMetaResponse" + } + } } } } @@ -26979,15 +29406,27 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -27006,10 +29445,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } } @@ -27025,11 +29470,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -27037,21 +29488,33 @@ { "key": "counts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionCounts" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionCounts" + } + } } } }, { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -27059,13 +29522,22 @@ { "key": "errors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -27074,11 +29546,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27086,11 +29564,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -27098,21 +29582,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27129,10 +29625,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetIdentityResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetIdentityResponseSchema" + } + } } } } @@ -27148,11 +29650,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27160,11 +29668,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27172,11 +29686,17 @@ { "key": "is_organization", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27184,11 +29704,17 @@ { "key": "is_partner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27196,11 +29722,17 @@ { "key": "is_system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27208,11 +29740,17 @@ { "key": "is_user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27220,11 +29758,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27232,11 +29776,17 @@ { "key": "organization_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27244,11 +29794,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27265,18 +29821,27 @@ { "key": "function", "valueShape": { - "type": "id", - "id": "type_:SchemaIdentityFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaIdentityFunction" + } } }, { "key": "new_field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27284,11 +29849,17 @@ { "key": "remote_field_type_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27296,16 +29867,22 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -27321,11 +29898,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27333,11 +29916,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27354,11 +29943,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27366,11 +29961,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27378,30 +29979,48 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WorkTaskStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkTaskStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27418,10 +30037,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -27437,12 +30062,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -27459,12 +30093,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } + } } } } @@ -27481,12 +30124,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } + } } } } @@ -27503,12 +30155,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } + } } } } @@ -27525,12 +30186,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } + } } } } @@ -27547,11 +30217,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27559,11 +30235,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27571,11 +30253,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27583,11 +30271,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27595,11 +30289,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27607,11 +30307,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27628,11 +30334,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27640,20 +30352,32 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27661,11 +30385,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27673,11 +30403,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27685,11 +30421,17 @@ { "key": "remote_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27697,11 +30439,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27709,11 +30457,17 @@ { "key": "unique", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27721,11 +30475,17 @@ { "key": "user_added", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -27742,12 +30502,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -27764,12 +30533,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } + } } } } @@ -27786,17 +30564,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -27804,11 +30594,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27816,22 +30612,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -27839,11 +30650,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27851,11 +30668,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27863,12 +30686,21 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LabelLabel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LabelLabel" + } + } + } } } } @@ -27876,11 +30708,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27888,11 +30726,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27900,13 +30744,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -27915,12 +30768,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Relation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Relation" + } + } + } } } } @@ -27928,13 +30790,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -27943,11 +30814,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -27955,11 +30832,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -27976,20 +30859,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -28005,12 +30900,21 @@ { "key": "records", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:V2SampleRecord" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2SampleRecord" + } + } + } } } } @@ -28018,13 +30922,22 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -28042,20 +30955,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSample" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSample" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -28071,11 +30996,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28083,11 +31014,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28095,11 +31032,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28107,11 +31050,17 @@ { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28119,11 +31068,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28140,10 +31095,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } } } } @@ -28159,12 +31120,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } + } } } } @@ -28182,21 +31152,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28205,28 +31187,46 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } + } } } }, { "key": "override", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -28242,22 +31242,34 @@ { "key": "action", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -28275,11 +31287,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28287,11 +31305,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28299,11 +31323,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28311,12 +31341,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -28324,11 +31363,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28345,10 +31390,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } } } } @@ -28364,11 +31415,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28376,10 +31433,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RelationTo" + } + } } } } @@ -28395,11 +31458,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28407,11 +31476,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28428,12 +31503,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } + } } } } @@ -28450,11 +31534,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28462,11 +31552,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28474,11 +31570,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28486,11 +31588,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28507,10 +31615,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } } } } @@ -28526,13 +31640,22 @@ { "key": "bulk_sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -28541,13 +31664,22 @@ { "key": "sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -28564,21 +31696,33 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { "type": "primitive", "value": { "type": "string" } - }, - "valueShape": { - "type": "unknown" + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -28593,11 +31737,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28605,11 +31755,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28617,11 +31773,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28629,21 +31791,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28651,11 +31825,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -28663,11 +31843,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28675,11 +31861,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28687,10 +31879,16 @@ { "key": "run_after", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RunAfter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RunAfter" + } + } } } } @@ -28706,12 +31904,21 @@ { "key": "schedule_options", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ScheduleScheduleOption" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleScheduleOption" + } + } + } } } } @@ -28728,10 +31935,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleOptionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleOptionResponse" + } + } } } } @@ -28747,18 +31960,24 @@ { "key": "field", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "model_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28774,10 +31993,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StartModelSyncResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StartModelSyncResponseSchema" + } + } } } } @@ -28793,11 +32018,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -28805,11 +32036,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28817,10 +32054,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } } @@ -28836,11 +32079,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28848,11 +32097,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -28861,11 +32116,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28873,11 +32134,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28885,11 +32152,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28897,11 +32170,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28918,11 +32197,17 @@ { "key": "new", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28930,11 +32215,17 @@ { "key": "override_value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28942,18 +32233,27 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28961,9 +32261,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28979,11 +32282,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -28991,12 +32300,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -29004,11 +32322,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29016,12 +32340,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -29029,11 +32362,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29041,21 +32380,33 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29063,11 +32414,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29075,11 +32432,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29087,12 +32450,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -29100,12 +32472,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } } @@ -29113,13 +32494,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -29128,21 +32518,33 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } + } } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29150,10 +32552,16 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } + } } } } @@ -29169,10 +32577,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } } } } @@ -29188,10 +32602,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncStatusResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncStatusResponse" + } + } } } } @@ -29207,31 +32627,49 @@ { "key": "current_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "last_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "next_execution_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -29248,17 +32686,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -29266,20 +32716,29 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29287,11 +32746,17 @@ { "key": "new_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29299,26 +32764,41 @@ { "key": "object", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "search_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -29335,11 +32815,17 @@ { "key": "association", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29347,11 +32833,17 @@ { "key": "createable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29359,11 +32851,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29371,11 +32869,17 @@ { "key": "filterable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29383,11 +32887,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29395,12 +32905,21 @@ { "key": "identity_functions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:IdentityFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdentityFunction" + } + } + } } } } @@ -29408,11 +32927,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29420,11 +32945,17 @@ { "key": "required", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29432,11 +32963,17 @@ { "key": "source_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29444,11 +32981,17 @@ { "key": "supports_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29456,11 +32999,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29468,11 +33017,17 @@ { "key": "updateable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -29489,12 +33044,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TargetField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetField" + } + } + } } } } @@ -29502,11 +33066,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29514,12 +33084,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Mode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Mode" + } + } + } } } } @@ -29527,11 +33106,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29539,21 +33124,33 @@ { "key": "properties", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncDestinationProperties" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncDestinationProperties" + } + } } } }, { "key": "refreshed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -29570,10 +33167,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TargetResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetResponse" + } + } } } } @@ -29589,11 +33192,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29601,11 +33210,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29613,11 +33228,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29625,11 +33246,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29646,10 +33273,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } } } } @@ -29665,11 +33298,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -29677,11 +33316,17 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29689,11 +33334,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29701,11 +33352,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29713,11 +33370,17 @@ { "key": "secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -29734,10 +33397,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } } } } @@ -29753,12 +33422,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } + } } } } @@ -29856,10 +33534,13 @@ { "key": "X-Polytomic-Version", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "2022-12-12" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2022-12-12" + } } } } @@ -30131,11 +33812,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -30143,37 +33830,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -30181,20 +33892,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -30202,11 +33922,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -30215,11 +33941,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30228,20 +33960,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -30249,13 +33990,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -30264,20 +34014,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -30286,17 +34048,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -30304,9 +34078,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -30729,9 +34506,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -30740,11 +34520,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -31004,9 +34790,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -31020,11 +34809,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -31032,37 +34827,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -31070,20 +34889,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -31091,11 +34919,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -31104,11 +34938,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -31117,20 +34957,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31138,13 +34987,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -31153,20 +35011,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -31175,17 +35045,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -31193,9 +35075,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -31701,9 +35586,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -31712,11 +35600,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -32062,9 +35956,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -32458,9 +36355,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -32474,11 +36374,17 @@ { "key": "resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -32486,13 +36392,22 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -32501,11 +36416,17 @@ { "key": "test", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -32763,9 +36684,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -33090,9 +37014,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -33101,11 +37028,17 @@ { "key": "include_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -33477,9 +37410,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -33860,9 +37796,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -34112,18 +38051,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "exec_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -34370,287 +38315,308 @@ { "key": "id", "valueShape": { - "type": "primitive", - "value": { - "type": "string" - } - } - } - ], - "queryParameters": [ - { - "key": "filters", - "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - } - } - } - } - ], - "response": { - "statusCode": 200, - "body": { - "type": "alias", - "value": { - "type": "id", - "id": "type_:ListBulkSchema" - } - } - }, - "errors": [ - { - "description": "Unauthorized", - "statusCode": 401, - "shape": { - "type": "alias", - "value": { - "type": "id", - "id": "type_:RestErrResponse" - } - }, - "examples": [] - }, - { - "description": "Not Found", - "statusCode": 404, - "shape": { "type": "alias", "value": { - "type": "id", - "id": "type_:ApiError" - } - }, - "examples": [] - } - ], - "examples": [ - { - "path": "/api/bulk/syncs/248df4b7-aa70-47b8-a036-33ac447e668d/schemas", - "responseStatusCode": 200, - "pathParameters": { - "id": "248df4b7-aa70-47b8-a036-33ac447e668d" - }, - "queryParameters": {}, - "headers": {}, - "responseBody": { - "type": "json", - "value": { - "data": [ - { - "enabled": true, - "fields": [ - { - "enabled": true, - "id": "email", - "obfuscated": false - } - ], - "id": "Contact", - "output_name": "contact", - "partition_key": "email" - } - ] - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl https://app.polytomic.com/api/bulk/syncs/248df4b7-aa70-47b8-a036-33ac447e668d/schemas \\\n -H \"Authorization: Bearer \"", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", - "generated": true - } - ], - "go": [ - { - "language": "go", - "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", - "generated": true - } - ] - } - }, - { - "path": "/api/bulk/syncs/:id/schemas", - "responseStatusCode": 401, - "pathParameters": { - "id": ":id" - }, - "queryParameters": { - "filters": { - "string": "string" - } - }, - "headers": { - "X-Polytomic-Version": "2024-02-08" - }, - "responseBody": { - "type": "json", - "value": { - "code": 0, - "context": { - "string": {} - }, - "error": "string", - "status": "string" - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -G https://app.polytomic.com/api/bulk/syncs/:id/schemas \\\n -H \"X-Polytomic-Version: 2024-02-08\" \\\n -H \"Authorization: Bearer \" \\\n --data-urlencode filters={\"string\":\"string\"}", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", - "generated": true - } - ], - "go": [ - { - "language": "go", - "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", - "generated": true - } - ] - } - }, - { - "path": "/api/bulk/syncs/:id/schemas", - "responseStatusCode": 404, - "pathParameters": { - "id": ":id" - }, - "queryParameters": { - "filters": { - "string": "string" - } - }, - "headers": { - "X-Polytomic-Version": "2024-02-08" - }, - "responseBody": { - "type": "json", - "value": { - "message": "string", - "metadata": {}, - "status": 0 - } - }, - "snippets": { - "curl": [ - { - "language": "curl", - "code": "curl -G https://app.polytomic.com/api/bulk/syncs/:id/schemas \\\n -H \"X-Polytomic-Version: 2024-02-08\" \\\n -H \"Authorization: Bearer \" \\\n --data-urlencode filters={\"string\":\"string\"}", - "generated": true - } - ], - "python": [ - { - "language": "python", - "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", - "generated": true - } - ], - "typescript": [ - { - "name": "TypeScript SDK", - "language": "typescript", - "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", - "generated": true - } - ], - "go": [ - { - "language": "go", - "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", - "generated": true + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + ], + "queryParameters": [ + { + "key": "filters", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + ], + "response": { + "statusCode": 200, + "body": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ListBulkSchema" + } + } + }, + "errors": [ + { + "description": "Unauthorized", + "statusCode": 401, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RestErrResponse" + } + }, + "examples": [] + }, + { + "description": "Not Found", + "statusCode": 404, + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApiError" + } + }, + "examples": [] + } + ], + "examples": [ + { + "path": "/api/bulk/syncs/248df4b7-aa70-47b8-a036-33ac447e668d/schemas", + "responseStatusCode": 200, + "pathParameters": { + "id": "248df4b7-aa70-47b8-a036-33ac447e668d" + }, + "queryParameters": {}, + "headers": {}, + "responseBody": { + "type": "json", + "value": { + "data": [ + { + "enabled": true, + "fields": [ + { + "enabled": true, + "id": "email", + "obfuscated": false + } + ], + "id": "Contact", + "output_name": "contact", + "partition_key": "email" + } + ] + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl https://app.polytomic.com/api/bulk/syncs/248df4b7-aa70-47b8-a036-33ac447e668d/schemas \\\n -H \"Authorization: Bearer \"", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", + "generated": true + } + ], + "go": [ + { + "language": "go", + "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", + "generated": true + } + ] + } + }, + { + "path": "/api/bulk/syncs/:id/schemas", + "responseStatusCode": 401, + "pathParameters": { + "id": ":id" + }, + "queryParameters": { + "filters": { + "string": "string" + } + }, + "headers": { + "X-Polytomic-Version": "2024-02-08" + }, + "responseBody": { + "type": "json", + "value": { + "code": 0, + "context": { + "string": {} + }, + "error": "string", + "status": "string" + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -G https://app.polytomic.com/api/bulk/syncs/:id/schemas \\\n -H \"X-Polytomic-Version: 2024-02-08\" \\\n -H \"Authorization: Bearer \" \\\n --data-urlencode filters={\"string\":\"string\"}", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", + "generated": true + } + ], + "go": [ + { + "language": "go", + "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", + "generated": true + } + ] + } + }, + { + "path": "/api/bulk/syncs/:id/schemas", + "responseStatusCode": 404, + "pathParameters": { + "id": ":id" + }, + "queryParameters": { + "filters": { + "string": "string" + } + }, + "headers": { + "X-Polytomic-Version": "2024-02-08" + }, + "responseBody": { + "type": "json", + "value": { + "message": "string", + "metadata": {}, + "status": 0 + } + }, + "snippets": { + "curl": [ + { + "language": "curl", + "code": "curl -G https://app.polytomic.com/api/bulk/syncs/:id/schemas \\\n -H \"X-Polytomic-Version: 2024-02-08\" \\\n -H \"Authorization: Bearer \" \\\n --data-urlencode filters={\"string\":\"string\"}", + "generated": true + } + ], + "python": [ + { + "language": "python", + "code": "from polytomic.client import Polytomic\n\nclient = Polytomic(\n token=\"YOUR_TOKEN\",\n)\nclient.bulk_sync.schemas.list(\n id=\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n)\n", + "generated": true + } + ], + "typescript": [ + { + "name": "TypeScript SDK", + "language": "typescript", + "code": "import { PolytomicClient } from \"polytomic\";\n\nconst polytomic = new PolytomicClient({ token: \"YOUR_TOKEN\" });\nawait polytomic.bulkSync.schemas.list(\"248df4b7-aa70-47b8-a036-33ac447e668d\", {});\n", + "generated": true + } + ], + "go": [ + { + "language": "go", + "code": "import (\n\tbulksync \"github.com/polytomic/polytomic-go/bulksync\"\n\tcontext \"context\"\n\toption \"github.com/polytomic/polytomic-go/option\"\n\tpolytomicgoclient \"github.com/polytomic/polytomic-go/client\"\n)\n\nclient := polytomicgoclient.NewClient(\n\toption.WithToken(\n\t\t\"\",\n\t),\n)\nresponse, err := client.BulkSync.Schemas.List(\n\tcontext.TODO(),\n\t\"248df4b7-aa70-47b8-a036-33ac447e668d\",\n\t&bulksync.SchemasListRequest{},\n)\n", + "generated": true + } + ] + } + } + ] + }, + "endpoint_bulkSync/schemas.Patch": { + "id": "endpoint_bulkSync/schemas.Patch", + "namespace": [ + "subpackage_bulkSync", + "subpackage_bulkSync/schemas" + ], + "method": "PATCH", + "path": [ + { + "type": "literal", + "value": "/api/bulk/syncs/" + }, + { + "type": "pathParameter", + "value": "id" + }, + { + "type": "literal", + "value": "/schemas" + } + ], + "auth": [ + "default" + ], + "defaultEnvironment": "Default", + "environments": [ + { + "id": "Default", + "baseUrl": "https://app.polytomic.com" + } + ], + "pathParameters": [ + { + "key": "id", + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" } - ] - } - } - ] - }, - "endpoint_bulkSync/schemas.Patch": { - "id": "endpoint_bulkSync/schemas.Patch", - "namespace": [ - "subpackage_bulkSync", - "subpackage_bulkSync/schemas" - ], - "method": "PATCH", - "path": [ - { - "type": "literal", - "value": "/api/bulk/syncs/" - }, - { - "type": "pathParameter", - "value": "id" - }, - { - "type": "literal", - "value": "/schemas" - } - ], - "auth": [ - "default" - ], - "defaultEnvironment": "Default", - "environments": [ - { - "id": "Default", - "baseUrl": "https://app.polytomic.com" - } - ], - "pathParameters": [ - { - "key": "id", - "valueShape": { - "type": "primitive", - "value": { - "type": "string" } } } @@ -34664,12 +38630,21 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -35062,18 +39037,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -35320,18 +39301,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -35345,11 +39332,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -35357,12 +39350,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkField" + } + } + } } } } @@ -35370,11 +39372,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36202,17 +40210,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -36220,20 +40240,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36241,13 +40270,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -36256,11 +40294,17 @@ { "key": "redirect_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36269,20 +40313,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -36751,11 +40804,17 @@ { "key": "connection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36763,20 +40822,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36784,20 +40852,29 @@ { "key": "redirect_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36805,13 +40882,22 @@ { "key": "whitelist", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -37120,9 +41206,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -37431,9 +41520,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -37447,17 +41539,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -37465,20 +41569,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37486,13 +41599,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -37501,11 +41623,17 @@ { "key": "reconnect", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -37513,11 +41641,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37525,11 +41659,17 @@ { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -38071,9 +42211,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -38082,11 +42225,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -38496,9 +42645,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -38794,9 +42946,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -38805,23 +42960,41 @@ { "key": "params", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "map", + "keyShape": { + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + } } } } @@ -39275,9 +43448,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -39704,9 +43880,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -39715,11 +43894,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -39727,11 +43912,17 @@ { "key": "search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -40172,9 +44363,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -40183,20 +44377,29 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "refresh", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -40937,11 +45140,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -40949,22 +45158,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -40972,11 +45196,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -40984,12 +45214,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -40997,39 +45236,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -41037,12 +45294,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -41051,12 +45317,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -41065,13 +45340,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -41080,18 +45364,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -41099,8 +45392,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -41870,9 +46166,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -42246,9 +46545,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -42262,11 +46564,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -42274,22 +46582,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -42297,11 +46620,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -42309,12 +46638,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -42322,39 +46660,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -42362,12 +46718,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -42376,12 +46741,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -42390,13 +46764,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -42405,18 +46788,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -42424,8 +46816,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -43070,9 +47465,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -43407,9 +47805,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -43804,9 +48205,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -43820,13 +48224,22 @@ { "key": "identities", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -43835,11 +48248,17 @@ { "key": "resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -44283,9 +48702,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -44610,9 +49032,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -44947,9 +49372,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -45308,18 +49736,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -45694,18 +50128,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -46131,9 +50571,12 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -46147,10 +50590,16 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } } @@ -46519,11 +50968,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -47222,11 +51677,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -47682,9 +52143,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -47693,11 +52157,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -48054,9 +52524,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -48065,11 +52538,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -48084,12 +52563,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -48097,17 +52585,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -48115,32 +52615,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -48149,11 +52667,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -48161,13 +52685,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -48176,20 +52709,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -48197,13 +52739,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -48212,12 +52763,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -48225,13 +52785,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -48692,9 +53261,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -48703,11 +53275,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -49052,9 +53630,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -49063,11 +53644,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -49327,11 +53914,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49339,11 +53932,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49351,11 +53950,17 @@ { "key": "starting_after", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -49363,11 +53968,17 @@ { "key": "ending_before", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -49375,11 +53986,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -49834,18 +54451,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -50634,11 +55257,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50646,11 +55275,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50658,11 +55293,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50670,20 +55311,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50691,11 +55341,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51006,9 +55662,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -51238,9 +55897,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -51254,11 +55916,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51266,11 +55934,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51278,11 +55952,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51290,20 +55970,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51311,11 +56000,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51634,9 +56329,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -51910,9 +56608,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -52147,9 +56848,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -52163,20 +56867,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -52502,18 +57215,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -52816,18 +57535,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -52841,20 +57566,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -53184,18 +57918,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -53502,18 +58242,24 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -53522,11 +58268,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -54048,20 +58800,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -54069,12 +58830,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -54524,9 +59294,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -54825,9 +59598,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -54841,20 +59617,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -54862,12 +59647,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -55329,9 +60123,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -55876,20 +60673,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -56331,9 +61137,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -56562,9 +61371,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -56578,20 +61390,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -57045,9 +61866,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -57383,9 +62207,12 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -57635,18 +62462,24 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -57968,27 +62801,36 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -58375,36 +63217,48 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -58965,20 +63819,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -58986,11 +63849,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -59304,9 +64170,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -59536,9 +64405,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -59552,20 +64424,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -59573,11 +64454,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -59898,9 +64782,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -60152,11 +65039,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60164,20 +65057,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -60252,15 +65157,21 @@ { "key": "item", "valueShape": { - "type": "id", - "id": "type_:BulkSelectiveMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSelectiveMode" + } } }, { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } } ] @@ -60275,12 +65186,21 @@ { "key": "schedules", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkItemizedSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkItemizedSchedule" + } + } + } } } } @@ -60288,9 +65208,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -60306,11 +65229,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60318,11 +65247,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60330,18 +65265,27 @@ { "key": "frequency", "valueShape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60349,11 +65293,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60361,11 +65311,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60373,10 +65329,16 @@ { "key": "multi", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkMultiScheduleConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkMultiScheduleConfiguration" + } + } } } } @@ -60533,13 +65495,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -60551,13 +65519,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -60571,11 +65545,17 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60583,27 +65563,36 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -60619,11 +65608,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60631,10 +65626,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelRelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelationTo" + } + } } } } @@ -60650,11 +65651,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60662,11 +65669,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60683,11 +65696,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -60696,17 +65715,29 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -60715,11 +65746,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60728,11 +65765,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -60788,21 +65831,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JsonschemaForm" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JsonschemaForm" + } + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60810,21 +65865,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60841,11 +65908,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60853,11 +65926,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60865,13 +65944,22 @@ { "key": "reference_to", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -60880,11 +65968,17 @@ { "key": "referenced_field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60918,11 +66012,17 @@ { "key": "does_not_report_operation_counts", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -60930,11 +66030,17 @@ { "key": "new_target_label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60942,11 +66048,17 @@ { "key": "optional_target_mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -60954,11 +66066,17 @@ { "key": "primary_metadata_object", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -60966,11 +66084,17 @@ { "key": "requires_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -60978,11 +66102,17 @@ { "key": "supports_field_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -60990,11 +66120,17 @@ { "key": "supports_field_type_selection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61002,11 +66138,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61014,11 +66156,17 @@ { "key": "target_creator", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61026,11 +66174,17 @@ { "key": "use_field_names_as_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61088,11 +66242,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61109,10 +66269,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:APIKeyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:APIKeyResponse" + } + } } } } @@ -61128,10 +66294,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ActivateSyncOutput" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ActivateSyncOutput" + } + } } } } @@ -61147,9 +66319,12 @@ { "key": "active", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } } @@ -61165,11 +66340,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61177,11 +66358,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61198,17 +66385,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -61216,12 +66415,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SupportedMode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SupportedMode" + } + } + } } } } @@ -61238,10 +66446,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncDest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncDest" + } + } } } } @@ -61257,12 +66471,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } + } } } } @@ -61279,11 +66502,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61291,17 +66520,29 @@ { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -61309,11 +66550,17 @@ { "key": "destination_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61321,11 +66568,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61333,11 +66586,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61345,11 +66604,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61357,11 +66622,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61369,11 +66640,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61381,13 +66658,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -61396,27 +66682,45 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } + } } } }, { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -61424,11 +66728,17 @@ { "key": "source_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61445,10 +66755,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } } } } @@ -61464,11 +66780,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -61476,11 +66801,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61497,12 +66828,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } + } } } } @@ -61519,11 +66859,17 @@ { "key": "has_items", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61531,11 +66877,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -61543,13 +66898,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -61567,18 +66931,30 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigurationValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:ConfigurationValue" } } } @@ -61586,20 +66962,35 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMeta" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMeta" + } + } + } + } } } } @@ -61608,13 +66999,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -61632,11 +67032,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61644,9 +67050,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -61662,11 +67074,17 @@ { "key": "allows_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61674,12 +67092,21 @@ { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionParameterValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValue" + } + } + } } } } @@ -61696,20 +67123,35 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionParameterValuesResp" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValuesResp" + } + } + } + } } } } @@ -61727,10 +67169,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } } } } @@ -61746,11 +67194,17 @@ { "key": "api_calls_last_24_hours", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -61759,17 +67213,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -61777,11 +67243,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61789,11 +67261,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61801,11 +67279,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61813,13 +67297,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -61828,11 +67321,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61840,11 +67339,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61852,10 +67357,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -61871,17 +67382,29 @@ { "key": "envConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -61889,11 +67412,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61901,11 +67430,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61913,11 +67448,17 @@ { "key": "use_oauth", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61934,12 +67475,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionType" + } + } + } } } } @@ -61956,11 +67506,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61968,11 +67524,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61980,13 +67542,22 @@ { "key": "operations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62004,10 +67575,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CreateConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateConnectionResponseSchema" + } + } } } } @@ -62023,11 +67600,17 @@ { "key": "auth_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62036,11 +67619,17 @@ { "key": "auth_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62049,17 +67638,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -62067,11 +67668,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62079,11 +67686,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62091,11 +67704,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62103,13 +67722,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62118,11 +67746,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62130,11 +67764,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62142,10 +67782,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -62161,12 +67807,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -62174,17 +67829,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -62192,32 +67859,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62226,11 +67911,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62238,13 +67929,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62253,20 +67953,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62274,13 +67983,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62289,12 +68007,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -62302,13 +68029,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62325,13 +68061,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -62344,15 +68086,21 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -62367,21 +68115,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } }, { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62389,11 +68149,17 @@ { "key": "enricher_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62402,12 +68168,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } }, @@ -62416,10 +68191,16 @@ { "key": "mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherMapping" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherMapping" + } + } } } } @@ -62435,11 +68216,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -62447,20 +68234,32 @@ { "key": "event", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62468,11 +68267,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62480,11 +68285,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62501,13 +68312,22 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62525,12 +68345,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Event" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Event" + } + } + } } } } @@ -62547,11 +68376,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -62559,11 +68394,17 @@ { "key": "insert", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -62571,11 +68412,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -62583,11 +68430,17 @@ { "key": "update", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -62604,11 +68457,17 @@ { "key": "expires", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -62616,13 +68475,22 @@ { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62640,10 +68508,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionLogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionLogResponse" + } + } } } } @@ -62660,21 +68534,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62683,28 +68569,43 @@ { "key": "field_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFieldReferenceType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFieldReferenceType" + } + } } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62712,9 +68613,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -62730,10 +68637,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMetaResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMetaResponse" + } + } } } } @@ -62749,15 +68662,27 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -62776,10 +68701,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } } @@ -62795,11 +68726,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -62807,21 +68744,33 @@ { "key": "counts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionCounts" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionCounts" + } + } } } }, { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -62829,13 +68778,22 @@ { "key": "errors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -62844,11 +68802,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62856,11 +68820,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -62868,21 +68838,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62899,10 +68881,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetIdentityResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetIdentityResponseSchema" + } + } } } } @@ -62918,11 +68906,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62930,11 +68924,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62942,11 +68942,17 @@ { "key": "is_organization", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -62954,11 +68960,17 @@ { "key": "is_partner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -62966,11 +68978,17 @@ { "key": "is_system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -62978,11 +68996,17 @@ { "key": "is_user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -62990,11 +69014,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63002,11 +69032,17 @@ { "key": "organization_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63014,11 +69050,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63035,18 +69077,27 @@ { "key": "function", "valueShape": { - "type": "id", - "id": "type_:SchemaIdentityFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaIdentityFunction" + } } }, { "key": "new_field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63054,11 +69105,17 @@ { "key": "remote_field_type_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63066,16 +69123,22 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -63091,11 +69154,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63103,11 +69172,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63124,11 +69199,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63136,11 +69217,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63148,30 +69235,48 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WorkTaskStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkTaskStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63188,10 +69293,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -63207,12 +69318,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } + } } } } @@ -63229,12 +69349,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } + } } } } @@ -63251,12 +69380,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } + } } } } @@ -63273,12 +69411,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } + } } } } @@ -63295,11 +69442,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63307,11 +69460,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63319,11 +69478,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63331,11 +69496,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63343,11 +69514,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63355,11 +69532,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63376,11 +69559,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63388,20 +69577,32 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63409,11 +69610,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63421,11 +69628,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63433,11 +69646,17 @@ { "key": "remote_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63445,11 +69664,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63457,11 +69682,17 @@ { "key": "unique", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63469,11 +69700,17 @@ { "key": "user_added", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -63490,12 +69727,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -63512,12 +69758,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } + } } } } @@ -63534,17 +69789,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -63552,11 +69819,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63564,22 +69837,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -63587,11 +69875,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63599,11 +69893,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63611,12 +69911,21 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LabelLabel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LabelLabel" + } + } + } } } } @@ -63624,11 +69933,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63636,11 +69951,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63648,13 +69969,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -63663,12 +69993,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Relation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Relation" + } + } + } } } } @@ -63676,13 +70015,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -63691,11 +70039,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63703,11 +70057,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -63724,20 +70084,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -63753,12 +70125,21 @@ { "key": "records", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:V2SampleRecord" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2SampleRecord" + } + } + } } } } @@ -63766,13 +70147,22 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -63790,20 +70180,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSample" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSample" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -63819,11 +70221,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63831,11 +70239,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63843,11 +70257,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63855,11 +70275,17 @@ { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63867,11 +70293,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63888,10 +70320,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } } } } @@ -63907,12 +70345,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } + } } } } @@ -63930,21 +70377,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63953,28 +70412,46 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } + } } } }, { "key": "override", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -63990,22 +70467,34 @@ { "key": "action", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -64023,23 +70512,35 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } }, { - "key": "name", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "key": "name", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64047,11 +70548,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64059,12 +70566,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -64072,11 +70588,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64093,10 +70615,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } } } } @@ -64112,11 +70640,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64124,10 +70658,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RelationTo" + } + } } } } @@ -64143,11 +70683,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64155,11 +70701,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64176,12 +70728,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } + } } } } @@ -64198,11 +70759,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64210,11 +70777,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64222,11 +70795,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64234,11 +70813,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64255,10 +70840,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } } } } @@ -64274,13 +70865,22 @@ { "key": "bulk_sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -64289,13 +70889,22 @@ { "key": "sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -64312,21 +70921,33 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { "type": "primitive", "value": { "type": "string" } - }, - "valueShape": { - "type": "unknown" + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -64341,11 +70962,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64353,11 +70980,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64365,11 +70998,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64377,21 +71016,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64399,11 +71050,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -64411,11 +71068,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64423,11 +71086,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64435,10 +71104,16 @@ { "key": "run_after", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RunAfter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RunAfter" + } + } } } } @@ -64454,12 +71129,21 @@ { "key": "schedule_options", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ScheduleScheduleOption" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleScheduleOption" + } + } + } } } } @@ -64476,10 +71160,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleOptionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleOptionResponse" + } + } } } } @@ -64495,18 +71185,24 @@ { "key": "field", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "model_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -64522,10 +71218,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StartModelSyncResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StartModelSyncResponseSchema" + } + } } } } @@ -64541,11 +71243,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -64553,11 +71261,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64565,10 +71279,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } } @@ -64584,11 +71304,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64596,11 +71322,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -64609,11 +71341,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64621,11 +71359,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64633,11 +71377,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64645,11 +71395,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64666,11 +71422,17 @@ { "key": "new", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64678,11 +71440,17 @@ { "key": "override_value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64690,18 +71458,27 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64709,9 +71486,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -64727,11 +71507,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64739,12 +71525,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -64752,11 +71547,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64764,12 +71565,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -64777,11 +71587,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64789,21 +71605,33 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64811,11 +71639,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64823,11 +71657,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -64835,12 +71675,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -64848,12 +71697,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } } @@ -64861,13 +71719,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -64876,21 +71743,33 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } + } } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -64898,10 +71777,16 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } + } } } } @@ -64917,10 +71802,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } } } } @@ -64936,10 +71827,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncStatusResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncStatusResponse" + } + } } } } @@ -64955,31 +71852,49 @@ { "key": "current_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "last_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "next_execution_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -64996,17 +71911,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -65014,20 +71941,29 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65035,11 +71971,17 @@ { "key": "new_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65047,26 +71989,41 @@ { "key": "object", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "search_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -65083,11 +72040,17 @@ { "key": "association", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65095,11 +72058,17 @@ { "key": "createable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65107,11 +72076,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65119,11 +72094,17 @@ { "key": "filterable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65131,11 +72112,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65143,12 +72130,21 @@ { "key": "identity_functions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:IdentityFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdentityFunction" + } + } + } } } } @@ -65156,11 +72152,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65168,11 +72170,17 @@ { "key": "required", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65180,11 +72188,17 @@ { "key": "source_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65192,11 +72206,17 @@ { "key": "supports_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65204,11 +72224,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65216,11 +72242,17 @@ { "key": "updateable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65237,12 +72269,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TargetField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetField" + } + } + } } } } @@ -65250,11 +72291,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65262,12 +72309,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Mode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Mode" + } + } + } } } } @@ -65275,11 +72331,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65287,21 +72349,33 @@ { "key": "properties", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncDestinationProperties" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncDestinationProperties" + } + } } } }, { "key": "refreshed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65318,10 +72392,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TargetResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetResponse" + } + } } } } @@ -65337,11 +72417,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65349,11 +72435,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65361,11 +72453,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65373,11 +72471,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65394,10 +72498,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } } } } @@ -65413,11 +72523,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65425,11 +72541,17 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65437,11 +72559,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65449,11 +72577,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65461,11 +72595,17 @@ { "key": "secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65482,10 +72622,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } } } } @@ -65501,12 +72647,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } + } } } } @@ -65523,11 +72678,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65535,11 +72696,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65547,11 +72714,17 @@ { "key": "obfuscated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65568,11 +72741,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65580,12 +72759,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkField" + } + } + } } } } @@ -65593,11 +72781,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65605,11 +72799,17 @@ { "key": "output_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65617,11 +72817,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65638,10 +72844,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } } } } @@ -65657,11 +72869,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65669,11 +72887,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65681,11 +72905,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65693,11 +72923,17 @@ { "key": "is_resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65705,11 +72941,17 @@ { "key": "is_test", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -65717,12 +72959,21 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncSchemaExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSchemaExecution" + } + } + } } } } @@ -65730,11 +72981,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65742,21 +72999,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkExecutionStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65773,10 +73042,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } } @@ -65792,11 +73067,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65804,11 +73085,17 @@ { "key": "error_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -65816,11 +73103,17 @@ { "key": "record_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -65828,11 +73121,17 @@ { "key": "schema", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65840,11 +73139,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65852,21 +73157,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchemaExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchemaExecutionStatus" + } + } } } }, { "key": "status_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65883,21 +73200,36 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Schema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schema" + } + } + } } } } @@ -65914,10 +73246,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSource" + } + } } } } @@ -65933,10 +73271,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Schema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schema" + } + } } } } @@ -65952,11 +73296,17 @@ { "key": "cache_status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -65964,11 +73314,17 @@ { "key": "last_refresh_finished", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65976,11 +73332,17 @@ { "key": "last_refresh_started", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -65997,10 +73359,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncSourceStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSourceStatus" + } + } } } } @@ -66016,10 +73384,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncStatusResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncStatusResponse" + } + } } } } @@ -66035,31 +73409,49 @@ { "key": "current_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } }, { "key": "last_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } }, { "key": "next_execution_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -66076,11 +73468,17 @@ { "key": "redirect_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66088,11 +73486,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66109,10 +73513,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectCardResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectCardResponse" + } + } } } } @@ -66128,12 +73538,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -66150,12 +73569,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } + } } } } @@ -66172,11 +73600,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66184,11 +73618,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66205,12 +73645,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SchemaField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaField" + } + } + } } } } @@ -66218,11 +73667,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66230,11 +73685,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66251,21 +73712,33 @@ { "key": "association", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SchemaAssociation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaAssociation" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66273,11 +73746,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66285,11 +73764,17 @@ { "key": "remote_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66297,11 +73782,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -66309,12 +73800,21 @@ { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PickValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PickValue" + } + } + } } } } @@ -66331,19 +73831,34 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -66361,10 +73876,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSyncSourceMetaResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncSourceMetaResponse" + } + } } } } @@ -66380,11 +73901,17 @@ { "key": "has_items", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -66392,11 +73919,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -66404,13 +73940,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -66428,18 +73973,30 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigurationValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:ConfigurationValue" } } } @@ -66447,20 +74004,35 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SourceMeta" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SourceMeta" + } + } + } + } } } } @@ -66469,13 +74041,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -66582,10 +74163,13 @@ { "key": "X-Polytomic-Version", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "2024-02-08" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2024-02-08" + } } } } @@ -66624,9 +74208,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -67002,9 +74589,12 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -67013,11 +74603,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -67025,11 +74621,17 @@ { "key": "include_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -67409,18 +75011,24 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -67787,9 +75395,12 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -68373,11 +75984,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -68385,37 +76002,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -68423,20 +76064,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -68444,11 +76094,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -68457,11 +76113,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -68470,20 +76132,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -68491,13 +76162,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -68506,20 +76186,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -68528,17 +76220,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -68546,9 +76250,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -68971,9 +76678,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -68982,11 +76692,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -69245,9 +76961,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -69256,11 +76975,17 @@ { "key": "refresh_schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -69603,9 +77328,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -69619,11 +77347,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -69631,37 +77365,61 @@ { "key": "automatically_add_new_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "automatically_add_new_objects", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkDiscover" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkDiscover" + } + } } } }, { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -69669,20 +77427,29 @@ { "key": "destination_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "disable_record_timestamps", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -69690,11 +77457,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -69703,11 +77476,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -69716,20 +77495,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -69737,13 +77525,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -69752,20 +77549,32 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -69774,17 +77583,29 @@ { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -69792,9 +77613,12 @@ { "key": "source_connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -70304,9 +78128,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -70700,9 +78527,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -70716,11 +78546,17 @@ { "key": "resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -70728,13 +78564,22 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -70743,11 +78588,17 @@ { "key": "test", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -71005,9 +78856,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -71333,9 +79187,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -71585,18 +79442,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "exec_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -71843,9 +79706,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -71854,21 +79720,36 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -72121,9 +80002,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -72137,12 +80021,21 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -72460,18 +80353,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -72718,18 +80617,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -72743,11 +80648,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -72755,12 +80666,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkField" + } + } + } } } } @@ -72768,11 +80688,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -73600,17 +81526,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -73618,20 +81556,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -73639,13 +81586,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -73654,11 +81610,17 @@ { "key": "redirect_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -73667,20 +81629,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -74149,11 +82120,17 @@ { "key": "connection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -74161,20 +82138,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -74182,20 +82168,29 @@ { "key": "redirect_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -74203,13 +82198,22 @@ { "key": "whitelist", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -74478,9 +82482,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -74789,9 +82796,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -74800,11 +82810,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -75210,9 +83226,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -75226,17 +83245,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -75244,20 +83275,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -75265,13 +83305,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -75280,11 +83329,17 @@ { "key": "reconnect", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -75292,11 +83347,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -75304,11 +83365,17 @@ { "key": "validate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -75854,9 +83921,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -76152,9 +84222,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -76579,9 +84652,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -76595,17 +84671,29 @@ { "key": "query", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -77059,9 +85147,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -77070,11 +85161,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -77082,11 +85179,17 @@ { "key": "search", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -77530,9 +85633,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -77546,11 +85652,17 @@ { "key": "refresh", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -77558,9 +85670,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -77992,18 +86107,24 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "schema_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -78429,9 +86550,12 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -78445,10 +86569,16 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } } @@ -78707,11 +86837,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -79300,11 +87436,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -79760,9 +87902,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -79771,11 +87916,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -80132,9 +88283,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -80143,11 +88297,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -80487,9 +88647,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -80498,11 +88661,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -80517,12 +88686,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -80530,17 +88708,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -80548,32 +88738,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -80582,11 +88790,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -80594,13 +88808,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -80609,20 +88832,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -80630,13 +88862,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -80645,12 +88886,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -80658,13 +88908,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -81130,9 +89389,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -81141,11 +89403,17 @@ { "key": "async", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -81405,11 +89673,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -81417,11 +89691,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -81429,11 +89709,17 @@ { "key": "starting_after", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -81441,11 +89727,17 @@ { "key": "ending_before", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -81453,11 +89745,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -81912,18 +90210,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -82667,11 +90971,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -82679,11 +90989,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -82691,11 +91007,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -82703,20 +91025,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -82724,11 +91055,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83039,9 +91376,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -83271,9 +91611,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -83543,9 +91886,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -83559,11 +91905,17 @@ { "key": "client_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83571,11 +91923,17 @@ { "key": "client_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83583,11 +91941,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83595,20 +91959,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83616,11 +91989,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -83943,9 +92322,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -84180,9 +92562,12 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -84196,20 +92581,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -84535,18 +92929,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -84849,18 +93249,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -85163,18 +93569,24 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -85188,20 +93600,29 @@ { "key": "email", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -85535,18 +93956,24 @@ { "key": "org_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -85555,11 +93982,17 @@ { "key": "force", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -86081,20 +94514,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -86102,12 +94544,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -86557,9 +95008,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -86858,9 +95312,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -87192,9 +95649,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -87208,20 +95668,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -87229,12 +95698,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -87909,20 +96387,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -88364,9 +96851,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -88595,9 +97085,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -88929,9 +97422,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -88945,20 +97441,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -89748,11 +98253,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -89760,22 +98271,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -89783,11 +98309,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -89795,12 +98327,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -89808,39 +98349,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -89848,12 +98407,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -89862,12 +98430,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -89876,13 +98453,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -89891,18 +98477,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -89910,8 +98505,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -90681,9 +99279,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -91057,9 +99658,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -91390,9 +99994,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -91406,11 +100013,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -91418,22 +100031,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -91441,11 +100069,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -91453,12 +100087,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -91466,39 +100109,57 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -91506,12 +100167,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } }, @@ -91520,12 +100190,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } }, @@ -91534,13 +100213,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -91549,18 +100237,27 @@ { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -91568,8 +100265,11 @@ { "key": "target", "valueShape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } } } ] @@ -92218,9 +100918,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -92615,9 +101318,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -92631,13 +101337,22 @@ { "key": "identities", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -92646,11 +101361,17 @@ { "key": "resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -93094,9 +101815,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -93422,9 +102146,12 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -93674,18 +102401,24 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -94007,27 +102740,36 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -94339,36 +103081,48 @@ { "key": "sync_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -94854,20 +103608,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -94875,11 +103638,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -95193,9 +103959,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -95424,9 +104193,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -95696,9 +104468,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -95712,20 +104487,29 @@ { "key": "endpoint", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -95733,11 +104517,14 @@ { "key": "secret", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string", - "minLength": 6, - "maxLength": 6 + "type": "primitive", + "value": { + "type": "string", + "minLength": 6, + "maxLength": 6 + } } } } @@ -96041,11 +104828,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96053,20 +104846,32 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -96141,15 +104946,21 @@ { "key": "item", "valueShape": { - "type": "id", - "id": "type_:BulkSelectiveMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSelectiveMode" + } } }, { "key": "schedule", "valueShape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } } } ] @@ -96164,12 +104975,21 @@ { "key": "schedules", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkItemizedSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkItemizedSchedule" + } + } + } } } } @@ -96177,9 +104997,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -96195,11 +105018,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96207,11 +105036,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96219,18 +105054,27 @@ { "key": "frequency", "valueShape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96238,11 +105082,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96250,11 +105100,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96262,10 +105118,16 @@ { "key": "multi", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkMultiScheduleConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkMultiScheduleConfiguration" + } + } } } } @@ -96422,13 +105284,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -96440,13 +105308,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -96460,11 +105334,17 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96472,27 +105352,36 @@ { "key": "label", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -96508,11 +105397,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96520,10 +105415,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelRelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelationTo" + } + } } } } @@ -96539,11 +105440,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96551,11 +105458,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96572,11 +105485,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -96585,17 +105504,29 @@ { "key": "context", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -96604,11 +105535,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -96617,11 +105554,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -96677,21 +105620,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JsonschemaForm" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JsonschemaForm" + } + } } } }, { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96699,21 +105654,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96730,11 +105697,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96742,11 +105715,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96754,13 +105733,22 @@ { "key": "reference_to", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -96769,11 +105757,17 @@ { "key": "referenced_field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96807,11 +105801,17 @@ { "key": "does_not_report_operation_counts", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96819,11 +105819,17 @@ { "key": "new_target_label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96831,11 +105837,17 @@ { "key": "optional_target_mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96843,11 +105855,17 @@ { "key": "primary_metadata_object", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96855,11 +105873,17 @@ { "key": "requires_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96867,11 +105891,17 @@ { "key": "supports_field_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96879,11 +105909,17 @@ { "key": "supports_field_type_selection", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96891,11 +105927,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96903,11 +105945,17 @@ { "key": "target_creator", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96915,11 +105963,17 @@ { "key": "use_field_names_as_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -96977,11 +106031,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -96998,10 +106058,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:APIKeyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:APIKeyResponse" + } + } } } } @@ -97017,10 +106083,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ActivateSyncOutput" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ActivateSyncOutput" + } + } } } } @@ -97036,9 +106108,12 @@ { "key": "active", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } } @@ -97054,11 +106129,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97066,11 +106147,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97087,17 +106174,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97105,12 +106204,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SupportedMode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SupportedMode" + } + } + } } } } @@ -97127,10 +106235,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncDest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncDest" + } + } } } } @@ -97146,12 +106260,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } + } } } } @@ -97168,11 +106291,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97180,17 +106309,29 @@ { "key": "destination_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97198,11 +106339,17 @@ { "key": "destination_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97210,11 +106357,17 @@ { "key": "discover", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97222,11 +106375,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97234,11 +106393,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97246,11 +106411,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97258,11 +106429,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97270,13 +106447,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -97285,27 +106471,45 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchedule" + } + } } } }, { "key": "source_configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97313,11 +106517,17 @@ { "key": "source_connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97334,10 +106544,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncResponse" + } + } } } } @@ -97353,11 +106569,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -97365,11 +106590,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97386,12 +106617,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } + } } } } @@ -97408,11 +106648,17 @@ { "key": "has_items", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97420,11 +106666,20 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } } @@ -97432,13 +106687,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -97456,18 +106720,30 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConfigurationValue" + } + } } - }, - "valueShape": { - "type": "id", - "id": "type_:ConfigurationValue" } } } @@ -97475,20 +106751,35 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMeta" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMeta" + } + } + } + } } } } @@ -97497,13 +106788,22 @@ { "key": "requires_one_of", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -97521,11 +106821,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97533,9 +106839,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -97551,11 +106863,17 @@ { "key": "allows_creation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97563,12 +106881,21 @@ { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionParameterValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValue" + } + } + } } } } @@ -97585,20 +106912,35 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionParameterValuesResp" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionParameterValuesResp" + } + } + } + } } } } @@ -97616,10 +106958,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionResponseSchema" + } + } } } } @@ -97635,11 +106983,17 @@ { "key": "api_calls_last_24_hours", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -97648,17 +107002,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97666,11 +107032,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97678,11 +107050,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97690,11 +107068,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97702,13 +107086,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -97717,11 +107110,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97729,11 +107128,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97741,10 +107146,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -97760,17 +107171,29 @@ { "key": "envConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97778,11 +107201,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97790,11 +107219,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97802,11 +107237,17 @@ { "key": "use_oauth", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -97823,12 +107264,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ConnectionType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionType" + } + } + } } } } @@ -97845,11 +107295,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97857,11 +107313,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97869,13 +107331,22 @@ { "key": "operations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -97893,10 +107364,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CreateConnectionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CreateConnectionResponseSchema" + } + } } } } @@ -97912,11 +107389,17 @@ { "key": "auth_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -97925,11 +107408,17 @@ { "key": "auth_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -97938,17 +107427,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -97956,11 +107457,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97968,11 +107475,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97980,11 +107493,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -97992,13 +107511,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98007,11 +107535,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98019,11 +107553,17 @@ { "key": "status_error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98031,10 +107571,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionTypeSchema" + } + } } } } @@ -98050,12 +107596,21 @@ { "key": "additional_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelModelFieldRequest" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelModelFieldRequest" + } + } + } } } } @@ -98063,17 +107618,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -98081,32 +107648,50 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98115,11 +107700,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98127,13 +107718,22 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98142,20 +107742,29 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98163,13 +107772,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98178,12 +107796,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelRelation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelRelation" + } + } + } } } } @@ -98191,13 +107818,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98214,13 +107850,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -98233,15 +107875,21 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -98256,21 +107904,33 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherConfiguration" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherConfiguration" + } + } } } }, { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98278,11 +107938,17 @@ { "key": "enricher_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -98291,12 +107957,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } }, @@ -98305,10 +107980,16 @@ { "key": "mappings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:V2EnricherMapping" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2EnricherMapping" + } + } } } } @@ -98324,11 +108005,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -98336,20 +108023,32 @@ { "key": "event", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98357,11 +108056,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98369,11 +108074,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98390,13 +108101,22 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98414,12 +108134,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Event" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Event" + } + } + } } } } @@ -98436,11 +108165,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -98448,11 +108183,17 @@ { "key": "insert", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -98460,11 +108201,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -98472,11 +108219,17 @@ { "key": "update", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -98493,11 +108246,17 @@ { "key": "expires", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -98505,13 +108264,22 @@ { "key": "urls", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98529,10 +108297,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionLogResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionLogResponse" + } + } } } } @@ -98549,21 +108323,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -98572,28 +108358,43 @@ { "key": "field_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFieldReferenceType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFieldReferenceType" + } + } } } }, { "key": "function", "valueShape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } } }, { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98601,9 +108402,15 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -98619,10 +108426,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectionMetaResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectionMetaResponse" + } + } } } } @@ -98638,15 +108451,27 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } } } } @@ -98665,10 +108490,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } } @@ -98684,11 +108515,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -98696,21 +108533,33 @@ { "key": "counts", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionCounts" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionCounts" + } + } } } }, { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -98718,13 +108567,22 @@ { "key": "errors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -98733,11 +108591,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98745,11 +108609,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -98757,21 +108627,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98788,10 +108670,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetIdentityResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetIdentityResponseSchema" + } + } } } } @@ -98807,11 +108695,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98819,11 +108713,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98831,11 +108731,17 @@ { "key": "is_organization", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -98843,11 +108749,17 @@ { "key": "is_partner", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -98855,11 +108767,17 @@ { "key": "is_system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -98867,11 +108785,17 @@ { "key": "is_user", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -98879,11 +108803,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98891,11 +108821,17 @@ { "key": "organization_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98903,11 +108839,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98924,18 +108866,27 @@ { "key": "function", "valueShape": { - "type": "id", - "id": "type_:SchemaIdentityFunction" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaIdentityFunction" + } } }, { "key": "new_field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -98943,11 +108894,17 @@ { "key": "remote_field_type_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98955,16 +108912,22 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -98980,11 +108943,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -98992,11 +108961,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99013,11 +108988,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99025,11 +109006,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99037,30 +109024,48 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WorkTaskStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WorkTaskStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99077,10 +109082,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -99096,12 +109107,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } + } } } } @@ -99118,12 +109138,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } + } } } } @@ -99140,12 +109169,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } + } } } } @@ -99162,12 +109200,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } + } } } } @@ -99184,11 +109231,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99196,11 +109249,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99208,11 +109267,17 @@ { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99220,11 +109285,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99232,11 +109303,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99244,11 +109321,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99265,11 +109348,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99277,20 +109366,32 @@ { "key": "example", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99298,11 +109399,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99310,11 +109417,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99322,11 +109435,17 @@ { "key": "remote_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99334,11 +109453,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99346,11 +109471,17 @@ { "key": "unique", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99358,11 +109489,17 @@ { "key": "user_added", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99379,12 +109516,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -99401,12 +109547,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } + } } } } @@ -99423,17 +109578,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -99441,11 +109608,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99453,22 +109626,37 @@ { "key": "enricher", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Enrichment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Enrichment" + } + } } } }, { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelField" + } + } + } } } } @@ -99476,11 +109664,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99488,11 +109682,17 @@ { "key": "identifier", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99500,12 +109700,21 @@ { "key": "labels", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LabelLabel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LabelLabel" + } + } + } } } } @@ -99513,11 +109722,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99525,11 +109740,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99537,13 +109758,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -99552,12 +109782,21 @@ { "key": "relations", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Relation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Relation" + } + } + } } } } @@ -99565,13 +109804,22 @@ { "key": "tracking_columns", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -99580,11 +109828,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99592,11 +109846,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -99613,20 +109873,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelResponse" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -99642,12 +109914,21 @@ { "key": "records", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:V2SampleRecord" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:V2SampleRecord" + } + } + } } } } @@ -99655,13 +109936,22 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -99679,20 +109969,32 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSample" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSample" + } + } } } }, { "key": "job", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:JobResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:JobResponse" + } + } } } } @@ -99708,11 +110010,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99720,11 +110028,17 @@ { "key": "issuer", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99732,11 +110046,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99744,11 +110064,17 @@ { "key": "sso_domain", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99756,11 +110082,17 @@ { "key": "sso_org_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99777,10 +110109,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } } } } @@ -99796,12 +110134,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Organization" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Organization" + } + } + } } } } @@ -99819,21 +110166,33 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } + } } } }, { "key": "field_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -99842,28 +110201,46 @@ { "key": "function", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FilterFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FilterFunction" + } + } } } }, { "key": "override", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -99879,22 +110256,34 @@ { "key": "action", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "role_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -99912,11 +110301,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99924,11 +110319,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99936,11 +110337,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -99948,12 +110355,21 @@ { "key": "policy_actions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PolicyAction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyAction" + } + } + } } } } @@ -99961,11 +110377,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -99982,10 +110404,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PolicyResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PolicyResponse" + } + } } } } @@ -100001,11 +110429,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100013,10 +110447,16 @@ { "key": "to", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RelationTo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RelationTo" + } + } } } } @@ -100032,11 +110472,17 @@ { "key": "field", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100044,11 +110490,17 @@ { "key": "model_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100065,12 +110517,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } + } } } } @@ -100087,11 +110548,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100099,11 +110566,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100111,11 +110584,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100123,11 +110602,17 @@ { "key": "system", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100144,10 +110629,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RoleResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RoleResponse" + } + } } } } @@ -100163,13 +110654,22 @@ { "key": "bulk_sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -100178,13 +110678,22 @@ { "key": "sync_ids", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -100201,21 +110710,33 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, - "valueShape": { - "type": "map", - "keyShape": { "type": "primitive", "value": { "type": "string" } - }, - "valueShape": { - "type": "unknown" + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } } @@ -100230,11 +110751,17 @@ { "key": "connection_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100242,11 +110769,17 @@ { "key": "day_of_month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100254,11 +110787,17 @@ { "key": "day_of_week", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100266,21 +110805,33 @@ { "key": "frequency", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleFrequency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleFrequency" + } + } } } }, { "key": "hour", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100288,11 +110839,17 @@ { "key": "job_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -100300,11 +110857,17 @@ { "key": "minute", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100312,11 +110875,17 @@ { "key": "month", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100324,10 +110893,16 @@ { "key": "run_after", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RunAfter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RunAfter" + } + } } } } @@ -100343,12 +110918,21 @@ { "key": "schedule_options", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ScheduleScheduleOption" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleScheduleOption" + } + } + } } } } @@ -100365,10 +110949,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ScheduleOptionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ScheduleOptionResponse" + } + } } } } @@ -100384,18 +110974,24 @@ { "key": "field", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "model_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -100411,10 +111007,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StartModelSyncResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StartModelSyncResponseSchema" + } + } } } } @@ -100430,11 +111032,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -100442,11 +111050,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100454,10 +111068,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExecutionStatus" + } + } } } } @@ -100473,11 +111093,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100485,11 +111111,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -100498,11 +111130,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100510,11 +111148,17 @@ { "key": "requires_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100522,11 +111166,17 @@ { "key": "supports_field_sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100534,11 +111184,17 @@ { "key": "supports_target_filters", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100555,11 +111211,17 @@ { "key": "new", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100567,11 +111229,17 @@ { "key": "override_value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100579,18 +111247,27 @@ { "key": "source", "valueShape": { - "type": "id", - "id": "type_:Source" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Source" + } } }, { "key": "sync_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100598,9 +111275,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -100616,11 +111296,17 @@ { "key": "active", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100628,12 +111314,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -100641,11 +111336,17 @@ { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100653,12 +111354,21 @@ { "key": "filters", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Filter" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Filter" + } + } + } } } } @@ -100666,11 +111376,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100678,21 +111394,33 @@ { "key": "identity", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Identity" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Identity" + } + } } } }, { "key": "mode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100700,11 +111428,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100712,11 +111446,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100724,12 +111464,21 @@ { "key": "override_fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ModelSyncField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncField" + } + } + } } } } @@ -100737,12 +111486,21 @@ { "key": "overrides", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Override" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Override" + } + } + } } } } @@ -100750,13 +111508,22 @@ { "key": "policies", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -100765,21 +111532,33 @@ { "key": "schedule", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Schedule" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schedule" + } + } } } }, { "key": "sync_all_records", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100787,10 +111566,16 @@ { "key": "target", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Target" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Target" + } + } } } } @@ -100806,10 +111591,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ModelSyncResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ModelSyncResponse" + } + } } } } @@ -100825,10 +111616,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncStatusResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncStatusResponse" + } + } } } } @@ -100844,31 +111641,49 @@ { "key": "current_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "last_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:GetExecutionResponseSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:GetExecutionResponseSchema" + } + } } } }, { "key": "next_execution_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -100885,17 +111700,29 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -100903,20 +111730,29 @@ { "key": "connection_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "filter_logic", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100924,11 +111760,17 @@ { "key": "new_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -100936,26 +111778,41 @@ { "key": "object", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "search_values", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -100972,11 +111829,17 @@ { "key": "association", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100984,11 +111847,17 @@ { "key": "createable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -100996,11 +111865,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101008,11 +111883,17 @@ { "key": "filterable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101020,11 +111901,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101032,12 +111919,21 @@ { "key": "identity_functions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:IdentityFunction" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdentityFunction" + } + } + } } } } @@ -101045,11 +111941,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101057,11 +111959,17 @@ { "key": "required", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101069,11 +111977,17 @@ { "key": "source_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101081,11 +111995,17 @@ { "key": "supports_identity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101093,11 +112013,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101105,11 +112031,17 @@ { "key": "updateable", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101126,12 +112058,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TargetField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetField" + } + } + } } } } @@ -101139,11 +112080,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101151,12 +112098,21 @@ { "key": "modes", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Mode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Mode" + } + } + } } } } @@ -101164,11 +112120,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101176,21 +112138,33 @@ { "key": "properties", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SyncDestinationProperties" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SyncDestinationProperties" + } + } } } }, { "key": "refreshed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101207,10 +112181,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TargetResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TargetResponse" + } + } } } } @@ -101226,11 +112206,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101238,11 +112224,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101250,11 +112242,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101262,11 +112260,17 @@ { "key": "role", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101283,10 +112287,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:User" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:User" + } + } } } } @@ -101302,11 +112312,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101314,11 +112330,17 @@ { "key": "endpoint", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101326,11 +112348,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101338,11 +112366,17 @@ { "key": "organization_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101350,11 +112384,17 @@ { "key": "secret", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101371,10 +112411,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } } } } @@ -101390,12 +112436,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Webhook" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Webhook" + } + } + } } } } @@ -101412,11 +112467,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101424,11 +112485,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101436,11 +112503,17 @@ { "key": "obfuscated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101457,11 +112530,17 @@ { "key": "enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101469,12 +112548,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkField" + } + } + } } } } @@ -101482,11 +112570,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101494,11 +112588,17 @@ { "key": "output_name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101506,11 +112606,17 @@ { "key": "partition_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101527,10 +112633,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } } } } @@ -101546,11 +112658,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101558,11 +112676,17 @@ { "key": "created_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101570,11 +112694,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101582,11 +112712,17 @@ { "key": "is_resync", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101594,11 +112730,17 @@ { "key": "is_test", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -101606,12 +112748,21 @@ { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncSchemaExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSchemaExecution" + } + } + } } } } @@ -101619,11 +112770,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101631,21 +112788,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkExecutionStatus" + } + } } } }, { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101662,10 +112831,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } } @@ -101681,11 +112856,17 @@ { "key": "completed_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101693,11 +112874,17 @@ { "key": "error_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -101705,11 +112892,17 @@ { "key": "record_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -101717,11 +112910,17 @@ { "key": "schema", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101729,11 +112928,17 @@ { "key": "started_at", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101741,21 +112946,33 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSchemaExecutionStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchemaExecutionStatus" + } + } } } }, { "key": "status_message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101772,21 +112989,36 @@ { "key": "configuration", "valueShape": { - "type": "optional", - "shape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "schemas", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Schema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schema" + } + } + } } } } @@ -101803,10 +113035,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncSource" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSource" + } + } } } } @@ -101822,10 +113060,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Schema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Schema" + } + } } } } @@ -101841,11 +113085,17 @@ { "key": "cache_status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101853,11 +113103,17 @@ { "key": "last_refresh_finished", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101865,11 +113121,17 @@ { "key": "last_refresh_started", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101886,10 +113148,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncSourceStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncSourceStatus" + } + } } } } @@ -101905,10 +113173,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncStatusResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncStatusResponse" + } + } } } } @@ -101924,31 +113198,49 @@ { "key": "current_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } }, { "key": "last_execution", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } } } }, { "key": "next_execution_time", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } } @@ -101965,11 +113257,17 @@ { "key": "redirect_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101977,11 +113275,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -101998,10 +113302,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ConnectCardResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ConnectCardResponse" + } + } } } } @@ -102017,12 +113327,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSchema" + } + } + } } } } @@ -102039,12 +113358,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:BulkSyncExecution" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BulkSyncExecution" + } + } + } } } } @@ -102061,11 +113389,17 @@ { "key": "label", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102073,11 +113407,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102094,12 +113434,21 @@ { "key": "fields", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:SchemaField" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaField" + } + } + } } } } @@ -102107,11 +113456,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102119,11 +113474,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102140,21 +113501,33 @@ { "key": "association", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SchemaAssociation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemaAssociation" + } + } } } }, { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102162,11 +113535,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102174,11 +113553,17 @@ { "key": "remote_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102186,11 +113571,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -102198,12 +113589,21 @@ { "key": "values", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PickValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PickValue" + } + } + } } } } @@ -102220,19 +113620,34 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -102339,10 +113754,13 @@ { "key": "X-Polytomic-Version", "valueShape": { - "type": "literal", + "type": "alias", "value": { - "type": "stringLiteral", - "value": "2023-04-25" + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2023-04-25" + } } } } diff --git a/packages/fdr-sdk/src/__test__/output/primer/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/primer/apiDefinitions.json index 7711b116ff..89a05de877 100644 --- a/packages/fdr-sdk/src/__test__/output/primer/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/primer/apiDefinitions.json @@ -34,11 +34,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47,11 +53,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -60,10 +72,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentWebhooks:PaymentStatusWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentWebhooks:PaymentStatusWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -71,11 +89,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -84,11 +108,17 @@ { "key": "signedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -97,10 +127,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentWebhooks:PaymentStatusWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentWebhooks:PaymentStatusWebhookPayloadPayment" + } + } } } } @@ -214,11 +250,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -227,11 +269,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -240,10 +288,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentWebhooks:PaymentRefundWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentWebhooks:PaymentRefundWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -251,11 +305,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -264,11 +324,17 @@ { "key": "signedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -277,10 +343,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentWebhooks:PaymentRefundWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentWebhooks:PaymentRefundWebhookPayloadPayment" + } + } } } } @@ -394,11 +466,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -407,11 +485,17 @@ { "key": "processorId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -420,11 +504,17 @@ { "key": "processorDisputeId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -433,11 +523,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -446,11 +542,17 @@ { "key": "transactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -459,11 +561,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -472,11 +580,17 @@ { "key": "primerAccountId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -522,11 +636,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -535,11 +655,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -557,11 +683,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -570,11 +702,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -583,10 +721,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -594,11 +738,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -607,11 +757,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -620,11 +776,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -633,11 +795,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -646,17 +814,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -665,10 +845,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -676,10 +862,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -687,10 +879,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -698,12 +896,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -722,11 +929,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -735,11 +948,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -757,11 +976,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -770,11 +995,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -783,10 +1014,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -794,11 +1031,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -807,11 +1050,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -820,11 +1069,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -833,11 +1088,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -846,17 +1107,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -865,10 +1138,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -876,10 +1155,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -887,10 +1172,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -898,12 +1189,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -948,20 +1248,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -969,11 +1278,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -990,28 +1305,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -1019,63 +1349,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -1161,57 +1518,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -1226,11 +1607,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1239,21 +1626,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1262,11 +1661,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1275,10 +1680,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type" @@ -1286,10 +1697,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -1297,10 +1714,16 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } } @@ -2627,11 +3050,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2640,11 +3069,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2653,11 +3088,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -2666,11 +3107,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -2688,9 +3135,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -2707,9 +3157,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -2725,11 +3178,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2737,11 +3196,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2749,11 +3214,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2761,11 +3232,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2773,11 +3250,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2785,11 +3268,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2797,11 +3286,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2809,11 +3304,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2821,11 +3322,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2833,11 +3340,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2845,21 +3358,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2876,17 +3401,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -2901,17 +3432,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -2926,11 +3463,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -2938,63 +3481,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -3010,20 +3583,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3031,11 +3613,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3043,11 +3631,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3064,19 +3658,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -3084,10 +3687,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -3095,11 +3704,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3116,11 +3731,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3128,11 +3749,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3140,11 +3767,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3152,11 +3785,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3173,19 +3812,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -3193,11 +3841,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3214,11 +3868,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3226,38 +3886,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3265,11 +3940,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3277,11 +3958,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -3289,10 +3976,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -3308,18 +4001,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -3327,10 +4029,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -3338,11 +4046,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3420,15 +4134,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -3443,28 +4163,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3472,11 +4207,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3484,11 +4225,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -3715,9 +4462,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date-time that the transaction was created." @@ -3725,9 +4475,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount of the transaction, in minor units." @@ -3735,9 +4488,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -3745,21 +4501,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3768,11 +4536,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3781,9 +4555,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -3791,10 +4568,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -3802,10 +4585,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -3888,11 +4677,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3900,11 +4695,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3912,9 +4713,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -3922,11 +4726,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3935,9 +4745,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -3945,11 +4758,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3958,19 +4777,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4047,9 +4875,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -4057,9 +4888,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -4194,9 +5028,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -4204,9 +5041,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -4341,9 +5181,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -4351,9 +5194,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -4394,9 +5240,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -4404,9 +5253,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -4490,20 +5342,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -4511,11 +5372,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -4532,28 +5399,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -4561,63 +5443,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -4703,57 +5612,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -4768,11 +5701,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4781,21 +5720,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4804,11 +5755,17 @@ { "key": "vaultedPaymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4817,11 +5774,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4830,10 +5793,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type" @@ -4841,10 +5810,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -4852,10 +5827,16 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } } @@ -6182,11 +7163,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6195,11 +7182,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6208,11 +7201,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6221,11 +7220,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6243,9 +7248,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -6262,9 +7270,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -6280,11 +7291,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6292,11 +7309,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6304,11 +7327,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6316,11 +7345,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6328,11 +7363,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6340,11 +7381,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6352,11 +7399,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6364,11 +7417,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6376,11 +7435,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6388,11 +7453,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6400,21 +7471,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6431,17 +7514,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -6456,17 +7545,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -6481,11 +7576,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6493,63 +7594,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -6565,20 +7696,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6586,11 +7726,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6598,11 +7744,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6619,19 +7771,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -6639,10 +7800,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -6650,11 +7817,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6671,11 +7844,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6683,11 +7862,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6695,11 +7880,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6707,11 +7898,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6728,19 +7925,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -6748,11 +7954,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -6770,11 +7982,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6783,11 +8001,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6805,11 +8029,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6818,11 +8048,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -6831,10 +8067,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -6842,11 +8084,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6855,11 +8103,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6868,11 +8122,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -6881,11 +8141,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6894,17 +8160,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -6913,10 +8191,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -6924,10 +8208,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -6935,10 +8225,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -6946,12 +8242,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -6960,10 +8265,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -6979,11 +8290,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6992,11 +8309,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -7005,10 +8328,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatusWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -7016,11 +8345,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7029,10 +8364,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatusWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusWebhookPayloadPayment" + } + } } } } @@ -7049,11 +8390,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7062,11 +8409,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7084,11 +8437,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7097,11 +8456,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -7110,10 +8475,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -7121,11 +8492,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7134,11 +8511,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7147,11 +8530,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7160,11 +8549,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7173,17 +8568,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -7192,10 +8599,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -7203,10 +8616,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -7214,10 +8633,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -7225,12 +8650,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -7239,10 +8673,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -7258,11 +8698,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7271,11 +8717,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -7284,10 +8736,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRefundWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRefundWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -7295,11 +8753,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7308,10 +8772,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRefundWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRefundWebhookPayloadPayment" + } + } } } } @@ -7327,11 +8797,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7340,11 +8816,17 @@ { "key": "processorId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7353,11 +8835,17 @@ { "key": "processorDisputeId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7366,11 +8854,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7379,11 +8873,17 @@ { "key": "transactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7392,11 +8892,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7405,11 +8911,17 @@ { "key": "primerAccountId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7475,10 +8987,16 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } } @@ -7495,20 +9013,32 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } } }, { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadPaymentMethodPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadPaymentMethodPaymentMethodData" + } + } } } } @@ -7539,11 +9069,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7552,11 +9088,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7565,10 +9107,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadType" + } + } } }, "description": "The type of dispute event. More information on what the `type` field represents can be found in [Manage disputes](https://primer.io/docs/accept-payments/manage-disputes)" @@ -7576,10 +9124,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadStatus" + } + } } }, "description": "To see which statuses are applicable for a dispute `type`, and how we map `status`, please see [Manage disputes](https://primer.io/docs/accept-payments/manage-disputes)." @@ -7587,11 +9141,17 @@ { "key": "primerAccountId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7600,11 +9160,17 @@ { "key": "transactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7613,11 +9179,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7626,11 +9198,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7639,10 +9217,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadPaymentMethod" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadPaymentMethod" + } + } } }, "description": "The payment method information for the payment that is now disputed." @@ -7650,10 +9234,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadProcessor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadProcessor" + } + } } }, "description": "The payment processor that you submitted a payment to, and received a dispute notification from." @@ -7661,11 +9251,17 @@ { "key": "processorDisputeId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7674,11 +9270,17 @@ { "key": "receivedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -7687,11 +9289,17 @@ { "key": "challengeRequiredBy", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -7700,11 +9308,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7713,11 +9327,17 @@ { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7726,11 +9346,17 @@ { "key": "processorReason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7739,11 +9365,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -7752,11 +9384,17 @@ { "key": "currency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7765,11 +9403,17 @@ { "key": "merchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7787,11 +9431,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -7799,38 +9449,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -7838,11 +9503,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -7850,11 +9521,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -7862,10 +9539,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -7881,18 +9564,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -7900,10 +9592,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -7911,11 +9609,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7934,30 +9638,48 @@ { "key": "fraudChecks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudCheckApiSchema" + } + } } } }, { "key": "cvvCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CvvCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CvvCheckApiSchema" + } + } } } }, { "key": "avsCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsCheckApiSchema" + } + } } } } @@ -7974,11 +9696,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -7986,20 +9714,32 @@ { "key": "preAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } }, { "key": "postAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } } @@ -8037,11 +9777,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8049,10 +9795,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -8069,11 +9821,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8081,10 +9839,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsRiskAssessmentValues" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsRiskAssessmentValues" + } + } } } } @@ -8100,20 +9864,32 @@ { "key": "streetAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -8216,15 +9992,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -8239,28 +10021,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8268,11 +10065,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8280,11 +10083,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -8511,21 +10320,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8534,11 +10355,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8547,9 +10374,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -8557,10 +10387,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -8568,10 +10404,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -8654,11 +10496,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8666,11 +10514,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8678,9 +10532,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -8688,11 +10545,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8701,9 +10564,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -8711,11 +10577,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8724,19 +10596,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8801,11 +10682,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8813,11 +10700,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -8825,11 +10718,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8838,11 +10737,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8851,11 +10756,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8864,11 +10775,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8877,10 +10794,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "Two letter ISO country code" @@ -8888,11 +10811,17 @@ { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8910,11 +10839,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8923,11 +10858,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8936,11 +10877,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8949,11 +10896,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8962,10 +10915,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -8973,10 +10932,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -8984,11 +10949,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -8997,11 +10968,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9053,11 +11030,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9308,11 +11291,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9321,10 +11310,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars.\n" @@ -9332,11 +11327,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9345,10 +11346,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -9356,11 +11363,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9369,10 +11382,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -9380,17 +11399,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -9399,10 +11430,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -9756,11 +11793,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9769,11 +11812,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9782,11 +11831,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9795,11 +11850,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -9808,11 +11869,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -9821,17 +11888,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -9840,10 +11919,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -9851,10 +11936,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -9862,10 +11953,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method. Provide the entire object to update it. Anything provided previously will be overwritten." @@ -10210,10 +12307,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Filter payments by their status." @@ -10221,10 +12324,16 @@ { "key": "payment_method_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Filter payments by their payment method type." @@ -10232,11 +12341,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10245,11 +12360,17 @@ { "key": "currency_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10258,11 +12379,17 @@ { "key": "from_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -10271,11 +12398,17 @@ { "key": "to_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -10284,11 +12417,17 @@ { "key": "order_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10297,11 +12436,17 @@ { "key": "min_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10310,11 +12455,17 @@ { "key": "max_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10323,11 +12474,17 @@ { "key": "customer_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10336,11 +12493,17 @@ { "key": "merchant_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10349,11 +12512,17 @@ { "key": "customer_email_address", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10362,11 +12531,17 @@ { "key": "last_4_digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10375,11 +12550,17 @@ { "key": "paypal_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10388,11 +12569,17 @@ { "key": "klarna_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10401,11 +12588,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10414,11 +12607,17 @@ { "key": "cursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10549,11 +12748,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10569,11 +12774,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10582,10 +12793,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars.\n" @@ -10593,11 +12810,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -10606,10 +12829,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -10617,9 +12846,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment method token used to authorize the payment.\n" @@ -10627,11 +12859,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -10640,10 +12878,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n" @@ -10651,17 +12895,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -10670,10 +12926,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -11009,9 +13271,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to authorize." @@ -11021,11 +13286,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11041,8 +13312,11 @@ { "key": "processor", "valueShape": { - "type": "id", - "id": "type_:PaymentAuthorizationRequestProcessorApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentAuthorizationRequestProcessorApiSchema" + } }, "description": "The payment processor to use for this payment." } @@ -11465,9 +13739,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to capture." @@ -11477,11 +13754,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11497,11 +13780,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -11510,11 +13799,17 @@ { "key": "final", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -11523,10 +13818,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentsApi:PaymentCaptureApiRequestOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentsApi:PaymentCaptureApiRequestOrder" + } + } } }, "description": "More information associated with the order." @@ -11534,17 +13835,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -11855,9 +14168,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to cancel." @@ -11867,11 +14183,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -11887,11 +14209,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12149,9 +14477,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to refund." @@ -12161,11 +14492,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12181,11 +14518,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -12194,11 +14537,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12207,11 +14556,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12518,9 +14873,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to resume." @@ -12535,9 +14893,12 @@ { "key": "resumeToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A token containing any information that is sent back from the checkout to complete a blocked payment flow." @@ -12796,9 +15157,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment for adjusting authorization." @@ -12808,11 +15172,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -12828,9 +15198,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The **final** amount you would like to charge the customer, in minor units. e.g. for $7, use `700`.\n\nSome currencies, such as Japanese Yen, do not have minor units. In this case you should use the value as it is, without any formatting. For example for ¥100, use `100`.\n\nIf the amount is provided on this level, it would override any amount calculated from the provided line items, shipping and other amounts." @@ -13189,9 +15562,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to retrieve." @@ -13436,9 +15812,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Payment method token to store." @@ -13453,9 +15832,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID representing the customer" @@ -13650,9 +16032,12 @@ { "key": "customer_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Return payment methods for this customer ID." @@ -13747,9 +16132,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to delete." @@ -13889,9 +16277,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to set to default." @@ -14159,9 +16550,12 @@ { "key": "paymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -14175,11 +16569,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14188,10 +16588,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentCurrencyCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentCurrencyCode" + } + } } }, "description": "The 3-letter currency code in\n[ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\n\ne.g. use `USD` for US dollars." @@ -14199,21 +16605,33 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessor" + } + } } } }, { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -14222,11 +16640,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -14235,20 +16659,32 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrder" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentStatus" + } + } } }, "description": "See the payment [status table](\nhttps://apiref.primer.io/docs#payment-status) for more information." @@ -14256,10 +16692,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReason" + } + } } }, "description": "Pass more information regarding the payment's status in this field.\n\nThis is especially useful when the status is `DECLINED` or `FAILED`." @@ -14267,27 +16709,45 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethod" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethod" + } + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -14296,10 +16756,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentPaymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentPaymentType" + } + } } }, "description": "Payment types, primarily to be used for recurring payments.\n\nNote: If you successfully vault a `SINGLE_USE` token on payment\ncreation, then there's no need to set a value for this field and it will\nbe flagged as `FIRST_PAYMENT`. Otherwise, see the table below for all\npossible values.\n\n\n| paymentType | Use case |\n| --- | --- |\n| `FIRST_PAYMENT` | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |\n| `ECOMMERCE` | a customer-initiated payment using stored payment details where the cardholder is present. |\n| `SUBSCRIPTION` | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |\n| `UNSCHEDULED` | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |\n| `MOTO` | a merchant-initiated mail order or telephone order payment. |\n| `IN_STORE` | a customer-initiated payment where the customer is physically present in a shop. |" @@ -14307,11 +16773,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14449,9 +16921,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique identifier for the customer on the loyalty provider." @@ -14461,9 +16936,12 @@ { "key": "connectionId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Primer connection configuration." @@ -14580,11 +17058,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14593,11 +17077,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14606,11 +17096,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14619,11 +17115,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -14632,11 +17134,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -14815,9 +17323,12 @@ { "key": "connectionId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Primer connection configuration." @@ -14825,9 +17336,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique identifier for the customer on the loyalty provider." @@ -14835,9 +17349,12 @@ { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the order." @@ -14845,10 +17362,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LoyaltyTransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyTransactionTypeEnum" + } + } } }, "description": "The type of the transaction." @@ -14856,9 +17379,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The value of points to redeem." @@ -15035,10 +17561,16 @@ { "key": "retailerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country code of the retailer.\nThis field is passed to the processor and overwrites the retailer country code set in order details." @@ -15697,20 +18229,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -15718,11 +18259,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -15739,28 +18286,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -15768,63 +18330,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -15975,12 +18564,21 @@ { "key": "lineItems", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderLineItemsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsApiSchema" + } + } + } } } }, @@ -15989,10 +18587,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country in which the order is created" @@ -16000,10 +18604,16 @@ { "key": "retailerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country code of the retailer" @@ -16011,12 +18621,21 @@ { "key": "fees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderFeesApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderFeesApiSchema" + } + } + } } } }, @@ -16025,10 +18644,16 @@ { "key": "shipping", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderShippingApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderShippingApiSchema" + } + } } }, "description": "The details of shipping charged." @@ -16045,9 +18670,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The fee amount charged to the customer, in minor units. e.g. for $7, use `700`." @@ -16055,11 +18683,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16068,11 +18702,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16091,11 +18731,17 @@ { "key": "itemId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16104,11 +18750,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16117,11 +18769,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16130,9 +18788,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount charged to the customer, in minor units. The minimum amount is 0." @@ -16140,11 +18801,17 @@ { "key": "quantity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16153,11 +18820,17 @@ { "key": "discountAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16166,11 +18839,17 @@ { "key": "taxAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16179,11 +18858,17 @@ { "key": "taxCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16192,10 +18877,16 @@ { "key": "productType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProductTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProductTypeEnum" + } + } } }, "description": "An identifier for the product type." @@ -16203,10 +18894,16 @@ { "key": "productData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderLineItemsProductDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsProductDataApiSchema" + } + } } }, "description": "Details related to the product" @@ -16224,11 +18921,17 @@ { "key": "sku", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16237,11 +18940,17 @@ { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16250,11 +18959,17 @@ { "key": "color", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16263,11 +18978,17 @@ { "key": "globalTradeItemNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16276,11 +18997,17 @@ { "key": "manufacturerPartNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16289,11 +19016,17 @@ { "key": "weight", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -16302,11 +19035,17 @@ { "key": "weightUnit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16324,11 +19063,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16347,20 +19092,32 @@ { "key": "", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionApiSchema" + } + } } } }, { "key": "PAYMENT_CARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + } + } } } } @@ -16376,11 +19133,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16389,11 +19152,17 @@ { "key": "vaultOn3DS", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16402,11 +19171,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16415,22 +19190,37 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "orderedAllowedCardNetworks", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } + } } } }, @@ -16439,10 +19229,16 @@ { "key": "options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + } + } } }, "description": "Additional options for the payment methods represented as dictionary\nwith key of [available payment methods](https://primer.io/docs/payment-methods/available-payment-methods) and value of corresponding options." @@ -16450,10 +19246,16 @@ { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method.\n`FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount.\n`ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method." @@ -16471,18 +19273,27 @@ { "key": "surcharge", "valueShape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } }, "description": "Surcharge information" }, { "key": "extraMerchantData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionExtraMerchantDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionExtraMerchantDataApiSchema" + } + } } }, "description": "For payments using the Klarna payment method, depending on the merchant segment and/or\nthe services available to consumers, Klarna may require additional information regarding\nthe customer, the merchant and/or the purchase. This information, referred to as extra merchant\ndata (EMD), consist of data that is typically not available at the checkout, but which enables\nKlarna to complete an assertive risk assessment, enable new promotional products and improve\nconversion rates for a boost in performance." @@ -16499,10 +19310,16 @@ { "key": "networks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + } + } } }, "description": "Dictionary of available card networks as a key with value of Payment Method Card Network Option." @@ -16519,160 +19336,256 @@ { "key": "AMEX", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DANKORT", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DINERS_CLUB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DISCOVER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ENROUTE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ELO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "HIPER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "INTERAC", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "JCB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MAESTRO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MASTERCARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MIR", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "PRIVATE_LABEL", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "UNIONPAY", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "VISA", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "OTHER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } } @@ -16688,10 +19601,16 @@ { "key": "surcharge", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } + } } }, "description": "Surcharge information" @@ -16708,11 +19627,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16728,13 +19653,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -16748,11 +19679,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16761,11 +19698,17 @@ { "key": "vaultOn3DS", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -16774,11 +19717,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16787,20 +19736,32 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method.\n`FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount.\n`ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method.\nDefaults to `FINAL`." @@ -16817,57 +19778,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -16882,11 +19867,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16895,21 +19886,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16918,24 +19921,36 @@ { "key": "isVaulted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, "description": "Whether the payment method token represents a vaulted payment method and can be used for future payments." }, { - "key": "analyticsId", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "key": "analyticsId", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16944,10 +19959,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type used for payment authorization." @@ -16955,10 +19976,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -16966,20 +19993,32 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } }, { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method. `FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount. `ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method." @@ -16996,11 +20035,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17009,11 +20054,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17022,11 +20073,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17035,11 +20092,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17048,10 +20111,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -17059,10 +20128,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -17070,11 +20145,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17083,11 +20164,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17105,11 +20192,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17118,11 +20211,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17131,11 +20230,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17144,11 +20249,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17157,10 +20268,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address.\n\nNote: It is recommended to include this field if a 3DS check will be performed" @@ -17168,10 +20285,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -17179,11 +20302,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17192,11 +20321,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17214,11 +20349,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17227,11 +20368,17 @@ { "key": "clientTokenExpirationDate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -17240,11 +20387,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17253,11 +20406,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17266,11 +20425,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17279,10 +20444,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -17290,11 +20461,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17303,10 +20480,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -17314,17 +20497,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -17333,10 +20528,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -17344,10 +20545,16 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ClientSessionWarningsApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClientSessionWarningsApiResponse" + } + } } }, "description": "Warning messages to indicate missing information that are required for payment methods, checkout modules and other features; or when third-party services are unavailable." @@ -17364,11 +20571,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17377,11 +20590,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17390,10 +20609,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -17401,11 +20626,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -17414,17 +20645,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -17433,10 +20676,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -17444,10 +20693,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -17455,10 +20710,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -17475,11 +20736,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17488,11 +20755,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17501,11 +20774,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18834,11 +22113,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18847,11 +22132,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -18860,11 +22151,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18873,11 +22170,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -18895,9 +22198,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -18914,9 +22220,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -18932,11 +22241,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18944,11 +22259,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18956,11 +22277,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18968,11 +22295,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18980,11 +22313,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18992,11 +22331,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19004,11 +22349,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19016,11 +22367,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19028,11 +22385,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19040,11 +22403,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19052,21 +22421,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19083,17 +22464,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -19108,17 +22495,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -19133,11 +22526,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19145,63 +22544,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -19217,20 +22646,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19238,11 +22676,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19250,11 +22694,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19271,19 +22721,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -19291,10 +22750,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -19302,11 +22767,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19323,11 +22794,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19335,11 +22812,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19347,11 +22830,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19359,11 +22848,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19380,19 +22875,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -19400,11 +22904,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19421,11 +22931,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19434,11 +22950,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -19447,11 +22969,17 @@ { "key": "dateUpdated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -19460,10 +22988,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -19471,10 +23005,16 @@ { "key": "cardTokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardTokenTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardTokenTypeEnum" + } + } } }, "description": "The type of card token used for the payment.\n\nOnly applies for card payments." @@ -19482,11 +23022,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19495,10 +23041,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -19506,11 +23058,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -19519,10 +23077,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -19530,11 +23094,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19543,10 +23113,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -19554,17 +23130,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -19573,10 +23161,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -19584,10 +23178,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -19595,10 +23195,16 @@ { "key": "requiredAction", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequiredActionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequiredActionApiSchema" + } + } } }, "description": "Required action to perform in order to resume the payment workflow. This can be requiring a 3DS check from the customer for instance." @@ -19606,10 +23212,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -19617,12 +23229,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -19631,10 +23252,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -19650,11 +23277,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19662,38 +23295,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19701,11 +23349,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19713,11 +23367,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -19725,10 +23385,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -19744,18 +23410,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -19763,10 +23438,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -19774,11 +23455,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -19797,30 +23484,48 @@ { "key": "fraudChecks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudCheckApiSchema" + } + } } } }, { "key": "cvvCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CvvCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CvvCheckApiSchema" + } + } } } }, { "key": "avsCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsCheckApiSchema" + } + } } } } @@ -19837,11 +23542,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19849,20 +23560,32 @@ { "key": "preAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } }, { "key": "postAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } } @@ -19900,11 +23623,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19912,10 +23641,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -19932,11 +23667,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -19944,10 +23685,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsRiskAssessmentValues" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsRiskAssessmentValues" + } + } } } } @@ -19963,20 +23710,32 @@ { "key": "streetAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -20067,12 +23826,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PaymentSummaryApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryApiSchema" + } + } + } } } } @@ -20080,11 +23848,17 @@ { "key": "nextCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20092,11 +23866,17 @@ { "key": "prevCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20113,17 +23893,23 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:BlockingPaymentActionTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BlockingPaymentActionTypeEnum" + } }, "description": "Action name" }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Human description of the required action to perform." @@ -20131,11 +23917,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20153,9 +23945,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique payment ID.\n\nYou can use this ID to retrieve the payment details, or perform downstream\noperations." @@ -20163,9 +23958,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time at which the payment was created in UTC format." @@ -20173,9 +23971,12 @@ { "key": "dateUpdated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time of the last payment update in UTC format." @@ -20183,17 +23984,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } }, "description": "See the payment [status table](../docs#payment-status) for more information." }, { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Your reference for the payment." @@ -20201,10 +24008,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentSummaryProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryProcessorApiSchema" + } + } } }, "description": "The payment processor used for this payment." @@ -20212,9 +24025,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -20222,9 +24038,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The payment amount, in minor units. e.g. $7 would show as `700`." @@ -20232,17 +24051,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -20260,9 +24091,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The processor's merchant ID used to authorize the payment." @@ -20270,11 +24104,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20292,9 +24132,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment processor used for this payment." @@ -20302,11 +24145,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20418,15 +24267,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -20441,28 +24296,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20470,11 +24340,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20482,11 +24358,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -20728,9 +24610,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Date & time of the transaction (UTC)" @@ -20738,9 +24623,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Transaction amount in minor units" @@ -20748,29 +24636,44 @@ { "key": "currencyCode", "valueShape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." }, { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20779,11 +24682,17 @@ { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20792,11 +24701,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20805,9 +24720,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -20815,10 +24733,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -20826,10 +24750,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -20837,10 +24767,16 @@ { "key": "cardTokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardTokenTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardTokenTypeEnum" + } + } } }, "description": "The type of card token used for the transaction.\n\nOnly applies for card payments." @@ -20923,11 +24859,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20935,11 +24877,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -20947,11 +24895,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20960,11 +24914,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20973,11 +24933,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20986,11 +24952,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -20999,10 +24971,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "Two letter ISO country code" @@ -21010,11 +24988,17 @@ { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21032,11 +25016,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21044,11 +25034,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -21056,9 +25052,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -21066,11 +25065,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21079,9 +25084,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -21089,11 +25097,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21102,19 +25116,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21132,36 +25155,51 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -21176,11 +25214,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -21189,11 +25233,17 @@ { "key": "deletedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -21202,11 +25252,17 @@ { "key": "deleted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -21215,11 +25271,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21228,11 +25290,17 @@ { "key": "tokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21241,11 +25309,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21254,10 +25328,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type associated with a token." @@ -21265,10 +25345,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + } + } } }, "description": "Payment method data" @@ -21276,11 +25362,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21289,11 +25381,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21302,11 +25400,17 @@ { "key": "default", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -21326,11 +25430,17 @@ { "key": "isVerified", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -21348,12 +25458,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + } + } + } } } } @@ -21370,11 +25489,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21383,11 +25508,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21396,11 +25527,17 @@ { "key": "connectionName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21409,11 +25546,17 @@ { "key": "balance", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21446,11 +25589,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -21459,11 +25608,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21472,11 +25627,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21485,11 +25646,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21498,11 +25665,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21511,11 +25684,17 @@ { "key": "connectionTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21524,11 +25703,17 @@ { "key": "connectionName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -21537,10 +25722,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LoyaltyTransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyTransactionTypeEnum" + } + } } }, "description": "The type of the transaction." @@ -21548,11 +25739,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21570,12 +25767,21 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LoyaltyApiTransactionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyApiTransactionResponse" + } + } + } } } }, @@ -21584,11 +25790,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21597,11 +25809,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -21610,11 +25828,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -22388,20 +26612,32 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsBinDataIssuerCountryCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsBinDataIssuerCountryCode" + } + } } }, "description": "2-letter country code in [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) alpha format,\ne.g. FR for France and GB for the United Kingdom." @@ -22409,11 +26645,17 @@ { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22422,11 +26664,17 @@ { "key": "productUsageType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -22435,11 +26683,17 @@ { "key": "accountFundingType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23213,9 +27467,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The order reference for the payment." @@ -23223,10 +27480,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsOrderCountryCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrderCountryCode" + } + } } }, "description": "2-letter country code in [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) alpha format,\ne.g. FR for France and GB for the United Kingdom." @@ -23858,9 +28121,12 @@ { "key": "paymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment ID.\n\nThe payment ID must be unique. You can use this unique payment ID to update payment details." @@ -23868,24 +28134,33 @@ { "key": "currencyCode", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentCurrencyCode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentCurrencyCode" + } }, "description": "The 3-letter currency code in\n[ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\n\ne.g. use `USD` for US dollars." }, { "key": "processor", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessor" + } } }, { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount you would like to charge the customer,\nin minor units. e.g. for $7, use `700`.\n\nSome currencies, such as Japanese Yen, do not have minor units.\nIn this case you should use the value as it is, without any formatting.\nFor example for ¥100, use `100`.\nThe minimum amount is 0." @@ -23893,9 +28168,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The payment creation date and time (UTC) in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n\nCannot be updated in partial updates PATCH." @@ -23903,17 +28181,26 @@ { "key": "order", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsOrder" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrder" + } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentStatus" + } + } } }, "description": "See the payment [status table](https://apiref.primer.io/docs#payment-status) for more information." @@ -23921,10 +28208,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReason" + } + } } }, "description": "Pass more information regarding the payment's status in this field.\n\nThis is especially useful when the status is `DECLINED` or `FAILED`." @@ -23932,24 +28225,39 @@ { "key": "paymentMethod", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethod" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethod" + } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -23958,10 +28266,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentPaymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentPaymentType" + } + } } }, "description": "Payment types, primarily to be used for recurring payments.\n\nNote: If you successfully vault a `SINGLE_USE` token on payment\ncreation, then there's no need to set a value for this field and it will\nbe flagged as `FIRST_PAYMENT`. Otherwise, see the table below for all\npossible values.\n\n| paymentType | Use case |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------ |\n| `FIRST_PAYMENT` | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |\n| `ECOMMERCE` | a customer-initiated payment using stored payment details where the cardholder is present. |\n| `SUBSCRIPTION` | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |\n| `UNSCHEDULED` | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |\n| `MOTO` | a merchant-initiated mail order or telephone order payment. |\n| `IN_STORE` | a customer-initiated payment where the customer is physically present in a shop. |" @@ -23969,11 +28283,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -23991,28 +28311,43 @@ { "key": "paymentMethodType", "valueShape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } }, "description": "Payment method type used for payment authorization." }, { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethodData" + } + } } } }, { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsThreeDSecureAuthentication" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsThreeDSecureAuthentication" + } + } } } } @@ -24028,21 +28363,33 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsBinData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsBinData" + } + } } } }, { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24276,19 +28623,28 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessorName" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessorName" + } }, "description": "The payment processor used for this payment.\nPrimer supports the above processors through the Payments API,\nhowever any value can be passed here." }, { "key": "merchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24386,20 +28742,32 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonType" + } + } } } }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonDeclineType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonDeclineType" + } + } } }, "description": "Declines of type `SOFT_DECLINE` may have been retried.\nWhereas declines of type `HARD_DECLINE` should have not been retried." @@ -24407,10 +28775,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonCode" + } + } } }, "description": "Payment status code with the error code when\nthe issuer declined the payment." @@ -24418,11 +28792,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24467,11 +28847,17 @@ { "key": "transStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24479,11 +28865,17 @@ { "key": "transStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -24491,10 +28883,16 @@ { "key": "responseCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsThreeDSecureAuthenticationResponseCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsThreeDSecureAuthenticationResponseCode" + } + } } }, "description": "The response returned during the 3D Secure authentication call." @@ -24502,11 +28900,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -24515,11 +28919,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24528,11 +28938,17 @@ { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24541,11 +28957,17 @@ { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24554,11 +28976,17 @@ { "key": "eci", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24577,9 +29005,12 @@ { "key": "errorId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error ID" @@ -24587,9 +29018,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A human readable description of the error" @@ -24597,11 +29031,17 @@ { "key": "diagnosticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -24610,19 +29050,34 @@ { "key": "validationErrors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -24641,8 +29096,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -24657,8 +29115,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -24673,8 +29134,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -24689,8 +29153,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -24790,11 +29257,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25034,11 +29507,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25047,11 +29526,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25060,11 +29545,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -25073,10 +29564,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -25084,11 +29581,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25097,10 +29600,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -25108,17 +29617,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25127,10 +29648,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -25467,11 +29994,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25480,11 +30013,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25493,11 +30032,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25506,11 +30051,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25519,11 +30070,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -25532,17 +30089,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -25551,10 +30120,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -25562,10 +30137,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -25573,10 +30154,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method. Provide the entire object to update it. Anything provided previously will be overwritten." @@ -25904,10 +30491,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Filter payments by their status." @@ -25915,10 +30508,16 @@ { "key": "payment_method_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Filter payments by their payment method type." @@ -25926,11 +30525,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25939,11 +30544,17 @@ { "key": "currency_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25952,11 +30563,17 @@ { "key": "from_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -25965,11 +30582,17 @@ { "key": "to_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -25978,11 +30601,17 @@ { "key": "order_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -25991,11 +30620,17 @@ { "key": "min_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26004,11 +30639,17 @@ { "key": "max_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26017,11 +30658,17 @@ { "key": "customer_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26030,11 +30677,17 @@ { "key": "merchant_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26043,11 +30696,17 @@ { "key": "customer_email_address", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26056,11 +30715,17 @@ { "key": "last_4_digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26069,11 +30734,17 @@ { "key": "paypal_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26082,11 +30753,17 @@ { "key": "klarna_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26095,11 +30772,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26108,11 +30791,17 @@ { "key": "cursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26237,11 +30926,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26257,11 +30952,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26270,11 +30971,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26283,11 +30990,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26296,10 +31009,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -26307,9 +31026,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment method token used to authorize the payment.\n" @@ -26317,11 +31039,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26330,10 +31058,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n" @@ -26341,17 +31075,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -26360,10 +31106,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -26666,9 +31418,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to capture." @@ -26678,11 +31433,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -26698,11 +31459,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -26711,11 +31478,17 @@ { "key": "final", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -26724,17 +31497,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -27012,9 +31797,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to cancel." @@ -27024,11 +31812,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27044,11 +31838,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27279,9 +32079,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to refund." @@ -27291,11 +32094,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27311,11 +32120,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -27324,11 +32139,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27337,11 +32158,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -27619,9 +32446,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to resume." @@ -27636,9 +32466,12 @@ { "key": "resumeToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A token containing any information that is sent back from the checkout to complete a blocked payment flow." @@ -27866,9 +32699,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to retrieve." @@ -28086,9 +32922,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Payment method token to store." @@ -28103,9 +32942,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID representing the customer" @@ -28285,9 +33127,12 @@ { "key": "customer_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Return payment methods for this customer ID." @@ -28371,9 +33216,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to delete." @@ -28500,9 +33348,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to set to default." @@ -28634,20 +33485,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -28655,11 +33515,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -28676,10 +33542,16 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } } @@ -28695,28 +33567,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -28724,63 +33611,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -28925,12 +33839,21 @@ { "key": "lineItems", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderLineItemsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsApiSchema" + } + } + } } } }, @@ -28939,10 +33862,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country in which the order is created" @@ -28950,12 +33879,21 @@ { "key": "fees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderFeesApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderFeesApiSchema" + } + } + } } } }, @@ -28964,10 +33902,16 @@ { "key": "shipping", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderShippingApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderShippingApiSchema" + } + } } }, "description": "The details of shipping charged." @@ -28984,9 +33928,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The fee amount charged to the customer, in minor units. e.g. for $7, use `700`." @@ -28994,11 +33941,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29007,11 +33960,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29030,11 +33989,17 @@ { "key": "itemId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29043,11 +34008,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29056,9 +34027,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount charged to the customer, in minor units. The minimum amount is 0." @@ -29066,11 +34040,17 @@ { "key": "quantity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29079,11 +34059,17 @@ { "key": "discountAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29092,11 +34078,17 @@ { "key": "taxAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29105,11 +34097,17 @@ { "key": "taxCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29118,10 +34116,16 @@ { "key": "productType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProductTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProductTypeEnum" + } + } } }, "description": "An identifier for the product type." @@ -29138,11 +34142,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29161,20 +34171,32 @@ { "key": "", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionApiSchema" + } + } } } }, { "key": "PAYMENT_CARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + } + } } } } @@ -29190,11 +34212,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -29203,11 +34231,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29216,20 +34250,32 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + } + } } }, "description": "Additional options for the payment methods represented as dictionary\nwith key of [available payment methods](https://primer.io/docs/payment-methods/available-payment-methods) and value of corresponding options." @@ -29247,8 +34293,11 @@ { "key": "surcharge", "valueShape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } }, "description": "Surcharge information" } @@ -29264,10 +34313,16 @@ { "key": "networks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + } + } } }, "description": "Dictionary of available card networks as a key with value of Payment Method Card Network Option." @@ -29284,160 +34339,256 @@ { "key": "AMEX", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DANKORT", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DINERS_CLUB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DISCOVER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ENROUTE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ELO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "HIPER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "INTERAC", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "JCB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MAESTRO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MASTERCARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MIR", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "PRIVATE_LABEL", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "UNIONPAY", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "VISA", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "OTHER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } } @@ -29453,10 +34604,16 @@ { "key": "surcharge", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } + } } }, "description": "Surcharge information" @@ -29473,11 +34630,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29495,11 +34658,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -29508,11 +34677,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29521,10 +34696,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } } @@ -29540,57 +34721,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -29605,11 +34810,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29618,21 +34829,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29641,11 +34864,17 @@ { "key": "isVaulted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -29654,11 +34883,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29667,10 +34902,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type" @@ -29678,10 +34919,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -29689,10 +34936,16 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } } @@ -29708,11 +34961,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29721,11 +34980,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29734,11 +34999,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29747,11 +35018,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29760,10 +35037,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -29771,10 +35054,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -29782,11 +35071,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29795,11 +35090,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29817,11 +35118,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29830,11 +35137,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29843,11 +35156,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29856,11 +35175,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29869,10 +35194,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer billing address.\n\nNote: It is recommended to include this field if a 3DS check will be performed" @@ -29880,10 +35211,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -29891,11 +35228,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29904,11 +35247,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29926,11 +35275,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29939,11 +35294,17 @@ { "key": "clientTokenExpirationDate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -29952,11 +35313,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29965,11 +35332,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -29978,11 +35351,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -29991,10 +35370,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -30002,11 +35387,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30015,10 +35406,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -30026,17 +35423,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -30045,10 +35454,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -30056,10 +35471,16 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ClientSessionWarningsApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClientSessionWarningsApiResponse" + } + } } }, "description": "Warning messages to indicate missing information that are required for payment methods, checkout modules and other features; or when third-party services are unavailable." @@ -30076,11 +35497,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30089,11 +35516,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30102,11 +35535,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30115,11 +35554,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -30128,17 +35573,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -30147,10 +35604,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -30158,10 +35621,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -30169,10 +35638,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -30189,11 +35664,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30202,11 +35683,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -30215,11 +35702,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -31548,11 +37041,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -31561,11 +37060,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -31574,11 +37079,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -31587,11 +37098,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -31609,9 +37126,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -31628,9 +37148,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -31646,11 +37169,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31658,11 +37187,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31670,11 +37205,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31682,11 +37223,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31694,11 +37241,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31706,11 +37259,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31718,11 +37277,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31730,11 +37295,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31742,11 +37313,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31754,11 +37331,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31766,21 +37349,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31797,17 +37392,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -31822,17 +37423,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -31847,11 +37454,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31859,63 +37472,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -31931,20 +37574,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31952,11 +37604,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31964,11 +37622,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -31985,19 +37649,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -32005,10 +37678,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -32016,11 +37695,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32037,11 +37722,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32049,11 +37740,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32061,11 +37758,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32073,11 +37776,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32094,19 +37803,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -32114,11 +37832,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32135,11 +37859,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32148,11 +37878,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -32161,10 +37897,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -32172,11 +37914,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32185,11 +37933,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32198,11 +37952,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -32211,10 +37971,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -32222,11 +37988,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32235,10 +38007,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -32246,17 +38024,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -32265,10 +38055,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -32276,10 +38072,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -32287,10 +38089,16 @@ { "key": "requiredAction", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequiredActionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequiredActionApiSchema" + } + } } }, "description": "Required action to perform in order to resume the payment workflow. This can be requiring a 3DS check from the customer for instance." @@ -32298,10 +38106,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -32309,12 +38123,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -32332,11 +38155,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32344,38 +38173,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32383,11 +38227,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32395,11 +38245,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -32407,10 +38263,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -32426,18 +38288,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -32445,10 +38316,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -32456,11 +38333,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32526,12 +38409,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PaymentSummaryApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryApiSchema" + } + } + } } } } @@ -32539,11 +38431,17 @@ { "key": "nextCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32551,11 +38449,17 @@ { "key": "prevCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32572,17 +38476,23 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:BlockingPaymentActionTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BlockingPaymentActionTypeEnum" + } }, "description": "Action name" }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Human description of the required action to perform." @@ -32590,11 +38500,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32612,9 +38528,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique payment ID.\n\nYou can use this ID to retrieve the payment details, or perform downstream\noperations." @@ -32622,9 +38541,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time at which the payment was created in UTC format." @@ -32632,17 +38554,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } }, "description": "See the payment [status table](../docs#payment-status) for more information." }, { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Your reference for the payment." @@ -32650,11 +38578,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32663,9 +38597,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -32673,9 +38610,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The payment amount, in minor units. e.g. $7 would show as `700`." @@ -32683,17 +38623,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -32711,9 +38663,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment processor used for this payment." @@ -32721,11 +38676,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -32837,15 +38798,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -32860,28 +38827,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32889,11 +38871,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -32901,11 +38889,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -33147,9 +39141,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Date & time of the transaction (UTC)" @@ -33157,9 +39154,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Transaction amount in minor units" @@ -33167,9 +39167,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -33177,21 +39180,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33200,11 +39215,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33213,9 +39234,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -33223,10 +39247,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -33234,10 +39264,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -33320,11 +39356,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33332,11 +39374,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33344,11 +39392,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33356,11 +39410,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33368,11 +39428,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33380,11 +39446,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33392,21 +39464,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33423,11 +39507,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33435,11 +39525,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33447,9 +39543,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -33457,11 +39556,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33470,9 +39575,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -33480,11 +39588,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33493,19 +39607,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33523,36 +39646,51 @@ { "displayName": "Payment Card Token Api Schema Payment Methods Api", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchemaPaymentMethodsApi" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchemaPaymentMethodsApi" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -33567,11 +39705,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -33580,11 +39724,17 @@ { "key": "deletedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -33593,11 +39743,17 @@ { "key": "deleted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -33606,11 +39762,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33619,11 +39781,17 @@ { "key": "tokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33632,11 +39800,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33645,10 +39819,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type associated with a token." @@ -33656,10 +39836,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + } + } } }, "description": "Payment method data" @@ -33667,11 +39853,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33680,11 +39872,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33693,11 +39891,17 @@ { "key": "default", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -33717,11 +39921,17 @@ { "key": "isVerified", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -33739,12 +39949,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponse" + } + } + } } } } @@ -33761,12 +39980,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + } + } + } } } } @@ -33784,38 +40012,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33823,11 +40066,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -33835,11 +40084,17 @@ { "key": "networkTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33848,10 +40103,16 @@ { "key": "accountFundingType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } + } } }, "description": "The type of card, e.g. Debit, Credit" @@ -33868,11 +40129,17 @@ { "key": "errorId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33881,11 +40148,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33894,11 +40167,17 @@ { "key": "diagnosticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -33907,19 +40186,34 @@ { "key": "validationErrors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -33989,9 +40283,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -33999,9 +40296,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -34136,9 +40436,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -34146,9 +40449,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -34283,9 +40589,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -34293,9 +40602,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -34336,9 +40648,12 @@ { "key": "X-Signature-Primary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An [HMAC signature](https://en.wikipedia.org/wiki/HMAC) generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string." @@ -34346,9 +40661,12 @@ { "key": "X-Signature-Secondary", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A secondary signature that is added when you have rotated your secret within the past 24 hours." @@ -34432,20 +40750,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -34453,11 +40780,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -34474,28 +40807,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -34503,63 +40851,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -34645,57 +41020,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -34710,11 +41109,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -34723,21 +41128,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -34746,11 +41163,17 @@ { "key": "vaultedPaymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -34759,11 +41182,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -34772,10 +41201,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type" @@ -34783,10 +41218,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -34794,10 +41235,16 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } } @@ -36124,11 +42571,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36137,11 +42590,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36150,11 +42609,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -36163,11 +42628,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -36185,9 +42656,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -36204,9 +42678,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -36222,11 +42699,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36234,11 +42717,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36246,11 +42735,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36258,11 +42753,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36270,11 +42771,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36282,11 +42789,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36294,11 +42807,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36306,11 +42825,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36318,11 +42843,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36330,11 +42861,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36342,21 +42879,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36373,17 +42922,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -36398,17 +42953,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -36423,11 +42984,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36435,63 +43002,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -36507,20 +43104,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36528,11 +43134,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36540,11 +43152,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36561,19 +43179,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -36581,10 +43208,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -36592,11 +43225,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36613,11 +43252,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36625,11 +43270,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36637,11 +43288,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36649,11 +43306,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36670,19 +43333,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -36690,11 +43362,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -36712,11 +43390,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36725,11 +43409,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36747,11 +43437,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36760,11 +43456,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -36773,10 +43475,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -36784,11 +43492,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36797,11 +43511,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36810,11 +43530,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -36823,11 +43549,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36836,17 +43568,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -36855,10 +43599,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -36866,10 +43616,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -36877,10 +43633,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -36888,12 +43650,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -36902,10 +43673,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -36921,11 +43698,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36934,11 +43717,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -36947,10 +43736,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatusWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -36958,11 +43753,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -36971,10 +43772,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatusWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusWebhookPayloadPayment" + } + } } } } @@ -36991,11 +43798,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37004,11 +43817,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37026,11 +43845,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37039,11 +43864,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -37052,10 +43883,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -37063,11 +43900,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37076,11 +43919,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37089,11 +43938,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -37102,11 +43957,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37115,17 +43976,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -37134,10 +44007,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -37145,10 +44024,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -37156,10 +44041,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -37167,12 +44058,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -37181,10 +44081,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -37200,11 +44106,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37213,11 +44125,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -37226,10 +44144,16 @@ { "key": "notificationConfig", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRefundWebhookPayloadNotificationConfig" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRefundWebhookPayloadNotificationConfig" + } + } } }, "description": "The notification configuration details." @@ -37237,11 +44161,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37250,10 +44180,16 @@ { "key": "payment", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRefundWebhookPayloadPayment" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRefundWebhookPayloadPayment" + } + } } } } @@ -37269,11 +44205,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37282,11 +44224,17 @@ { "key": "processorId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37295,11 +44243,17 @@ { "key": "processorDisputeId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37308,11 +44262,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37321,11 +44281,17 @@ { "key": "transactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37334,11 +44300,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37347,11 +44319,17 @@ { "key": "primerAccountId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37417,10 +44395,16 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } } @@ -37437,20 +44421,32 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } } }, { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadPaymentMethodPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadPaymentMethodPaymentMethodData" + } + } } } } @@ -37481,11 +44477,17 @@ { "key": "eventType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37494,11 +44496,17 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37507,10 +44515,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadType" + } + } } }, "description": "The type of dispute event. More information on what the `type` field represents can be found in [Manage disputes](https://primer.io/docs/accept-payments/manage-disputes)" @@ -37518,10 +44532,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadStatus" + } + } } }, "description": "To see which statuses are applicable for a dispute `type`, and how we map `status`, please see [Manage disputes](https://primer.io/docs/accept-payments/manage-disputes)." @@ -37529,11 +44549,17 @@ { "key": "primerAccountId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37542,11 +44568,17 @@ { "key": "transactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37555,11 +44587,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37568,11 +44606,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37581,10 +44625,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadPaymentMethod" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadPaymentMethod" + } + } } }, "description": "The payment method information for the payment that is now disputed." @@ -37592,10 +44642,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DisputeStatusWebhookPayloadProcessor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DisputeStatusWebhookPayloadProcessor" + } + } } }, "description": "The payment processor that you submitted a payment to, and received a dispute notification from." @@ -37603,11 +44659,17 @@ { "key": "processorDisputeId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37616,11 +44678,17 @@ { "key": "receivedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -37629,11 +44697,17 @@ { "key": "challengeRequiredBy", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -37642,11 +44716,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37655,11 +44735,17 @@ { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37668,11 +44754,17 @@ { "key": "processorReason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37681,11 +44773,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -37694,11 +44792,17 @@ { "key": "currency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37707,11 +44811,17 @@ { "key": "merchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37729,11 +44839,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37741,38 +44857,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37780,11 +44911,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37792,11 +44929,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -37804,10 +44947,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -37823,18 +44972,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -37842,10 +45000,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -37853,11 +45017,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -37876,30 +45046,48 @@ { "key": "fraudChecks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudCheckApiSchema" + } + } } } }, { "key": "cvvCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CvvCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CvvCheckApiSchema" + } + } } } }, { "key": "avsCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsCheckApiSchema" + } + } } } } @@ -37916,11 +45104,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37928,20 +45122,32 @@ { "key": "preAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } }, { "key": "postAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } } @@ -37979,11 +45185,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -37991,10 +45203,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -38011,11 +45229,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38023,10 +45247,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsRiskAssessmentValues" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsRiskAssessmentValues" + } + } } } } @@ -38042,20 +45272,32 @@ { "key": "streetAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -38158,15 +45400,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -38181,28 +45429,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38210,11 +45473,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38222,11 +45491,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -38453,21 +45728,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38476,11 +45763,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38489,9 +45782,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -38499,10 +45795,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -38510,10 +45812,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -38596,11 +45904,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38608,11 +45922,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38620,9 +45940,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -38630,11 +45953,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38643,9 +45972,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -38653,11 +45985,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38666,19 +46004,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38743,11 +46090,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38755,11 +46108,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -38767,11 +46126,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38780,11 +46145,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38793,11 +46164,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38806,11 +46183,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38819,10 +46202,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "Two letter ISO country code" @@ -38830,11 +46219,17 @@ { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38852,11 +46247,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38865,11 +46266,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38878,11 +46285,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38891,11 +46304,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38904,10 +46323,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -38915,10 +46340,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -38926,11 +46357,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38939,11 +46376,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -38995,11 +46438,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39250,11 +46699,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39263,10 +46718,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars.\n" @@ -39274,11 +46735,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -39287,10 +46754,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -39298,11 +46771,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39311,10 +46790,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -39322,17 +46807,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -39341,10 +46838,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -39698,11 +47201,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39711,11 +47220,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39724,11 +47239,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39737,11 +47258,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -39750,11 +47277,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -39763,17 +47296,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -39782,10 +47327,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -39793,10 +47344,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten.\n" @@ -39804,10 +47361,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method. Provide the entire object to update it. Anything provided previously will be overwritten." @@ -40152,10 +47715,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Filter payments by their status." @@ -40163,10 +47732,16 @@ { "key": "payment_method_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Filter payments by their payment method type." @@ -40174,11 +47749,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40187,11 +47768,17 @@ { "key": "currency_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40200,11 +47787,17 @@ { "key": "from_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -40213,11 +47806,17 @@ { "key": "to_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -40226,11 +47825,17 @@ { "key": "order_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40239,11 +47844,17 @@ { "key": "min_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -40252,11 +47863,17 @@ { "key": "max_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -40265,11 +47882,17 @@ { "key": "customer_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40278,11 +47901,17 @@ { "key": "merchant_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40291,11 +47920,17 @@ { "key": "customer_email_address", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40304,11 +47939,17 @@ { "key": "last_4_digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40317,11 +47958,17 @@ { "key": "paypal_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40330,11 +47977,17 @@ { "key": "klarna_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40343,11 +47996,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -40356,11 +48015,17 @@ { "key": "cursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40491,11 +48156,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40511,11 +48182,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40524,10 +48201,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars.\n" @@ -40535,11 +48218,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -40548,10 +48237,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -40559,9 +48254,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment method token used to authorize the payment.\n" @@ -40569,11 +48267,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40582,10 +48286,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n" @@ -40593,17 +48303,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -40612,10 +48334,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -40951,9 +48679,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to authorize." @@ -40963,11 +48694,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -40983,8 +48720,11 @@ { "key": "processor", "valueShape": { - "type": "id", - "id": "type_:PaymentAuthorizationRequestProcessorApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentAuthorizationRequestProcessorApiSchema" + } }, "description": "The payment processor to use for this payment." } @@ -41409,9 +49149,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to capture." @@ -41421,11 +49164,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41441,11 +49190,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -41454,11 +49209,17 @@ { "key": "final", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -41467,10 +49228,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_paymentsApi:PaymentCaptureApiRequestOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_paymentsApi:PaymentCaptureApiRequestOrder" + } + } } }, "description": "More information associated with the order." @@ -41478,17 +49245,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -41850,9 +49629,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to cancel." @@ -41862,11 +49644,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -41882,11 +49670,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42195,9 +49989,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to refund." @@ -42207,11 +50004,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42227,11 +50030,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -42240,11 +50049,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42253,11 +50068,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42615,9 +50436,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to resume." @@ -42632,9 +50456,12 @@ { "key": "resumeToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A token containing any information that is sent back from the checkout to complete a blocked payment flow." @@ -42893,9 +50720,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment for adjusting authorization." @@ -42905,11 +50735,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -42925,9 +50761,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The **final** amount you would like to charge the customer, in minor units. e.g. for $7, use `700`.\n\nSome currencies, such as Japanese Yen, do not have minor units. In this case you should use the value as it is, without any formatting. For example for ¥100, use `100`.\n\nIf the amount is provided on this level, it would override any amount calculated from the provided line items, shipping and other amounts." @@ -43339,9 +51178,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to retrieve." @@ -43586,9 +51428,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Payment method token to store." @@ -43603,9 +51448,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID representing the customer" @@ -43800,9 +51648,12 @@ { "key": "customer_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Return payment methods for this customer ID." @@ -43897,9 +51748,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to delete." @@ -44039,9 +51893,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to set to default." @@ -44309,9 +52166,12 @@ { "key": "paymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -44325,11 +52185,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44338,10 +52204,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentCurrencyCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentCurrencyCode" + } + } } }, "description": "The 3-letter currency code in\n[ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\n\ne.g. use `USD` for US dollars." @@ -44349,21 +52221,33 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessor" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessor" + } + } } } }, { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -44372,11 +52256,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -44385,20 +52275,32 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsOrder" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrder" + } + } } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentStatus" + } + } } }, "description": "See the payment [status table](\nhttps://apiref.primer.io/docs#payment-status) for more information." @@ -44406,10 +52308,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReason" + } + } } }, "description": "Pass more information regarding the payment's status in this field.\n\nThis is especially useful when the status is `DECLINED` or `FAILED`." @@ -44417,27 +52325,45 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethod" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethod" + } + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -44446,10 +52372,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentPaymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_observabilityApiBeta:PaymentsInsightsPatchedPaymentPaymentType" + } + } } }, "description": "Payment types, primarily to be used for recurring payments.\n\nNote: If you successfully vault a `SINGLE_USE` token on payment\ncreation, then there's no need to set a value for this field and it will\nbe flagged as `FIRST_PAYMENT`. Otherwise, see the table below for all\npossible values.\n\n\n| paymentType | Use case |\n| --- | --- |\n| `FIRST_PAYMENT` | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |\n| `ECOMMERCE` | a customer-initiated payment using stored payment details where the cardholder is present. |\n| `SUBSCRIPTION` | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |\n| `UNSCHEDULED` | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |\n| `MOTO` | a merchant-initiated mail order or telephone order payment. |\n| `IN_STORE` | a customer-initiated payment where the customer is physically present in a shop. |" @@ -44457,11 +52389,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44599,9 +52537,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique identifier for the customer on the loyalty provider." @@ -44611,9 +52552,12 @@ { "key": "connectionId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Primer connection configuration." @@ -44730,11 +52674,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44743,11 +52693,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44756,11 +52712,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -44769,11 +52731,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -44782,11 +52750,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -44965,9 +52939,12 @@ { "key": "connectionId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the Primer connection configuration." @@ -44975,9 +52952,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique identifier for the customer on the loyalty provider." @@ -44985,9 +52965,12 @@ { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier for the order." @@ -44995,10 +52978,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LoyaltyTransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyTransactionTypeEnum" + } + } } }, "description": "The type of the transaction." @@ -45006,9 +52995,12 @@ { "key": "value", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The value of points to redeem." @@ -45185,10 +53177,16 @@ { "key": "retailerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country code of the retailer.\nThis field is passed to the processor and overwrites the retailer country code set in order details." @@ -45847,20 +53845,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -45868,11 +53875,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -45889,28 +53902,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -45918,63 +53946,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -46125,12 +54180,21 @@ { "key": "lineItems", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderLineItemsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsApiSchema" + } + } + } } } }, @@ -46139,10 +54203,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country in which the order is created" @@ -46150,10 +54220,16 @@ { "key": "retailerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country code of the retailer" @@ -46161,12 +54237,21 @@ { "key": "fees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderFeesApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderFeesApiSchema" + } + } + } } } }, @@ -46175,10 +54260,16 @@ { "key": "shipping", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderShippingApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderShippingApiSchema" + } + } } }, "description": "The details of shipping charged." @@ -46195,9 +54286,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The fee amount charged to the customer, in minor units. e.g. for $7, use `700`." @@ -46205,11 +54299,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46218,11 +54318,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46241,11 +54347,17 @@ { "key": "itemId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46254,11 +54366,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46267,11 +54385,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46280,9 +54404,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount charged to the customer, in minor units. The minimum amount is 0." @@ -46290,11 +54417,17 @@ { "key": "quantity", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46303,11 +54436,17 @@ { "key": "discountAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46316,11 +54455,17 @@ { "key": "taxAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46329,11 +54474,17 @@ { "key": "taxCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46342,10 +54493,16 @@ { "key": "productType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProductTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProductTypeEnum" + } + } } }, "description": "An identifier for the product type." @@ -46353,10 +54510,16 @@ { "key": "productData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderLineItemsProductDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsProductDataApiSchema" + } + } } }, "description": "Details related to the product" @@ -46374,24 +54537,36 @@ { "key": "sku", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, "description": "The product SKU" }, { - "key": "brand", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "key": "brand", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46400,11 +54575,17 @@ { "key": "color", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46413,11 +54594,17 @@ { "key": "globalTradeItemNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46426,11 +54613,17 @@ { "key": "manufacturerPartNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46439,11 +54632,17 @@ { "key": "weight", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -46452,11 +54651,17 @@ { "key": "weightUnit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46474,11 +54679,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46497,20 +54708,32 @@ { "key": "", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionApiSchema" + } + } } } }, { "key": "PAYMENT_CARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + } + } } } } @@ -46526,11 +54749,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -46539,11 +54768,17 @@ { "key": "vaultOn3DS", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -46552,11 +54787,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46565,22 +54806,37 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "orderedAllowedCardNetworks", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } + } } } }, @@ -46589,10 +54845,16 @@ { "key": "options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + } + } } }, "description": "Additional options for the payment methods represented as dictionary\nwith key of [available payment methods](https://primer.io/docs/payment-methods/available-payment-methods) and value of corresponding options." @@ -46600,10 +54862,16 @@ { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method.\n`FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount.\n`ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method." @@ -46621,8 +54889,11 @@ { "key": "surcharge", "valueShape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } }, "description": "Surcharge information" } @@ -46638,10 +54909,16 @@ { "key": "networks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + } + } } }, "description": "Dictionary of available card networks as a key with value of Payment Method Card Network Option." @@ -46658,160 +54935,256 @@ { "key": "AMEX", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DANKORT", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DINERS_CLUB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DISCOVER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ENROUTE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ELO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "HIPER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "INTERAC", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "JCB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MAESTRO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MASTERCARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MIR", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "PRIVATE_LABEL", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "UNIONPAY", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "VISA", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "OTHER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } } @@ -46827,10 +55200,16 @@ { "key": "surcharge", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } + } } }, "description": "Surcharge information" @@ -46847,11 +55226,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -46869,11 +55254,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -46882,11 +55273,17 @@ { "key": "vaultOn3DS", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -46895,11 +55292,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -46908,20 +55311,32 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method.\n`FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount.\n`ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method.\nDefaults to `FINAL`." @@ -46938,57 +55353,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -47003,11 +55442,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47016,21 +55461,33 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringPaymentTypeSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringPaymentTypeSchema" + } + } } } }, { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47039,24 +55496,36 @@ { "key": "isVaulted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, "description": "Whether the payment method token represents a vaulted payment method and can be used for future payments." }, { - "key": "analyticsId", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "key": "analyticsId", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47065,10 +55534,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type used for payment authorization." @@ -47076,10 +55551,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -47087,20 +55568,32 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } }, { "key": "authorizationType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AuthorizationTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AuthorizationTypeEnum" + } + } } }, "description": "Allows to adjust the authorized amount after the authorization, if supported by payment method. `FINAL` - the authorized amount is final and can not be adjusted. Adjusting the amount can be only done via canceling the payment and re-authorization with new amount. `ESTIMATED` - the amount can be adjusted after the authorization, if supported by payment method." @@ -47117,11 +55610,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47130,11 +55629,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47143,11 +55648,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47156,11 +55667,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47169,10 +55686,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -47180,10 +55703,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -47191,11 +55720,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47204,11 +55739,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47226,11 +55767,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47239,11 +55786,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47252,11 +55805,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47265,11 +55824,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47278,10 +55843,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer billing address.\n\nNote: It is recommended to include this field if a 3DS check will be performed" @@ -47289,10 +55860,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OptionalAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OptionalAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -47300,11 +55877,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47313,11 +55896,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47335,11 +55924,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47348,11 +55943,17 @@ { "key": "clientTokenExpirationDate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -47361,11 +55962,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47374,11 +55981,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47387,11 +56000,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -47400,10 +56019,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -47411,11 +56036,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47424,10 +56055,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -47435,17 +56072,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -47454,10 +56103,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -47465,10 +56120,16 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ClientSessionWarningsApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClientSessionWarningsApiResponse" + } + } } }, "description": "Warning messages to indicate missing information that are required for payment methods, checkout modules and other features; or when third-party services are unavailable." @@ -47485,11 +56146,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47498,11 +56165,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47511,10 +56184,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -47522,11 +56201,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -47535,17 +56220,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -47554,10 +56251,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -47565,10 +56268,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -47576,10 +56285,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -47596,11 +56311,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47609,11 +56330,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -47622,11 +56349,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48955,11 +57688,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48968,11 +57707,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -48981,11 +57726,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -48994,11 +57745,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -49016,9 +57773,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -49035,9 +57795,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -49053,11 +57816,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49065,11 +57834,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49077,11 +57852,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49089,11 +57870,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49101,11 +57888,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49113,11 +57906,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49125,11 +57924,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49137,11 +57942,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49149,11 +57960,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49161,11 +57978,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49173,21 +57996,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49204,17 +58039,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -49229,17 +58070,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -49254,11 +58101,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49266,63 +58119,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -49338,20 +58221,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49359,11 +58251,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49371,11 +58269,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49392,19 +58296,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -49412,10 +58325,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -49423,11 +58342,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49444,11 +58369,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49456,11 +58387,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49468,11 +58405,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49480,11 +58423,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49501,19 +58450,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -49521,11 +58479,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49542,11 +58506,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49555,11 +58525,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -49568,11 +58544,17 @@ { "key": "dateUpdated", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -49581,10 +58563,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -49592,10 +58580,16 @@ { "key": "cardTokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardTokenTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardTokenTypeEnum" + } + } } }, "description": "The type of card token used for the payment.\n\nOnly applies for card payments." @@ -49603,11 +58597,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49616,10 +58616,16 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -49627,11 +58633,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -49640,10 +58652,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -49651,11 +58669,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49664,10 +58688,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -49675,17 +58705,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -49694,10 +58736,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -49705,10 +58753,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -49716,10 +58770,16 @@ { "key": "requiredAction", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequiredActionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequiredActionApiSchema" + } + } } }, "description": "Required action to perform in order to resume the payment workflow. This can be requiring a 3DS check from the customer for instance." @@ -49727,10 +58787,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -49738,12 +58804,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -49752,10 +58827,16 @@ { "key": "riskData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskDataApiSchema" + } + } } } } @@ -49771,11 +58852,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49783,38 +58870,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49822,11 +58924,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49834,11 +58942,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -49846,10 +58960,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -49865,18 +58985,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -49884,10 +59013,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -49895,11 +59030,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -49918,30 +59059,48 @@ { "key": "fraudChecks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudCheckApiSchema" + } + } } } }, { "key": "cvvCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CvvCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CvvCheckApiSchema" + } + } } } }, { "key": "avsCheck", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsCheckApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsCheckApiSchema" + } + } } } } @@ -49958,11 +59117,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -49970,20 +59135,32 @@ { "key": "preAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } }, { "key": "postAuthorizationResult", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FraudDecisionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FraudDecisionTypeEnum" + } + } } } } @@ -50021,11 +59198,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50033,10 +59216,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -50053,11 +59242,17 @@ { "key": "source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50065,10 +59260,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AvsRiskAssessmentValues" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AvsRiskAssessmentValues" + } + } } } } @@ -50084,20 +59285,32 @@ { "key": "streetAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RiskAssessmentStatusEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RiskAssessmentStatusEnum" + } + } } } } @@ -50443,12 +59656,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PaymentSummaryApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryApiSchema" + } + } + } } } } @@ -50456,11 +59678,17 @@ { "key": "nextCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50468,11 +59696,17 @@ { "key": "prevCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50489,17 +59723,23 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:BlockingPaymentActionTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BlockingPaymentActionTypeEnum" + } }, "description": "Action name" }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Human description of the required action to perform." @@ -50507,11 +59747,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -50529,9 +59775,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique payment ID.\n\nYou can use this ID to retrieve the payment details, or perform downstream\noperations." @@ -50539,9 +59788,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time at which the payment was created in UTC format." @@ -50549,9 +59801,12 @@ { "key": "dateUpdated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time of the last payment update in UTC format." @@ -50559,17 +59814,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } }, "description": "See the payment [status table](../docs#payment-status) for more information." }, { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Your reference for the payment." @@ -50577,10 +59838,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentSummaryProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryProcessorApiSchema" + } + } } }, "description": "The payment processor used for this payment." @@ -50588,9 +59855,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." @@ -50598,9 +59868,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The payment amount, in minor units. e.g. $7 would show as `700`." @@ -50608,17 +59881,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -50636,9 +59921,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The processor's merchant ID used to authorize the payment." @@ -50646,11 +59934,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -50668,9 +59962,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment processor used for this payment." @@ -50678,11 +59975,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -50794,15 +60097,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -50817,28 +60126,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50846,11 +60170,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -50858,11 +60188,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -51104,9 +60440,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Date & time of the transaction (UTC)" @@ -51114,9 +60453,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Transaction amount in minor units" @@ -51124,19 +60466,28 @@ { "key": "currencyCode", "valueShape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } }, "description": "The 3-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\ne.g. use `USD` for US dollars." }, { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51145,21 +60496,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51168,11 +60531,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51181,9 +60550,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -51191,10 +60563,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -51202,10 +60580,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -51213,10 +60597,16 @@ { "key": "cardTokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardTokenTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardTokenTypeEnum" + } + } } }, "description": "The type of card token used for the payment.\n\nOnly applies for card payments." @@ -51299,11 +60689,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51311,11 +60707,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51323,11 +60725,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51336,11 +60744,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51349,11 +60763,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51362,11 +60782,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51375,10 +60801,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "Two letter ISO country code" @@ -51386,11 +60818,17 @@ { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51408,11 +60846,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51420,11 +60864,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -51432,9 +60882,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -51442,11 +60895,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51455,9 +60914,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -51465,11 +60927,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51478,19 +60946,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51508,36 +60985,51 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -51552,11 +61044,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -51565,11 +61063,17 @@ { "key": "deletedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -51578,11 +61082,17 @@ { "key": "deleted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -51591,11 +61101,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51604,11 +61120,17 @@ { "key": "tokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51617,11 +61139,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51630,10 +61158,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type associated with a token." @@ -51641,10 +61175,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + } + } } }, "description": "Payment method data" @@ -51652,11 +61192,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51665,11 +61211,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51678,11 +61230,17 @@ { "key": "default", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -51702,11 +61260,17 @@ { "key": "isVerified", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -51724,12 +61288,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VerifiedMerchantPaymentMethodTokenApiResponse" + } + } + } } } } @@ -51746,11 +61319,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51759,11 +61338,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51772,11 +61357,17 @@ { "key": "connectionName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51785,11 +61376,17 @@ { "key": "balance", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51822,11 +61419,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -51835,11 +61438,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51848,11 +61457,17 @@ { "key": "connectionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51861,11 +61476,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51874,11 +61495,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51887,11 +61514,17 @@ { "key": "connectionTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51900,11 +61533,17 @@ { "key": "connectionName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -51913,10 +61552,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LoyaltyTransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyTransactionTypeEnum" + } + } } }, "description": "The type of the transaction." @@ -51924,11 +61569,17 @@ { "key": "value", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51946,12 +61597,21 @@ { "key": "items", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:LoyaltyApiTransactionResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LoyaltyApiTransactionResponse" + } + } + } } } }, @@ -51960,11 +61620,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51973,11 +61639,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -51986,11 +61658,17 @@ { "key": "offset", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -52764,20 +62442,32 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsBinDataIssuerCountryCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsBinDataIssuerCountryCode" + } + } } }, "description": "2-letter country code in [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) alpha format,\ne.g. FR for France and GB for the United Kingdom." @@ -52785,11 +62475,17 @@ { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -52798,11 +62494,17 @@ { "key": "productUsageType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -52811,11 +62513,17 @@ { "key": "accountFundingType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -53589,9 +63297,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The order reference for the payment." @@ -53599,10 +63310,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsOrderCountryCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrderCountryCode" + } + } } }, "description": "2-letter country code in [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) alpha format,\ne.g. FR for France and GB for the United Kingdom." @@ -54234,9 +63951,12 @@ { "key": "paymentId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment ID.\n\nThe payment ID must be unique. You can use this unique payment ID to update payment details." @@ -54244,24 +63964,33 @@ { "key": "currencyCode", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentCurrencyCode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentCurrencyCode" + } }, "description": "The 3-letter currency code in\n[ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).\n\ne.g. use `USD` for US dollars." }, { "key": "processor", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessor" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessor" + } } }, { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount you would like to charge the customer,\nin minor units. e.g. for $7, use `700`.\n\nSome currencies, such as Japanese Yen, do not have minor units.\nIn this case you should use the value as it is, without any formatting.\nFor example for ¥100, use `100`.\nThe minimum amount is 0." @@ -54269,9 +63998,12 @@ { "key": "createdAt", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The payment creation date and time (UTC) in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n\nCannot be updated in partial updates PATCH." @@ -54279,17 +64011,26 @@ { "key": "order", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsOrder" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsOrder" + } } }, { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentStatus" + } + } } }, "description": "See the payment [status table](https://apiref.primer.io/docs#payment-status) for more information." @@ -54297,10 +64038,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReason" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReason" + } + } } }, "description": "Pass more information regarding the payment's status in this field.\n\nThis is especially useful when the status is `DECLINED` or `FAILED`." @@ -54308,24 +64055,39 @@ { "key": "paymentMethod", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethod" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethod" + } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -54334,10 +64096,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentPaymentType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentPaymentType" + } + } } }, "description": "Payment types, primarily to be used for recurring payments.\n\nNote: If you successfully vault a `SINGLE_USE` token on payment\ncreation, then there's no need to set a value for this field and it will\nbe flagged as `FIRST_PAYMENT`. Otherwise, see the table below for all\npossible values.\n\n| paymentType | Use case |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------ |\n| `FIRST_PAYMENT` | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |\n| `ECOMMERCE` | a customer-initiated payment using stored payment details where the cardholder is present. |\n| `SUBSCRIPTION` | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |\n| `UNSCHEDULED` | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |\n| `MOTO` | a merchant-initiated mail order or telephone order payment. |\n| `IN_STORE` | a customer-initiated payment where the customer is physically present in a shop. |" @@ -54345,11 +64113,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54367,28 +64141,43 @@ { "key": "paymentMethodType", "valueShape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } }, "description": "Payment method type used for payment authorization." }, { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsPaymentMethodData" + } + } } } }, { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsThreeDSecureAuthentication" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsThreeDSecureAuthentication" + } + } } } } @@ -54404,21 +64193,33 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsBinData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsBinData" + } + } } } }, { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54652,19 +64453,28 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:PaymentsInsightsProcessorName" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsProcessorName" + } }, "description": "The payment processor used for this payment.\nPrimer supports the above processors through the Payments API,\nhowever any value can be passed here." }, { "key": "merchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54762,20 +64572,32 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonType" + } + } } } }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonDeclineType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonDeclineType" + } + } } }, "description": "Declines of type `SOFT_DECLINE` may have been retried.\nWhereas declines of type `HARD_DECLINE` should have not been retried." @@ -54783,10 +64605,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsStatusReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsStatusReasonCode" + } + } } }, "description": "Payment status code with the error code when\nthe issuer declined the payment." @@ -54794,11 +64622,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54843,11 +64677,17 @@ { "key": "transStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -54855,11 +64695,17 @@ { "key": "transStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -54867,10 +64713,16 @@ { "key": "responseCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentsInsightsThreeDSecureAuthenticationResponseCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentsInsightsThreeDSecureAuthenticationResponseCode" + } + } } }, "description": "The response returned during the 3D Secure authentication call." @@ -54878,11 +64730,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -54891,11 +64749,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54904,11 +64768,17 @@ { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54917,11 +64787,17 @@ { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54930,11 +64806,17 @@ { "key": "eci", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54953,9 +64835,12 @@ { "key": "errorId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An error ID" @@ -54963,9 +64848,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A human readable description of the error" @@ -54973,11 +64861,17 @@ { "key": "diagnosticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -54986,19 +64880,34 @@ { "key": "validationErrors", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -55017,8 +64926,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -55033,8 +64945,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -55051,11 +64966,17 @@ { "key": "paymentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55064,11 +64985,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55086,8 +65013,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:four_hundred_nine_ErrorResponseError" + "type": "alias", + "value": { + "type": "id", + "id": "type_:four_hundred_nine_ErrorResponseError" + } } } ] @@ -55102,8 +65032,11 @@ { "key": "error", "valueShape": { - "type": "id", - "id": "type_:ErrorObject" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ErrorObject" + } } } ] @@ -55208,11 +65141,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55221,11 +65160,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55234,11 +65179,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -55247,10 +65198,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -55258,11 +65215,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55271,10 +65234,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -55282,17 +65251,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -55301,10 +65282,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -55634,10 +65621,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Filter payments by their status." @@ -55645,10 +65638,16 @@ { "key": "payment_method_type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Filter payments by their payment method type." @@ -55656,11 +65655,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55669,11 +65674,17 @@ { "key": "currency_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55682,11 +65693,17 @@ { "key": "from_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -55695,11 +65712,17 @@ { "key": "to_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -55708,11 +65731,17 @@ { "key": "order_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55721,11 +65750,17 @@ { "key": "min_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -55734,11 +65769,17 @@ { "key": "max_amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -55747,11 +65788,17 @@ { "key": "customer_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55760,11 +65807,17 @@ { "key": "merchant_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55773,11 +65826,17 @@ { "key": "customer_email_address", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55786,11 +65845,17 @@ { "key": "last_4_digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55799,11 +65864,17 @@ { "key": "paypal_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55812,11 +65883,17 @@ { "key": "klarna_email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55825,11 +65902,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -55838,11 +65921,17 @@ { "key": "cursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55963,11 +66052,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55983,11 +66078,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -55996,11 +66097,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56009,11 +66116,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -56022,10 +66135,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -56033,9 +66152,12 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment method token used to authorize the payment.\n" @@ -56043,11 +66165,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56056,10 +66184,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n" @@ -56067,17 +66201,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -56086,10 +66232,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequestPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method." @@ -56388,9 +66540,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of the payment to capture." @@ -56400,11 +66555,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56420,11 +66581,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -56433,11 +66600,17 @@ { "key": "final", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -56707,9 +66880,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to cancel." @@ -56719,11 +66895,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56739,11 +66921,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -56970,9 +67158,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to refund." @@ -56982,11 +67173,17 @@ { "key": "X-Idempotency-Key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -57002,11 +67199,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -57015,11 +67218,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -57028,11 +67237,17 @@ { "key": "reason", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -57302,9 +67517,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to resume." @@ -57319,9 +67537,12 @@ { "key": "resumeToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A token containing any information that is sent back from the checkout to complete a blocked payment flow." @@ -57545,9 +67766,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "ID of payment to retrieve." @@ -57761,9 +67985,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Payment method token to store." @@ -57778,9 +68005,12 @@ { "key": "customerId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The ID representing the customer" @@ -57909,9 +68139,12 @@ { "key": "customer_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Return payment methods for this customer ID." @@ -57995,9 +68228,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to delete." @@ -58120,9 +68356,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Saved payment method token to set to default." @@ -58250,20 +68489,29 @@ { "key": "mx", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "mnc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -58271,11 +68519,17 @@ { "key": "mcc", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } } @@ -58292,10 +68546,16 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } + } } } } @@ -58311,28 +68571,43 @@ { "key": "network", "valueShape": { - "type": "id", - "id": "type_:CardNetworkEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardNetworkEnum" + } } }, { "key": "issuerCountryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "issuerName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -58340,63 +68615,90 @@ { "key": "issuerCurrencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Currency" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Currency" + } + } } } }, { "key": "regionalRestriction", "valueShape": { - "type": "id", - "id": "type_:CardRegionRestrictionEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardRegionRestrictionEnum" + } } }, { "key": "accountNumberType", "valueShape": { - "type": "id", - "id": "type_:CardAccountNumberTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardAccountNumberTypeEnum" + } } }, { "key": "accountFundingType", "valueShape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } } }, { "key": "prepaidReloadableIndicator", "valueShape": { - "type": "id", - "id": "type_:PrepaidReloadableEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PrepaidReloadableEnum" + } } }, { "key": "productUsageType", "valueShape": { - "type": "id", - "id": "type_:CardProductTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CardProductTypeEnum" + } } }, { "key": "productCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "productName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -58541,11 +68843,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58554,11 +68862,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58567,11 +68881,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58580,11 +68900,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -58593,17 +68919,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -58612,10 +68950,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutCustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutCustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten." @@ -58623,10 +68967,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order.\n\nEach of the fields in this object must be updated in its entirety, i.e. provide the entire object to update it. Anything provided previously will be overwritten." @@ -58634,10 +68984,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment method. Provide the entire object to update it. Anything provided previously will be overwritten." @@ -58654,10 +69010,16 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } }, "description": "The country in which the order is created" @@ -58665,12 +69027,21 @@ { "key": "fees", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderFeesApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderFeesApiSchema" + } + } + } } } }, @@ -58679,12 +69050,21 @@ { "key": "lineItems", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:OrderLineItemsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderLineItemsApiSchema" + } + } + } } } }, @@ -58693,10 +69073,16 @@ { "key": "shipping", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderShippingApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderShippingApiSchema" + } + } } }, "description": "The details of shipping charged." @@ -58713,9 +69099,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The fee amount charged to the customer, in minor units. e.g. for $7, use `700`." @@ -58723,9 +69112,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The type of fee." @@ -58733,11 +69125,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58755,9 +69153,12 @@ { "key": "itemId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A unique identifier for the line item." @@ -58765,9 +69166,12 @@ { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A description of the item." @@ -58775,9 +69179,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The amount charged to the customer, in minor units. The minimum amount is 0." @@ -58785,11 +69192,17 @@ { "key": "discountAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -58798,9 +69211,12 @@ { "key": "quantity", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The number of the particular line item that is being ordered." @@ -58808,11 +69224,17 @@ { "key": "taxAmount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -58821,11 +69243,17 @@ { "key": "taxCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -58834,10 +69262,16 @@ { "key": "productType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ProductTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProductTypeEnum" + } + } } }, "description": "An identifier for the product type." @@ -58854,11 +69288,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -58877,20 +69317,32 @@ { "key": "", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionApiSchema" + } + } } } }, { "key": "PAYMENT_CARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodCardOptionApiSchema" + } + } } } } @@ -58906,11 +69358,17 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -58919,10 +69377,16 @@ { "key": "options", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchemaOptions" + } + } } }, "description": "Additional options for the payment methods represented as dictionary\nwith key of [available payment methods](https://primer.io/docs/payment-methods/available-payment-methods) and value of corresponding options." @@ -58940,8 +69404,11 @@ { "key": "surcharge", "valueShape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } }, "description": "Surcharge information" } @@ -58957,10 +69424,16 @@ { "key": "networks", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkApiSchema" + } + } } }, "description": "Dictionary of available card networks as a key with value of Payment Method Card Network Option." @@ -58977,160 +69450,256 @@ { "key": "AMEX", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DANKORT", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DINERS_CLUB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "DISCOVER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ENROUTE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "ELO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "HIPER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "INTERAC", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "JCB", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MAESTRO", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MASTERCARD", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "MIR", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "PRIVATE_LABEL", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "UNIONPAY", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "VISA", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } }, { "key": "OTHER", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionCardNetworkSurchargeApiSchema" + } + } } } } @@ -59146,10 +69715,16 @@ { "key": "surcharge", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionSurchargeApiSchema" + } + } } }, "description": "Surcharge information" @@ -59166,11 +69741,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -59188,24 +69769,36 @@ { "key": "vaultOnSuccess", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, "description": "Whether the payment method should be vaulted on a successful payment or not." }, - { - "key": "descriptor", - "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + { + "key": "descriptor", + "valueShape": { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59214,10 +69807,16 @@ { "key": "paymentType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RecurringTransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RecurringTransactionTypeEnum" + } + } } }, "description": "Payment types, primarily to be used for recurring payments.\nNote: If you successfully vault a `SINGLE_USE` token on payment creation, then there's no need to set a value for this field and it will be flagged as `FIRST_PAYMENT`. Otherwise, see the table below for all possible values.\n\n| paymentType | Use case |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------ |\n| `FIRST_PAYMENT` | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |\n| `ECOMMERCE` | a customer-initiated payment using stored payment details where the cardholder is present. |\n| `SUBSCRIPTION` | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |\n| `UNSCHEDULED` | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |" @@ -59234,57 +69833,81 @@ { "displayName": "Payment Card Token Api Schema", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchema" + } } }, { "displayName": "Pay Pal Order Token Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalOrderTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalOrderTokenApiSchema" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Payment Session Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaPaymentSessionApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaPaymentSessionApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Ideal Pay Nl Token Api Schema", "shape": { - "type": "id", - "id": "type_:IdealPayNlTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:IdealPayNlTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -59299,11 +69922,17 @@ { "key": "descriptor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59312,11 +69941,17 @@ { "key": "paymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59325,11 +69960,17 @@ { "key": "vaultedPaymentMethodToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59338,11 +69979,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59351,10 +69998,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type" @@ -59362,10 +70015,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchemaPaymentMethodData" + } + } } }, "description": "Payment method data" @@ -59373,10 +70032,16 @@ { "key": "threeDSecureAuthentication", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchema" + } + } } } } @@ -59392,11 +70057,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59405,11 +70076,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59418,11 +70095,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59431,11 +70114,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59444,10 +70133,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer billing address." @@ -59455,10 +70150,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -59466,11 +70167,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59479,11 +70186,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59501,11 +70214,17 @@ { "key": "emailAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59514,11 +70233,17 @@ { "key": "mobileNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59527,11 +70252,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59540,11 +70271,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59553,10 +70290,16 @@ { "key": "billingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer billing address.\n\nNote: It is recommended to include this field if a 3DS check will be performed" @@ -59564,10 +70307,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CoreApiApiCommonsSchemasAddessAddressApiSchema" + } + } } }, "description": "Customer shipping address" @@ -59575,11 +70324,17 @@ { "key": "taxId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59588,11 +70343,17 @@ { "key": "nationalDocumentId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59610,11 +70371,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59623,11 +70390,17 @@ { "key": "clientTokenExpirationDate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -59636,11 +70409,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59649,11 +70428,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59662,11 +70447,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -59675,10 +70466,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -59686,11 +70483,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59699,10 +70502,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -59710,17 +70519,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -59729,10 +70550,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CheckoutPaymentMethodOptionsApiSchema" + } + } } }, "description": "Enable certain options associated with the payment methods." @@ -59740,10 +70567,16 @@ { "key": "warnings", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ClientSessionWarningsApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ClientSessionWarningsApiResponse" + } + } } }, "description": "Warning messages to indicate missing information that are required for payment methods, checkout modules and other features; or when third-party services are unavailable." @@ -59760,11 +70593,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59773,11 +70612,17 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -59786,11 +70631,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61119,11 +71970,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61132,11 +71989,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61145,11 +72008,17 @@ { "key": "amountCaptured", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -61158,11 +72027,17 @@ { "key": "amountRefunded", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -61180,9 +72055,12 @@ { "key": "gocardlessMandateId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique identifier of a GoCardless mandate agreement" @@ -61199,9 +72077,12 @@ { "key": "paymentMethodConfigId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -61217,11 +72098,17 @@ { "key": "title", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61229,11 +72116,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61241,11 +72134,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61253,11 +72152,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61265,11 +72170,17 @@ { "key": "phoneNumber", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61277,11 +72188,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61289,11 +72206,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61301,11 +72224,17 @@ { "key": "addressLine3", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61313,11 +72242,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61325,11 +72260,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61337,21 +72278,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61368,17 +72321,23 @@ { "key": "klarnaCustomerToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -61393,17 +72352,23 @@ { "key": "klarnaAuthorizationToken", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "sessionData", "valueShape": { - "type": "id", - "id": "type_:KlarnaSessionDetailsApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaSessionDetailsApiSchema" + } } } ] @@ -61418,11 +72383,17 @@ { "key": "recurringDescription", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61430,63 +72401,93 @@ { "key": "billingAddress", "valueShape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } } }, { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaAddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaAddressApiSchema" + } + } } } }, { "key": "purchaseCountry", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "purchaseCurrency", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "locale", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "orderLines", "valueShape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } } }, { "key": "tokenDetails", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:KlarnaTokenDetails" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaTokenDetails" + } + } } } } @@ -61502,20 +72503,29 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "brand", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61523,11 +72533,17 @@ { "key": "masked_number", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61535,11 +72551,17 @@ { "key": "expiry_date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61556,19 +72578,28 @@ { "key": "paypalBillingAgreementId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -61576,10 +72607,16 @@ { "key": "shippingAddress", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddressApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddressApiSchema" + } + } } }, "description": "The PayPal customer's shipping address" @@ -61587,11 +72624,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61608,11 +72651,17 @@ { "key": "externalPayerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61620,11 +72669,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61632,11 +72687,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61644,11 +72705,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61665,19 +72732,28 @@ { "key": "paypalOrderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "externalPayerInfo", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PayPalExternalPayerInfoApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalExternalPayerInfoApiSchema" + } + } } }, "description": "Information about the PayPal customer" @@ -61685,11 +72761,17 @@ { "key": "paypalStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61706,11 +72788,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61719,11 +72807,17 @@ { "key": "date", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -61732,10 +72826,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "See the payment [status table](../docs#payment-status) for more information." @@ -61743,11 +72843,17 @@ { "key": "orderId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61756,11 +72862,17 @@ { "key": "currencyCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61769,11 +72881,17 @@ { "key": "amount", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -61782,10 +72900,16 @@ { "key": "order", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:OrderDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:OrderDetailsApiSchema" + } + } } }, "description": "More information associated with the order." @@ -61793,11 +72917,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -61806,10 +72936,16 @@ { "key": "customer", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CustomerDetailsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CustomerDetailsApiSchema" + } + } } }, "description": "More information associated with the customer." @@ -61817,17 +72953,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -61836,10 +72984,16 @@ { "key": "paymentMethod", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponsePaymentMethodOptionsApiSchema" + } + } } }, "description": "The payment method options provided in the request, as well as the token used to process the payment." @@ -61847,10 +73001,16 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentResponseProcessorApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentResponseProcessorApiSchema" + } + } } }, "description": "More information associated with the payment processor, including the processor name." @@ -61858,10 +73018,16 @@ { "key": "requiredAction", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentRequiredActionApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentRequiredActionApiSchema" + } + } } }, "description": "Required action to perform in order to resume the payment workflow. This can be requiring a 3DS check from the customer for instance." @@ -61869,10 +73035,16 @@ { "key": "statusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "Check this field for more information regarding the payment's status. This is especially useful when the status is `DECLINED` or `FAILED`." @@ -61880,12 +73052,21 @@ { "key": "transactions", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:TransactionOverviewApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionOverviewApiSchema" + } + } + } } } }, @@ -61903,11 +73084,17 @@ { "key": "first6Digits", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61915,38 +73102,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61954,11 +73156,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -61966,11 +73174,17 @@ { "key": "isNetworkTokenized", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -61978,10 +73192,16 @@ { "key": "binData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:BinDataApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:BinDataApiSchema" + } + } } } } @@ -61997,18 +73217,27 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:PaymentStatusTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatusTypeEnum" + } }, "description": "Type of the status." }, { "key": "declineType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:DeclineTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:DeclineTypeEnum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED` this will be returned.\n\nDeclines of type `SOFT_DECLINE` may be retried,\nwhereas declines of type `HARD_DECLINE` should not be retried." @@ -62016,10 +73245,16 @@ { "key": "code", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionDeclineReasonV2Enum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionDeclineReasonV2Enum" + } + } } }, "description": "If the error is of type `ISSUER_DECLINED`, this will be returned." @@ -62027,11 +73262,17 @@ { "key": "message", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62097,12 +73338,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:PaymentSummaryApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentSummaryApiSchema" + } + } + } } } } @@ -62110,11 +73360,17 @@ { "key": "nextCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62122,11 +73378,17 @@ { "key": "prevCursor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62143,17 +73405,23 @@ { "key": "name", "valueShape": { - "type": "id", - "id": "type_:BlockingPaymentActionTypeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:BlockingPaymentActionTypeEnum" + } }, "description": "Action name" }, { "key": "description", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Human description of the required action to perform." @@ -62161,11 +73429,17 @@ { "key": "clientToken", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62183,9 +73457,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The unique payment ID.\n\nYou can use this ID to retrieve the payment details, or perform downstream\noperations." @@ -62193,9 +73470,12 @@ { "key": "date", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "The date and time at which the payment was created in UTC format." @@ -62203,17 +73483,23 @@ { "key": "status", "valueShape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } }, "description": "See the payment [status table](../docs#payment-status) for more information." }, { "key": "orderId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Your reference for the payment." @@ -62221,11 +73507,17 @@ { "key": "processor", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62234,9 +73526,12 @@ { "key": "currencyCode", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The three-letter currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). e.g. use `USD` for US dollars." @@ -62244,9 +73539,12 @@ { "key": "amount", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "The payment amount, in minor units. e.g. $7 would show as `700`." @@ -62254,17 +73552,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -62282,9 +73592,12 @@ { "key": "name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "The payment processor used for this payment." @@ -62292,11 +73605,17 @@ { "key": "processorMerchantId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62397,15 +73716,21 @@ { "displayName": "Three D Secure Skipped Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureSkippedReasonCodeEnum" + } } }, { "displayName": "Three D Secure Failed Reason Code Enum", "shape": { - "type": "id", - "id": "type_:ThreeDSecureFailedReasonCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureFailedReasonCodeEnum" + } } } ] @@ -62420,28 +73745,43 @@ { "key": "responseCode", "valueShape": { - "type": "id", - "id": "type_:ThreeDSecureAuthResponseCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthResponseCodeEnum" + } } }, { "key": "reasonCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ThreeDSecureAuthenticationApiSchemaReasonCode" + } + } } } }, { "key": "reasonText", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62449,11 +73789,17 @@ { "key": "protocolVersion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62461,11 +73807,17 @@ { "key": "challengeIssued", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -62707,21 +74059,33 @@ { "key": "transactionType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:TransactionTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:TransactionTypeEnum" + } + } } } }, { "key": "processorTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62730,11 +74094,17 @@ { "key": "processorName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -62743,9 +74113,12 @@ { "key": "processorMerchantId", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Processor's main account identifier.\n\n- Adyen: Account code\n- Braintree: Merchant ID\n- Stripe: Account ID\"" @@ -62753,10 +74126,16 @@ { "key": "processorStatus", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentStatus" + } + } } }, "description": "Transaction status, please refer to the [Transaction Status Codes](#section/API-Usage-Guide/Payment-Status) table for more information" @@ -62764,10 +74143,16 @@ { "key": "processorStatusReason", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StatusReasonApiSchema" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StatusReasonApiSchema" + } + } } }, "description": "If the transaction has a declined or failed status.\n\nOnly if the status is `DECLINED` or `FAILED`, otherwise `null`." @@ -62850,11 +74235,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62862,11 +74253,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62874,11 +74271,17 @@ { "key": "addressLine1", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62886,11 +74289,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62898,11 +74307,17 @@ { "key": "city", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62910,11 +74325,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62922,21 +74343,33 @@ { "key": "countryCode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } + } } } }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62953,11 +74386,17 @@ { "key": "firstName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62965,11 +74404,17 @@ { "key": "lastName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -62977,9 +74422,12 @@ { "key": "addressLine1", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Street name, Company name or PO Box" @@ -62987,11 +74435,17 @@ { "key": "addressLine2", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63000,9 +74454,12 @@ { "key": "city", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Name of the city, district, town or village" @@ -63010,11 +74467,17 @@ { "key": "state", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63023,19 +74486,28 @@ { "key": "countryCode", "valueShape": { - "type": "id", - "id": "type_:CountryCodeEnum" + "type": "alias", + "value": { + "type": "id", + "id": "type_:CountryCodeEnum" + } }, "description": "Two letter ISO country code" }, { "key": "postalCode", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63053,36 +74525,51 @@ { "displayName": "Payment Card Token Api Schema Payment Methods Api", "shape": { - "type": "id", - "id": "type_:PaymentCardTokenApiSchemaPaymentMethodsApi" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentCardTokenApiSchemaPaymentMethodsApi" + } } }, { "displayName": "Pay Pal Billing Agreement Api Schema", "shape": { - "type": "id", - "id": "type_:PayPalBillingAgreementApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:PayPalBillingAgreementApiSchema" + } } }, { "displayName": "Go Cardless Mandate Api Schema", "shape": { - "type": "id", - "id": "type_:GoCardlessMandateApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:GoCardlessMandateApiSchema" + } } }, { "displayName": "Klarna Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:KlarnaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:KlarnaCustomerTokenApiSchema" + } } }, { "displayName": "Apaya Customer Token Api Schema", "shape": { - "type": "id", - "id": "type_:ApayaCustomerTokenApiSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApayaCustomerTokenApiSchema" + } } } ] @@ -63097,11 +74584,17 @@ { "key": "createdAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -63110,11 +74603,17 @@ { "key": "deletedAt", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -63123,11 +74622,17 @@ { "key": "deleted", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -63136,11 +74641,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63149,11 +74660,17 @@ { "key": "tokenType", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63162,11 +74679,17 @@ { "key": "analyticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63175,10 +74698,16 @@ { "key": "paymentMethodType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:PaymentMethodTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:PaymentMethodTypeEnum" + } + } } }, "description": "Payment method type associated with a token." @@ -63186,10 +74715,16 @@ { "key": "paymentMethodData", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponsePaymentMethodData" + } + } } }, "description": "Payment method data" @@ -63197,11 +74732,17 @@ { "key": "customerId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63210,11 +74751,17 @@ { "key": "default", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -63232,12 +74779,21 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:MerchantPaymentMethodTokenApiResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MerchantPaymentMethodTokenApiResponse" + } + } + } } } } @@ -63255,38 +74811,53 @@ { "key": "last4Digits", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationMonth", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "expirationYear", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "cardholderName", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63294,11 +74865,17 @@ { "key": "network", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -63306,11 +74883,17 @@ { "key": "networkTransactionId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63319,10 +74902,16 @@ { "key": "accountFundingType", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AccountFundingTypeEnum" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AccountFundingTypeEnum" + } + } } }, "description": "The type of card, e.g. Debit, Credit" @@ -63339,11 +74928,17 @@ { "key": "errorId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63352,11 +74947,17 @@ { "key": "description", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63365,11 +74966,17 @@ { "key": "recoverySuggestion", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -63378,11 +74985,17 @@ { "key": "diagnosticsId", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, diff --git a/packages/fdr-sdk/src/__test__/output/uploadcare/apiDefinitions.json b/packages/fdr-sdk/src/__test__/output/uploadcare/apiDefinitions.json index 6cf7d700fc..b57ef26478 100644 --- a/packages/fdr-sdk/src/__test__/output/uploadcare/apiDefinitions.json +++ b/packages/fdr-sdk/src/__test__/output/uploadcare/apiDefinitions.json @@ -34,9 +34,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique file identifier" @@ -160,9 +163,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique file identifier" @@ -290,9 +296,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique file identifier" @@ -300,9 +309,12 @@ { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An optional filename that users will see instead of the original name." @@ -398,9 +410,12 @@ { "key": "latitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location latitude." @@ -408,9 +423,12 @@ { "key": "longitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location longitude." @@ -428,9 +446,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -438,13 +459,22 @@ { "key": "dpi", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "double" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } } } } @@ -454,11 +484,17 @@ { "key": "width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -467,11 +503,17 @@ { "key": "format", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -480,11 +522,17 @@ { "key": "height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -493,11 +541,17 @@ { "key": "sequence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -506,10 +560,16 @@ { "key": "color_mode", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileColorMode" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileColorMode" + } + } } }, "description": "Image color mode." @@ -517,11 +577,17 @@ { "key": "orientation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -530,10 +596,16 @@ { "key": "geo_location", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileGeoLocation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileGeoLocation" + } + } } }, "description": "Geo-location of image from EXIF." @@ -541,11 +613,17 @@ { "key": "datetime_original", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -554,11 +632,17 @@ { "key": "hash", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -612,18 +696,27 @@ "type": "property", "key": "UPLOADCARE_PUB_KEY", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "type": "property", "key": "UPLOADCARE_STORE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StoreType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StoreType" + } + } } } }, @@ -636,10 +729,16 @@ "type": "property", "key": "metadata[{key}]", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MetadataValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MetadataValue" + } + } } } }, @@ -647,10 +746,16 @@ "type": "property", "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SignatureType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SignatureType" + } + } } } }, @@ -658,10 +763,16 @@ "type": "property", "key": "expire", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExpireType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExpireType" + } + } } } } @@ -931,26 +1042,38 @@ { "key": "UPLOADCARE_PUB_KEY", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "UPLOADCARE_STORE", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StoreType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StoreType" + } + } } } }, { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Original file name of the uploaded file" @@ -958,9 +1081,12 @@ { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Precise file size of the uploaded file (in bytes).\n**Note**: The size should not exceed max file size cap for your project.\n" @@ -968,11 +1094,17 @@ { "key": "part_size", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -981,9 +1113,12 @@ { "key": "content_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's MIME-type." @@ -991,30 +1126,48 @@ { "key": "metadata[{key}]", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MetadataValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MetadataValue" + } + } } } }, { "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SignatureType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SignatureType" + } + } } } }, { "key": "expire", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExpireType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExpireType" + } + } } } } @@ -1315,16 +1468,22 @@ { "key": "UPLOADCARE_PUB_KEY", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's UUID from the `/multipart/start/` endpoint." @@ -1657,16 +1816,22 @@ { "key": "pub_key", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "source_url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Source URL of the file to fetch and upload.\n\n**Note**: The URL should point to a resource publicly available via HTTP/HTTPS.\n" @@ -1674,21 +1839,33 @@ { "key": "store", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:StoreType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:StoreType" + } + } } } }, { "key": "filename", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -1697,10 +1874,16 @@ { "key": "check_URL_duplicates", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_upload:FromUrlUploadRequestCheckUrlDuplicates" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_upload:FromUrlUploadRequestCheckUrlDuplicates" + } + } } }, "description": "If set to \"1\", enables the `source_url` duplicates prevention.\nSpecifically, if the `source_url` had already been fetched and uploaded previously,\nthis request will return information about the already uploaded file.\n" @@ -1708,10 +1891,16 @@ { "key": "save_URL_duplicates", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_upload:FromUrlUploadRequestSaveUrlDuplicates" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_upload:FromUrlUploadRequestSaveUrlDuplicates" + } + } } }, "description": "Determines if the requested `source_url` should be kept in the history of\nfetched/uploaded URLs. If the value is not defined explicitly, it is set\nto the value of the `check_URL_duplicates` parameter.\n" @@ -1719,30 +1908,48 @@ { "key": "metadata[{key}]", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:MetadataValue" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:MetadataValue" + } + } } } }, { "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SignatureType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SignatureType" + } + } } } }, { "key": "expire", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExpireType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExpireType" + } + } } } } @@ -1977,9 +2184,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Token returned by the `/from_url/` endpoint that identifies a request to fetch/upload a file from a URL." @@ -2127,16 +2337,22 @@ { "key": "pub_key", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's unique ID." @@ -2451,18 +2667,27 @@ { "key": "pub_key", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "files[]", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -2471,20 +2696,32 @@ { "key": "signature", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SignatureType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SignatureType" + } + } } } }, { "key": "expire", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ExpireType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ExpireType" + } + } } } } @@ -2753,16 +2990,22 @@ { "key": "pub_key", "valueShape": { - "type": "id", - "id": "type_:ProjectPublicKeyType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectPublicKeyType" + } } }, { "key": "group_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Group's unique ID. Group IDs look like `UUID~N`, where the `~N` part reflects the number of the files in the group." @@ -3032,11 +3275,17 @@ { "key": "filename", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3053,9 +3302,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's UUID." @@ -3063,11 +3315,17 @@ { "key": "parts", "valueShape": { - "type": "list", - "itemShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -3113,15 +3371,21 @@ { "displayName": "From Url Upload Response Schema", "shape": { - "type": "id", - "id": "type_:FromUrlUploadResponseSchema" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FromUrlUploadResponseSchema" + } } }, { "displayName": "File Upload Info From Url", "shape": { - "type": "id", - "id": "type_:FileUploadInfoFromUrl" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoFromUrl" + } } } ] @@ -3135,36 +3399,51 @@ { "displayName": "File Upload Info Waiting Status", "shape": { - "type": "id", - "id": "type_:FileUploadInfoWaitingStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoWaitingStatus" + } } }, { "displayName": "File Upload Info Progress Status", "shape": { - "type": "id", - "id": "type_:FileUploadInfoProgressStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoProgressStatus" + } } }, { "displayName": "File Upload Info Success Status", "shape": { - "type": "id", - "id": "type_:FileUploadInfoSuccessStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoSuccessStatus" + } } }, { "displayName": "File Upload Info Error Status", "shape": { - "type": "id", - "id": "type_:FileUploadInfoErrorStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoErrorStatus" + } } }, { "displayName": "File Upload Info Unknown Status", "shape": { - "type": "id", - "id": "type_:FileUploadInfoUnknownStatus" + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileUploadInfoUnknownStatus" + } } } ] @@ -3237,9 +3516,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's unique ID." @@ -3247,9 +3529,12 @@ { "key": "file_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Same as `uuid`" @@ -3257,9 +3542,12 @@ { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "File's size in bytes." @@ -3267,9 +3555,12 @@ { "key": "total", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Same as `size`." @@ -3277,9 +3568,12 @@ { "key": "done", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Same as `size`." @@ -3287,9 +3581,12 @@ { "key": "original_filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Original file of the uploaded file." @@ -3297,9 +3594,12 @@ { "key": "filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Sanitized `original_filename`." @@ -3307,9 +3607,12 @@ { "key": "mime_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File's MIME-type." @@ -3317,49 +3620,76 @@ { "key": "image_info", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfo" + } + } } } }, { "key": "video_info", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LegacyVideoInfo" - } + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LegacyVideoInfo" + } + } + } } }, { "key": "content_info", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ContentInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContentInfo" + } + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Metadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Metadata" + } + } } } }, { "key": "is_image", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the uploaded file is an image of a supported file format." @@ -3367,9 +3697,12 @@ { "key": "is_stored", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the file has been marked as stored." @@ -3377,9 +3710,12 @@ { "key": "is_ready", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "True if the file is ready to be fetched from Uploadcare's CDN." @@ -3387,11 +3723,17 @@ { "key": "s3_bucket", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3409,12 +3751,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "waiting" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "waiting" + } + } } } } @@ -3431,12 +3779,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "progress" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "progress" + } + } } } } @@ -3444,11 +3798,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -3457,11 +3817,17 @@ { "key": "done", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -3481,12 +3847,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "success" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "success" + } + } } } } @@ -3503,12 +3875,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "error" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "error" + } + } } } } @@ -3516,11 +3894,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3529,11 +3913,17 @@ { "key": "error_code", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3551,12 +3941,18 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "unknown" + } + } } } } @@ -3575,12 +3971,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "file_info" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "file_info" + } + } } } } @@ -3598,12 +4000,18 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "token" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "token" + } + } } } } @@ -3611,11 +4019,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3634,11 +4048,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3647,11 +4067,17 @@ { "key": "datetime_created", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -3660,11 +4086,17 @@ { "key": "datetime_stored", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -3673,11 +4105,17 @@ { "key": "files_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -3686,24 +4124,36 @@ { "key": "cdn_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "description": "Group's CDN URL." - }, - { + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "Group's CDN URL." + }, + { "key": "url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -3712,11 +4162,20 @@ { "key": "files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } }, @@ -4528,9 +4987,12 @@ { "key": "latitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location latitude." @@ -4538,9 +5000,12 @@ { "key": "longitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location longitude." @@ -4558,19 +5023,28 @@ { "key": "color_mode", "valueShape": { - "type": "id", - "id": "type_:ImageInfoColorMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfoColorMode" + } }, "description": "Image color mode." }, { "key": "orientation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4579,9 +5053,12 @@ { "key": "format", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Image format." @@ -4589,9 +5066,12 @@ { "key": "sequence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Set to true if a file contains a sequence of images (GIF for example)." @@ -4599,9 +5079,12 @@ { "key": "height", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image height in pixels." @@ -4609,9 +5092,12 @@ { "key": "width", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image width in pixels." @@ -4619,10 +5105,16 @@ { "key": "geo_location", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageInfoGeoLocation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfoGeoLocation" + } + } } }, "description": "Geo-location of image from EXIF." @@ -4630,11 +5122,17 @@ { "key": "datetime_original", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -4643,13 +5141,22 @@ { "key": "dpi", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "double" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } } } } @@ -4669,11 +5176,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4682,11 +5195,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4695,11 +5214,17 @@ { "key": "sample_rate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4708,11 +5233,17 @@ { "key": "channels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4731,11 +5262,17 @@ { "key": "height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4744,11 +5281,17 @@ { "key": "width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4757,11 +5300,17 @@ { "key": "frame_rate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4770,11 +5319,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4783,11 +5338,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4806,24 +5367,36 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" - } - } - }, - "description": "Video file's duration in milliseconds." + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } + }, + "description": "Video file's duration in milliseconds." }, { "key": "format", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -4832,11 +5405,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -4845,10 +5424,16 @@ { "key": "audio", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LegacyVideoInfoAudio" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LegacyVideoInfoAudio" + } + } } }, "description": "Audio stream's metadata." @@ -4856,10 +5441,16 @@ { "key": "video", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:LegacyVideoInfoVideo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:LegacyVideoInfoVideo" + } + } } }, "description": "Video stream's metadata." @@ -4925,9 +5516,12 @@ { "key": "latitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location latitude." @@ -4935,9 +5529,12 @@ { "key": "longitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location longitude." @@ -4955,19 +5552,28 @@ { "key": "color_mode", "valueShape": { - "type": "id", - "id": "type_:SchemasImageInfoColorMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemasImageInfoColorMode" + } }, "description": "Image color mode." }, { "key": "orientation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -4976,9 +5582,12 @@ { "key": "format", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Image format." @@ -4986,9 +5595,12 @@ { "key": "sequence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Set to true if a file contains a sequence of images (GIF for example)." @@ -4996,9 +5608,12 @@ { "key": "height", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image height in pixels." @@ -5006,9 +5621,12 @@ { "key": "width", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image width in pixels." @@ -5016,10 +5634,16 @@ { "key": "geo_location", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SchemasImageInfoGeoLocation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemasImageInfoGeoLocation" + } + } } }, "description": "Geo-location of image from EXIF." @@ -5027,11 +5651,17 @@ { "key": "datetime_original", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -5040,13 +5670,22 @@ { "key": "dpi", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "double" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } } } } @@ -5066,11 +5705,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5079,11 +5724,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5092,11 +5743,17 @@ { "key": "sample_rate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5105,11 +5762,17 @@ { "key": "channels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5128,9 +5791,12 @@ { "key": "height", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Video stream's image height." @@ -5138,9 +5804,12 @@ { "key": "width", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Video stream's image width." @@ -5148,9 +5817,12 @@ { "key": "frame_rate", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Video stream's frame rate." @@ -5158,11 +5830,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5171,11 +5849,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5194,11 +5878,17 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5207,9 +5897,12 @@ { "key": "format", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Video file's format." @@ -5217,11 +5910,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -5230,20 +5929,32 @@ { "key": "audio", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VideoInfoAudioItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfoAudioItem" + } + } } } }, { "key": "video", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VideoInfoVideoItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfoVideoItem" + } + } } } } @@ -5260,9 +5971,12 @@ { "key": "mime", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Full MIME type." @@ -5270,9 +5984,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of MIME type." @@ -5280,9 +5997,12 @@ { "key": "subtype", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Subtype of MIME type." @@ -5300,10 +6020,16 @@ { "key": "mime", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ContentInfoMime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContentInfoMime" + } + } } }, "description": "MIME type." @@ -5311,20 +6037,32 @@ { "key": "image", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:SchemasImageInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:SchemasImageInfo" + } + } } } }, { "key": "video", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VideoInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfo" + } + } } } } @@ -5339,15 +6077,24 @@ "value": { "type": "optional", "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -5402,9 +6149,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -5417,13 +6167,19 @@ "value": { "type": "map", "keyShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "valueShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "unknown" + } } } } @@ -5604,11 +6360,17 @@ { "key": "removed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5617,11 +6379,17 @@ { "key": "stored", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -5630,11 +6398,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -5643,10 +6417,16 @@ { "key": "ordering", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_file:FilesListRequestOrdering" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_file:FilesListRequestOrdering" + } + } } }, "description": "Specifies the way files are sorted in a returned list. `datetime_uploaded` for ascending order, `-datetime_uploaded` for descending order." @@ -5654,11 +6434,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -5667,11 +6453,17 @@ { "key": "include", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -6084,9 +6876,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -6519,9 +7314,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -6895,9 +7693,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -6907,11 +7708,17 @@ { "key": "include", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -7293,9 +8100,12 @@ "value": { "type": "list", "itemShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -7709,9 +8519,12 @@ "value": { "type": "list", "itemShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -8127,9 +8940,12 @@ { "key": "source", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A CDN URL or just UUID of a file subjected to copy." @@ -8137,10 +8953,16 @@ { "key": "store", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_file:CreateLocalCopyRequestStore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_file:CreateLocalCopyRequestStore" + } + } } }, "description": "The parameter only applies to the Uploadcare storage and MUST be either true or false." @@ -8148,17 +8970,29 @@ { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -8432,9 +9266,12 @@ { "key": "source", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "A CDN URL or just UUID of a file subjected to copy." @@ -8442,9 +9279,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Identifies a custom storage name related to your project. It implies that you are copying a file to a specified custom storage. Keep in mind that you can have multiple storages associated with a single S3 bucket." @@ -8452,11 +9292,17 @@ { "key": "make_public", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -8465,10 +9311,16 @@ { "key": "pattern", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_file:CreateRemoteCopyRequestPattern" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_file:CreateRemoteCopyRequestPattern" + } + } } }, "description": "The parameter is used to specify file names Uploadcare passes to a custom storage. If the parameter is omitted, your custom storages pattern is used. Use any combination of allowed values.\n\nParameter values:\n- `${default}` = `${uuid}/${auto_filename}`\n- `${auto_filename}` = `${filename}${effects}${ext}`\n- `${effects}` = processing operations put into a CDN URL\n- `${filename}` = original filename without extension\n- `${uuid}` = file UUID\n- `${ext}` = file extension, including period, e.g. .jpg\n" @@ -8722,9 +9574,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID of the file to process" @@ -8998,9 +9853,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Request ID returned by the Add-On execution request described above." @@ -9187,9 +10045,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID of the file to process" @@ -9455,9 +10316,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Request ID returned by the Add-On execution request described above." @@ -9636,9 +10500,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID of the file to process" @@ -9646,10 +10513,16 @@ { "key": "params", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:UcClamavVirusScanExecuteRequestParams" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:UcClamavVirusScanExecuteRequestParams" + } + } } }, "description": "Optional object with Add-On specific parameters" @@ -9934,9 +10807,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Request ID returned by the Add-On execution request described above." @@ -10131,9 +11007,12 @@ { "key": "target", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Unique ID of the file to process" @@ -10141,10 +11020,16 @@ { "key": "params", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:RemoveBgExecuteRequestParams" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:RemoveBgExecuteRequestParams" + } + } } }, "description": "Optional object with Add-On specific parameters" @@ -10424,9 +11309,12 @@ { "key": "request_id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Request ID returned by the Add-On execution request described above." @@ -10623,9 +11511,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -10633,9 +11524,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of file metadata.\nList of allowed characters for the key:\n\n- Latin letters in lower or upper case (a-z,A-Z)\n- digits (0-9)\n- underscore `_`\n- a hyphen `-`\n- dot `.`\n- colon `:`" @@ -10838,9 +11732,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -10848,9 +11745,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of file metadata.\nList of allowed characters for the key:\n\n- Latin letters in lower or upper case (a-z,A-Z)\n- digits (0-9)\n- underscore `_`\n- a hyphen `-`\n- dot `.`\n- colon `:`" @@ -11077,9 +11977,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -11087,9 +11990,12 @@ { "key": "key", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Key of file metadata.\nList of allowed characters for the key:\n\n- Latin letters in lower or upper case (a-z,A-Z)\n- digits (0-9)\n- underscore `_`\n- a hyphen `-`\n- dot `.`\n- colon `:`" @@ -11266,11 +12172,17 @@ { "key": "limit", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -11279,11 +12191,17 @@ { "key": "from", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -11292,10 +12210,16 @@ { "key": "ordering", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_group:GroupsListRequestOrdering" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_group:GroupsListRequestOrdering" + } + } } }, "description": "Specifies the way groups should be sorted in the returned list.\n`datetime_created` for the ascending order (default),\n`-datetime_created` for the descending one." @@ -11540,9 +12464,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Group UUID." @@ -11815,9 +12742,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Group UUID." @@ -12271,8 +13201,11 @@ "value": { "type": "list", "itemShape": { - "type": "id", - "id": "type_:WebhookOfListResponse" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookOfListResponse" + } } } } @@ -12707,9 +13640,12 @@ { "key": "id", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Webhook ID." @@ -13137,9 +14073,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File uuid." @@ -13405,13 +14344,22 @@ { "key": "paths", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -13421,10 +14369,16 @@ { "key": "store", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentJobSubmitParametersStore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentJobSubmitParametersStore" + } + } } }, "description": "When `store` is set to `\"0\"`, the converted files will only be available for 24 hours. `\"1\"` makes converted files available permanently. If the parameter is omitted, it checks the `Auto file storing` setting of your Uploadcare project identified by the `public_key` provided in the `auth-param`.\n" @@ -13432,10 +14386,16 @@ { "key": "save_in_group", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentJobSubmitParametersSaveInGroup" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentJobSubmitParametersSaveInGroup" + } + } } }, "description": "When `save_in_group` is set to `\"1\"`, multi-page documents additionally will be saved as a file group.\n" @@ -13651,9 +14611,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Job token." @@ -13957,13 +14920,22 @@ { "key": "paths", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -13973,10 +14945,16 @@ { "key": "store", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:VideoJobSubmitParametersStore" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:VideoJobSubmitParametersStore" + } + } } }, "description": "When `store` is set to `\"0\"`, the converted files will only be available for 24 hours. `\"1\"` makes converted files available permanently. If the parameter is omitted, it checks the `Auto file storing` setting of your Uploadcare project identified by the `public_key` provided in the `auth-param`.\n" @@ -14193,9 +15171,12 @@ { "key": "token", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Job token." @@ -14495,9 +15476,12 @@ { "key": "removed", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Total number of the files that are marked as removed." @@ -14505,9 +15489,12 @@ { "key": "stored", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Total number of the files that are marked as stored." @@ -14515,9 +15502,12 @@ { "key": "unstored", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Total number of the files that are not marked as stored." @@ -14534,11 +15524,17 @@ { "key": "next", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14547,11 +15543,17 @@ { "key": "previous", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14560,11 +15562,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -14573,21 +15581,33 @@ { "key": "totals", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_file:FilesListResponseTotals" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_file:FilesListResponseTotals" + } + } } } }, { "key": "per_page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -14596,12 +15616,21 @@ { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } + } + } } } } @@ -14618,11 +15647,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14630,17 +15665,29 @@ { "key": "problems", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -14649,12 +15696,21 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } + } + } } } }, @@ -14672,11 +15728,17 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -14684,17 +15746,29 @@ { "key": "problems", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -14703,12 +15777,21 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } + } + } } } }, @@ -14768,11 +15851,17 @@ { "key": "request_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14811,10 +15900,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:AwsRekognitionExecutionStatusResponseStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:AwsRekognitionExecutionStatusResponseStatus" + } + } } }, "description": "Defines the status of an Add-On execution.\nIn most cases, once the status changes to `done`, [Application Data](#operation/fileInfo) of the file that had been specified as a `appdata`, will contain the result of the execution." @@ -14831,11 +15926,17 @@ { "key": "request_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -14874,10 +15975,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:AwsRekognitionDetectModerationLabelsExecutionStatusResponseStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:AwsRekognitionDetectModerationLabelsExecutionStatusResponseStatus" + } + } } }, "description": "Defines the status of an Add-On execution.\nIn most cases, once the status changes to `done`, [Application Data](#operation/fileInfo) of the file that had been specified as a `appdata`, will contain the result of the execution." @@ -14895,11 +16002,17 @@ { "key": "purge_infected", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -14917,14 +16030,20 @@ { "key": "request_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, "description": "Request ID." } ] @@ -14960,10 +16079,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:UcClamavVirusScanExecutionStatusResponseStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:UcClamavVirusScanExecutionStatusResponseStatus" + } + } } }, "description": "Defines the status of an Add-On execution.\nIn most cases, once the status changes to `done`, [Application Data](#operation/fileInfo) of the file that had been specified as a `appdata`, will contain the result of the execution." @@ -15038,11 +16163,17 @@ { "key": "crop", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15051,11 +16182,17 @@ { "key": "crop_margin", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15064,11 +16201,17 @@ { "key": "scale", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15077,11 +16220,17 @@ { "key": "add_shadow", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15090,10 +16239,16 @@ { "key": "type_level", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:RemoveBgExecuteRequestParamsTypeLevel" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:RemoveBgExecuteRequestParamsTypeLevel" + } + } } }, "description": "\"none\" = No classification (foreground_type won't bet set in the application data)\n\n\"1\" = Use coarse classification classes: [person, product, animal, car, other]\n\n\"2\" = Use more specific classification classes: [person, product, animal, car,\ncar_interior, car_part, transportation, graphics, other]\n\n\"latest\" = Always use the latest classification classes available" @@ -15101,10 +16256,16 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:RemoveBgExecuteRequestParamsType" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:RemoveBgExecuteRequestParamsType" + } + } } }, "description": "Foreground type." @@ -15112,11 +16273,17 @@ { "key": "semitransparency", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } }, @@ -15125,10 +16292,16 @@ { "key": "channels", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:RemoveBgExecuteRequestParamsChannels" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:RemoveBgExecuteRequestParamsChannels" + } + } } }, "description": "Request either the finalized image ('rgba', default) or an alpha mask ('alpha')." @@ -15136,11 +16309,17 @@ { "key": "roi", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15149,11 +16328,17 @@ { "key": "position", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15171,11 +16356,17 @@ { "key": "request_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15193,11 +16384,17 @@ { "key": "file_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15217,10 +16414,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_addOns:RemoveBgExecutionStatusResponseResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_addOns:RemoveBgExecutionStatusResponseResult" + } + } } } } @@ -15250,11 +16453,17 @@ { "key": "next", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15263,11 +16472,17 @@ { "key": "previous", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15276,11 +16491,17 @@ { "key": "total", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -15289,11 +16510,17 @@ { "key": "per_page", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } }, @@ -15302,12 +16529,21 @@ { "key": "results", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:Group" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Group" + } + } + } } } } @@ -15324,16 +16560,22 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "description": "Supported target document format." - } + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "Supported target document format." + } ] } }, @@ -15347,11 +16589,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15360,12 +16608,21 @@ { "key": "conversion_formats", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_conversion:DocumentConvertInfoResponseFormatConversionFormatsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertInfoResponseFormatConversionFormatsItem" + } + } + } } } }, @@ -15384,11 +16641,17 @@ { "key": "{conversion_format}", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15406,11 +16669,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15419,10 +16688,16 @@ { "key": "format", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentConvertInfoResponseFormat" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertInfoResponseFormat" + } + } } }, "description": "Document format details." @@ -15430,10 +16705,16 @@ { "key": "converted_groups", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentConvertInfoResponseConvertedGroups" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertInfoResponseConvertedGroups" + } + } } }, "description": "Information about already converted groups." @@ -15492,11 +16773,17 @@ { "key": "original_source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15505,11 +16792,17 @@ { "key": "uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15518,11 +16811,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15540,19 +16839,31 @@ { "key": "problems", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -15562,12 +16873,21 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_conversion:DocumentConvertResponseResultItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertResponseResultItem" + } + } + } } } }, @@ -15610,11 +16930,17 @@ { "key": "uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15632,10 +16958,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentConvertStatusResponseStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertStatusResponseStatus" + } + } } }, "description": "Conversion job status, can have one of the following values: - `pending` — a source file is being prepared for conversion. - `processing` — conversion is in progress. - `finished` — the conversion is finished. - `failed` — failed to convert the source, see `error` for details. - `canceled` — the conversion was canceled." @@ -15643,11 +16975,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15656,10 +16994,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:DocumentConvertStatusResponseResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:DocumentConvertStatusResponseResult" + } + } } }, "description": "Repeats the contents of your processing output." @@ -15697,11 +17041,17 @@ { "key": "original_source", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15710,11 +17060,17 @@ { "key": "uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15723,11 +17079,17 @@ { "key": "token", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -15736,15 +17098,21 @@ { "key": "thumbnails_group_uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "description": "UUID of a file group with thumbnails for an output video, based on the `thumbs` operation parameters." + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + }, + "description": "UUID of a file group with thumbnails for an output video, based on the `thumbs` operation parameters." } ] } @@ -15758,19 +17126,31 @@ { "key": "problems", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" - } - }, - "valueShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } } } } @@ -15780,12 +17160,21 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_conversion:VideoConvertResponseResultItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:VideoConvertResponseResultItem" + } + } + } } } }, @@ -15828,11 +17217,17 @@ { "key": "uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15841,11 +17236,17 @@ { "key": "thumbnails_group_uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15863,10 +17264,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:VideoConvertStatusResponseStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:VideoConvertStatusResponseStatus" + } + } } }, "description": "Processing job status, can have one of the following values: - `pending` — video file is being prepared for conversion. - `processing` — video file processing is in progress. - `finished` — the processing is finished. - `failed` — we failed to process the video, see `error` for details. - `canceled` — video processing was canceled." @@ -15874,11 +17281,17 @@ { "key": "error", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -15887,10 +17300,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_conversion:VideoConvertStatusResponseResult" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_conversion:VideoConvertStatusResponseResult" + } + } } }, "description": "Repeats the contents of your processing output." @@ -15928,10 +17347,16 @@ { "key": "status", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AddonExecutionStatusStatus" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AddonExecutionStatusStatus" + } + } } }, "description": "Defines the status of an Add-On execution.\nIn most cases, once the status changes to `done`, [Application Data](#operation/fileInfo) of the file that had been specified as a `appdata`, will contain the result of the execution." @@ -15948,30 +17373,42 @@ { "key": "initiator", "valueShape": { - "type": "id", - "id": "type_:WebhookInitiator" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookInitiator" + } } }, { "key": "hook", "valueShape": { - "type": "id", - "id": "type_:WebhookPublicInfo" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookPublicInfo" + } } }, { "key": "data", "valueShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } } }, { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File CDN URL." @@ -15989,20 +17426,32 @@ { "key": "appdata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ApplicationDataObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApplicationDataObject" + } + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Metadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Metadata" + } + } } } } @@ -16018,30 +17467,42 @@ { "key": "initiator", "valueShape": { - "type": "id", - "id": "type_:WebhookInitiator" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookInitiator" + } } }, { "key": "hook", "valueShape": { - "type": "id", - "id": "type_:WebhookPublicInfo" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookPublicInfo" + } } }, { "key": "data", "valueShape": { - "type": "id", - "id": "type_:File" + "type": "alias", + "value": { + "type": "id", + "id": "type_:File" + } } }, { "key": "file", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File CDN URL." @@ -16049,8 +17510,11 @@ { "key": "previous_values", "valueShape": { - "type": "id", - "id": "type_:WebhookFileInfoUpdatedPayloadPreviousValues" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookFileInfoUpdatedPayloadPreviousValues" + } }, "description": "Object containing the values of the updated file data attributes and their values prior to the event." } @@ -16066,11 +17530,17 @@ { "key": "datetime_removed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16079,11 +17549,17 @@ { "key": "datetime_stored", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16092,9 +17568,12 @@ { "key": "datetime_uploaded", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when a file was uploaded." @@ -16102,9 +17581,12 @@ { "key": "is_image", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Is file is image." @@ -16112,9 +17594,12 @@ { "key": "is_ready", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Is file is ready to be used after upload." @@ -16122,9 +17607,12 @@ { "key": "mime_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File MIME-type." @@ -16132,11 +17620,17 @@ { "key": "original_file_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16145,9 +17639,12 @@ { "key": "original_filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Original file name taken from uploaded file." @@ -16155,9 +17652,12 @@ { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "File size in bytes." @@ -16165,9 +17665,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "API resource URL for a particular file." @@ -16175,38 +17678,53 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } - }, + "type": "primitive", + "value": { + "type": "string" + } + } + }, "description": "File UUID." }, { "key": "variations", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "content_info", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Metadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Metadata" + } + } } } } @@ -16222,11 +17740,17 @@ { "key": "datetime_removed", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16235,11 +17759,17 @@ { "key": "datetime_stored", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16248,9 +17778,12 @@ { "key": "datetime_uploaded", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when a file was uploaded." @@ -16258,9 +17791,12 @@ { "key": "is_image", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Is file is image." @@ -16268,9 +17804,12 @@ { "key": "is_ready", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Is file is ready to be used after upload." @@ -16278,9 +17817,12 @@ { "key": "mime_type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File MIME-type." @@ -16288,11 +17830,17 @@ { "key": "original_file_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16301,9 +17849,12 @@ { "key": "original_filename", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Original file name taken from uploaded file." @@ -16311,9 +17862,12 @@ { "key": "size", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "File size in bytes." @@ -16321,9 +17875,12 @@ { "key": "url", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "API resource URL for a particular file." @@ -16331,9 +17888,12 @@ { "key": "uuid", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "File UUID." @@ -16341,27 +17901,45 @@ { "key": "appdata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ApplicationDataObject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ApplicationDataObject" + } + } } } }, { "key": "variations", "valueShape": { - "type": "optional", - "shape": { - "type": "map", - "keyShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "string" + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } } - }, - "valueShape": { - "type": "unknown" } } }, @@ -16370,20 +17948,32 @@ { "key": "content_info", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ContentInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContentInfo" + } + } } } }, { "key": "metadata", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:Metadata" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:Metadata" + } + } } } } @@ -16398,15 +17988,24 @@ "value": { "type": "optional", "shape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } } } @@ -16435,9 +18034,12 @@ { "key": "mime", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Full MIME type." @@ -16445,9 +18047,12 @@ { "key": "type", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Type of MIME type." @@ -16455,9 +18060,12 @@ { "key": "subtype", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Subtype of MIME type." @@ -16475,10 +18083,16 @@ { "key": "mime", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ContentInfoMime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ContentInfoMime" + } + } } }, "description": "MIME type." @@ -16486,20 +18100,32 @@ { "key": "image", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfo" + } + } } } }, { "key": "video", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:VideoInfo" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfo" + } + } } } } @@ -16564,9 +18190,12 @@ { "key": "latitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location latitude." @@ -16574,9 +18203,12 @@ { "key": "longitude", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Location longitude." @@ -16594,19 +18226,28 @@ { "key": "color_mode", "valueShape": { - "type": "id", - "id": "type_:ImageInfoColorMode" + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfoColorMode" + } }, "description": "Image color mode." }, { "key": "orientation", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16615,19 +18256,25 @@ { "key": "format", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" - } + "type": "primitive", + "value": { + "type": "string" + } + } }, "description": "Image format." }, { "key": "sequence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } }, "description": "Set to true if a file contains a sequence of images (GIF for example)." @@ -16635,9 +18282,12 @@ { "key": "height", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image height in pixels." @@ -16645,9 +18295,12 @@ { "key": "width", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Image width in pixels." @@ -16655,10 +18308,16 @@ { "key": "geo_location", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:ImageInfoGeoLocation" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ImageInfoGeoLocation" + } + } } }, "description": "Geo-location of image from EXIF." @@ -16666,11 +18325,17 @@ { "key": "datetime_original", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16679,13 +18344,22 @@ { "key": "dpi", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "primitive", + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", "value": { - "type": "double" + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } + } } } } @@ -16705,11 +18379,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16718,11 +18398,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16731,11 +18417,17 @@ { "key": "sample_rate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16744,11 +18436,17 @@ { "key": "channels", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16767,9 +18465,12 @@ { "key": "height", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Video stream's image height." @@ -16777,9 +18478,12 @@ { "key": "width", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "integer" + "type": "primitive", + "value": { + "type": "integer" + } } }, "description": "Video stream's image width." @@ -16787,9 +18491,12 @@ { "key": "frame_rate", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } }, "description": "Video stream's frame rate." @@ -16797,11 +18504,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16810,11 +18523,17 @@ { "key": "codec", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16833,11 +18552,17 @@ { "key": "duration", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16846,9 +18571,12 @@ { "key": "format", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "Video file's format." @@ -16856,11 +18584,17 @@ { "key": "bitrate", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16869,20 +18603,32 @@ { "key": "audio", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VideoInfoAudioItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfoAudioItem" + } + } } } }, { "key": "video", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:VideoInfoVideoItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:VideoInfoVideoItem" + } + } } } } @@ -16898,11 +18644,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -16910,11 +18662,17 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16932,11 +18690,17 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16945,11 +18709,17 @@ { "key": "datetime_created", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "datetime" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "datetime" + } + } } } }, @@ -16958,11 +18728,17 @@ { "key": "files_count", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "integer" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } } } }, @@ -16971,11 +18747,17 @@ { "key": "cdn_url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -16984,11 +18766,17 @@ { "key": "url", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17008,11 +18796,20 @@ { "key": "files", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "unknown" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "unknown" + } + } + } } } }, @@ -17030,11 +18827,17 @@ { "key": "email", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17043,11 +18846,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17065,12 +18874,21 @@ { "key": "collaborators", "valueShape": { - "type": "optional", - "shape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:ProjectCollaboratorsItem" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:ProjectCollaboratorsItem" + } + } + } } } } @@ -17078,11 +18896,17 @@ { "key": "name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17091,11 +18915,17 @@ { "key": "pub_key", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17104,11 +18934,17 @@ { "key": "autostore_enabled", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "boolean" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "boolean" + } + } } } } @@ -17301,90 +19137,144 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookId" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookId" + } + } } } }, { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookProject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookProject" + } + } } } }, { "key": "created", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookCreated" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookCreated" + } + } } } }, { "key": "updated", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookUpdated" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookUpdated" + } + } } } }, { "key": "event", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookEvent" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookEvent" + } + } } } }, { "key": "target_url", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookTarget" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookTarget" + } + } } } }, { "key": "is_active", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookIsActive" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookIsActive" + } + } } } }, { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookVersion" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookVersion" + } + } } } }, { "key": "signing_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookSigningSecret" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookSigningSecret" + } + } } } } @@ -17401,90 +19291,144 @@ { "key": "id", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookId" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookId" + } + } } } }, { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookProject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookProject" + } + } } } }, { "key": "created", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookCreated" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookCreated" + } + } } } }, { "key": "updated", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookUpdated" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookUpdated" + } + } } } }, { "key": "event", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookEvent" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookEvent" + } + } } } }, { "key": "target_url", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookTarget" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookTarget" + } + } } } }, { "key": "is_active", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookIsActive" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookIsActive" + } + } } } }, { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookVersionOfListResponse" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookVersionOfListResponse" + } + } } } }, { "key": "signing_secret", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookSigningSecret" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookSigningSecret" + } + } } } } @@ -17545,11 +19489,17 @@ { "key": "request_id", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17558,10 +19508,16 @@ { "key": "addon_name", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookInitiatorDetailAddonName" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookInitiatorDetailAddonName" + } + } } }, "description": "Add-On name." @@ -17569,11 +19525,17 @@ { "key": "source_file_uuid", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17592,16 +19554,22 @@ { "key": "type", "valueShape": { - "type": "id", - "id": "type_:WebhookInitiatorType" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookInitiatorType" + } }, "description": "Initiator type name." }, { "key": "detail", "valueShape": { - "type": "id", - "id": "type_:WebhookInitiatorDetail" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookInitiatorDetail" + } } } ] @@ -17617,70 +19585,103 @@ { "key": "id", "valueShape": { - "type": "id", - "id": "type_:WebhookId" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookId" + } } }, { "key": "project", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookProject" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookProject" + } + } } } }, { "key": "project_pub_key", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:WebhookProjectPubkey" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookProjectPubkey" + } + } } } }, { "key": "created_at", "valueShape": { - "type": "id", - "id": "type_:WebhookCreated" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookCreated" + } } }, { "key": "updated_at", "valueShape": { - "type": "id", - "id": "type_:WebhookUpdated" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookUpdated" + } } }, { "key": "event", "valueShape": { - "type": "id", - "id": "type_:WebhookEvent" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookEvent" + } } }, { "key": "target", "valueShape": { - "type": "id", - "id": "type_:WebhookTarget" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookTarget" + } } }, { "key": "is_active", "valueShape": { - "type": "id", - "id": "type_:WebhookIsActive" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookIsActive" + } } }, { "key": "version", "valueShape": { - "type": "id", - "id": "type_:WebhookVersion" + "type": "alias", + "value": { + "type": "id", + "id": "type_:WebhookVersion" + } } } ] @@ -17695,11 +19696,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17716,11 +19723,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17737,11 +19750,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17758,11 +19777,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17780,11 +19805,17 @@ { "key": "type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -17792,10 +19823,16 @@ { "key": "result", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:FileCopy" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:FileCopy" + } + } } } } @@ -17811,9 +19848,12 @@ { "key": "version", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } }, "description": "An application version." @@ -17821,9 +19861,12 @@ { "key": "datetime_created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was created." @@ -17831,9 +19874,12 @@ { "key": "datetime_updated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was updated." @@ -17841,15 +19887,24 @@ { "key": "data", "valueShape": { - "type": "map", - "keyShape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "map", + "keyShape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + "valueShape": { + "type": "alias", + "value": { + "type": "unknown" + } } - }, - "valueShape": { - "type": "unknown" } }, "description": "Dictionary with a result of an application execution result." @@ -17867,11 +19922,17 @@ { "key": "foreground_type", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, @@ -17889,12 +19950,18 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "1.0" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "1.0" + } + } } } } @@ -17902,10 +19969,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RemoveBgV10Data" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RemoveBgV10Data" + } + } } }, "description": "Dictionary with a result of an remove.bg information about an image." @@ -17913,9 +19986,12 @@ { "key": "datetime_created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was created." @@ -17923,9 +19999,12 @@ { "key": "datetime_updated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was updated." @@ -17942,11 +20021,17 @@ { "key": "Height", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -17954,11 +20039,17 @@ { "key": "Left", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -17966,11 +20057,17 @@ { "key": "Top", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -17978,11 +20075,17 @@ { "key": "Width", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -17999,21 +20102,33 @@ { "key": "BoundingBox", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemInstancesItemBoundingBox" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemInstancesItemBoundingBox" + } + } } } }, { "key": "Confidence", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "double" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "double" + } + } } } } @@ -18030,11 +20145,17 @@ { "key": "Name", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18051,38 +20172,56 @@ { "key": "Confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Instances", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemInstancesItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemInstancesItem" + } + } } } }, { "key": "Name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "Parents", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemParentsItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItemParentsItem" + } + } } } } @@ -18099,19 +20238,28 @@ { "key": "LabelModelVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "Labels", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627DataLabelsItem" + } + } } } } @@ -18127,12 +20275,18 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "2016-06-27" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2016-06-27" + } + } } } } @@ -18140,10 +20294,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627Data" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627Data" + } + } } }, "description": "Dictionary with a result of an aws rekognition detect labels execution result." @@ -18151,9 +20311,12 @@ { "key": "datetime_created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was created." @@ -18161,9 +20324,12 @@ { "key": "datetime_updated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was updated." @@ -18180,27 +20346,36 @@ { "key": "Confidence", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "double" + "type": "primitive", + "value": { + "type": "double" + } } } }, { "key": "Name", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "ParentName", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } } @@ -18217,19 +20392,28 @@ { "key": "ModerationModelVersion", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "string" + "type": "primitive", + "value": { + "type": "string" + } } } }, { "key": "ModerationLabels", "valueShape": { - "type": "list", - "itemShape": { - "type": "id", - "id": "type_:AwsRekognitionDetectModerationLabelsV20160627DataModerationLabelsItem" + "type": "alias", + "value": { + "type": "list", + "itemShape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectModerationLabelsV20160627DataModerationLabelsItem" + } + } } } } @@ -18245,12 +20429,18 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "2016-06-27" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "2016-06-27" + } + } } } } @@ -18258,10 +20448,16 @@ { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AwsRekognitionDetectModerationLabelsV20160627Data" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectModerationLabelsV20160627Data" + } + } } }, "description": "Dictionary with a result of an aws rekognition detect moderation labels execution result." @@ -18269,9 +20465,12 @@ { "key": "datetime_created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was created." @@ -18279,9 +20478,12 @@ { "key": "datetime_updated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was updated." @@ -18319,20 +20521,29 @@ { "key": "infected", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "boolean" + "type": "primitive", + "value": { + "type": "boolean" + } } } }, { "key": "infected_with", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18349,20 +20560,32 @@ { "key": "version", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UcClamavVirusScanVersion" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UcClamavVirusScanVersion" + } + } } } }, { "key": "data", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UcClamavVirusScanData" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UcClamavVirusScanData" + } + } } }, "description": "Dictionary with a result of ClamAV execution result." @@ -18370,9 +20593,12 @@ { "key": "datetime_created", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was created." @@ -18380,9 +20606,12 @@ { "key": "datetime_updated", "valueShape": { - "type": "primitive", + "type": "alias", "value": { - "type": "datetime" + "type": "primitive", + "value": { + "type": "datetime" + } } }, "description": "Date and time when an application data was updated." @@ -18400,40 +20629,64 @@ { "key": "aws_rekognition_detect_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AwsRekognitionDetectLabelsV20160627" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectLabelsV20160627" + } + } } } }, { "key": "aws_rekognition_detect_moderation_labels", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:AwsRekognitionDetectModerationLabelsV20160627" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:AwsRekognitionDetectModerationLabelsV20160627" + } + } } } }, { "key": "remove_bg", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:RemoveBgV10" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:RemoveBgV10" + } + } } } }, { "key": "uc_clamav_virus_scan", "valueShape": { - "type": "optional", - "shape": { - "type": "id", - "id": "type_:UcClamavVirusScan" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "id", + "id": "type_:UcClamavVirusScan" + } + } } } } @@ -18449,11 +20702,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } } @@ -18470,11 +20729,17 @@ { "key": "detail", "valueShape": { - "type": "optional", - "shape": { - "type": "primitive", - "value": { - "type": "string" + "type": "alias", + "value": { + "type": "optional", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } } } }, diff --git a/packages/fdr-sdk/src/api-definition/__test__/join.test.ts b/packages/fdr-sdk/src/api-definition/__test__/join.test.ts index 845ec4d4c2..42c34b0346 100644 --- a/packages/fdr-sdk/src/api-definition/__test__/join.test.ts +++ b/packages/fdr-sdk/src/api-definition/__test__/join.test.ts @@ -1,5 +1,5 @@ import { APIV1Read } from "../../client"; -import { join } from "../join"; +import { joiner } from "../join"; import * as Latest from "../latest"; const PRIMITIVE_SHAPE: Latest.TypeReference.Primitive = { @@ -30,9 +30,12 @@ const endpoint1: Latest.EndpointDefinition = { { key: Latest.PropertyKey("query"), valueShape: { - type: "id", - id: Latest.TypeId("type-1"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-1"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -68,9 +71,12 @@ const endpoint2: Latest.EndpointDefinition = { { key: Latest.PropertyKey("header"), valueShape: { - type: "id", - id: Latest.TypeId("type-2"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-2"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -104,9 +110,12 @@ const websocket1: Latest.WebSocketChannel = { type: "optional", default: undefined, shape: { - type: "id", - id: Latest.TypeId("type-3"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-3"), + default: undefined, + }, }, }, }, @@ -190,9 +199,12 @@ const api1: Latest.ApiDefinition = { { key: Latest.PropertyKey("global"), valueShape: { - type: "id", - id: Latest.TypeId("type-4"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-4"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -219,9 +231,12 @@ const api2: Latest.ApiDefinition = { { key: Latest.PropertyKey("global"), valueShape: { - type: "id", - id: Latest.TypeId("type-4"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-4"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -246,9 +261,12 @@ const api3: Latest.ApiDefinition = { { key: Latest.PropertyKey("global"), valueShape: { - type: "id", - id: Latest.TypeId("type-4"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-4"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -258,7 +276,7 @@ const api3: Latest.ApiDefinition = { describe("join", () => { it("should prune endpoint1 and its types", () => { - const pruned = join(api1, api2, api3); + const pruned = joiner()(api1, api2, api3); expect(Object.keys(pruned.endpoints)).toStrictEqual([endpoint1.id, endpoint2.id]); expect(Object.keys(pruned.websockets)).toStrictEqual([websocket1.id]); @@ -270,9 +288,12 @@ describe("join", () => { { key: Latest.PropertyKey("global"), valueShape: { - type: "id", - id: Latest.TypeId("type-4"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-4"), + default: undefined, + }, }, description: undefined, availability: undefined, diff --git a/packages/fdr-sdk/src/api-definition/__test__/prune.test.ts b/packages/fdr-sdk/src/api-definition/__test__/prune.test.ts index 44a289210b..033547f508 100644 --- a/packages/fdr-sdk/src/api-definition/__test__/prune.test.ts +++ b/packages/fdr-sdk/src/api-definition/__test__/prune.test.ts @@ -30,9 +30,12 @@ const endpoint1: Latest.EndpointDefinition = { { key: Latest.PropertyKey("query"), valueShape: { - type: "id", - id: Latest.TypeId("type-1"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-1"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -68,9 +71,12 @@ const endpoint2: Latest.EndpointDefinition = { { key: Latest.PropertyKey("header"), valueShape: { - type: "id", - id: Latest.TypeId("type-2"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-2"), + default: undefined, + }, }, description: undefined, availability: undefined, @@ -104,9 +110,12 @@ const websocket1: Latest.WebSocketChannel = { type: "optional", default: undefined, shape: { - type: "id", - id: Latest.TypeId("type-3"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-3"), + default: undefined, + }, }, }, }, @@ -197,9 +206,12 @@ const api: Latest.ApiDefinition = { { key: Latest.PropertyKey("global"), valueShape: { - type: "id", - id: Latest.TypeId("type-4"), - default: undefined, + type: "alias", + value: { + type: "id", + id: Latest.TypeId("type-4"), + default: undefined, + }, }, description: undefined, availability: undefined, diff --git a/packages/fdr-sdk/src/api-definition/__test__/unwrap.test.ts b/packages/fdr-sdk/src/api-definition/__test__/unwrap.test.ts index 2f63f28c18..d705683298 100644 --- a/packages/fdr-sdk/src/api-definition/__test__/unwrap.test.ts +++ b/packages/fdr-sdk/src/api-definition/__test__/unwrap.test.ts @@ -1,22 +1,25 @@ -import { PropertyKey, TypeDefinition, TypeId, TypeReference } from "../latest"; +import { PropertyKey, TypeDefinition, TypeId, TypeReference, TypeShape } from "../latest"; import { TypeShapeOrReference } from "../types"; import { unwrapObjectType, unwrapReference } from "../unwrap"; -const PRIMITIVE_SHAPE: TypeShapeOrReference = { - type: "primitive" as const, +const PRIMITIVE_SHAPE: TypeShape = { + type: "alias", value: { - type: "string", - regex: undefined, - minLength: undefined, - maxLength: undefined, - default: undefined, + type: "primitive" as const, + value: { + type: "string", + regex: undefined, + minLength: undefined, + maxLength: undefined, + default: undefined, + }, }, }; describe("unwrapReference", () => { it("should noop for a non-reference", () => { - expect(unwrapReference(PRIMITIVE_SHAPE, {})).toStrictEqual({ - shape: PRIMITIVE_SHAPE, + expect(unwrapReference(PRIMITIVE_SHAPE["value"], {})).toStrictEqual({ + shape: PRIMITIVE_SHAPE["value"], availability: undefined, descriptions: [], isOptional: false, @@ -33,13 +36,13 @@ describe("unwrapReference", () => { const types: Record = { [TypeId("foo")]: { name: "foo", - shape: { type: "alias", value: PRIMITIVE_SHAPE }, + shape: PRIMITIVE_SHAPE, description: undefined, availability: undefined, }, }; expect(unwrapReference(shape, types)).toStrictEqual({ - shape: PRIMITIVE_SHAPE, + shape: PRIMITIVE_SHAPE["value"], availability: undefined, descriptions: [], isOptional: false, @@ -87,7 +90,7 @@ describe("unwrapReference", () => { }, }; expect(unwrapReference(shape, types)).toStrictEqual({ - shape: PRIMITIVE_SHAPE, + shape: PRIMITIVE_SHAPE["value"], availability: undefined, descriptions: [], isOptional: true, @@ -123,9 +126,12 @@ describe("unwrapReference", () => { const shape: TypeShapeOrReference = { type: "optional", shape: { - type: "id", - id: TypeId("foo"), - default: undefined, + type: "alias", + value: { + type: "id", + id: TypeId("foo"), + default: undefined, + }, }, default: "testing-b", }; @@ -186,7 +192,10 @@ describe("unwrapReference", () => { type: "alias", value: { type: "optional", - shape: { type: "id", id: TypeId("c"), default: undefined }, + shape: { + type: "alias", + value: { type: "id", id: TypeId("c"), default: undefined }, + }, default: undefined, }, }, @@ -195,13 +204,13 @@ describe("unwrapReference", () => { }, [TypeId("c")]: { name: "c", - shape: { type: "alias", value: PRIMITIVE_SHAPE }, + shape: PRIMITIVE_SHAPE, description: "c", availability: "InDevelopment", }, }; const unwrapped = unwrapReference(shape, types); - expect(unwrapped.shape).toStrictEqual(PRIMITIVE_SHAPE); + expect(unwrapped.shape).toStrictEqual(PRIMITIVE_SHAPE["value"]); expect(unwrapped.availability).toBe("Deprecated"); expect(unwrapped.descriptions).toStrictEqual(["a", "b", "c"]); expect(unwrapped.isOptional).toBe(true); @@ -261,9 +270,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("d"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, availability: undefined, @@ -271,9 +283,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("a"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, availability: undefined, @@ -316,9 +331,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("d"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, availability: undefined, @@ -394,9 +412,12 @@ describe("unwrapObjectType", () => { value: { type: "optional", shape: { - type: "id", - id: TypeId("c"), - default: undefined, + type: "alias", + value: { + type: "id", + id: TypeId("c"), + default: undefined, + }, }, default: undefined, }, @@ -413,9 +434,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("b"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, availability: "Deprecated", @@ -446,9 +470,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("c"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, // availability is the least stable of the extended object @@ -457,9 +484,12 @@ describe("unwrapObjectType", () => { { key: PropertyKey("b"), valueShape: { - type: "optional", - shape: PRIMITIVE_SHAPE, - default: undefined, + type: "alias", + value: { + type: "optional", + shape: PRIMITIVE_SHAPE, + default: undefined, + }, }, description: undefined, // availability is the least stable of the extended object diff --git a/packages/ui/app/src/playground/types/endpoint-context.ts b/packages/fdr-sdk/src/api-definition/endpoint-context.ts similarity index 66% rename from packages/ui/app/src/playground/types/endpoint-context.ts rename to packages/fdr-sdk/src/api-definition/endpoint-context.ts index 56565c6a1f..0bf86004ac 100644 --- a/packages/ui/app/src/playground/types/endpoint-context.ts +++ b/packages/fdr-sdk/src/api-definition/endpoint-context.ts @@ -4,6 +4,7 @@ import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; export type EndpointContext = { node: FernNavigation.EndpointNode; endpoint: ApiDefinition.EndpointDefinition; + globalHeaders: ApiDefinition.ObjectProperty[]; auth: ApiDefinition.AuthScheme | undefined; types: Record; }; @@ -23,6 +24,7 @@ export function createEndpointContext( node, endpoint, auth: endpoint.auth?.map((id) => api.auths[id])[0], + globalHeaders: api.globalHeaders ?? [], types: api.types, }; } @@ -30,6 +32,7 @@ export function createEndpointContext( export type WebSocketContext = { node: FernNavigation.WebSocketNode; channel: ApiDefinition.WebSocketChannel; + globalHeaders: ApiDefinition.ObjectProperty[]; auth: ApiDefinition.AuthScheme | undefined; types: Record; }; @@ -49,6 +52,31 @@ export function createWebSocketContext( node, channel, auth: channel.auth?.map((id) => api.auths[id])[0], + globalHeaders: api.globalHeaders ?? [], + types: api.auths, + }; +} + +export type WebhookContext = { + node: FernNavigation.WebhookNode; + webhook: ApiDefinition.WebhookDefinition; + types: Record; +}; + +export function createWebhookContext( + node: FernNavigation.WebhookNode | undefined, + api: ApiDefinition.ApiDefinition | undefined, +): WebhookContext | undefined { + if (!node) { + return undefined; + } + const webhook = api?.webhooks[node.webhookId]; + if (!webhook) { + return undefined; + } + return { + node, + webhook, types: api.auths, }; } diff --git a/packages/fdr-sdk/src/api-definition/index.ts b/packages/fdr-sdk/src/api-definition/index.ts index 83d05861e6..2f75432ce6 100644 --- a/packages/fdr-sdk/src/api-definition/index.ts +++ b/packages/fdr-sdk/src/api-definition/index.ts @@ -1,3 +1,4 @@ +export * from "./endpoint-context"; export * from "./endpoint-path-literal"; export * from "./join"; export * from "./lang"; diff --git a/packages/fdr-sdk/src/api-definition/join.ts b/packages/fdr-sdk/src/api-definition/join.ts index 1ee5fe08ff..20821c7435 100644 --- a/packages/fdr-sdk/src/api-definition/join.ts +++ b/packages/fdr-sdk/src/api-definition/join.ts @@ -8,54 +8,82 @@ import * as Latest from "./latest"; * @param apis list of API definitions to join (must have the same ID) * @returns a new API definition that is the result of joining the input API definitions */ -export function join(...apis: Latest.ApiDefinition[]): Latest.ApiDefinition { - const joined: Latest.ApiDefinition = { - id: apis[0]?.id ?? Latest.ApiDefinitionId(""), - endpoints: {}, - websockets: {}, - webhooks: {}, - types: {}, - subpackages: {}, - auths: {}, - globalHeaders: undefined, - }; +export function joiner( + force = false, +): (first: Latest.ApiDefinition, ...apis: Latest.ApiDefinition[]) => Latest.ApiDefinition { + return (first, ...apis) => { + const joined: Latest.ApiDefinition = { + id: first.id, + endpoints: { ...first.endpoints }, + websockets: { ...first.websockets }, + webhooks: { ...first.webhooks }, + types: { ...first.types }, + subpackages: { ...first.subpackages }, + auths: { ...first.auths }, + globalHeaders: first.globalHeaders ? [...first.globalHeaders] : undefined, + }; - for (const api of apis) { - if (api.id !== joined.id) { - throw new Error("Cannot join API definitions with different IDs"); - } + let isJoined = false; + for (const api of apis) { + if (api.id !== joined.id) { + throw new Error("Cannot join API definitions with different IDs"); + } - for (const [endpointId, endpoint] of Object.entries(api.endpoints)) { - joined.endpoints[Latest.EndpointId(endpointId)] = endpoint; - } + for (const [endpointId, endpoint] of Object.entries(api.endpoints)) { + if (!isJoined && !first.endpoints[Latest.EndpointId(endpointId)]) { + isJoined = true; + } + joined.endpoints[Latest.EndpointId(endpointId)] = endpoint; + } - for (const [webSocketId, webSocket] of Object.entries(api.websockets)) { - joined.websockets[Latest.WebSocketId(webSocketId)] = webSocket; - } + for (const [webSocketId, webSocket] of Object.entries(api.websockets)) { + if (!isJoined && !first.websockets[Latest.WebSocketId(webSocketId)]) { + isJoined = true; + } + joined.websockets[Latest.WebSocketId(webSocketId)] = webSocket; + } - for (const [webhookId, webhook] of Object.entries(api.webhooks)) { - joined.webhooks[Latest.WebhookId(webhookId)] = webhook; - } + for (const [webhookId, webhook] of Object.entries(api.webhooks)) { + if (!isJoined && !first.webhooks[Latest.WebhookId(webhookId)]) { + isJoined = true; + } + joined.webhooks[Latest.WebhookId(webhookId)] = webhook; + } - for (const [typeId, type] of Object.entries(api.types)) { - joined.types[Latest.TypeId(typeId)] = type; - } + for (const [typeId, type] of Object.entries(api.types)) { + if (!isJoined && !first.types[Latest.TypeId(typeId)]) { + isJoined = true; + } + joined.types[Latest.TypeId(typeId)] = type; + } - for (const [subpackageId, subpackage] of Object.entries(api.subpackages)) { - joined.subpackages[Latest.SubpackageId(subpackageId)] = subpackage; - } + for (const [subpackageId, subpackage] of Object.entries(api.subpackages)) { + if (!isJoined && !first.subpackages[Latest.SubpackageId(subpackageId)]) { + isJoined = true; + } + joined.subpackages[Latest.SubpackageId(subpackageId)] = subpackage; + } - for (const [authId, auth] of Object.entries(api.auths)) { - joined.auths[Latest.AuthSchemeId(authId)] = auth; + for (const [authId, auth] of Object.entries(api.auths)) { + if (!isJoined && !first.auths[Latest.AuthSchemeId(authId)]) { + isJoined = true; + } + joined.auths[Latest.AuthSchemeId(authId)] = auth; + } + + const globalHeaders = (joined.globalHeaders ??= []); + api.globalHeaders?.forEach((header) => { + if (!globalHeaders.find((h) => h.key === header.key)) { + isJoined = true; + globalHeaders.push(header); + } + }); } - const globalHeaders = (joined.globalHeaders ??= []); - api.globalHeaders?.forEach((header) => { - if (!globalHeaders.find((h) => h.key === header.key)) { - globalHeaders.push(header); - } - }); - } + if (!isJoined && !force) { + return first; + } - return joined; + return joined; + }; } diff --git a/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts b/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts index 540ed757d1..5e88eff6ef 100644 --- a/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts +++ b/packages/fdr-sdk/src/api-definition/migrators/v1ToV2.ts @@ -234,7 +234,10 @@ export class ApiDefinitionV1ToLatest { } return v1.map((parameter) => ({ key: V2.PropertyKey(parameter.key), - valueShape: this.migrateTypeReference(parameter.type), + valueShape: { + type: "alias", + value: this.migrateTypeReference(parameter.type), + }, description: parameter.description, availability: parameter.availability, })); @@ -244,8 +247,14 @@ export class ApiDefinitionV1ToLatest { return visitDiscriminatedUnion(typeRef)._visit({ map: (value) => ({ type: "map", - keyShape: this.migrateTypeReference(value.keyType), - valueShape: this.migrateTypeReference(value.valueType), + keyShape: { + type: "alias", + value: this.migrateTypeReference(value.keyType), + }, + valueShape: { + type: "alias", + value: this.migrateTypeReference(value.valueType), + }, }), id: (value) => ({ type: "id", @@ -255,16 +264,25 @@ export class ApiDefinitionV1ToLatest { primitive: (value) => value, optional: (value) => ({ type: "optional", - shape: this.migrateTypeReference(value.itemType), + shape: { + type: "alias", + value: this.migrateTypeReference(value.itemType), + }, default: value.defaultValue, }), list: (value) => ({ type: "list", - itemShape: this.migrateTypeReference(value.itemType), + itemShape: { + type: "alias", + value: this.migrateTypeReference(value.itemType), + }, }), set: (value) => ({ type: "set", - itemShape: this.migrateTypeReference(value.itemType), + itemShape: { + type: "alias", + value: this.migrateTypeReference(value.itemType), + }, }), literal: (value) => value, unknown: () => ({ @@ -292,7 +310,10 @@ export class ApiDefinitionV1ToLatest { type: "undiscriminatedUnion", variants: value.variants.map((variant) => ({ displayName: variant.displayName, - shape: this.migrateTypeReference(variant.type), + shape: { + type: "alias", + value: this.migrateTypeReference(variant.type), + }, description: variant.description, availability: variant.availability, })), @@ -316,7 +337,10 @@ export class ApiDefinitionV1ToLatest { migrateObjectProperties = (properties: APIV1Read.ObjectProperty[]): V2.ObjectProperty[] => { return properties.map((value) => ({ key: V2.PropertyKey(value.key), - valueShape: this.migrateTypeReference(value.valueType), + valueShape: { + type: "alias", + value: this.migrateTypeReference(value.valueType), + }, description: value.description, availability: value.availability, })); @@ -578,7 +602,10 @@ export class ApiDefinitionV1ToLatest { contentType: bodyProp.contentType, description: bodyProp.description, availability: bodyProp.availability, - valueShape: this.migrateTypeReference(bodyProp.valueType), + valueShape: { + type: "alias", + value: this.migrateTypeReference(bodyProp.valueType), + }, }), }), ); diff --git a/packages/fdr-sdk/src/api-definition/prune.ts b/packages/fdr-sdk/src/api-definition/prune.ts index 694aa7fc88..c1a0302b43 100644 --- a/packages/fdr-sdk/src/api-definition/prune.ts +++ b/packages/fdr-sdk/src/api-definition/prune.ts @@ -83,7 +83,7 @@ class ApiDefinitionPruner { private pruneTypes(partiallyPrunedApi: Latest.ApiDefinition): Record { let typeIds = new Set(); partiallyPrunedApi.globalHeaders?.forEach((header) => { - ApiTypeIdVisitor.visitTypeReference(header.valueShape, (typeId) => typeIds.add(typeId)); + ApiTypeIdVisitor.visitTypeShape(header.valueShape, (typeId) => typeIds.add(typeId)); }); for (const endpoint of Object.values(partiallyPrunedApi.endpoints)) { diff --git a/packages/fdr-sdk/src/api-definition/typeid-visitor.ts b/packages/fdr-sdk/src/api-definition/typeid-visitor.ts index 5a73e0f442..ed95379d3a 100644 --- a/packages/fdr-sdk/src/api-definition/typeid-visitor.ts +++ b/packages/fdr-sdk/src/api-definition/typeid-visitor.ts @@ -8,16 +8,16 @@ export class ApiTypeIdVisitor { visit: (typeId: Latest.TypeId) => void, ): void { endpoint.pathParameters?.forEach((pathParameter) => { - ApiTypeIdVisitor.visitTypeReference(pathParameter.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(pathParameter.valueShape, visit); }); endpoint.queryParameters?.forEach((queryParameter) => { - ApiTypeIdVisitor.visitTypeReference(queryParameter.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(queryParameter.valueShape, visit); }); endpoint.requestHeaders?.forEach((header) => { - ApiTypeIdVisitor.visitTypeReference(header.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(header.valueShape, visit); }); endpoint.responseHeaders?.forEach((header) => { - ApiTypeIdVisitor.visitTypeReference(header.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(header.valueShape, visit); }); if (endpoint.request?.body != null) { ApiTypeIdVisitor.visitHttpRequestBodyShape(endpoint.request.body, visit); @@ -38,13 +38,13 @@ export class ApiTypeIdVisitor { visit: (typeId: Latest.TypeId) => void, ): void { channel.requestHeaders?.forEach((header) => { - ApiTypeIdVisitor.visitTypeReference(header.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(header.valueShape, visit); }); channel.pathParameters?.forEach((pathParameter) => { - ApiTypeIdVisitor.visitTypeReference(pathParameter.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(pathParameter.valueShape, visit); }); channel.queryParameters?.forEach((queryParameter) => { - ApiTypeIdVisitor.visitTypeReference(queryParameter.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(queryParameter.valueShape, visit); }); channel.messages.forEach((message) => { ApiTypeIdVisitor.visitTypeShape(message.body, visit); @@ -56,7 +56,7 @@ export class ApiTypeIdVisitor { visit: (typeId: Latest.TypeId) => void, ): void { webhook.headers?.forEach((header) => { - ApiTypeIdVisitor.visitTypeReference(header.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(header.valueShape, visit); }); if (webhook.payload) { ApiTypeIdVisitor.visitTypeShape(webhook.payload.shape, visit); @@ -96,7 +96,7 @@ export class ApiTypeIdVisitor { visitDiscriminatedUnion(field)._visit({ file: noop, files: noop, - property: (property) => ApiTypeIdVisitor.visitTypeReference(property.valueShape, visit), + property: (property) => ApiTypeIdVisitor.visitTypeShape(property.valueShape, visit), }), ); } @@ -114,7 +114,7 @@ export class ApiTypeIdVisitor { alias: (value) => ApiTypeIdVisitor.visitTypeReference(value.value, visit), enum: noop, undiscriminatedUnion: (value) => - value.variants.forEach((variant) => ApiTypeIdVisitor.visitTypeReference(variant.shape, visit)), + value.variants.forEach((variant) => ApiTypeIdVisitor.visitTypeShape(variant.shape, visit)), discriminatedUnion: (value) => value.variants.forEach((variant) => ApiTypeIdVisitor.visitObjectType(variant, visit)), }); @@ -123,7 +123,7 @@ export class ApiTypeIdVisitor { public static visitObjectType(typeShape: Latest.ObjectType, visit: (typeId: Latest.TypeId) => void): void { typeShape.extends.forEach(visit); typeShape.properties.forEach((property) => { - ApiTypeIdVisitor.visitTypeReference(property.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(property.valueShape, visit); }); } @@ -134,12 +134,12 @@ export class ApiTypeIdVisitor { return visitDiscriminatedUnion(typeReference)._visit({ id: (value) => visit(value.id), primitive: noop, - optional: (value) => ApiTypeIdVisitor.visitTypeReference(value.shape, visit), - list: (value) => ApiTypeIdVisitor.visitTypeReference(value.itemShape, visit), - set: (value) => ApiTypeIdVisitor.visitTypeReference(value.itemShape, visit), + optional: (value) => ApiTypeIdVisitor.visitTypeShape(value.shape, visit), + list: (value) => ApiTypeIdVisitor.visitTypeShape(value.itemShape, visit), + set: (value) => ApiTypeIdVisitor.visitTypeShape(value.itemShape, visit), map: (value) => { - ApiTypeIdVisitor.visitTypeReference(value.keyShape, visit); - ApiTypeIdVisitor.visitTypeReference(value.valueShape, visit); + ApiTypeIdVisitor.visitTypeShape(value.keyShape, visit); + ApiTypeIdVisitor.visitTypeShape(value.valueShape, visit); }, literal: noop, unknown: noop, diff --git a/packages/fdr-sdk/src/api-definition/unwrap.ts b/packages/fdr-sdk/src/api-definition/unwrap.ts index f2ee94c416..5673cd077c 100644 --- a/packages/fdr-sdk/src/api-definition/unwrap.ts +++ b/packages/fdr-sdk/src/api-definition/unwrap.ts @@ -25,6 +25,11 @@ type InternalDefaultValue = | { type: "unknown"; value: unknown } | { type: "typeReferenceId"; value: Latest.TypeReferenceIdDefault }; +/** + * Cache for unwrapped references. Perform the unwrapping only once. + */ +const UnwrapReferenceCache = new WeakMap(); + /** * A TypeShape or TypeReference might be an alias or reference to another type. * This function unwraps the reference, including any optional wrappers, to get the actual shape. @@ -55,39 +60,53 @@ export function unwrapReference( return undefined; } + const cached = UnwrapReferenceCache.get(typeRef); + if (cached != null) { + return cached; + } + let isOptional = false; const defaults: InternalDefaultValue[] = []; const descriptions: FernDocs.MarkdownText[] = []; const availabilities: Latest.Availability[] = []; + const visitedTypeIds: Latest.TypeId[] = []; + let internalTypeRef: TypeShapeOrReference | undefined = typeRef; let loop = 0; - while (typeRef != null) { + while (internalTypeRef != null) { if (loop > LOOP_TOLERANCE) { - // eslint-disable-next-line no-console - console.error("Infinite loop detected while unwrapping type reference. Falling back to unknown type."); - typeRef = undefined; + // infinite loop detected + internalTypeRef = undefined; break; } - if (typeRef.type === "optional") { + if (internalTypeRef.type === "optional") { isOptional = true; - if (typeRef.default != null) { - defaults.push({ type: "unknown", value: typeRef.default }); + if (internalTypeRef.default != null) { + defaults.push({ type: "unknown", value: internalTypeRef.default }); } - typeRef = typeRef.shape; - } else if (typeRef.type === "alias") { - typeRef = typeRef.value; - } else if (typeRef.type === "id") { - if (typeRef.default != null) { - defaults.push({ type: "typeReferenceId", value: typeRef.default }); + internalTypeRef = internalTypeRef.shape; + } else if (internalTypeRef.type === "alias") { + internalTypeRef = internalTypeRef.value; + } else if (internalTypeRef.type === "id") { + if (visitedTypeIds.includes(internalTypeRef.id)) { + visitedTypeIds.push(internalTypeRef.id); + // circular reference detected + internalTypeRef = undefined; + break; + } + + if (internalTypeRef.default != null) { + defaults.push({ type: "typeReferenceId", value: internalTypeRef.default }); } - const typeDef: Latest.TypeDefinition | undefined = types[typeRef.id]; + const typeDef: Latest.TypeDefinition | undefined = types[internalTypeRef.id]; + visitedTypeIds.push(internalTypeRef.id); if (typeDef != null) { if (typeDef.availability) { availabilities.push(typeDef.availability); } - typeRef = typeDef.shape; + internalTypeRef = typeDef.shape; if (typeDef.description != null) { descriptions.push(typeDef.description); } @@ -99,19 +118,25 @@ export function unwrapReference( loop++; } - if (typeRef == null) { + if (internalTypeRef == null) { // Note: this should be a fatal error, but we're handling it gracefully for now // eslint-disable-next-line no-console - console.error("Type reference is invalid. Falling back to unknown type."); + console.error( + `Type reference is invalid. Falling back to unknown type.${visitedTypeIds.length > 0 ? ` path=[${visitedTypeIds.join(", ")}]` : ""}`, + ); } - return { - shape: typeRef ?? { type: "unknown", displayName: undefined }, + const toRet = { + shape: internalTypeRef ?? { type: "unknown", displayName: undefined }, availability: coalesceAvailability(availabilities), isOptional, - default: selectDefaultValue(typeRef, defaults), + default: selectDefaultValue(internalTypeRef, defaults), descriptions, }; + + UnwrapReferenceCache.set(typeRef, toRet); + + return toRet; } function selectDefaultValue( @@ -155,6 +180,8 @@ function selectDefaultValue( } } +const UnwrapObjectTypeCache = new WeakMap(); + /** * Dereferences extended objects and returns all properties of the object. * If an object extends another object, the properties of the extended object will be sorted alphabetically. @@ -168,6 +195,11 @@ export function unwrapObjectType( object: Latest.ObjectType, types: Record, ): UnwrappedObjectType { + const cached = UnwrapObjectTypeCache.get(object); + if (cached != null) { + return cached; + } + const directProperties = object.properties; const descriptions: FernDocs.MarkdownText[] = []; const extendedProperties = object.extends.flatMap((typeId): Latest.ObjectProperty[] => { @@ -209,13 +241,13 @@ export function unwrapObjectType( const defaultProperty = isPlainObject(unwrapped.default) ? unwrapped.default[property.key] : undefined; const valueShape: Latest.TypeReference.Optional = - property.valueShape.type === "optional" - ? { ...property.valueShape, default: defaultProperty ?? property.valueShape.default } + property.valueShape.type === "alias" && property.valueShape.value.type === "optional" + ? { ...property.valueShape.value, default: defaultProperty ?? property.valueShape.value.default } : { type: "optional", shape: property.valueShape, default: defaultProperty }; return { ...property, - valueShape, + valueShape: { type: "alias", value: valueShape }, }; }); }); @@ -230,7 +262,9 @@ export function unwrapObjectType( (property) => unwrapReference(property.valueShape, types)?.isOptional, (property) => AvailabilityOrder.indexOf(property.availability ?? Latest.Availability.Stable), ); - return { properties, descriptions }; + const toRet = { properties, descriptions }; + UnwrapObjectTypeCache.set(object, toRet); + return toRet; } const propertyKeys = new Set(object.properties.map((property) => property.key)); const filteredExtendedProperties = extendedProperties.filter( @@ -245,23 +279,28 @@ export function unwrapObjectType( (property) => AvailabilityOrder.indexOf(property.availability ?? Latest.Availability.Stable), (property) => property.key, ); - return { properties, descriptions }; + const toRet = { properties, descriptions }; + UnwrapObjectTypeCache.set(object, toRet); + return toRet; } /** * The discriminant of a discriminated union is converted to a literal type, *prepended* to the additional properties. */ export function unwrapDiscriminatedUnionVariant( - union: Latest.DiscriminatedUnionType, + union: Pick, variant: Latest.DiscriminatedUnionVariant, types: Record, ): UnwrappedObjectType { - const { properties, descriptions } = unwrapObjectType(variant, types); + const { properties, descriptions } = unwrapObjectType(variant, types); // this is already cached return { properties: [ { key: union.discriminant, - valueShape: { type: "literal", value: { type: "stringLiteral", value: variant.discriminantValue } }, + valueShape: { + type: "alias", + value: { type: "literal", value: { type: "stringLiteral", value: variant.discriminantValue } }, + }, // the description and availability of the discriminant should not be included here // because they are already included in the union variant itself diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ListType.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ListType.ts index 5c11770c52..ac54937a1c 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ListType.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ListType.ts @@ -5,5 +5,5 @@ import * as FernRegistry from "../../../../../../../index"; export interface ListType { - itemShape: FernRegistry.api.latest.TypeReference; + itemShape: FernRegistry.api.latest.TypeShape; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/MapType.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/MapType.ts index 16a73f7f4a..a7392128c5 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/MapType.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/MapType.ts @@ -5,6 +5,6 @@ import * as FernRegistry from "../../../../../../../index"; export interface MapType { - keyShape: FernRegistry.api.latest.TypeReference; - valueShape: FernRegistry.api.latest.TypeReference; + keyShape: FernRegistry.api.latest.TypeShape; + valueShape: FernRegistry.api.latest.TypeShape; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.ts index 5b2f904572..02958f94eb 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.ts @@ -8,5 +8,5 @@ export interface ObjectProperty extends FernRegistry.api.latest.WithDescription, FernRegistry.api.latest.WithAvailability { key: FernRegistry.PropertyKey; - valueShape: FernRegistry.api.latest.TypeReference; + valueShape: FernRegistry.api.latest.TypeShape; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.ts index 35692b219f..7a501028ba 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.ts @@ -5,6 +5,6 @@ import * as FernRegistry from "../../../../../../../index"; export interface OptionalType { - shape: FernRegistry.api.latest.TypeReference; + shape: FernRegistry.api.latest.TypeShape; default: unknown | undefined; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/SetType.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/SetType.ts index b1d0d2aaa0..418ec79943 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/SetType.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/SetType.ts @@ -5,5 +5,5 @@ import * as FernRegistry from "../../../../../../../index"; export interface SetType { - itemShape: FernRegistry.api.latest.TypeReference; + itemShape: FernRegistry.api.latest.TypeShape; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.ts index 4218ed3a7b..8a293d6241 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.ts @@ -8,5 +8,5 @@ export interface UndiscriminatedUnionVariant extends FernRegistry.api.latest.WithDescription, FernRegistry.api.latest.WithAvailability { displayName: string | undefined; - shape: FernRegistry.api.latest.TypeReference; + shape: FernRegistry.api.latest.TypeShape; } diff --git a/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts b/packages/fdr-sdk/src/navigation/utils/createBreadcrumb.ts similarity index 94% rename from packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts rename to packages/fdr-sdk/src/navigation/utils/createBreadcrumb.ts index e205216dfc..68072c3581 100644 --- a/packages/fdr-sdk/src/navigation/utils/createBreadcrumbs.ts +++ b/packages/fdr-sdk/src/navigation/utils/createBreadcrumb.ts @@ -2,7 +2,7 @@ import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedU import { noop } from "ts-essentials"; import { FernNavigation } from "../.."; -export function createBreadcrumbs(nodes: readonly FernNavigation.NavigationNode[]): FernNavigation.BreadcrumbItem[] { +export function createBreadcrumb(nodes: readonly FernNavigation.NavigationNode[]): FernNavigation.BreadcrumbItem[] { const breadcrumb: FernNavigation.BreadcrumbItem[] = []; nodes.forEach((node) => { if (!FernNavigation.hasMetadata(node) || FernNavigation.isLeaf(node)) { diff --git a/packages/fdr-sdk/src/navigation/utils/findNode.ts b/packages/fdr-sdk/src/navigation/utils/findNode.ts index 2162d55777..939939197f 100644 --- a/packages/fdr-sdk/src/navigation/utils/findNode.ts +++ b/packages/fdr-sdk/src/navigation/utils/findNode.ts @@ -5,7 +5,7 @@ import { isSidebarRootNode } from "../versions/latest/isSidebarRootNode"; import { isTabbedNode } from "../versions/latest/isTabbedNode"; import { isUnversionedNode } from "../versions/latest/isUnversionedNode"; import { isVersionNode } from "../versions/latest/isVersionNode"; -import { createBreadcrumbs } from "./createBreadcrumbs"; +import { createBreadcrumb } from "./createBreadcrumb"; export type Node = Node.Found | Node.Redirect | Node.NotFound; @@ -101,7 +101,7 @@ export function findNode(root: FernNavigation.RootNode, slug: FernNavigation.Slu return { type: "found", node: found.node, - breadcrumb: createBreadcrumbs(found.parents), + breadcrumb: createBreadcrumb(found.parents), parents: found.parents, root, versions, // this is used to render the version switcher diff --git a/packages/fdr-sdk/src/navigation/utils/index.ts b/packages/fdr-sdk/src/navigation/utils/index.ts index b1e2b704f8..7488708a98 100644 --- a/packages/fdr-sdk/src/navigation/utils/index.ts +++ b/packages/fdr-sdk/src/navigation/utils/index.ts @@ -1,6 +1,6 @@ export * from "./collectApiReferences"; export * from "./collectPageIds"; -export * from "./createBreadcrumbs"; +export * from "./createBreadcrumb"; export * from "./findNode"; export * from "./getApiReferenceId"; export * from "./getNoIndexFromFrontmatter"; diff --git a/packages/fdr-sdk/src/utils/traversers/index.ts b/packages/fdr-sdk/src/utils/traversers/index.ts new file mode 100644 index 0000000000..6ad833b6b2 --- /dev/null +++ b/packages/fdr-sdk/src/utils/traversers/index.ts @@ -0,0 +1,3 @@ +export * from "./bfs"; +export * from "./dfs"; +export * from "./types"; diff --git a/packages/healthchecks/tsconfig.json b/packages/healthchecks/tsconfig.json index 2cab52d4c1..4ca50e6bc9 100644 --- a/packages/healthchecks/tsconfig.json +++ b/packages/healthchecks/tsconfig.json @@ -11,7 +11,7 @@ "path": "../commons/core-utils" }, { - "path": "../../fdr-sdk/tsconfig.build.json" + "path": "../fdr-sdk/tsconfig.build.json" } ] } diff --git a/packages/ui/app/package.json b/packages/ui/app/package.json index 3fc09c7ae2..c0331c0cc7 100644 --- a/packages/ui/app/package.json +++ b/packages/ui/app/package.json @@ -19,6 +19,8 @@ ], "scripts": { "test": "vitest --run --passWithNoTests --globals --disable-console-intercept", + "compile": "tsc --build", + "check-types": "tsc --noEmit", "lint:eslint": "eslint --max-warnings 1000 . --ignore-path=../../../.eslintignore", "lint:eslint:fix": "pnpm lint:eslint --fix", "lint:style": "stylelint 'src/**/*.scss' --allow-empty-input --max-warnings 0", @@ -40,6 +42,7 @@ "@fern-api/ui-core-utils": "workspace:*", "@fern-ui/fdr-utils": "workspace:*", "@fern-ui/fern-docs-utils": "workspace:*", + "@fern-ui/fern-docs-server": "workspace:*", "@fern-ui/loadable": "workspace:*", "@fern-ui/next-seo": "workspace:*", "@fern-ui/react-commons": "workspace:*", @@ -74,7 +77,6 @@ "hast-util-to-jsx-runtime": "^2.3.0", "hast-util-to-string": "^3.0.0", "hastscript": "^9.0.0", - "httpsnippet-lite": "^3.0.5", "iconoir-react": "^7.7.0", "jose": "^5.2.3", "jotai": "^2.8.1", diff --git a/packages/ui/app/src/api-reference/ApiEndpointPage.tsx b/packages/ui/app/src/api-reference/ApiEndpointPage.tsx index 3a358f4bd8..1466eea33a 100644 --- a/packages/ui/app/src/api-reference/ApiEndpointPage.tsx +++ b/packages/ui/app/src/api-reference/ApiEndpointPage.tsx @@ -1,30 +1,63 @@ +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; import { useSetAtom } from "jotai"; +import { useEffect } from "react"; +import { useNavigationNodes, useWriteApiDefinitionAtom } from "../atoms"; import { ALL_ENVIRONMENTS_ATOM } from "../atoms/environment"; +import { BottomNavigationNeighbors } from "../components/BottomNavigationNeighbors"; +import { FernErrorBoundary } from "../components/FernErrorBoundary"; import { ApiPageContext } from "../contexts/api-page"; -import type { ResolvedApiEndpoint, ResolvedTypeDefinition } from "../resolver/types"; +import { DocsContent } from "../resolver/DocsContent"; import { BuiltWithFern } from "../sidebar/BuiltWithFern"; -import { SingleApiPageContent } from "./SingleApiPageContent"; +import { ApiPackageContent, isApiPackageContentNode } from "./ApiPackageContent"; export declare namespace ApiEndpointPage { export interface Props { - item: ResolvedApiEndpoint; - showErrors: boolean; - types: Record; + content: DocsContent.ApiEndpointPage; } } -export const ApiEndpointPage: React.FC = ({ item, showErrors, types }) => { +export const ApiEndpointPage: React.FC = ({ content }) => { + useWriteApiDefinitionAtom(content.apiDefinition); + + // TODO: Why are we doing this here? const setEnvironmentIds = useSetAtom(ALL_ENVIRONMENTS_ATOM); - if (item.type === "endpoint" || item.type === "websocket") { - setEnvironmentIds(item.environments.map((env) => env.id)); + useEffect(() => { + const ids: FernNavigation.EnvironmentId[] = []; + Object.values(content.apiDefinition.endpoints).forEach((endpoint) => { + endpoint.environments?.forEach((env) => { + ids.push(env.id); + }); + }); + Object.values(content.apiDefinition.websockets).forEach((endpoint) => { + endpoint.environments?.forEach((env) => { + ids.push(env.id); + }); + }); + }, [content.apiDefinition.endpoints, content.apiDefinition.websockets, setEnvironmentIds]); + + const node = useNavigationNodes().get(content.nodeId); + if (!node || !isApiPackageContentNode(node)) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error("Expected node to be an api reference node"); + return null; } return ( - - {/*
+ + + +
-
*/} +
); diff --git a/packages/ui/app/src/api-reference/ApiPackageContent.tsx b/packages/ui/app/src/api-reference/ApiPackageContent.tsx new file mode 100644 index 0000000000..b538ca0d1f --- /dev/null +++ b/packages/ui/app/src/api-reference/ApiPackageContent.tsx @@ -0,0 +1,85 @@ +import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import dynamic from "next/dynamic"; +import { type ReactNode } from "react"; +import { UnreachableCaseError } from "ts-essentials"; + +// TODO: implemenet suspense so that dynamic imports do not break the page layout on load +const ApiSectionMarkdownPage = dynamic( + () => import("./ApiSectionMarkdownPage").then(({ ApiSectionMarkdownPage }) => ApiSectionMarkdownPage), + { ssr: true }, +); +const Endpoint = dynamic(() => import("./endpoints/Endpoint").then(({ Endpoint }) => Endpoint), { ssr: true }); +const Webhook = dynamic(() => import("./webhooks/Webhook").then(({ Webhook }) => Webhook), { ssr: true }); +const WebSocket = dynamic(() => import("./web-socket/WebSocket").then(({ WebSocket }) => WebSocket), { ssr: true }); +const EndpointPair = dynamic(() => import("./endpoints/EndpointPair").then(({ EndpointPair }) => EndpointPair), { + ssr: true, +}); + +export type ApiPackageContentNode = + | FernNavigation.ApiReferenceNode + | Exclude; + +export function isApiPackageContentNode(node: FernNavigation.NavigationNode): node is ApiPackageContentNode { + return ( + node.type === "apiReference" || + node.type === "apiPackage" || + node.type === "endpoint" || + node.type === "webhook" || + node.type === "webSocket" || + node.type === "page" || + node.type === "endpointPair" + ); +} + +interface ApiPackageContentProps { + node: ApiPackageContentNode; + apiDefinition: ApiDefinition; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + mdxs: Record; + showErrors: boolean; + last?: boolean; +} + +export function ApiPackageContent(props: ApiPackageContentProps): ReactNode { + const { node, mdxs, apiDefinition, breadcrumb, showErrors, last } = props; + + switch (node.type) { + case "apiReference": + case "apiPackage": { + if (FernNavigation.hasMarkdown(node)) { + return ; + } + return null; + } + case "endpoint": + return ( + + ); + case "webhook": + return ; + case "webSocket": + return ; + case "page": + return ; + case "endpointPair": + return ( + + ); + default: + throw new UnreachableCaseError(node); + } +} diff --git a/packages/ui/app/src/api-reference/ApiPackageContents.tsx b/packages/ui/app/src/api-reference/ApiPackageContents.tsx deleted file mode 100644 index 376079c59d..0000000000 --- a/packages/ui/app/src/api-reference/ApiPackageContents.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import type { FdrAPI } from "@fern-api/fdr-sdk/client/types"; -import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; -import dynamic from "next/dynamic"; -import { memo, useMemo } from "react"; -import { FernErrorBoundary } from "../components/FernErrorBoundary"; -import { - ResolvedPackageItem, - ResolvedTypeDefinition, - ResolvedWithApiDefinition, - isResolvedSubpackage, -} from "../resolver/types"; -import { ApiSectionMarkdownPage } from "./ApiSectionMarkdownPage"; -import { ApiSubpackage } from "./subpackages/ApiSubpackage"; - -const Endpoint = dynamic(() => import("./endpoints/Endpoint").then(({ Endpoint }) => Endpoint), { ssr: true }); -const Webhook = dynamic(() => import("./webhooks/Webhook").then(({ Webhook }) => Webhook), { ssr: true }); -const WebSocket = dynamic(() => import("./web-socket/WebSocket").then(({ WebSocket }) => WebSocket), { ssr: true }); - -export declare namespace ApiPackageContents { - export interface Props { - api: FdrAPI.ApiDefinitionId; - types: Record; - showErrors: boolean; - apiDefinition: ResolvedWithApiDefinition; - isLastInParentPackage: boolean; - anchorIdParts: readonly string[]; - breadcrumb?: readonly string[]; - } -} - -const UnmemoizedApiPackageContents: React.FC = ({ - api, - types, - showErrors, - apiDefinition, - isLastInParentPackage, - anchorIdParts, - breadcrumb = EMPTY_ARRAY, -}) => { - const { items } = apiDefinition; - const subpackageTitle = isResolvedSubpackage(apiDefinition) ? apiDefinition.title : undefined; - const currentBreadcrumbs = useMemo( - () => (subpackageTitle != null ? [...breadcrumb, subpackageTitle] : breadcrumb), - [breadcrumb, subpackageTitle], - ); - - return ( - <> - {items.map((item, idx) => ( - - {ResolvedPackageItem.visit(item, { - endpoint: (endpoint) => ( - - ), - webhook: (webhook) => ( - - ), - websocket: (websocket) => ( - - ), - subpackage: (subpackage) => ( - - ), - page: (page) => ( - - ), - })} - - ))} - - ); -}; - -export const ApiPackageContents = memo(UnmemoizedApiPackageContents); diff --git a/packages/ui/app/src/api-reference/ApiReferenceContent.tsx b/packages/ui/app/src/api-reference/ApiReferenceContent.tsx new file mode 100644 index 0000000000..605c1a370e --- /dev/null +++ b/packages/ui/app/src/api-reference/ApiReferenceContent.tsx @@ -0,0 +1,115 @@ +import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { dfs } from "@fern-api/fdr-sdk/traversers"; +import { ReactElement, memo, useEffect, useMemo } from "react"; +import { useIsReady } from "../atoms"; +import { FernErrorBoundary } from "../components/FernErrorBoundary"; +import { useIsLocalPreview } from "../contexts/local-preview"; +import { scrollToRoute } from "../util/anchor"; +import { ApiPackageContent, ApiPackageContentNode } from "./ApiPackageContent"; + +export interface ApiReferenceContentProps { + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + apiDefinition: ApiDefinition; + node: FernNavigation.ApiReferenceNode; + mdxs: Record; + showErrors: boolean; + slug: FernNavigation.Slug; +} + +const UnmemoizedApiReferenceContent: React.FC = ({ + mdxs, + breadcrumb, + showErrors, + apiDefinition, + node, + slug, +}) => { + const isReady = useIsReady(); + + // when the page is ready, all the other pages will suddenly be rendered + useEffect(() => { + const route = window.location.pathname + window.location.hash; + if (isReady) { + scrollToRoute(route); + + // TODO: handle this in a more deterministic way: + // this is a hack to ensure that the page is scrolled to the correct position + // while lazy-loaded components are being rendered + setTimeout(() => { + scrollToRoute(route); + }, 150); + } + + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [isReady]); + + const flattened = useMemo(() => { + const toRet: { + node: ApiPackageContentNode; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + }[] = []; + + dfs( + node, + (n, parents) => { + if (n.type === "link") { + return; + } + + toRet.push({ + node: n, + breadcrumb: [...breadcrumb, ...FernNavigation.utils.createBreadcrumb(parents)], + }); + }, + (n) => { + if (n.type === "apiPackage" || n.type === "apiReference") { + return n.children; + } else { + return []; + } + }, + ); + + return toRet; + }, [breadcrumb, node]); + + function isLazy(node: ApiPackageContentNode) { + if (node.type === "endpointPair") { + return node.stream.slug !== slug && node.nonStream.slug !== slug; + } + return node.slug !== slug; + } + + // TODO: this is a temporary fix to only SSG the content that is requested by the requested route. + // - webcrawlers will accurately determine the canonical URL (right now every page "returns" the same full-length content) + // - this allows us to render the static page before hydrating, preventing layout-shift caused by the navigation context. + const filtered = isReady ? flattened : flattened.filter(({ node }) => !isLazy(node)); + + return ( + <> + {filtered.map(({ node, breadcrumb }, idx) => ( + + + + ))} + + ); +}; + +const MemoizedApiReferenceContent = memo(UnmemoizedApiReferenceContent, (prev, next) => prev.node.id === next.node.id); + +export function ApiReferenceContent(props: ApiReferenceContentProps): ReactElement { + const isLocalPreview = useIsLocalPreview(); + // do not memoize when in local preview mode to ensure that the page is re-rendered on every change + const Component = isLocalPreview ? UnmemoizedApiReferenceContent : MemoizedApiReferenceContent; + return ; +} diff --git a/packages/ui/app/src/api-reference/ApiReferencePage.tsx b/packages/ui/app/src/api-reference/ApiReferencePage.tsx index 4763491a8e..c0d860a8b2 100644 --- a/packages/ui/app/src/api-reference/ApiReferencePage.tsx +++ b/packages/ui/app/src/api-reference/ApiReferencePage.tsx @@ -1,35 +1,38 @@ -import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; -import { useSetAtom } from "jotai"; -import { useEffect } from "react"; -import { DEPRECATED_APIS_ATOM, useIsReady } from "../atoms"; +import { useIsReady, useNavigationNodes, useWriteApiDefinitionAtom } from "../atoms"; import { ApiPageContext } from "../contexts/api-page"; -import type { ResolvedRootPackage } from "../resolver/types"; +import { DocsContent } from "../resolver/DocsContent"; import { BuiltWithFern } from "../sidebar/BuiltWithFern"; -import { ApiPackageContents } from "./ApiPackageContents"; +import { ApiReferenceContent } from "./ApiReferenceContent"; export declare namespace ApiReferencePage { export interface Props { - initialApi: ResolvedRootPackage; - showErrors: boolean; + content: DocsContent.ApiReferencePage; } } -export const ApiReferencePage: React.FC = ({ initialApi, showErrors }) => { +export const ApiReferencePage: React.FC = ({ content }) => { const hydrated = useIsReady(); - const setDefinitions = useSetAtom(DEPRECATED_APIS_ATOM); - useEffect(() => { - setDefinitions((prev) => ({ ...prev, [initialApi.api]: initialApi })); - }, [initialApi, setDefinitions]); + + useWriteApiDefinitionAtom(content.apiDefinition); + + const node = useNavigationNodes().get(content.apiReferenceNodeId); + + if (node?.type !== "apiReference") { + // TODO: sentry + // eslint-disable-next-line no-console + console.error("Expected node to be an api reference node"); + return null; + } return ( - {/* anchor links should get additional padding to scroll to on initial load */} diff --git a/packages/ui/app/src/api-reference/ApiSectionMarkdownPage.tsx b/packages/ui/app/src/api-reference/ApiSectionMarkdownPage.tsx index b6ef55a1f7..63227e469e 100644 --- a/packages/ui/app/src/api-reference/ApiSectionMarkdownPage.tsx +++ b/packages/ui/app/src/api-reference/ApiSectionMarkdownPage.tsx @@ -1,50 +1,50 @@ +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import clsx from "clsx"; import { ReactElement, memo, useRef } from "react"; import { useHref } from "../hooks/useHref"; -import { useShouldLazyRender } from "../hooks/useShouldLazyRender"; import { Markdown } from "../mdx/Markdown"; -import { ResolvedPageMetadata } from "../resolver/types"; import { useApiPageCenterElement } from "./useApiPageCenterElement"; -interface ApiSectionMarkdownPageProps { - page: ResolvedPageMetadata; - hideBottomSeparator: boolean; +interface ApiSectionMarkdownContentProps { + node: FernNavigation.NavigationNodeWithMarkdown; + mdx: FernDocs.MarkdownText; + last?: boolean; } -const ApiSectionMarkdownContent = ({ page, hideBottomSeparator }: ApiSectionMarkdownPageProps) => { +function ApiSectionMarkdownContent({ node, mdx, last = false }: ApiSectionMarkdownContentProps) { const ref = useRef(null); - useApiPageCenterElement(ref, page.slug); + useApiPageCenterElement(ref, node.slug); return ( -
- +
+ + + {/* TODO: the following ensures that the bottom line matches the rest of the api reference, but this isn't very graceful */} +
+
+
); -}; - -export const ApiSectionMarkdownPage = memo( - ({ - page, - hideBottomSeparator, - }: { - page: ResolvedPageMetadata; - hideBottomSeparator: boolean; - }): ReactElement | null => { - // TODO: this is a temporary fix to only SSG the content that is requested by the requested route. - // - webcrawlers will accurately determine the canonical URL (right now every page "returns" the same full-length content) - // - this allows us to render the static page before hydrating, preventing layout-shift caused by the navigation context. - if (useShouldLazyRender(page.slug)) { - return null; - } - - return ; - }, -); +} + +interface ApiSectionMarkdownPageProps { + node: FernNavigation.NavigationNodeWithMarkdown; + mdxs: Record; + last?: boolean; +} + +export const ApiSectionMarkdownPage = memo(({ node, mdxs, last }: ApiSectionMarkdownPageProps): ReactElement | null => { + const mdx = mdxs[node.id]; + + if (!mdx) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error(`No markdown content found for node ${node.id}`); + return null; + } + + return ; +}); ApiSectionMarkdownPage.displayName = "ApiSectionMarkdownPage"; diff --git a/packages/ui/app/src/api-reference/SingleApiPageContent.tsx b/packages/ui/app/src/api-reference/SingleApiPageContent.tsx deleted file mode 100644 index 64be24b0f0..0000000000 --- a/packages/ui/app/src/api-reference/SingleApiPageContent.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import dynamic from "next/dynamic"; -import { ReactElement } from "react"; -import { FernErrorBoundary } from "../components/FernErrorBoundary"; -import type { ResolvedApiEndpoint, ResolvedTypeDefinition } from "../resolver/types"; - -const Endpoint = dynamic(() => import("./endpoints/Endpoint").then(({ Endpoint }) => Endpoint), { ssr: true }); -const Webhook = dynamic(() => import("./webhooks/Webhook").then(({ Webhook }) => Webhook), { ssr: true }); -const WebSocket = dynamic(() => import("./web-socket/WebSocket").then(({ WebSocket }) => WebSocket), { ssr: true }); - -interface SingleApiPageContentProps { - item: ResolvedApiEndpoint; - types: Record; - showErrors: boolean; -} - -export function SingleApiPageContent({ item, showErrors, types }: SingleApiPageContentProps): ReactElement | null { - return ( - - {visitDiscriminatedUnion(item)._visit({ - endpoint: (endpoint) => ( - - ), - webhook: (webhook) => , - websocket: (websocket) => ( - - ), - })} - - ); -} diff --git a/packages/ui/app/src/api-reference/artifacts/ApiArtifacts.tsx b/packages/ui/app/src/api-reference/artifacts/ApiArtifacts.tsx deleted file mode 100644 index 8f3cbb2165..0000000000 --- a/packages/ui/app/src/api-reference/artifacts/ApiArtifacts.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { useRef } from "react"; -import { API_ARTIFACTS_TITLE } from "../../config"; -import { useHref } from "../../hooks/useHref"; -import { ResolvedWithApiDefinition } from "../../resolver/types"; -import { ApiPageMargins } from "../page-margins/ApiPageMargins"; -import { useApiPageCenterElement } from "../useApiPageCenterElement"; -import { SdkCard } from "./SdkCard"; -import { SdkCardLayout } from "./SdkCardLayout"; -import { DotNetLogo } from "./sdk-logos/DotNetLogo"; -import { GoLogo } from "./sdk-logos/GoLogo"; -import { JavaLogo } from "./sdk-logos/JavaLogo"; -import { PythonLogo } from "./sdk-logos/PythonLogo"; -import { RubyLogo } from "./sdk-logos/RubyLogo"; - -export declare namespace ApiArtifacts { - export interface Props { - apiDefinition: ResolvedWithApiDefinition | undefined; - apiArtifacts: DocsV1Read.ApiArtifacts; - } -} - -export const ApiArtifacts: React.FC = ({ apiDefinition, apiArtifacts }) => { - const slug = FernNavigation.slugjoin(apiDefinition?.slug ?? "", "client-libraries"); - - const ref = useRef(null); - useApiPageCenterElement(ref, slug); - - return ( - -
-

{API_ARTIFACTS_TITLE}

-
- Official open-source client libraries for your favorite platforms. -
-
- {apiArtifacts.sdks.map((sdk, index) => ( - - ))} - } - title={
Python
} - rightElement={ -
- Coming Soon -
- } - /> - } - title={
Java
} - rightElement={ -
- Coming Soon -
- } - /> - } - title={
Go
} - rightElement={ -
- Coming Soon -
- } - /> - } - title={
Ruby
} - rightElement={ -
- Coming Soon -
- } - /> - } - title={
.NET
} - rightElement={ -
- Coming Soon -
- } - /> -
-
-
- ); -}; diff --git a/packages/ui/app/src/api-reference/endpoints/Endpoint.tsx b/packages/ui/app/src/api-reference/endpoints/Endpoint.tsx index e4052c8b53..7133c624a6 100644 --- a/packages/ui/app/src/api-reference/endpoints/Endpoint.tsx +++ b/packages/ui/app/src/api-reference/endpoints/Endpoint.tsx @@ -1,50 +1,42 @@ -import { useAtom } from "jotai"; -import { memo, useEffect } from "react"; -import { FERN_STREAM_ATOM, useDocsContent } from "../../atoms"; -import { useShouldLazyRender } from "../../hooks/useShouldLazyRender"; -import { ResolvedEndpointDefinition, ResolvedTypeDefinition } from "../../resolver/types"; +import { createEndpointContext, type ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { memo, useMemo } from "react"; import { EndpointContent } from "./EndpointContent"; export declare namespace Endpoint { export interface Props { - api: string; showErrors: boolean; - endpoint: ResolvedEndpointDefinition; - isLastInApi: boolean; - types: Record; + node: FernNavigation.EndpointNode; + apiDefinition: ApiDefinition; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + streamToggle?: React.ReactElement; + last?: boolean; } } -const UnmemoizedEndpoint: React.FC = ({ api, showErrors, endpoint, isLastInApi, types }) => { - const [isStream, setStream] = useAtom(FERN_STREAM_ATOM); - const content = useDocsContent(); +const UnmemoizedEndpoint: React.FC = ({ + showErrors, + node, + apiDefinition, + breadcrumb, + streamToggle, + last, +}) => { + const context = useMemo(() => createEndpointContext(node, apiDefinition), [node, apiDefinition]); - const endpointSlug = endpoint.stream != null && isStream ? endpoint.stream.slug : endpoint.slug; - - useEffect(() => { - if (endpoint.stream != null) { - if (endpoint.slug === content.slug) { - setStream(false); - } else if (endpoint.stream.slug === content.slug) { - setStream(true); - } - } - }, [endpoint.slug, endpoint.stream, content.slug, setStream]); - - // TODO: this is a temporary fix to only SSG the content that is requested by the requested route. - // - webcrawlers will accurately determine the canonical URL (right now every page "returns" the same full-length content) - // - this allows us to render the static page before hydrating, preventing layout-shift caused by the navigation context. - if (useShouldLazyRender(endpointSlug)) { + if (!context) { + // eslint-disable-next-line no-console + console.error("Could not create context for endpoint", node); return null; } return ( ); }; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContent.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContent.tsx index d78839ae70..fb66bbf7a1 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContent.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContent.tsx @@ -1,3 +1,6 @@ +import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import cn from "clsx"; import { useInView } from "framer-motion"; import { atom, useAtom, useAtomValue } from "jotai"; @@ -12,20 +15,17 @@ import { CONTENT_HEIGHT_ATOM, CURRENT_NODE_ID_ATOM, FERN_LANGUAGE_ATOM, - FERN_STREAM_ATOM, MOBILE_SIDEBAR_ENABLED_ATOM, store, useAtomEffect, useFeatureFlags, } from "../../atoms"; import { useHref } from "../../hooks/useHref"; -import { ResolvedEndpointDefinition, ResolvedError, ResolvedTypeDefinition } from "../../resolver/types"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; import { CodeExample, generateCodeExamples } from "../examples/code-example"; import { useApiPageCenterElement } from "../useApiPageCenterElement"; import { EndpointContentHeader } from "./EndpointContentHeader"; import { EndpointContentLeft, convertNameToAnchorPart } from "./EndpointContentLeft"; -import { EndpointStreamingEnabledToggle } from "./EndpointStreamingEnabledToggle"; const EndpointContentCodeSnippets = dynamic( () => import("./EndpointContentCodeSnippets").then((mod) => mod.EndpointContentCodeSnippets), @@ -34,11 +34,12 @@ const EndpointContentCodeSnippets = dynamic( export declare namespace EndpointContent { export interface Props { - api: string; showErrors: boolean; - endpoint: ResolvedEndpointDefinition; + context: EndpointContext; hideBottomSeparator?: boolean; - types: Record; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + streamToggle?: React.ReactElement; + last?: boolean; } } @@ -72,17 +73,15 @@ function maybeGetErrorStatusCodeOrNameFromAnchor(anchor: string | undefined): nu const paddingAtom = atom((get) => (get(MOBILE_SIDEBAR_ENABLED_ATOM) ? 0 : 26)); export const EndpointContent = memo((props) => { - const { api, showErrors, endpoint: endpointProp, hideBottomSeparator = false, types } = props; - const isStream = useAtomValue(FERN_STREAM_ATOM); - const endpoint = isStream && endpointProp.stream != null ? endpointProp.stream : endpointProp; - + const { showErrors, context, breadcrumb, last = false } = props; + const { node, endpoint } = context; const ref = useRef(null); - useApiPageCenterElement(ref, endpoint.slug); + useApiPageCenterElement(ref, node.slug); const isInViewport = useInView(ref, { margin: "100%", - }) || store.get(CURRENT_NODE_ID_ATOM) === endpoint.nodeId; + }) || store.get(CURRENT_NODE_ID_ATOM) === node.id; const [hoveredRequestPropertyPath, setHoveredRequestPropertyPath] = useState(); const [hoveredResponsePropertyPath, setHoveredResponsePropertyPath] = useState(); @@ -99,7 +98,7 @@ export const EndpointContent = memo((props) => { [setHoveredResponsePropertyPath], ); - const [selectedError, setSelectedError] = useState(); + const [selectedError, setSelectedError] = useState(); useAtomEffect( useCallbackOne( @@ -107,7 +106,7 @@ export const EndpointContent = memo((props) => { const anchor = get(ANCHOR_ATOM); const statusCodeOrName = maybeGetErrorStatusCodeOrNameFromAnchor(anchor); if (statusCodeOrName != null) { - const error = endpoint.errors.find((e) => + const error = endpoint.errors?.find((e) => typeof statusCodeOrName === "number" ? e.statusCode === statusCodeOrName : convertNameToAnchorPart(e.name) === statusCodeOrName, @@ -124,23 +123,24 @@ export const EndpointContent = memo((props) => { const examples = useMemo(() => { if (selectedError == null) { // Look for success example - return endpoint.examples.filter((e) => e.responseStatusCode >= 200 && e.responseStatusCode < 300); + return endpoint.examples?.filter((e) => e.responseStatusCode >= 200 && e.responseStatusCode < 300); } - return endpoint.examples.filter((e) => e.responseStatusCode === selectedError.statusCode); + return endpoint.examples?.filter((e) => e.responseStatusCode === selectedError.statusCode); }, [endpoint.examples, selectedError]); // TODO: remove after pinecone demo const { grpcEndpoints } = useFeatureFlags(); - const [contentType, setContentType] = useState(endpoint.requestBody?.contentType); + const [contentType, setContentType] = useState(endpoint.request?.contentType); const clients = useMemo( () => generateCodeExamples( examples, grpcEndpoints?.includes(endpoint.id) && !( + examples != null && examples.length === 1 && - examples[0]?.snippets.length === 1 && - examples[0].snippets[0]?.language === "curl" + examples[0]?.snippets?.["curl"] != null && + examples[0]?.snippets["curl"].length > 0 ), ), [examples, grpcEndpoints, endpoint.id], @@ -260,24 +260,17 @@ export const EndpointContent = memo((props) => { return (
setSelectedError(undefined)} ref={ref} - id={useHref(endpoint.slug)} + id={useHref(node.slug)} >
- - ) - } - /> +
((props) => { }} > ((props) => { setSelectedError={setSelectedError} contentType={contentType} setContentType={setContentType} - types={types} />
@@ -308,7 +300,6 @@ export const EndpointContent = memo((props) => { > {isInViewport && ( ((props) => { errors={endpoint.errors} setSelectedError={setSelectedError} measureHeight={setExampleHeight} + node={node} /> )} diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx index fa10d0318c..b52f6b2afe 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContentCodeSnippets.tsx @@ -1,23 +1,14 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { EMPTY_OBJECT, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; +import { EMPTY_ARRAY, EMPTY_OBJECT, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernButton, FernButtonGroup, FernScrollArea } from "@fern-ui/components"; import { useResizeObserver } from "@fern-ui/react-commons"; import { ReactNode, memo, useMemo, useRef, useState } from "react"; -import { useNavigationNodes, usePlaygroundEnvironment } from "../../atoms"; -import { useSelectedEnvironmentId } from "../../atoms/environment"; import { FernErrorTag } from "../../components/FernErrorBoundary"; import { StatusCodeTag, statusCodeToIntent } from "../../components/StatusCodeTag"; import { PlaygroundButton } from "../../playground/PlaygroundButton"; -import { mergeEndpointSchemaWithExample } from "../../resolver/SchemaWithExample"; -import { - ResolvedEndpointDefinition, - ResolvedError, - ResolvedExampleEndpointCall, - ResolvedExampleError, - resolveEnvironment, - resolveEnvironmentUrlInCodeSnippet, -} from "../../resolver/types"; +import { usePlaygroundBaseUrl } from "../../playground/utils/select-environment"; import { AudioExample } from "../examples/AudioExample"; import { CodeSnippetExample, JsonCodeSnippetExample } from "../examples/CodeSnippetExample"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; @@ -32,9 +23,9 @@ import { ErrorExampleSelect } from "./ErrorExampleSelect"; export declare namespace EndpointContentCodeSnippets { export interface Props { - api: string; - endpoint: ResolvedEndpointDefinition; - example: ResolvedExampleEndpointCall; + node: FernNavigation.EndpointNode; + endpoint: ApiDefinition.EndpointDefinition; + example: ApiDefinition.ExampleEndpointCall; clients: CodeExampleGroup[]; selectedClient: CodeExample; onClickClient: (example: CodeExample) => void; @@ -43,14 +34,15 @@ export declare namespace EndpointContentCodeSnippets { hoveredRequestPropertyPath: JsonPropertyPath | undefined; hoveredResponsePropertyPath: JsonPropertyPath | undefined; showErrors: boolean; - errors: ResolvedError[]; - selectedError: ResolvedError | undefined; - setSelectedError: (error: ResolvedError | undefined) => void; + errors: ApiDefinition.ErrorResponse[] | undefined; + selectedError: ApiDefinition.ErrorResponse | undefined; + setSelectedError: (error: ApiDefinition.ErrorResponse | undefined) => void; measureHeight: (height: number) => void; } } const UnmemoizedEndpointContentCodeSnippets: React.FC = ({ + node, endpoint, example, clients, @@ -58,18 +50,14 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC { - const nodes = useNavigationNodes(); - const maybeNode = nodes.get(endpoint.nodeId); - const node = maybeNode != null && FernNavigation.isApiLeaf(maybeNode) ? maybeNode : undefined; - const ref = useRef(null); useResizeObserver(ref, ([entry]) => { @@ -78,13 +66,11 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC( - undefined, - ); + const [internalSelectedErrorExample, setSelectedErrorExample] = useState(); const handleSelectErrorAndExample = ( - error: ResolvedError | undefined, - example: ResolvedExampleError | undefined, + error: ApiDefinition.ErrorResponse | undefined, + example: ApiDefinition.ErrorExample | undefined, ) => { setSelectedError(error); setSelectedErrorExample(example); @@ -92,7 +78,7 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC { - if (selectedError == null || selectedError.examples.length === 0) { + if (selectedError == null || !selectedError.examples || selectedError.examples.length === 0) { return undefined; } else if (selectedError.examples.findIndex((e) => e === internalSelectedErrorExample) === -1) { return selectedError.examples[0]; @@ -100,14 +86,13 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC mergeEndpointSchemaWithExample(endpoint, example), [endpoint, example]); const selectedClientGroup = clients.find((client) => client.language === selectedClient.language); const successTitle = - exampleWithSchema.responseBody != null - ? visitDiscriminatedUnion(exampleWithSchema.responseBody, "type")._visit({ - json: (value) => renderResponseTitle(value.statusCode, endpoint.method), - filename: (value) => renderResponseTitle(value.statusCode, endpoint.method), + example.responseBody != null + ? visitDiscriminatedUnion(example.responseBody)._visit({ + json: () => renderResponseTitle(example.responseStatusCode, endpoint.method), + filename: () => renderResponseTitle(example.responseStatusCode, endpoint.method), stream: () => "Streamed Response", sse: () => "Server-Sent Events", _other: () => "Response", @@ -127,8 +112,7 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC{successTitle} ); - const selectedEnvironmentId = useSelectedEnvironmentId(); - const playgroundEnvironment = usePlaygroundEnvironment(); + const [baseUrl, environmentId] = usePlaygroundBaseUrl(endpoint); return (
@@ -158,7 +142,8 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC } onClick={(e) => { @@ -181,13 +166,7 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC } - code={resolveEnvironmentUrlInCodeSnippet( - endpoint, - requestCodeSnippet, - playgroundEnvironment, - undefined, - true, - )} + code={resolveEnvironmentUrlInCodeSnippet(endpoint, requestCodeSnippet, baseUrl)} language={selectedClient.language} hoveredPropertyPath={selectedClient.language === "curl" ? hoveredRequestPropertyPath : undefined} json={requestCurlJson} @@ -206,9 +185,9 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC )} - {exampleWithSchema.responseBody != null && + {example.responseBody != null && selectedError == null && - visitDiscriminatedUnion(exampleWithSchema.responseBody, "type")._visit({ + visitDiscriminatedUnion(example.responseBody)._visit({ json: (value) => ( ); } + +const resolveEnvironmentUrlInCodeSnippet = ( + endpoint: ApiDefinition.EndpointDefinition, + requestCodeSnippet: string, + baseUrl: string | undefined, +): string => { + const urlToReplace = endpoint.environments?.find((env) => requestCodeSnippet.includes(env.baseUrl))?.baseUrl; + return urlToReplace && baseUrl ? requestCodeSnippet.replace(urlToReplace, baseUrl) : requestCodeSnippet; +}; diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContentHeader.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContentHeader.tsx index fa4b6fa409..2a91c33426 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContentHeader.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContentHeader.tsx @@ -1,23 +1,26 @@ +import { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { memo, type ReactNode } from "react"; -import { useSelectedEnvironmentId } from "../../atoms/environment"; import { FernBreadcrumbs } from "../../components/FernBreadcrumbs"; -import { ResolvedEndpointDefinition, resolveEnvironment } from "../../resolver/types"; +import { usePlaygroundBaseUrl } from "../../playground/utils/select-environment"; import { EndpointAvailabilityTag } from "./EndpointAvailabilityTag"; import { EndpointUrlWithOverflow } from "./EndpointUrlWithOverflow"; interface EndpointContentHeaderProps { - endpoint: ResolvedEndpointDefinition; + context: EndpointContext; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; streamToggle?: ReactNode; } -export const EndpointContentHeader = memo(({ endpoint, streamToggle }) => { - const selectedEnvironmentId = useSelectedEnvironmentId(); +export const EndpointContentHeader = memo(({ context, breadcrumb, streamToggle }) => { + const { endpoint, node } = context; + const [baseUrl, environmentId] = usePlaygroundBaseUrl(endpoint); return (
- +
-

{endpoint.title}

+

{node.title}

{endpoint.availability != null && ( @@ -28,9 +31,10 @@ export const EndpointContentHeader = memo(({ endpoin {streamToggle}
diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx index 34b69faaca..6eeef30117 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointContentLeft.tsx @@ -1,18 +1,12 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { camelCase, sortBy, upperFirst } from "lodash-es"; -import { memo } from "react"; +import camelCase from "lodash-es/camelCase"; +import sortBy from "lodash-es/sortBy"; +import upperFirst from "lodash-es/upperFirst"; +import { memo, useMemo } from "react"; import { useFeatureFlags } from "../../atoms"; import { Markdown } from "../../mdx/Markdown"; -import { mergeEndpointSchemaWithExample } from "../../resolver/SchemaWithExample"; -import { - ResolvedEndpointDefinition, - ResolvedError, - ResolvedExampleEndpointCall, - ResolvedObjectProperty, - ResolvedTypeDefinition, - getParameterDescription, -} from "../../resolver/types"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; import { TypeComponentSeparator } from "../types/TypeComponentSeparator"; import { EndpointError } from "./EndpointError"; @@ -27,16 +21,15 @@ export interface HoveringProps { export declare namespace EndpointContentLeft { export interface Props { - endpoint: ResolvedEndpointDefinition; - example: ResolvedExampleEndpointCall; + context: EndpointContext; + example: ApiDefinition.ExampleEndpointCall; showErrors: boolean; onHoverRequestProperty: (jsonPropertyPath: JsonPropertyPath, hovering: HoveringProps) => void; onHoverResponseProperty: (jsonPropertyPath: JsonPropertyPath, hovering: HoveringProps) => void; - selectedError: ResolvedError | undefined; - setSelectedError: (idx: ResolvedError | undefined) => void; + selectedError: ApiDefinition.ErrorResponse | undefined; + setSelectedError: (idx: ApiDefinition.ErrorResponse | undefined) => void; contentType: string | undefined; setContentType: (contentType: string) => void; - types: Record; } } @@ -50,7 +43,7 @@ const RESPONSE_BODY = ["response", "body"]; const RESPONSE_ERROR = ["response", "error"]; const UnmemoizedEndpointContentLeft: React.FC = ({ - endpoint, + context: { node, endpoint, types, auth, globalHeaders }, example, showErrors, onHoverRequestProperty, @@ -59,47 +52,50 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ setSelectedError, // contentType, // setContentType, - types, }) => { const { isAuthEnabledInDocs } = useFeatureFlags(); - let authHeaders: ResolvedObjectProperty | undefined; - if (endpoint.auth && isAuthEnabledInDocs) { - authHeaders = visitDiscriminatedUnion(endpoint.auth, "type")._visit({ + let authHeader: ApiDefinition.ObjectProperty | undefined; + if (auth && isAuthEnabledInDocs) { + const stringShape: ApiDefinition.TypeShape = { + type: "alias", + value: { + type: "primitive", + value: { + type: "string", + regex: undefined, + minLength: undefined, + maxLength: undefined, + default: undefined, + }, + }, + }; + authHeader = visitDiscriminatedUnion(auth)._visit({ basicAuth: () => { return { - key: APIV1Read.PropertyKey("Authorization"), + key: ApiDefinition.PropertyKey("Authorization"), description: "Basic authentication of the form Basic .", hidden: false, - valueShape: { - type: "unknown", - displayName: "string", - }, + valueShape: stringShape, availability: undefined, }; }, bearerAuth: () => { return { - key: APIV1Read.PropertyKey("Authorization"), + key: ApiDefinition.PropertyKey("Authorization"), description: "Bearer authentication of the form Bearer , where token is your auth token.", hidden: false, - valueShape: { - type: "unknown", - displayName: "string", - }, + valueShape: stringShape, availability: undefined, }; }, header: (value) => { return { - key: APIV1Read.PropertyKey(value.headerWireValue), + key: ApiDefinition.PropertyKey(value.headerWireValue), description: value.prefix != null ? `Header authentication of the form ${value.prefix} ` : undefined, hidden: false, - valueShape: { - type: "unknown", - displayName: "string", - }, + valueShape: stringShape, availability: undefined, }; }, @@ -108,13 +104,10 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ clientCredentials: (clientCredentialsValue) => visitDiscriminatedUnion(clientCredentialsValue.value, "type")._visit({ referencedEndpoint: () => ({ - key: APIV1Read.PropertyKey("Authorization"), + key: ApiDefinition.PropertyKey("Authorization"), description: "OAuth authentication of the form Bearer .", hidden: false, - valueShape: { - type: "unknown", - displayName: "string", - }, + valueShape: stringShape, availability: undefined, }), }), @@ -123,17 +116,21 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ }); } - let headers = endpoint.headers.filter((header) => !header.hidden); + const headers = useMemo(() => { + return [...(authHeader ? [authHeader] : []), ...globalHeaders, ...(endpoint.requestHeaders ?? [])]; + }, [authHeader, endpoint.requestHeaders, globalHeaders]); - if (authHeaders) { - headers = [authHeaders, ...headers]; - } + // let headers = [...globalHeaders, ...(endpoint.requestHeaders ?? [])]; + + // if (authHeaders) { + // headers = [authHeaders, ...headers]; + // } return (
- {endpoint.pathParameters.length > 0 && ( - + {endpoint.pathParameters && endpoint.pathParameters.length > 0 && ( +
{endpoint.pathParameters.map((parameter) => (
@@ -142,8 +139,11 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ name={parameter.key} shape={parameter.valueShape} anchorIdParts={[...REQUEST_PATH, parameter.key]} - slug={endpoint.slug} - description={getParameterDescription(parameter, types)} + slug={node.slug} + description={parameter.description} + additionalDescriptions={ + ApiDefinition.unwrapReference(parameter.valueShape, types).descriptions + } availability={parameter.availability} types={types} /> @@ -153,11 +153,10 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ )} {headers.length > 0 && ( - +
{headers.map((parameter) => { let isAuth = false; - const auth = endpoint.auth; if ( (auth?.type === "header" && parameter.key === auth?.headerWireValue) || parameter.key === "Authorization" @@ -179,8 +178,11 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ name={parameter.key} shape={parameter.valueShape} anchorIdParts={[...REQUEST_HEADER, parameter.key]} - slug={endpoint.slug} - description={getParameterDescription(parameter, types)} + slug={node.slug} + description={parameter.description} + additionalDescriptions={ + ApiDefinition.unwrapReference(parameter.valueShape, types).descriptions + } availability={parameter.availability} types={types} /> @@ -190,8 +192,8 @@ const UnmemoizedEndpointContentLeft: React.FC = ({
)} - {endpoint.queryParameters.length > 0 && ( - + {endpoint.queryParameters && endpoint.queryParameters.length > 0 && ( +
{endpoint.queryParameters.map((parameter) => (
@@ -200,8 +202,11 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ name={parameter.key} shape={parameter.valueShape} anchorIdParts={[...REQUEST_QUERY, parameter.key]} - slug={endpoint.slug} - description={getParameterDescription(parameter, types)} + slug={node.slug} + description={parameter.description} + additionalDescriptions={ + ApiDefinition.unwrapReference(parameter.valueShape, types).descriptions + } availability={parameter.availability} types={types} /> @@ -256,36 +261,36 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ )} */} - {endpoint.requestBody != null && ( + {endpoint.request && ( )} - {endpoint.responseBody != null && ( - + {endpoint.response && ( + )} - {showErrors && endpoint.errors.length > 0 && ( - + {showErrors && endpoint.errors && endpoint.errors.length > 0 && ( +
{sortBy( endpoint.errors, @@ -297,7 +302,7 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ key={idx} error={error} isFirst={idx === 0} - isLast={idx === endpoint.errors.length - 1} + isLast={idx === (endpoint.errors?.length ?? 0) - 1} isSelected={selectedError != null && isErrorEqual(error, selectedError)} onClick={(event) => { event.stopPropagation(); @@ -308,7 +313,7 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ ...RESPONSE_ERROR, `${convertNameToAnchorPart(error.name) ?? error.statusCode}`, ]} - slug={endpoint.slug} + slug={node.slug} availability={error.availability} types={types} /> @@ -323,7 +328,7 @@ const UnmemoizedEndpointContentLeft: React.FC = ({ export const EndpointContentLeft = memo(UnmemoizedEndpointContentLeft); -function isErrorEqual(a: ResolvedError, b: ResolvedError): boolean { +function isErrorEqual(a: ApiDefinition.ErrorResponse, b: ApiDefinition.ErrorResponse): boolean { return ( a.statusCode === b.statusCode && (a.name != null && b.name != null ? a.name === b.name : a.name == null && b.name == null) diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx index 4c231c3b71..80ff2bfc5c 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointError.tsx @@ -1,3 +1,4 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { titleCase, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; @@ -5,22 +6,15 @@ import { FernCollapse } from "@fern-ui/components"; import cn from "clsx"; import { MouseEventHandler, memo } from "react"; import { MdxContent } from "../../mdx/MdxContent"; -import { - ResolvedError, - ResolvedTypeDefinition, - ResolvedTypeShape, - dereferenceObjectProperties, - unwrapReference, -} from "../../resolver/types"; +import { renderTypeShorthand } from "../../type-shorthand"; import { type JsonPropertyPath } from "../examples/JsonPropertyPath"; import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions"; -import { renderDeprecatedTypeShorthand } from "../types/type-shorthand/TypeShorthand"; import { getErrorNameForStatus } from "../utils/getErrorNameForStatus"; import { EndpointAvailabilityTag } from "./EndpointAvailabilityTag"; export declare namespace EndpointError { export interface Props { - error: ResolvedError; + error: ApiDefinition.ErrorResponse; isFirst: boolean; isLast: boolean; isSelected: boolean; @@ -29,7 +23,7 @@ export declare namespace EndpointError { anchorIdParts: readonly string[]; slug: FernNavigation.Slug; availability: APIV1Read.Availability | null | undefined; - types: Record; + types: Record; } } @@ -76,7 +70,7 @@ export const EndpointError = memo(function EndpointErrorUnm
{shouldHideShape(error.shape, types) ? null : ( @@ -100,20 +94,21 @@ export const EndpointError = memo(function EndpointErrorUnm ); }); -function shouldHideShape(shape: ResolvedTypeShape, types: Record): boolean { - return visitDiscriminatedUnion(unwrapReference(shape, types), "type")._visit({ +function shouldHideShape( + shape: ApiDefinition.TypeShapeOrReference, + types: Record, +): boolean { + return visitDiscriminatedUnion(ApiDefinition.unwrapReference(shape, types).shape)._visit({ primitive: () => true, literal: () => true, - object: (object) => dereferenceObjectProperties(object, types).length === 0, + object: (object) => ApiDefinition.unwrapObjectType(object, types).properties.length === 0, undiscriminatedUnion: () => false, discriminatedUnion: () => false, enum: () => false, - optional: (value) => shouldHideShape(value.shape, types), - list: (value) => shouldHideShape(value.shape, types), - set: (value) => shouldHideShape(value.shape, types), + list: (value) => shouldHideShape(value.itemShape, types), + set: (value) => shouldHideShape(value.itemShape, types), map: () => false, unknown: () => true, - alias: (value) => shouldHideShape(value.shape, types), _other: () => true, }); } diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointPair.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointPair.tsx new file mode 100644 index 0000000000..82a9e17d1a --- /dev/null +++ b/packages/ui/app/src/api-reference/endpoints/EndpointPair.tsx @@ -0,0 +1,47 @@ +import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { useAtomValue } from "jotai"; +import { ReactElement } from "react"; +import { useCallbackOne } from "use-memo-one"; +import { FERN_STREAM_ATOM, SLUG_ATOM, useAtomEffect } from "../../atoms"; +import { Endpoint } from "./Endpoint"; +import { EndpointStreamingEnabledToggle } from "./EndpointStreamingEnabledToggle"; + +interface EndpointPairProps { + showErrors: boolean; + node: FernNavigation.EndpointPairNode; + apiDefinition: ApiDefinition; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + last?: boolean; +} + +export function EndpointPair({ showErrors, node, apiDefinition, breadcrumb, last }: EndpointPairProps): ReactElement { + const isStream = useAtomValue(FERN_STREAM_ATOM); + + useAtomEffect( + useCallbackOne( + (get, set) => { + const slug = get(SLUG_ATOM); + if (node.nonStream.slug === slug) { + set(FERN_STREAM_ATOM, false); + } else if (node.stream.slug === slug) { + set(FERN_STREAM_ATOM, true); + } + }, + [node.nonStream.slug, node.stream.slug], + ), + ); + + const endpointNode = isStream ? node.stream : node.nonStream; + + return ( + } + last={last} + /> + ); +} diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointParameter.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointParameter.tsx index bbc2ba6106..aa034deede 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointParameter.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointParameter.tsx @@ -1,45 +1,50 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; +// import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; +import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { EMPTY_ARRAY } from "@fern-api/ui-core-utils"; import cn from "clsx"; +import { compact } from "lodash-es"; import { FC, PropsWithChildren, ReactNode, memo, useRef, useState } from "react"; import { useIsApiReferencePaginated, useRouteListener } from "../../atoms"; import { FernAnchor } from "../../components/FernAnchor"; import { useHref } from "../../hooks/useHref"; import { Markdown } from "../../mdx/Markdown"; -import { ResolvedTypeDefinition, ResolvedTypeShape } from "../../resolver/types"; +import { renderTypeShorthandRoot } from "../../type-shorthand"; import { getAnchorId } from "../../util/anchor"; import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions"; -import { renderDeprecatedTypeShorthandRoot } from "../types/type-shorthand/TypeShorthand"; import { EndpointAvailabilityTag } from "./EndpointAvailabilityTag"; export declare namespace EndpointParameter { export interface Props { name: string; description: FernDocs.MarkdownText | undefined; - shape: ResolvedTypeShape; + additionalDescriptions: FernDocs.MarkdownText[] | undefined; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - availability: APIV1Read.Availability | null | undefined; - types: Record; + availability: ApiDefinition.Availability | null | undefined; + shape: ApiDefinition.TypeShape; + types: Record; } export interface ContentProps { name: string; description: FernDocs.MarkdownText | undefined; + additionalDescriptions: FernDocs.MarkdownText[] | undefined; typeShorthand: ReactNode; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - availability: APIV1Read.Availability | null | undefined; + availability: ApiDefinition.Availability | null | undefined; } } export const EndpointParameter = memo( - ({ name, description, anchorIdParts, slug, shape, availability, types }) => ( + ({ name, description, additionalDescriptions, anchorIdParts, slug, shape, availability, types }) => ( ( (prev, next) => prev.name === next.name && prev.description === next.description && + prev.additionalDescriptions === next.additionalDescriptions && prev.slug === next.slug && prev.availability === next.availability && prev.shape === next.shape && @@ -72,6 +78,7 @@ export const EndpointParameterContent: FC { @@ -106,7 +113,7 @@ export const EndpointParameterContent: FC} - + {children}
); diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx index 95509a58ab..944246f640 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointRequestSection.tsx @@ -1,37 +1,27 @@ -import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { Fragment, ReactNode } from "react"; import { Markdown } from "../../mdx/Markdown"; -import { - ResolvedFormDataRequestProperty, - ResolvedRequestBody, - ResolvedTypeDefinition, - unwrapDescription, - visitResolvedHttpRequestBodyShape, -} from "../../resolver/types"; +import { renderTypeShorthand } from "../../type-shorthand"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; import { TypeComponentSeparator } from "../types/TypeComponentSeparator"; import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions"; -import { - renderDeprecatedTypeShorthand, - renderDeprecatedTypeShorthandFormDataProperty, -} from "../types/type-shorthand/TypeShorthand"; import { EndpointParameter, EndpointParameterContent } from "./EndpointParameter"; export declare namespace EndpointRequestSection { export interface Props { - requestBody: ResolvedRequestBody; + request: ApiDefinition.HttpRequest; onHoverProperty?: (path: JsonPropertyPath, opts: { isHovering: boolean }) => void; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + types: Record; } } export const EndpointRequestSection: React.FC = ({ - requestBody, + request, onHoverProperty, anchorIdParts, slug, @@ -42,26 +32,27 @@ export const EndpointRequestSection: React.FC = ({ (requestBody.shape, { + mdx={request.description} + fallback={`This endpoint expects ${visitDiscriminatedUnion(request.body)._visit({ formData: (formData) => { - const fileArrays = formData.properties.filter( - (p): p is ResolvedFormDataRequestProperty.FileArrayProperty => p.type === "fileArray", + const fileArrays = formData.fields.filter( + (p): p is ApiDefinition.FormDataField.Files => p.type === "files", ); - const files = formData.properties.filter( - (p): p is ResolvedFormDataRequestProperty.FileProperty => p.type === "file", + const files = formData.fields.filter( + (p): p is ApiDefinition.FormDataField.File_ => p.type === "file", ); return `a multipart form${fileArrays.length > 0 || files.length > 1 ? " with multiple files" : files[0] != null ? ` containing ${files[0].isOptional ? "an optional" : "a"} file` : ""}`; }, bytes: (bytes) => `binary data${bytes.contentType != null ? ` of type ${bytes.contentType}` : ""}`, - typeShape: (typeShape) => renderDeprecatedTypeShorthand(typeShape, { withArticle: true }, types), + object: (obj) => renderTypeShorthand(obj, { withArticle: true }, types), + alias: (alias) => renderTypeShorthand(alias, { withArticle: true }, types), })}.`} /> - {visitResolvedHttpRequestBodyShape(requestBody.shape, { + {visitDiscriminatedUnion(request.body)._visit({ formData: (formData) => - formData.properties.map((p) => ( + formData.fields.map((p) => ( {visitDiscriminatedUnion(p, "type")._visit({ @@ -69,30 +60,35 @@ export const EndpointRequestSection: React.FC = ({ ), - fileArray: (fileArray) => ( + files: (files) => ( ), - bodyProperty: (bodyProperty) => ( + property: (property) => ( ), @@ -101,9 +97,20 @@ export const EndpointRequestSection: React.FC = ({ )), bytes: () => null, - typeShape: (typeShape) => ( + object: (obj) => ( + ), + alias: (alias) => ( + = ({ ); }; -function getDescription( - bodyProperty: ResolvedFormDataRequestProperty.BodyProperty, - types: Record, -): FernDocs.MarkdownText | undefined { - if (bodyProperty.description != null) { - return bodyProperty.description; - } - - return unwrapDescription(bodyProperty.valueShape, types); +function renderTypeShorthandFormDataField( + property: Exclude, +): ReactNode { + return ( + + {property.type} + {property.isOptional ? Optional : Required} + + ); } diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointResponseSection.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointResponseSection.tsx index 3db150e566..f38b11c203 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointResponseSection.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointResponseSection.tsx @@ -1,27 +1,24 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { UnreachableCaseError } from "ts-essentials"; import { useFeatureFlags } from "../../atoms"; -import { FernErrorTag } from "../../components/FernErrorBoundary"; import { Markdown } from "../../mdx/Markdown"; -import { ResolvedExampleEndpointResponseWithSchema } from "../../resolver/SchemaWithExample"; -import { ResolvedResponseBody, ResolvedTypeDefinition, visitResolvedHttpResponseBodyShape } from "../../resolver/types"; +import { renderTypeShorthand } from "../../type-shorthand"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions"; -import { renderDeprecatedTypeShorthand } from "../types/type-shorthand/TypeShorthand"; export declare namespace EndpointResponseSection { export interface Props { - responseBody: ResolvedResponseBody; - exampleResponseBody: ResolvedExampleEndpointResponseWithSchema | undefined; + response: ApiDefinition.HttpResponse; + exampleResponseBody: ApiDefinition.ExampleEndpointResponse | undefined; onHoverProperty?: (path: JsonPropertyPath, opts: { isHovering: boolean }) => void; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + types: Record; } } export const EndpointResponseSection: React.FC = ({ - responseBody, + response, exampleResponseBody, onHoverProperty, anchorIdParts, @@ -35,75 +32,85 @@ export const EndpointResponseSection: React.FC = - {visitResolvedHttpResponseBodyShape(responseBody.shape, { - fileDownload: () => null, - streamingText: () => { - // eslint-disable-next-line no-console - console.error( - "Generated API Reference contains a deprecated streamingText shape. Please upgrade Fern CLI and regenerate the API Reference.", - ); - return ( - - ); - }, - streamCondition: () => { - // eslint-disable-next-line no-console - console.error( - "Generated API Reference contains a deprecated streamCondition shape. Please upgrade Fern CLI and regenerate the API Reference.", - ); - return ( - - ); - }, - stream: (stream) => ( - - ), - typeShape: (typeShape) => ( - - ), - })} +
); }; +interface EndpointResponseSectionContentProps { + body: ApiDefinition.HttpResponseBodyShape; + onHoverProperty: ((path: JsonPropertyPath, opts: { isHovering: boolean }) => void) | undefined; + anchorIdParts: readonly string[]; + slug: FernNavigation.Slug; + types: Record; +} + +function EndpointResponseSectionContent({ + body, + onHoverProperty, + anchorIdParts, + slug, + types, +}: EndpointResponseSectionContentProps) { + switch (body.type) { + case "fileDownload": + case "streamingText": + return null; + case "stream": + return ( + + ); + default: + return ( + + ); + } +} + function getResponseSummary({ - responseBody, + response, exampleResponseBody, types, isAudioFileDownloadSpanSummary, }: { - responseBody: ResolvedResponseBody; - exampleResponseBody: ResolvedExampleEndpointResponseWithSchema | undefined; - types: Record; + response: ApiDefinition.HttpResponse; + exampleResponseBody: ApiDefinition.ExampleEndpointResponse | undefined; + types: Record; isAudioFileDownloadSpanSummary: boolean; }) { - switch (responseBody.shape.type) { + switch (response.body.type) { case "fileDownload": { if (isAudioFileDownloadSpanSummary) { return ( @@ -116,25 +123,9 @@ function getResponseSummary({ } case "streamingText": return "This endpoint sends text responses over a long-lived HTTP connection."; - case "streamCondition": - return "This endpoint returns a stream."; case "stream": - return `This endpoint returns a stream of ${exampleResponseBody?.type === "sse" ? "server sent events" : renderDeprecatedTypeShorthand(responseBody.shape.value, { withArticle: false }, types)}.`; - case "alias": - case "discriminatedUnion": - case "enum": - case "primitive": - case "optional": - case "map": - case "list": - case "literal": - case "object": - case "reference": - case "set": - case "unknown": - case "undiscriminatedUnion": - return `This endpoint returns ${renderDeprecatedTypeShorthand(responseBody.shape, { withArticle: true }, types)}.`; + return `This endpoint returns a stream of ${exampleResponseBody?.type === "sse" ? "server sent events" : renderTypeShorthand(response.body.shape, { withArticle: false }, types)}.`; default: - throw new UnreachableCaseError(responseBody.shape); + return `This endpoint returns ${renderTypeShorthand(response.body, { withArticle: true }, types)}.`; } } diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointStreamingEnabledToggle.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointStreamingEnabledToggle.tsx index 48ce0fb4ba..d629e0249d 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointStreamingEnabledToggle.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointStreamingEnabledToggle.tsx @@ -1,15 +1,14 @@ +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { useAtom, useSetAtom } from "jotai"; -import { MutableRefObject, ReactElement } from "react"; +import { ReactElement } from "react"; import { FERN_STREAM_ATOM, SLUG_ATOM } from "../../atoms"; -import { ResolvedEndpointDefinition } from "../../resolver/types"; import { StreamingEnabledToggle } from "./StreamingEnabledToggle"; export function EndpointStreamingEnabledToggle({ - endpoint, - container, + node, }: { - endpoint: ResolvedEndpointDefinition; - container: MutableRefObject; + node: FernNavigation.EndpointPairNode; + // container: MutableRefObject; }): ReactElement { const [isStream, setIsStream] = useAtom(FERN_STREAM_ATOM); const setSlug = useSetAtom(SLUG_ATOM); @@ -19,13 +18,12 @@ export function EndpointStreamingEnabledToggle({ value={isStream} setValue={(value) => { setIsStream(value); - const selectedEndpoint = value && endpoint.stream != null ? endpoint.stream : endpoint; - setSlug(selectedEndpoint.slug); - setTimeout(() => { - if (container.current != null) { - container.current.scrollIntoView({ behavior: "instant" }); - } - }, 0); + setSlug(value ? node.stream.slug : node.nonStream.slug); + // setTimeout(() => { + // if (container.current != null) { + // container.current.scrollIntoView({ behavior: "instant" }); + // } + // }, 0); }} /> ); diff --git a/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx b/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx index 89d4fa3299..68d9390886 100644 --- a/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx +++ b/packages/ui/app/src/api-reference/endpoints/EndpointUrl.tsx @@ -1,21 +1,19 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { CopyToClipboardButton } from "@fern-ui/components"; import { useBooleanState } from "@fern-ui/react-commons"; import cn from "clsx"; import React, { PropsWithChildren, ReactElement, useImperativeHandle, useMemo, useRef, useState } from "react"; import { noop } from "ts-essentials"; -import { usePlaygroundEnvironment } from "../../atoms"; import { HttpMethodTag } from "../../components/HttpMethodTag"; import { MaybeEnvironmentDropdown } from "../../components/MaybeEnvironmentDropdown"; -import { ResolvedEndpointPathParts } from "../../resolver/types"; -import { buildRequestUrl } from "../../resolver/url"; export declare namespace EndpointUrl { export type Props = React.PropsWithChildren<{ - path: ResolvedEndpointPathParts[]; - method: APIV1Read.HttpMethod; - selectedEnvironment?: APIV1Read.Environment; + path: ApiDefinition.PathPart[]; + method: ApiDefinition.HttpMethod; + baseUrl?: string; + environmentId?: ApiDefinition.EnvironmentId; showEnvironment?: boolean; large?: boolean; className?: string; @@ -24,7 +22,7 @@ export declare namespace EndpointUrl { // TODO: this component needs a refresh export const EndpointUrl = React.forwardRef>(function EndpointUrl( - { path, method, selectedEnvironment, large, className, showEnvironment }, + { path, method, baseUrl, environmentId, large, className, showEnvironment }, parentRef, ) { const ref = useRef(null); @@ -32,11 +30,8 @@ export const EndpointUrl = React.forwardRef ref.current!); const [isHovered, setIsHovered] = useState(false); - const playgroundEnvironment = usePlaygroundEnvironment(); const isEditingEnvironment = useBooleanState(false); - const preParsedUrl = playgroundEnvironment ?? selectedEnvironment?.baseUrl; - const pathParts = useMemo(() => { const elements: (ReactElement | null)[] = []; path.forEach((part, i) => { @@ -64,7 +59,7 @@ export const EndpointUrl = React.forwardRef - :{pathParameter.key} + :{pathParameter.value} , ); }, @@ -82,7 +77,14 @@ export const EndpointUrl = React.forwardRef - + + ApiDefinition.buildRequestUrl({ + baseUrl, + path, + }) + } + > {(onClick) => ( ); }; + +function getPathParameterAsString(pathParameterKey: APIV1Read.PropertyKey): string { + return `:${pathParameterKey}`; +} diff --git a/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx b/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx index aa59478f98..9c787943ba 100644 --- a/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx +++ b/packages/ui/app/src/api-reference/types/discriminated-union/DiscriminatedUnionVariant.tsx @@ -1,13 +1,11 @@ -import { APIV1Read, FernNavigation } from "@fern-api/fdr-sdk"; -import { titleCase } from "@fern-api/ui-core-utils"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import titleCase from "@fern-api/ui-core-utils/titleCase"; import cn from "clsx"; +import { compact } from "lodash-es"; import { useCallback, useMemo } from "react"; import { Markdown } from "../../../mdx/Markdown"; -import { - ResolvedDiscriminatedUnionShapeVariant, - ResolvedTypeDefinition, - dereferenceObjectProperties, -} from "../../../resolver/types"; import { EndpointAvailabilityTag } from "../../endpoints/EndpointAvailabilityTag"; import { TypeDefinitionContext, @@ -18,11 +16,11 @@ import { InternalTypeDefinition } from "../type-definition/InternalTypeDefinitio export declare namespace DiscriminatedUnionVariant { export interface Props { - discriminant: string; - unionVariant: ResolvedDiscriminatedUnionShapeVariant; + discriminant: ApiDefinition.PropertyKey; + unionVariant: ApiDefinition.DiscriminatedUnionVariant; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + types: Record; } } @@ -35,32 +33,17 @@ export const DiscriminatedUnionVariant: React.FC { const { isRootTypeDefinition } = useTypeDefinitionContext(); - const shape = useMemo((): ResolvedTypeDefinition => { - return { - type: "object", - properties: [ - { - key: APIV1Read.PropertyKey(discriminant), - valueShape: { - type: "literal", - value: { - type: "stringLiteral", - value: unionVariant.discriminantValue, - }, - description: undefined, - availability: undefined, - }, - description: undefined, - availability: undefined, - hidden: false, - }, - ...dereferenceObjectProperties(unionVariant, types), - ], - name: undefined, - description: undefined, - availability: undefined, - extends: [], - }; + const [shape, descriptions] = useMemo((): [ApiDefinition.TypeShape.Object_, FernDocs.MarkdownText[]] => { + const unwrapped = ApiDefinition.unwrapDiscriminatedUnionVariant({ discriminant }, unionVariant, types); + return [ + { + type: "object", + properties: unwrapped.properties, + extends: [], + extraProperties: undefined, + }, + unwrapped.descriptions, + ]; }, [discriminant, types, unionVariant]); const contextValue = useTypeDefinitionContext(); @@ -92,10 +75,10 @@ export const DiscriminatedUnionVariant: React.FC )}
- + ; + types: Record; } } @@ -100,12 +101,9 @@ const UnmemoizedObjectPropertyInternal = forwardRef { - if (property.description != null) { - return property.description; - } - - return unwrapDescription(property.valueShape, types); + const descriptions = useMemo(() => { + const unwrapped = ApiDefinition.unwrapReference(property.valueShape, types); + return compact([property.description, ...unwrapped.descriptions]); }, [property.description, property.valueShape, types]); return ( @@ -127,7 +125,7 @@ const UnmemoizedObjectPropertyInternal = forwardRef - {renderDeprecatedTypeShorthandRoot(property.valueShape, types, contextValue.isResponse)} + {renderTypeShorthandRoot(property.valueShape, types, contextValue.isResponse)} {property.availability != null && ( )} @@ -146,7 +144,7 @@ const UnmemoizedObjectPropertyInternal = forwardRef )} - + {hasInternalTypeReference(property.valueShape, types) && !hasInlineEnum(property.valueShape, types) && ( diff --git a/packages/ui/app/src/api-reference/types/type-definition/EnumDefinitionDetails.tsx b/packages/ui/app/src/api-reference/types/type-definition/EnumDefinitionDetails.tsx index bd2b8ad94c..f2f78bc0e1 100644 --- a/packages/ui/app/src/api-reference/types/type-definition/EnumDefinitionDetails.tsx +++ b/packages/ui/app/src/api-reference/types/type-definition/EnumDefinitionDetails.tsx @@ -1,14 +1,12 @@ import { Empty } from "@fern-ui/components"; import { ReactElement, useEffect, useState } from "react"; -export declare namespace TypeDefinitionDetails { - export interface Props { - elements: ReactElement[]; - searchInput: string; - } +export interface EnumDefinitionDetailsProps { + elements: ReactElement[]; + searchInput: string; } -export const EnumDefinitionDetails = ({ elements, searchInput }: TypeDefinitionDetails.Props): ReactElement => { +export const EnumDefinitionDetails = ({ elements, searchInput }: EnumDefinitionDetailsProps): ReactElement => { const [filteredElements, setFilteredElements] = useState([]); useEffect(() => { diff --git a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx index 97befd481b..c2ed8cca98 100644 --- a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx +++ b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinition.tsx @@ -1,124 +1,42 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { FernTooltipProvider } from "@fern-ui/components"; import { useBooleanState, useIsHovering } from "@fern-ui/react-commons"; import cn from "clsx"; -import { ReactElement, memo, useCallback, useMemo } from "react"; +import { memo, useCallback, useMemo } from "react"; import { useRouteListener } from "../../../atoms"; -import { Chip } from "../../../components/Chip"; import { FernErrorBoundary } from "../../../components/FernErrorBoundary"; -import { ResolvedTypeDefinition, dereferenceObjectProperties } from "../../../resolver/types"; import { getAnchorId } from "../../../util/anchor"; import { TypeDefinitionContext, TypeDefinitionContextValue, useTypeDefinitionContext, } from "../context/TypeDefinitionContext"; -import { DiscriminatedUnionVariant } from "../discriminated-union/DiscriminatedUnionVariant"; -import { ObjectProperty } from "../object/ObjectProperty"; -import { UndiscriminatedUnionVariant } from "../undiscriminated-union/UndiscriminatedUnionVariant"; import { EnumTypeDefinition } from "./EnumTypeDefinition"; import { FernCollapseWithButton } from "./FernCollapseWithButton"; import { TypeDefinitionDetails } from "./TypeDefinitionDetails"; +import { createCollapsibleContent } from "./createCollapsibleContent"; export declare namespace InternalTypeDefinition { export interface Props { - typeShape: ResolvedTypeDefinition; + shape: ApiDefinition.TypeShapeOrReference; isCollapsible: boolean; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + types: Record; } } -interface CollapsibleContent { - elements: ReactElement[]; - elementNameSingular: string; - elementNamePlural: string; - separatorText?: string; -} - export const InternalTypeDefinition = memo(function InternalTypeDefinition({ - typeShape, + shape, isCollapsible, anchorIdParts, slug, types, }) { const collapsableContent = useMemo( - () => - visitDiscriminatedUnion(typeShape, "type")._visit({ - object: (object) => ({ - elements: dereferenceObjectProperties(object, types).map((property) => ( - - )), - elementNameSingular: "property", - elementNamePlural: "properties", - }), - undiscriminatedUnion: (union) => ({ - elements: union.variants.map((variant, variantIdx) => ( - - )), - elementNameSingular: "variant", - elementNamePlural: "variants", - separatorText: "OR", - }), - discriminatedUnion: (union) => ({ - elements: union.variants.map((variant) => ( - - )), - elementNameSingular: "variant", - elementNamePlural: "variants", - separatorText: "OR", - }), - enum: (enum_) => ({ - elements: enum_.values.map((enumValue) => ( - - // - )), - elementNameSingular: "enum value", - elementNamePlural: "enum values", - }), - literal: (literal) => ({ - elements: [ - visitDiscriminatedUnion(literal.value, "type")._visit({ - stringLiteral: (value) => , - booleanLiteral: (value) => ( - - ), - _other: () => {""}, - }), - ], - elementNameSingular: "literal", - elementNamePlural: "literals", - }), - alias: () => undefined, - unknown: () => undefined, - _other: () => undefined, - }), - [typeShape, types, anchorIdParts, slug], + () => createCollapsibleContent(shape, types, anchorIdParts, slug), + [shape, types, anchorIdParts, slug], ); const anchorIdSoFar = getAnchorId(anchorIdParts); @@ -148,9 +66,9 @@ export const InternalTypeDefinition = memo(functio if (!isCollapsible) { // TODO: (rohin) Refactor this - if (collapsableContent.elementNameSingular === "literal") { - return null; - } + // if (collapsableContent.elementNameSingular === "literal") { + // return null; + // } return ( diff --git a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.module.scss b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.module.scss deleted file mode 100644 index 6b5f6d9680..0000000000 --- a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.module.scss +++ /dev/null @@ -1,12 +0,0 @@ -.showPropertiesButton { - display: flex; - flex-direction: column; - min-width: 0; - - &::before { - content: attr(data-show-text); - display: block; - height: 0; - visibility: hidden; - } -} diff --git a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx b/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx deleted file mode 100644 index 16af6b16dd..0000000000 --- a/packages/ui/app/src/api-reference/types/type-definition/InternalTypeDefinitionError.tsx +++ /dev/null @@ -1,183 +0,0 @@ -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { useBooleanState, useIsHovering } from "@fern-ui/react-commons"; -import React, { ReactElement, useCallback, useMemo } from "react"; -import { useRouteListener } from "../../../atoms"; -import { ResolvedTypeDefinition, dereferenceObjectProperties } from "../../../resolver/types"; -import { getAnchorId } from "../../../util/anchor"; -import { - TypeDefinitionContext, - TypeDefinitionContextValue, - useTypeDefinitionContext, -} from "../context/TypeDefinitionContext"; -import { DiscriminatedUnionVariant } from "../discriminated-union/DiscriminatedUnionVariant"; -import { EnumValue } from "../enum/EnumValue"; -import { ObjectProperty } from "../object/ObjectProperty"; -import { UndiscriminatedUnionVariant } from "../undiscriminated-union/UndiscriminatedUnionVariant"; -import { FernCollapseWithButton } from "./FernCollapseWithButton"; -import { TypeDefinitionDetails } from "./TypeDefinitionDetails"; - -export declare namespace InternalTypeDefinitionError { - export interface Props { - typeShape: ResolvedTypeDefinition; - isCollapsible: boolean; - anchorIdParts: readonly string[]; - slug: FernNavigation.Slug; - types: Record; - } -} - -interface CollapsibleContent { - elements: ReactElement[]; - elementNameSingular: string; - elementNamePlural: string; - separatorText?: string; -} - -export const InternalTypeDefinitionError: React.FC = ({ - typeShape, - isCollapsible, - anchorIdParts, - slug, - types, -}) => { - const collapsableContent = useMemo( - () => - visitDiscriminatedUnion(typeShape, "type")._visit({ - object: (object) => ({ - elements: dereferenceObjectProperties(object, types).map((property) => ( - - )), - elementNameSingular: "property", - elementNamePlural: "properties", - }), - undiscriminatedUnion: (union) => ({ - elements: union.variants.map((variant, variantIdx) => ( - - )), - elementNameSingular: "variant", - elementNamePlural: "variants", - separatorText: "OR", - }), - discriminatedUnion: (union) => ({ - elements: union.variants.map((variant) => ( - - )), - elementNameSingular: "variant", - elementNamePlural: "variants", - separatorText: "OR", - }), - enum: (enum_) => ({ - elements: enum_.values.map((enumValue) => ( - - )), - elementNameSingular: "enum value", - elementNamePlural: "enum values", - }), - literal: (literal) => ({ - elements: [ - `${value.value}`, - booleanLiteral: (value) => `${value.value ? "true" : "false"}`, - _other: () => "", - }), - description: undefined, - availability: undefined, - }} - />, - ], - elementNameSingular: "literal", - elementNamePlural: "literals", - }), - _other: () => undefined, - alias: () => undefined, - unknown: () => undefined, - }), - [typeShape, types, anchorIdParts, slug], - ); - - const anchorIdSoFar = getAnchorId(anchorIdParts); - const { value: isCollapsed, toggleValue: toggleIsCollapsed, setValue: setCollapsed } = useBooleanState(true); - - useRouteListener(slug, (anchor) => { - const isActive = anchor?.startsWith(anchorIdSoFar + ".") ?? false; - if (isActive) { - setCollapsed(false); - } - }); - - const { isHovering, ...containerCallbacks } = useIsHovering(); - - const contextValue = useTypeDefinitionContext(); - const collapsibleContentContextValue = useCallback( - (): TypeDefinitionContextValue => ({ - ...contextValue, - isRootTypeDefinition: false, - }), - [contextValue], - ); - - if (collapsableContent == null || collapsableContent.elements.length === 0) { - return null; - } - - if (!isCollapsible) { - return ( - - ); - } - - const showText = - collapsableContent.elements.length === 1 - ? `Show ${collapsableContent.elementNameSingular}` - : `Show ${collapsableContent.elements.length} ${collapsableContent.elementNamePlural}`; - const hideText = - collapsableContent.elements.length === 1 - ? `Hide ${collapsableContent.elementNameSingular}` - : `Hide ${collapsableContent.elements.length} ${collapsableContent.elementNamePlural}`; - - return ( - - - - - - ); -}; diff --git a/packages/ui/app/src/api-reference/types/type-definition/createCollapsibleContent.tsx b/packages/ui/app/src/api-reference/types/type-definition/createCollapsibleContent.tsx new file mode 100644 index 0000000000..284ed649fb --- /dev/null +++ b/packages/ui/app/src/api-reference/types/type-definition/createCollapsibleContent.tsx @@ -0,0 +1,97 @@ +import { + TypeDefinition, + TypeId, + TypeShapeOrReference, + unwrapObjectType, + unwrapReference, +} from "@fern-api/fdr-sdk/api-definition"; +import { Slug } from "@fern-api/fdr-sdk/navigation"; +import { ReactElement } from "react"; +import { Chip } from "../../../components/Chip"; +import { DiscriminatedUnionVariant } from "../discriminated-union/DiscriminatedUnionVariant"; +import { ObjectProperty } from "../object/ObjectProperty"; +import { UndiscriminatedUnionVariant } from "../undiscriminated-union/UndiscriminatedUnionVariant"; + +interface CollapsibleContent { + elements: ReactElement[]; + elementNameSingular: string; + elementNamePlural: string; + separatorText?: string; +} + +export function createCollapsibleContent( + shape: TypeShapeOrReference, + types: Record, + anchorIdParts: readonly string[], + slug: Slug, +): CollapsibleContent | undefined { + const unwrapped = unwrapReference(shape, types); + + switch (unwrapped.shape.type) { + case "discriminatedUnion": { + const union = unwrapped.shape; + return { + elements: union.variants.map((variant) => ( + + )), + elementNameSingular: "variant", + elementNamePlural: "variants", + separatorText: "OR", + }; + } + case "enum": { + return { + elements: unwrapped.shape.values.map((enumValue) => ( + + // + )), + elementNameSingular: "enum value", + elementNamePlural: "enum values", + }; + } + case "object": { + const { properties } = unwrapObjectType(unwrapped.shape, types); + return { + elements: properties.map((property) => ( + + )), + elementNameSingular: "property", + elementNamePlural: "properties", + }; + } + case "undiscriminatedUnion": { + return { + elements: unwrapped.shape.variants.map((variant, variantIdx) => ( + + )), + elementNameSingular: "variant", + elementNamePlural: "variants", + separatorText: "OR", + }; + } + default: + return undefined; + } +} diff --git a/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx b/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx index 7b12b8590e..ccc943b44e 100644 --- a/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx +++ b/packages/ui/app/src/api-reference/types/type-reference/InternalTypeReferenceDefinitions.tsx @@ -1,80 +1,63 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import React, { ReactElement } from "react"; -import { ResolvedTypeDefinition, ResolvedTypeShape, unwrapReference } from "../../../resolver/types"; +import React from "react"; +import { UnreachableCaseError } from "ts-essentials"; import { InternalTypeDefinition } from "../type-definition/InternalTypeDefinition"; -import { InternalTypeDefinitionError } from "../type-definition/InternalTypeDefinitionError"; import { ListTypeContextProvider } from "./ListTypeContextProvider"; import { MapTypeContextProvider } from "./MapTypeContextProvider"; export declare namespace InternalTypeReferenceDefinitions { export interface Props { - shape: ResolvedTypeShape; applyErrorStyles: boolean; isCollapsible: boolean; className?: string; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + shape: ApiDefinition.TypeShapeOrReference; + types: Record; isResponse?: boolean; } } // HACHACK: this is a hack to render inlined enums above the description -export function hasInlineEnum(shape: ResolvedTypeShape, types: Record): boolean { - return visitDiscriminatedUnion(shape, "type")._visit({ +export function hasInlineEnum( + shape: ApiDefinition.TypeShapeOrReference, + types: Record, +): boolean { + const unwrapped = ApiDefinition.unwrapReference(shape, types); + return visitDiscriminatedUnion(unwrapped.shape)._visit({ object: () => false, enum: (value) => value.values.length < 6, undiscriminatedUnion: () => false, discriminatedUnion: () => false, - list: (value) => hasInlineEnum(value.shape, types), - set: (value) => hasInlineEnum(value.shape, types), - optional: (optional) => hasInlineEnum(optional.shape, types), + list: (value) => hasInlineEnum(value.itemShape, types), + set: (value) => hasInlineEnum(value.itemShape, types), map: (map) => hasInlineEnum(map.keyShape, types) || hasInlineEnum(map.valueShape, types), primitive: () => false, literal: () => true, unknown: () => false, _other: () => false, - reference: (reference) => - hasInlineEnum( - types[reference.typeId] ?? { - type: "unknown", - description: undefined, - availability: undefined, - }, - types, - ), - alias: (alias) => hasInlineEnum(alias.shape, types), }); } export function hasInternalTypeReference( - shape: ResolvedTypeShape, - types: Record, + shape: ApiDefinition.TypeShapeOrReference, + types: Record, ): boolean { - return visitDiscriminatedUnion(shape, "type")._visit({ + const unwrapped = ApiDefinition.unwrapReference(shape, types); + return visitDiscriminatedUnion(unwrapped.shape)._visit({ object: () => true, enum: () => true, undiscriminatedUnion: () => true, discriminatedUnion: () => true, list: () => true, set: () => true, - optional: (optional) => hasInternalTypeReference(optional.shape, types), map: (map) => hasInternalTypeReference(map.keyShape, types) || hasInternalTypeReference(map.valueShape, types), primitive: () => false, literal: () => true, unknown: () => false, _other: () => false, - reference: (reference) => - hasInternalTypeReference( - types[reference.typeId] ?? { - type: "unknown", - description: undefined, - availability: undefined, - }, - types, - ), - alias: (alias) => hasInternalTypeReference(alias.shape, types), }); } @@ -87,126 +70,78 @@ export const InternalTypeReferenceDefinitions: React.FC { - const InternalShapeRenderer = applyErrorStyles ? InternalTypeDefinitionError : InternalTypeDefinition; - return visitDiscriminatedUnion(unwrapReference(shape, types), "type")._visit({ - object: (object) => ( - - ), - enum: (enum_) => ( - - ), - undiscriminatedUnion: (undiscriminatedUnion) => ( - - ), - discriminatedUnion: (discriminatedUnion) => ( - - ), - - list: (list) => ( - - - - ), - set: (set) => ( - - - - ), - optional: (optional) => ( - - ), - map: (map) => ( - - - - - ), - primitive: () => null, - literal: (literal) => ( - - ), - unknown: () => null, - _other: () => null, - alias: (alias) => ( - - ), - }); + ); + } + case "list": + case "set": { + return ( + + + + ); + } + case "map": { + return ( + + + + + ); + } + case "literal": + case "unknown": + return null; + default: + throw new UnreachableCaseError(unwrapped.shape); + } }; diff --git a/packages/ui/app/src/api-reference/types/type-reference/ListTypeContextProvider.tsx b/packages/ui/app/src/api-reference/types/type-reference/ListTypeContextProvider.tsx index 7f506c5d5e..62ed625b90 100644 --- a/packages/ui/app/src/api-reference/types/type-reference/ListTypeContextProvider.tsx +++ b/packages/ui/app/src/api-reference/types/type-reference/ListTypeContextProvider.tsx @@ -10,12 +10,7 @@ export const ListTypeContextProvider: React.FC = ({ children const newContextValue = useCallback( (): TypeDefinitionContextValue => ({ ...contextValue, - jsonPropertyPath: [ - ...contextValue.jsonPropertyPath, - { - type: "listItem", - }, - ], + jsonPropertyPath: [...contextValue.jsonPropertyPath, { type: "listItem" }], }), [contextValue], ); diff --git a/packages/ui/app/src/api-reference/types/type-reference/TypeReferenceDefinitions.tsx b/packages/ui/app/src/api-reference/types/type-reference/TypeReferenceDefinitions.tsx index a771f1d8d6..89449f0dd7 100644 --- a/packages/ui/app/src/api-reference/types/type-reference/TypeReferenceDefinitions.tsx +++ b/packages/ui/app/src/api-reference/types/type-reference/TypeReferenceDefinitions.tsx @@ -1,21 +1,21 @@ +import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { memo } from "react"; import { FernErrorBoundary } from "../../../components/FernErrorBoundary"; -import { ResolvedTypeDefinition, ResolvedTypeShape } from "../../../resolver/types"; import { JsonPropertyPath } from "../../examples/JsonPropertyPath"; import { TypeDefinitionContextProvider } from "../context/TypeDefinitionContextProvider"; import { InternalTypeReferenceDefinitions } from "./InternalTypeReferenceDefinitions"; export declare namespace TypeReferenceDefinitions { export interface Props { - shape: ResolvedTypeShape; applyErrorStyles: boolean; isCollapsible: boolean; onHoverProperty?: (path: JsonPropertyPath, opts: { isHovering: boolean }) => void; anchorIdParts: readonly string[]; className?: string; slug: FernNavigation.Slug; - types: Record; + shape: ApiDefinition.TypeShapeOrReference; + types: Record; isResponse?: boolean; } } diff --git a/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx b/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx deleted file mode 100644 index e578ad3769..0000000000 --- a/packages/ui/app/src/api-reference/types/type-shorthand/TypeShorthand.tsx +++ /dev/null @@ -1,186 +0,0 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { uniq } from "lodash-es"; -import { ReactNode } from "react"; -import { - DereferencedTypeShape, - ResolvedFormDataRequestProperty, - ResolvedTypeDefinition, - ResolvedTypeShape, - ResolvedUnknownTypeShape, - unwrapAlias, - unwrapOptional, - unwrapReference, -} from "../../../resolver/types"; - -export interface TypeShorthandOptions { - plural?: boolean; - withArticle?: boolean; - nullable?: boolean; // determines whether to render "Optional" or "Nullable" -} - -/** - * @deprecated - */ -export function renderDeprecatedTypeShorthandRoot( - shape: ResolvedTypeShape, - types: Record, - isResponse: boolean = false, -): ReactNode { - const typeShorthand = renderDeprecatedTypeShorthand(unwrapOptional(shape, types), { nullable: isResponse }, types); - const unaliasedShape = unwrapAlias(shape, types); - const defaultsTo = renderDefaultsTo(unaliasedShape); - return ( - - {typeShorthand} - {unaliasedShape.type === "optional" ? ( - Optional - ) : !isResponse ? ( - Required - ) : null} - {defaultsTo != null && ( - - {"Defaults to "} - {defaultsTo} - - )} - - ); -} - -/** - * @deprecated - */ -export function renderDeprecatedTypeShorthandFormDataProperty( - property: Exclude, -): ReactNode { - return ( - - {property.type === "file" ? "file" : property.type === "fileArray" ? "files" : "unknown"} - {property.isOptional ? Optional : Required} - - ); -} - -function renderDefaultsTo(shape: DereferencedTypeShape): string | undefined { - if (shape.type !== "optional") { - return undefined; - } - - if (shape.shape.type === "primitive") { - return renderDefaultToPrimitive(shape.shape.value); - } - - if (shape.shape.type === "enum") { - return shape.shape.default; - } - - return undefined; -} - -function renderDefaultToPrimitive(shape: APIV1Read.PrimitiveType): string | undefined { - return visitDiscriminatedUnion(shape, "type")._visit({ - string: (value) => value.default, - integer: (value) => value.default?.toString(), - double: (value) => value.default?.toString(), - uint: () => undefined, - uint64: () => undefined, - boolean: (value) => value.default?.toString(), - long: (value) => value.default?.toString(), - datetime: (datetime) => datetime.default, - uuid: (uuid) => uuid.default, - base64: (base64) => base64.default, - date: (value) => value.default, - bigInteger: (value) => value.default, - _other: () => undefined, - }); -} - -/** - * @deprecated - */ -export function renderDeprecatedTypeShorthand( - shape: ResolvedTypeShape, - { plural = false, withArticle = false, nullable = false }: TypeShorthandOptions = { - plural: false, - withArticle: false, - nullable: false, - }, - types: Record, -): string { - const maybeWithArticle = (article: string, stringWithoutArticle: string) => - withArticle ? `${article} ${stringWithoutArticle}` : stringWithoutArticle; - return visitDiscriminatedUnion(unwrapReference(shape, types), "type")._visit({ - // primitives - primitive: (primitive) => - visitDiscriminatedUnion(primitive.value, "type")._visit({ - string: () => (plural ? "strings" : maybeWithArticle("a", "string")), - integer: () => (plural ? "integers" : maybeWithArticle("an", "integer")), - uint: () => (plural ? "uints" : maybeWithArticle("a", "uint")), - uint64: () => (plural ? "uint64s" : maybeWithArticle("a", "uint64")), - double: () => (plural ? "doubles" : maybeWithArticle("a", "double")), - long: () => (plural ? "longs" : maybeWithArticle("a", "long")), - boolean: () => (plural ? "booleans" : maybeWithArticle("a", "boolean")), - datetime: () => (plural ? "datetimes" : maybeWithArticle("a", "datetime")), - uuid: () => (plural ? "UUIDs" : maybeWithArticle("a", "UUID")), - base64: () => (plural ? "Base64 strings" : maybeWithArticle("a", "Base64 string")), - date: () => (plural ? "dates" : maybeWithArticle("a", "date")), - bigInteger: () => (plural ? "big integers" : maybeWithArticle("a", "big integer")), - _other: () => "", - }), - - // referenced shapes - object: () => (plural ? "objects" : maybeWithArticle("an", "object")), - undiscriminatedUnion: (union) => { - return uniq( - union.variants.map((variant) => - renderDeprecatedTypeShorthand(variant.shape, { plural, withArticle }, types), - ), - ).join(" or "); - }, - discriminatedUnion: () => (plural ? "objects" : maybeWithArticle("an", "object")), - enum: (enumValue) => { - // if there are only 1 or 2 values, we can list them like literals (e.g. "apple" or "banana") - if (enumValue.values.length > 0 && enumValue.values.length < 3) { - return enumValue.values.map((value) => `"${value.value}"`).join(" or "); - } - return plural ? "enums" : maybeWithArticle("an", "enum"); - }, - - // containing shapes - optional: (optional) => - `${maybeWithArticle("an", nullable ? "optional" : "optional")} ${renderDeprecatedTypeShorthand(optional.shape, { plural }, types)}`, - list: (list) => - `${plural ? "lists of" : maybeWithArticle("a", "list of")} ${renderDeprecatedTypeShorthand( - list.shape, - { plural: true }, - types, - )}`, - set: (set) => - `${plural ? "sets of" : maybeWithArticle("a", "set of")} ${renderDeprecatedTypeShorthand( - set.shape, - { plural: true }, - types, - )}`, - map: (map) => - `${plural ? "maps from" : maybeWithArticle("a", "map from")} ${renderDeprecatedTypeShorthand( - map.keyShape, - { plural: true }, - types, - )} to ${renderDeprecatedTypeShorthand(map.valueShape, { plural: true }, types)}`, - - // literals - literal: (literal) => - visitDiscriminatedUnion(literal.value, "type")._visit({ - stringLiteral: ({ value }) => `"${value}"`, - booleanLiteral: ({ value }) => value.toString(), - _other: () => "", - }), - // other - unknown: (unknown: ResolvedUnknownTypeShape) => { - return unknown.displayName ?? "any"; - }, - _other: () => "", - alias: (reference) => renderDeprecatedTypeShorthand(reference.shape, { plural, withArticle }, types), - }); -} diff --git a/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx b/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx index e982d9d837..41017281c0 100644 --- a/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx +++ b/packages/ui/app/src/api-reference/types/undiscriminated-union/UndiscriminatedUnionVariant.tsx @@ -1,14 +1,10 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import cn from "clsx"; import { ReactElement, useCallback } from "react"; import { Markdown } from "../../../mdx/Markdown"; -import { - ResolvedTypeDefinition, - ResolvedTypeShape, - ResolvedUndiscriminatedUnionShapeVariant, - unwrapReference, -} from "../../../resolver/types"; +import { renderTypeShorthand } from "../../../type-shorthand"; import { EndpointAvailabilityTag } from "../../endpoints/EndpointAvailabilityTag"; import { TypeDefinitionContext, @@ -16,7 +12,6 @@ import { useTypeDefinitionContext, } from "../context/TypeDefinitionContext"; import { InternalTypeReferenceDefinitions } from "../type-reference/InternalTypeReferenceDefinitions"; -import { renderDeprecatedTypeShorthand } from "../type-shorthand/TypeShorthand"; type IconInfo = { content: string; @@ -24,10 +19,10 @@ type IconInfo = { }; function getIconInfoForTypeReference( - typeRef: ResolvedTypeShape, - types: Record, + typeRef: ApiDefinition.TypeShapeOrReference, + types: Record, ): IconInfo | null { - return visitDiscriminatedUnion(unwrapReference(typeRef, types), "type")._visit({ + return visitDiscriminatedUnion(ApiDefinition.unwrapReference(typeRef, types).shape)._visit({ primitive: (primitive) => visitDiscriminatedUnion(primitive.value, "type")._visit({ string: () => ({ content: "abc", size: 6 }), @@ -49,19 +44,17 @@ function getIconInfoForTypeReference( undiscriminatedUnion: () => null, discriminatedUnion: () => null, enum: () => null, - optional: (optional) => getIconInfoForTypeReference(optional.shape, types), - list: (list) => getIconInfoForTypeReference(list.shape, types), - set: (set) => getIconInfoForTypeReference(set.shape, types), + list: (list) => getIconInfoForTypeReference(list.itemShape, types), + set: (set) => getIconInfoForTypeReference(set.itemShape, types), map: () => ({ content: "{}", size: 9 }), unknown: () => ({ content: "{}", size: 6 }), _other: () => null, - alias: (reference) => getIconInfoForTypeReference(reference.shape, types), }); } function getIconForTypeReference( - typeRef: ResolvedTypeShape, - types: Record, + typeRef: ApiDefinition.TypeShapeOrReference, + types: Record, ): ReactElement | null { const info = getIconInfoForTypeReference(typeRef, types); if (info == null) { @@ -80,12 +73,12 @@ function getIconForTypeReference( export declare namespace UndiscriminatedUnionVariant { export interface Props { - unionVariant: ResolvedUndiscriminatedUnionShapeVariant; + unionVariant: ApiDefinition.UndiscriminatedUnionVariant; anchorIdParts: readonly string[]; applyErrorStyles: boolean; slug: FernNavigation.Slug; idx: number; - types: Record; + types: Record; } } @@ -119,11 +112,7 @@ export const UndiscriminatedUnionVariant: React.FC{unionVariant.displayName} )} - {renderDeprecatedTypeShorthand( - unionVariant.shape, - { nullable: contextValue.isResponse }, - types, - )} + {renderTypeShorthand(unionVariant.shape, { nullable: contextValue.isResponse }, types)} {unionVariant.availability != null && ( diff --git a/packages/ui/app/src/api-reference/web-socket/WebSocket.tsx b/packages/ui/app/src/api-reference/web-socket/WebSocket.tsx index f16310be4d..af04c4534e 100644 --- a/packages/ui/app/src/api-reference/web-socket/WebSocket.tsx +++ b/packages/ui/app/src/api-reference/web-socket/WebSocket.tsx @@ -1,28 +1,17 @@ +import type { WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { CopyToClipboardButton, FernScrollArea } from "@fern-ui/components"; import cn from "clsx"; import { ArrowDown, ArrowUp, Wifi } from "iconoir-react"; import { Children, FC, HTMLAttributes, ReactNode, useMemo, useRef } from "react"; -import { useNavigationNodes, usePlaygroundEnvironment } from "../../atoms"; -import { useSelectedEnvironmentId } from "../../atoms/environment"; import { FernAnchor } from "../../components/FernAnchor"; import { FernBreadcrumbs } from "../../components/FernBreadcrumbs"; import { useHref } from "../../hooks/useHref"; -import { useShouldLazyRender } from "../../hooks/useShouldLazyRender"; import { Markdown } from "../../mdx/Markdown"; import { PlaygroundButton } from "../../playground/PlaygroundButton"; -import { - ResolvedTypeDefinition, - ResolvedUndiscriminatedUnionShape, - ResolvedUndiscriminatedUnionShapeVariant, - ResolvedWebSocketChannel, - ResolvedWebSocketMessage, - getParameterDescription, - resolveEnvironment, - stringifyResolvedEndpointPathParts, - unwrapReference, -} from "../../resolver/types"; +import { usePlaygroundBaseUrl } from "../../playground/utils/select-environment"; import { getSlugFromChildren } from "../../util/getSlugFromText"; import { EndpointAvailabilityTag } from "../endpoints/EndpointAvailabilityTag"; import { EndpointParameter } from "../endpoints/EndpointParameter"; @@ -34,68 +23,69 @@ import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceD import { useApiPageCenterElement } from "../useApiPageCenterElement"; import { WebSocketMessage, WebSocketMessages } from "./WebSocketMessages"; -export declare namespace WebSocket { - export interface Props { - websocket: ResolvedWebSocketChannel; - isLastInApi: boolean; - api: string; - types: Record; - } +export interface WebSocketProps { + node: FernNavigation.WebSocketNode; + apiDefinition: ApiDefinition.ApiDefinition; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + last?: boolean; } -export const WebSocket: FC = (props) => { - if (useShouldLazyRender(props.websocket.slug)) { +export const WebSocket: FC = (props) => { + const context = useMemo( + () => ApiDefinition.createWebSocketContext(props.node, props.apiDefinition), + [props.node, props.apiDefinition], + ); + + if (!context) { + // eslint-disable-next-line no-console + console.error("Could not create context for websocket", props.node); return null; } - return ; + return ; }; -const WebhookContent: FC = ({ websocket, isLastInApi, types }) => { - const nodes = useNavigationNodes(); - const selectedEnvironmentId = useSelectedEnvironmentId(); - const maybeNode = nodes.get(websocket.nodeId); - const node = maybeNode != null && FernNavigation.isApiLeaf(maybeNode) ? maybeNode : undefined; - const playgroundEnvironment = usePlaygroundEnvironment(); +interface WebhookContentProps { + context: WebSocketContext; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + last?: boolean; +} + +const WebhookContent: FC = ({ context, breadcrumb, last }) => { + const { channel, node, types, globalHeaders } = context; const ref = useRef(null); - useApiPageCenterElement(ref, websocket.slug); + useApiPageCenterElement(ref, node.slug); const publishMessages = useMemo( - () => websocket.messages.filter((message) => message.origin === APIV1Read.WebSocketMessageOrigin.Client), - [websocket.messages], + () => channel.messages.filter((message) => message.origin === APIV1Read.WebSocketMessageOrigin.Client), + [channel.messages], ); const subscribeMessages = useMemo( - () => websocket.messages.filter((message) => message.origin === APIV1Read.WebSocketMessageOrigin.Server), - [websocket.messages], + () => channel.messages.filter((message) => message.origin === APIV1Read.WebSocketMessageOrigin.Server), + [channel.messages], ); - const publishMessageShape = useMemo((): ResolvedUndiscriminatedUnionShape => { + const publishMessageShape = useMemo((): ApiDefinition.TypeShape.UndiscriminatedUnion => { return { type: "undiscriminatedUnion", variants: flattenWebSocketShape(publishMessages, types), - name: undefined, - description: undefined, - availability: undefined, }; }, [publishMessages, types]); - const subscribeMessageShape = useMemo((): ResolvedUndiscriminatedUnionShape => { + const subscribeMessageShape = useMemo((): ApiDefinition.TypeShape.UndiscriminatedUnion => { return { type: "undiscriminatedUnion", variants: flattenWebSocketShape(subscribeMessages, types), - name: undefined, - description: undefined, - availability: undefined, }; }, [subscribeMessages, types]); - const example = websocket.examples[0]; + const example = channel.examples?.[0]; const exampleMessages = useMemo((): WebSocketMessage[] => { return ( - example?.messages.map((message) => { - const messageDefinition = websocket.messages.find((m) => m.type === message.type); + example?.messages?.map((message) => { + const messageDefinition = channel.messages.find((m) => m.type === message.type); return { type: message.type, data: message.body, @@ -104,24 +94,30 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types }) }; }) ?? [] ); - }, [example?.messages, websocket.messages]); + }, [example?.messages, channel.messages]); + + const [baseUrl, envId] = usePlaygroundBaseUrl(channel); - const headers = websocket.headers.filter((header) => !header.hidden); + // TODO: combine with auth headers like in Endpoint.tsx + const headers = useMemo( + () => [...globalHeaders, ...(channel.requestHeaders ?? [])], + [channel.requestHeaders, globalHeaders], + ); return ( -
+
- +
-

{websocket.title}

- {websocket.availability != null && ( +

{node.title}

+ {channel.availability != null && ( - + )}
@@ -129,7 +125,7 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types })
- + = ({ websocket, isLastInApi, types }) } - slug={websocket.slug} + slug={node.slug} headingElement={
- `${playgroundEnvironment ?? resolveEnvironment(websocket, selectedEnvironmentId)?.baseUrl}${websocket.path.map((path) => (path.type === "literal" ? path.value : `:${path.key}`)).join("/")}` + `${baseUrl ?? ""}${ApiDefinition.toColonEndpointPathLiteral(channel.path)}` } />
} > - {headers.length > 0 && ( + {headers && headers.length > 0 && (
{headers.map((parameter) => ( @@ -174,8 +171,12 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types }) name={parameter.key} shape={parameter.valueShape} anchorIdParts={["request", "headers", parameter.key]} - slug={websocket.slug} - description={getParameterDescription(parameter, types)} + slug={node.slug} + description={parameter.description} + additionalDescriptions={ + ApiDefinition.unwrapReference(parameter.valueShape, types) + .descriptions + } availability={parameter.availability} types={types} /> @@ -184,22 +185,26 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types })
)} - {websocket.pathParameters.length > 0 && ( + {channel.pathParameters && channel.pathParameters.length > 0 && (
- {websocket.pathParameters.map((parameter) => ( + {channel.pathParameters.map((parameter) => (
@@ -208,22 +213,26 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types })
)} - {websocket.queryParameters.length > 0 && ( + {channel.queryParameters && channel.queryParameters.length > 0 && (
- {websocket.queryParameters.map((parameter) => ( + {channel.queryParameters.map((parameter) => (
@@ -245,7 +254,7 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types }) } anchorIdParts={["send"]} - slug={websocket.slug} + slug={node.slug} headerType="h2" > {/* = ({ websocket, isLastInApi, types }) shape={publishMessageShape} isCollapsible={false} anchorIdParts={["send"]} - slug={websocket.slug} + slug={node.slug} applyErrorStyles={false} types={types} /> @@ -277,7 +286,7 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types }) } anchorIdParts={["receive"]} - slug={websocket.slug} + slug={node.slug} headerType="h2" > {/* = ({ websocket, isLastInApi, types }) shape={subscribeMessageShape} isCollapsible={false} anchorIdParts={["receive"]} - slug={websocket.slug} + slug={node.slug} applyErrorStyles={false} types={types} /> @@ -315,7 +324,7 @@ const WebhookContent: FC = ({ websocket, isLastInApi, types }) URL - {`${playgroundEnvironment ?? resolveEnvironment(websocket, selectedEnvironmentId)?.baseUrl ?? ""}${example?.path ?? stringifyResolvedEndpointPathParts(websocket.path)}`} + {`${baseUrl ?? ""}${example?.path ?? ApiDefinition.toColonEndpointPathLiteral(channel.path)}`} @@ -375,22 +384,21 @@ function CardedSection({ ); } function flattenWebSocketShape( - subscribeMessages: ResolvedWebSocketMessage[], - types: Record, + subscribeMessages: ApiDefinition.WebSocketMessage[], + types: Record, ) { - return subscribeMessages - .map((message) => ({ ...message, body: unwrapReference(message.body, types) })) - .flatMap((message): ResolvedUndiscriminatedUnionShapeVariant[] => { - if (message.body.type === "undiscriminatedUnion") { - return message.body.variants; - } - return [ - { - description: message.description, - availability: message.availability, - displayName: message.displayName ?? message.type, - shape: message.body, - }, - ]; - }); + return subscribeMessages.flatMap((message): ApiDefinition.UndiscriminatedUnionVariant[] => { + const unwrapped = ApiDefinition.unwrapReference(message.body, types); + if (unwrapped.shape.type === "undiscriminatedUnion") { + return unwrapped.shape.variants; + } + return [ + { + description: message.description, + availability: message.availability, + displayName: message.displayName ?? message.type, + shape: message.body, + }, + ]; + }); } diff --git a/packages/ui/app/src/api-reference/webhooks/Webhook.tsx b/packages/ui/app/src/api-reference/webhooks/Webhook.tsx index 9d2c19eeb9..4aa25eb111 100644 --- a/packages/ui/app/src/api-reference/webhooks/Webhook.tsx +++ b/packages/ui/app/src/api-reference/webhooks/Webhook.tsx @@ -1,25 +1,30 @@ -import { useShouldLazyRender } from "../../hooks/useShouldLazyRender"; -import { ResolvedTypeDefinition, ResolvedWebhookDefinition } from "../../resolver/types"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { useMemo } from "react"; import { WebhookContent } from "./WebhookContent"; import { WebhookContextProvider } from "./webhook-context/WebhookContextProvider"; export declare namespace Webhook { export interface Props { - webhook: ResolvedWebhookDefinition; - isLastInApi: boolean; - types: Record; + node: FernNavigation.WebhookNode; + apiDefinition: ApiDefinition.ApiDefinition; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + last?: boolean; } } -export const Webhook: React.FC = ({ webhook, isLastInApi, types }) => { - // TODO: merge this with the Endpoint component - if (useShouldLazyRender(webhook.slug)) { +export const Webhook: React.FC = ({ node, apiDefinition, breadcrumb, last }) => { + const context = useMemo(() => ApiDefinition.createWebhookContext(node, apiDefinition), [node, apiDefinition]); + + if (!context) { + // eslint-disable-next-line no-console + console.error("Could not create context for webhook", node); return null; } return ( - + ); }; diff --git a/packages/ui/app/src/api-reference/webhooks/WebhookContent.tsx b/packages/ui/app/src/api-reference/webhooks/WebhookContent.tsx index 106e9e4d11..068523955f 100644 --- a/packages/ui/app/src/api-reference/webhooks/WebhookContent.tsx +++ b/packages/ui/app/src/api-reference/webhooks/WebhookContent.tsx @@ -1,10 +1,10 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import cn from "clsx"; -import dynamic from "next/dynamic"; import { memo, useCallback, useRef } from "react"; import { FernBreadcrumbs } from "../../components/FernBreadcrumbs"; import { useHref } from "../../hooks/useHref"; import { Markdown } from "../../mdx/Markdown"; -import { ResolvedTypeDefinition, ResolvedWebhookDefinition, getParameterDescription } from "../../resolver/types"; import { EndpointParameter } from "../endpoints/EndpointParameter"; import { EndpointSection } from "../endpoints/EndpointSection"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; @@ -13,25 +13,22 @@ import { useApiPageCenterElement } from "../useApiPageCenterElement"; import { WebhookPayloadSection } from "./WebhookPayloadSection"; import { WebhookResponseSection } from "./WebhookResponseSection"; import { useWebhookContext } from "./webhook-context/useWebhookContext"; - -const WebhookExample = dynamic( - () => import("./webhook-examples/WebhookExample").then(({ WebhookExample }) => WebhookExample), - { ssr: true }, -); +import { WebhookExample } from "./webhook-examples/WebhookExample"; export declare namespace WebhookContent { export interface Props { - webhook: ResolvedWebhookDefinition; - hideBottomSeparator?: boolean; - types: Record; + context: ApiDefinition.WebhookContext; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + last?: boolean; } } export const WebhookContent = memo((props) => { - const { webhook, hideBottomSeparator = false, types } = props; + const { context, breadcrumb, last = false } = props; + const { node, webhook, types } = context; const ref = useRef(null); - useApiPageCenterElement(ref, webhook.slug); + useApiPageCenterElement(ref, node.slug); const { setHoveredPayloadPropertyPath } = useWebhookContext(); const onHoverPayloadProperty = useCallback( @@ -41,36 +38,32 @@ export const WebhookContent = memo((props) => { [setHoveredPayloadPropertyPath], ); - const example = webhook.examples[0]; // TODO: Need a way to show all the examples + const example = webhook.examples?.[0]; // TODO: Need a way to show all the examples const webhookExample = example ? : null; return ( -
+
- -

{webhook.title}

+ +

{node.title}

- {webhook.headers.length > 0 && ( + {webhook.headers && webhook.headers.length > 0 && (
- +
{webhook.headers.map((parameter) => (
@@ -79,8 +72,12 @@ export const WebhookContent = memo((props) => { name={parameter.key} shape={parameter.valueShape} anchorIdParts={["payload", "header", parameter.key]} - slug={webhook.slug} - description={getParameterDescription(parameter, types)} + slug={node.slug} + description={parameter.description} + additionalDescriptions={ + ApiDefinition.unwrapReference(parameter.valueShape, types) + .descriptions + } availability={parameter.availability} types={types} /> @@ -92,23 +89,25 @@ export const WebhookContent = memo((props) => {
)} -
-
- - - + {webhook.payload && ( +
+
+ + + +
-
+ )}
- +
diff --git a/packages/ui/app/src/api-reference/webhooks/WebhookPayloadSection.tsx b/packages/ui/app/src/api-reference/webhooks/WebhookPayloadSection.tsx index afaa4067cd..3e802500fb 100644 --- a/packages/ui/app/src/api-reference/webhooks/WebhookPayloadSection.tsx +++ b/packages/ui/app/src/api-reference/webhooks/WebhookPayloadSection.tsx @@ -1,16 +1,16 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { ResolvedPayload, ResolvedTypeDefinition } from "../../resolver/types"; +import { renderTypeShorthand } from "../../type-shorthand"; import { JsonPropertyPath } from "../examples/JsonPropertyPath"; import { TypeReferenceDefinitions } from "../types/type-reference/TypeReferenceDefinitions"; -import { renderDeprecatedTypeShorthand } from "../types/type-shorthand/TypeShorthand"; export declare namespace WebhookPayloadSection { export interface Props { - payload: ResolvedPayload; + payload: ApiDefinition.WebhookPayload; onHoverProperty?: (path: JsonPropertyPath, opts: { isHovering: boolean }) => void; anchorIdParts: readonly string[]; slug: FernNavigation.Slug; - types: Record; + types: Record; } } @@ -24,7 +24,7 @@ export const WebhookPayloadSection: React.FC = ({ return (
- {`The payload of this webhook request is ${renderDeprecatedTypeShorthand(payload.shape, { withArticle: true }, types)}.`} + {`The payload of this webhook request is ${renderTypeShorthand(payload.shape, { withArticle: true }, types)}.`}
>({}); SETTABLE_APIS_ATOM.debugLabel = "SETTABLE_APIS_ATOM"; -export const WRITE_API_DEFINITION_ATOM = atom(null, (_get, set, apiDefinition: ApiDefinition.ApiDefinition) => { - const merge = (prev: ApiDefinition.ApiDefinition | undefined) => { - if (prev == null) { - return apiDefinition; - } else { - return join(prev, apiDefinition); - } - }; - set(SETTABLE_APIS_ATOM, (prev) => ({ ...prev, [apiDefinition.id]: merge(prev[apiDefinition.id]) })); -}); - -export const getApiDefinitionAtom = atomFamily((apiDefinitionId: ApiDefinition.ApiDefinitionId | undefined) => - atom((get) => (apiDefinitionId != null ? get(SETTABLE_APIS_ATOM)[apiDefinitionId] : undefined)), +export const WRITE_API_DEFINITION_ATOM = atom( + null, + (_get, set, apiDefinition: ApiDefinition.ApiDefinition, force?: boolean) => { + set(SETTABLE_APIS_ATOM, (prev) => { + const prevDefinition = prev[apiDefinition.id]; + if (prevDefinition == null) { + return { ...prev, [apiDefinition.id]: apiDefinition }; + } + const merged = joiner(force)(prevDefinition, apiDefinition); + if (merged === prevDefinition) { + return prev; + } + return { ...prev, [apiDefinition.id]: merged }; + }); + }, ); -/** - * @deprecated - */ -export const DEPRECATED_APIS_ATOM = atom>({}); -DEPRECATED_APIS_ATOM.debugLabel = "DEPRECATED_APIS_ATOM"; - -/** - * @deprecated - */ -export const DEPRECATED_FLATTENED_APIS_ATOM = atom((get) => { - return mapValues(get(DEPRECATED_APIS_ATOM), flattenRootPackage); -}); -DEPRECATED_FLATTENED_APIS_ATOM.debugLabel = "DEPRECATED_FLATTENED_APIS_ATOM"; - -/** - * @deprecated - */ -export function useDeprecatedFlattenedApis(): Record { - return useAtomValue(DEPRECATED_FLATTENED_APIS_ATOM); +export function useWriteApiDefinitionAtom(api: ApiDefinition.ApiDefinition | undefined): void { + const isLocalPreview = useIsLocalPreview(); + const set = useSetAtom(WRITE_API_DEFINITION_ATOM); + useEffect(() => { + if (api != null) { + set(api, isLocalPreview); + } + }, [api, set, isLocalPreview]); } -/** - * @deprecated - */ -export function useDeprecatedFlattenedApi(apiId: string): FlattenedRootPackage | undefined { - return useAtomValue(useMemoOne(() => atom((get) => get(DEPRECATED_FLATTENED_APIS_ATOM)[apiId]), [apiId])); +export function useWriteApiDefinitionsAtom( + apis: Record, +): void { + const isLocalPreview = useIsLocalPreview(); + const set = useSetAtom(WRITE_API_DEFINITION_ATOM); + useEffect(() => { + Object.values(apis).forEach((api) => { + set(api, isLocalPreview); + }); + }, [apis, set]); } +export const READ_APIS_ATOM = atom((get) => get(SETTABLE_APIS_ATOM)); + +export const getApiDefinitionAtom = atomFamily((apiDefinitionId: ApiDefinition.ApiDefinitionId | undefined) => + atom((get) => (apiDefinitionId != null ? get(SETTABLE_APIS_ATOM)[apiDefinitionId] : undefined)), +); + const IS_API_REFERENCE_PAGINATED = atom((get) => { const content = get(RESOLVED_PATH_ATOM); if (content.type === "api-endpoint-page") { @@ -74,7 +76,7 @@ export function useIsApiReferenceShallowLink(node: FernNavigation.WithApiDefinit atom((get) => { const isPaginated = get(IS_API_REFERENCE_PAGINATED); const resolvedApi = get(RESOLVED_API_DEFINITION_ATOM); - return !isPaginated && resolvedApi === node.apiDefinitionId; + return !isPaginated && resolvedApi?.id === node.apiDefinitionId; }), [node.apiDefinitionId], ), diff --git a/packages/ui/app/src/atoms/docs.ts b/packages/ui/app/src/atoms/docs.ts index b035b93832..cef6f25350 100644 --- a/packages/ui/app/src/atoms/docs.ts +++ b/packages/ui/app/src/atoms/docs.ts @@ -53,7 +53,6 @@ export const EMPTY_DOCS_STATE: DocsProps = { content: { type: "custom-markdown-page", slug: FernNavigation.Slug(""), - title: "", mdx: "", neighbors: { prev: null, next: null }, apis: {}, diff --git a/packages/ui/app/src/atoms/location.ts b/packages/ui/app/src/atoms/location.ts index 56419da6cb..ebef908783 100644 --- a/packages/ui/app/src/atoms/location.ts +++ b/packages/ui/app/src/atoms/location.ts @@ -1,11 +1,11 @@ import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { useEventCallback } from "@fern-ui/react-commons"; -import { atom, useAtomValue } from "jotai"; +import { atom } from "jotai"; import { atomWithLocation } from "jotai-location"; import { useAtomCallback } from "jotai/utils"; import { Router } from "next/router"; import { useCallback } from "react"; -import { useCallbackOne, useMemoOne } from "use-memo-one"; +import { useCallbackOne } from "use-memo-one"; import { selectHref, useHref } from "../hooks/useHref"; import { useAtomEffect } from "./hooks"; import { RESOLVED_PATH_ATOM } from "./navigation"; @@ -61,10 +61,6 @@ export const SLUG_ATOM = atom( ); SLUG_ATOM.debugLabel = "SLUG_ATOM"; -export function useIsSelectedSlug(slug: FernNavigation.Slug): boolean { - return useAtomValue(useMemoOne(() => atom((get) => get(SLUG_ATOM) === slug), [slug])); -} - export function useRouteListener(slug: FernNavigation.Slug, callback: (hash: string | undefined) => void): void { const callbackRef = useEventCallback(callback); const route = useHref(slug); diff --git a/packages/ui/app/src/atoms/navigation.ts b/packages/ui/app/src/atoms/navigation.ts index 0508d5b755..281c45e333 100644 --- a/packages/ui/app/src/atoms/navigation.ts +++ b/packages/ui/app/src/atoms/navigation.ts @@ -1,3 +1,4 @@ +import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; import type { DocsV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { SidebarTab, VersionSwitcherInfo } from "@fern-ui/fdr-utils"; @@ -70,16 +71,6 @@ SIDEBAR_ROOT_NODE_ATOM.debugLabel = "SIDEBAR_ROOT_NODE_ATOM"; export const RESOLVED_PATH_ATOM = atom((get) => get(DOCS_ATOM).content); RESOLVED_PATH_ATOM.debugLabel = "RESOLVED_PATH_ATOM"; -export const RESOLVED_PATH_SLUG_ATOM = atom((get) => get(RESOLVED_PATH_ATOM).slug); - -export const RESOLVED_PATH_TITLE_ATOM = atom((get) => { - const content = get(RESOLVED_PATH_ATOM); - if (content.type === "api-endpoint-page") { - return content.item.title; - } - return content.title; -}); - export const NEIGHBORS_ATOM = atom((get) => { const content = get(RESOLVED_PATH_ATOM); if (content.type === "api-reference-page" || content.type === "changelog") { @@ -91,9 +82,11 @@ export const NEIGHBORS_ATOM = atom((get) => { return content.neighbors; }); -export const RESOLVED_API_DEFINITION_ATOM = atom((get) => { +export const RESOLVED_API_DEFINITION_ATOM = atom((get) => { const content = get(RESOLVED_PATH_ATOM); - return content.type === "api-endpoint-page" || content.type === "api-reference-page" ? content.api : undefined; + return content.type === "api-endpoint-page" || content.type === "api-reference-page" + ? content.apiDefinition + : undefined; }); export const NAVIGATION_NODES_ATOM = atom((get) => { @@ -113,7 +106,15 @@ export function useNavigationNodes(): FernNavigation.NodeCollector { export const CURRENT_NODE_ATOM = atom((get) => { const slug = get(SLUG_ATOM); const nodeCollector = get(NAVIGATION_NODES_ATOM); - return nodeCollector.slugMap.get(slug); + const node = nodeCollector.slugMap.get(slug); + + // TODO: move this into a better place + // this sets the document title to the current node's title when shallow routing + // (this will use the navigation node title rather than the page's actual title) + if (node && typeof window !== "undefined") { + window.document.title = node.title; + } + return node; }); CURRENT_NODE_ATOM.debugLabel = "CURRENT_NODE_ATOM"; diff --git a/packages/ui/app/src/atoms/oauth.ts b/packages/ui/app/src/atoms/oauth.ts index df0ab427d1..a7515447d4 100644 --- a/packages/ui/app/src/atoms/oauth.ts +++ b/packages/ui/app/src/atoms/oauth.ts @@ -1,30 +1,27 @@ import { APIV1Read } from "@fern-api/fdr-sdk"; +import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import { atom, useAtomValue } from "jotai"; import { useMemoOne } from "use-memo-one"; -import { ResolvedEndpointDefinition, ResolvedTypeDefinition, isEndpoint } from "../resolver/types"; -import { DEPRECATED_FLATTENED_APIS_ATOM } from "./apis"; +import { READ_APIS_ATOM } from "./apis"; export function useOAuthEndpoint(referencedEndpoint: APIV1Read.OAuthClientCredentials.ReferencedEndpoint): | { - oAuthEndpoint: ResolvedEndpointDefinition; - types: Record; + oAuthEndpoint: ApiDefinition.EndpointDefinition; + types: Record; } | undefined { return useAtomValue( useMemoOne( () => atom((get) => { - const flatApis = get(DEPRECATED_FLATTENED_APIS_ATOM); - for (const node of Object.values(flatApis)) { - const oAuthEndpoint = node.endpoints.find((e) => e.id === referencedEndpoint.endpointId); - if (oAuthEndpoint && isEndpoint(oAuthEndpoint)) { - const maybeTypes = flatApis[oAuthEndpoint.apiDefinitionId ?? ""]?.types; - if (maybeTypes != null) { - return { - oAuthEndpoint, - types: maybeTypes, - }; - } + const apis = get(READ_APIS_ATOM); + for (const apiDefinition of Object.values(apis)) { + const oAuthEndpoint = apiDefinition.endpoints[referencedEndpoint.endpointId]; + if (oAuthEndpoint) { + return { + oAuthEndpoint, + types: apiDefinition.types, + }; } } return; diff --git a/packages/ui/app/src/atoms/playground.ts b/packages/ui/app/src/atoms/playground.ts index da3fcf5fbe..d45842bd32 100644 --- a/packages/ui/app/src/atoms/playground.ts +++ b/packages/ui/app/src/atoms/playground.ts @@ -1,3 +1,9 @@ +import { + EndpointContext, + WebSocketContext, + createEndpointContext, + createWebSocketContext, +} from "@fern-api/fdr-sdk/api-definition"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { useEventCallback } from "@fern-ui/react-commons"; import { WritableAtom, atom, useAtom, useAtomValue, useSetAtom } from "jotai"; @@ -21,12 +27,6 @@ import { type PlaygroundRequestFormState, type PlaygroundWebSocketRequestFormState, } from "../playground/types"; -import { - EndpointContext, - WebSocketContext, - createEndpointContext, - createWebSocketContext, -} from "../playground/types/endpoint-context"; import { getInitialEndpointRequestFormState, getInitialEndpointRequestFormStateWithExample, diff --git a/packages/ui/app/src/atoms/seo.ts b/packages/ui/app/src/atoms/seo.ts index b9ceae02e2..a4816f8c87 100644 --- a/packages/ui/app/src/atoms/seo.ts +++ b/packages/ui/app/src/atoms/seo.ts @@ -1,28 +1,28 @@ import { NextSeoProps } from "@fern-ui/next-seo"; import { atom } from "jotai"; import { DOCS_ATOM } from "./docs"; -import { CURRENT_NODE_ATOM, RESOLVED_PATH_SLUG_ATOM, RESOLVED_PATH_TITLE_ATOM } from "./navigation"; import { THEME_BG_COLOR } from "./theme"; export const NEXT_SEO_ATOM = atom((get) => { const seo = get(DOCS_ATOM).seo; const themeBgColor = get(THEME_BG_COLOR); - const resolvedSlug = get(RESOLVED_PATH_SLUG_ATOM); - const resolvedTitle = get(RESOLVED_PATH_TITLE_ATOM); - const currentNode = get(CURRENT_NODE_ATOM); - let title = seo.title; - if (currentNode?.slug === resolvedSlug) { - if (seo.title !== resolvedTitle) { - title = resolvedTitle; - } - } else if (currentNode?.title != null) { - if (seo.title !== currentNode.title) { - title = currentNode.title; - } - } + // TODO: fix shallow routed titles + + // const resolvedSlug = get(RESOLVED_PATH_SLUG_ATOM); + // const resolvedTitle = get(RESOLVED_PATH_TITLE_ATOM); + // const currentNode = get(CURRENT_NODE_ATOM); + // let title = seo.title; + // if (currentNode?.slug === resolvedSlug) { + // if (resolvedTitle && seo.title !== resolvedTitle) { + // title = resolvedTitle; + // } + // } else if (currentNode?.title != null) { + // if (seo.title !== currentNode.title) { + // title = currentNode.title; + // } + // } return { ...seo, - title, themeColor: themeBgColor, viewport: "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no", }; diff --git a/packages/ui/app/src/components/MaybeEnvironmentDropdown.tsx b/packages/ui/app/src/components/MaybeEnvironmentDropdown.tsx index 2e47fb9d8f..d57031601c 100644 --- a/packages/ui/app/src/components/MaybeEnvironmentDropdown.tsx +++ b/packages/ui/app/src/components/MaybeEnvironmentDropdown.tsx @@ -9,7 +9,8 @@ import { PLAYGROUND_ENVIRONMENT_ATOM } from "../atoms"; import { ALL_ENVIRONMENTS_ATOM, SELECTED_ENVIRONMENT_ATOM } from "../atoms/environment"; interface MaybeEnvironmentDropdownProps { - selectedEnvironment: APIV1Read.Environment | undefined; + baseUrl?: string; + environmentId: APIV1Read.EnvironmentId | undefined; urlTextStyle?: string; protocolTextStyle?: string; small?: boolean; @@ -19,7 +20,8 @@ interface MaybeEnvironmentDropdownProps { } export function MaybeEnvironmentDropdown({ - selectedEnvironment, + baseUrl, + environmentId, urlTextStyle, protocolTextStyle, small, @@ -37,19 +39,22 @@ export function MaybeEnvironmentDropdown({ ? environmentFilters.filter((environmentFilter) => allEnvironmentIds.includes(environmentFilter)) : allEnvironmentIds; - if (environmentFilters && selectedEnvironment && !environmentFilters.includes(selectedEnvironment.id)) { - setSelectedEnvironmentId(environmentIds[0]); - } + useEffect(() => { + if (environmentFilters && environmentId && !environmentFilters.includes(environmentId)) { + setSelectedEnvironmentId(environmentId); + } + }, [environmentFilters, environmentId, setSelectedEnvironmentId]); - const preParsedUrl = playgroundEnvironment ?? selectedEnvironment?.baseUrl; + const preParsedUrl = playgroundEnvironment ?? baseUrl; const url = preParsedUrl && parse(preParsedUrl); + // TODO: clean up this component useEffect(() => { if (url && url.host && url.host !== "" && url.protocol && url.protocol !== "") { setInputValue(preParsedUrl); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [playgroundEnvironment, selectedEnvironment]); + }, [playgroundEnvironment]); const isValidInput = inputValue != null && inputValue !== "" && parse(inputValue).host != null && parse(inputValue).protocol != null; @@ -133,7 +138,7 @@ export function MaybeEnvironmentDropdown({ setPlaygroundEnvironment(undefined); setSelectedEnvironmentId(value); }} - value={selectedEnvironmentId ?? selectedEnvironment?.id} + value={selectedEnvironmentId ?? environmentId} > ; +} diff --git a/packages/ui/app/src/docs/DocsMainContent.tsx b/packages/ui/app/src/docs/DocsMainContent.tsx index bc00c8551a..5ec8b9cabc 100644 --- a/packages/ui/app/src/docs/DocsMainContent.tsx +++ b/packages/ui/app/src/docs/DocsMainContent.tsx @@ -4,11 +4,12 @@ import { useSearchParams } from "next/navigation"; import { Fragment, ReactElement, memo } from "react"; import { useFeatureFlags, useIsReady } from "../atoms"; import { FernErrorBoundary } from "../components/FernErrorBoundary"; -import { DocsContent } from "../resolver/DocsContent"; +import type { DocsContent } from "../resolver/DocsContent"; -const MdxContent = dynamic(() => import("../mdx/MdxContent").then(({ MdxContent }) => MdxContent), { - ssr: true, -}); +const CustomMarkdownPage = dynamic( + () => import("./CustomMarkdownPage").then(({ CustomMarkdownPage }) => CustomMarkdownPage), + { ssr: true }, +); const ApiReferencePage = dynamic( () => import("../api-reference/ApiReferencePage").then(({ ApiReferencePage }) => ApiReferencePage), @@ -36,13 +37,9 @@ const FeedbackPopover = dynamic( const DocsMainContentRenderer = memo(({ content }: { content: DocsContent }) => { return visitDiscriminatedUnion(content)._visit({ - "custom-markdown-page": (content) => , - "api-reference-page": (content) => ( - - ), - "api-endpoint-page": (content) => ( - - ), + "custom-markdown-page": (content) => , + "api-reference-page": (content) => , + "api-endpoint-page": (content) => , changelog: (content) => , "changelog-entry": (content) => , _other: () => null, diff --git a/packages/ui/app/src/hooks/useShouldLazyRender.ts b/packages/ui/app/src/hooks/useShouldLazyRender.ts deleted file mode 100644 index b626cbb2fa..0000000000 --- a/packages/ui/app/src/hooks/useShouldLazyRender.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { useEffect } from "react"; -import { useIsReady, useIsSelectedSlug } from "../atoms"; -import { scrollToRoute } from "../util/anchor"; -export function useShouldLazyRender(slug: FernNavigation.Slug): boolean { - const isSelectedSlug = useIsSelectedSlug(slug); - const hydrated = useIsReady(); - - useEffect(() => { - if (isSelectedSlug && hydrated) { - scrollToRoute(window.location.pathname + window.location.hash); - } - - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [hydrated]); - - return !isSelectedSlug && !hydrated; -} diff --git a/packages/ui/app/src/index.ts b/packages/ui/app/src/index.ts index 6c43ad07e8..36cb881fcb 100644 --- a/packages/ui/app/src/index.ts +++ b/packages/ui/app/src/index.ts @@ -8,11 +8,7 @@ export * from "./mdx/types"; export { Stream } from "./playground/Stream"; export { ProxyRequestSchema } from "./playground/types"; export type { ProxyRequest, ProxyResponse, SerializableFile, SerializableFormDataEntryValue } from "./playground/types"; -export { ApiDefinitionResolver, type ApiDefinitionResolverCache } from "./resolver/ApiDefinitionResolver"; -export { ApiEndpointResolver } from "./resolver/ApiEndpointResolver"; -export { ApiTypeResolver } from "./resolver/ApiTypeResolver"; export { resolveDocsContent } from "./resolver/resolveDocsContent"; -export * from "./resolver/types"; export { getBreadcrumbList } from "./seo/getBreadcrumbList"; export { getSeoProps } from "./seo/getSeoProp"; export { getRegistryServiceWithToken, provideRegistryService } from "./services/registry"; diff --git a/packages/ui/app/src/mdx/Markdown.tsx b/packages/ui/app/src/mdx/Markdown.tsx index dc94bfd919..66cccd231d 100644 --- a/packages/ui/app/src/mdx/Markdown.tsx +++ b/packages/ui/app/src/mdx/Markdown.tsx @@ -7,7 +7,7 @@ export declare namespace Markdown { export interface Props { title?: ReactNode; - mdx: FernDocs.MarkdownText | undefined; + mdx: FernDocs.MarkdownText | FernDocs.MarkdownText[] | undefined; className?: string; size?: "xs" | "sm" | "lg"; diff --git a/packages/ui/app/src/mdx/MdxContent.tsx b/packages/ui/app/src/mdx/MdxContent.tsx index 41fcbdbca7..f6b17dafb2 100644 --- a/packages/ui/app/src/mdx/MdxContent.tsx +++ b/packages/ui/app/src/mdx/MdxContent.tsx @@ -6,7 +6,7 @@ import { FrontmatterContextProvider } from "../contexts/frontmatter"; export declare namespace MdxContent { export interface Props { - mdx: FernDocs.MarkdownText | undefined; + mdx: FernDocs.MarkdownText | FernDocs.MarkdownText[] | undefined; fallback?: React.ReactNode; } } @@ -21,12 +21,24 @@ const NextMdxRemoteComponent = dynamic( { ssr: true }, ); +function isMdxEmpty(mdx: FernDocs.MarkdownText | FernDocs.MarkdownText[] | undefined): boolean { + if (!mdx) { + return true; + } + + if (typeof mdx === "string") { + return mdx.trim().length === 0; + } + + if (Array.isArray(mdx)) { + return mdx.length === 0 || mdx.every(isMdxEmpty); + } + + return mdx.code.trim().length === 0; +} + export const MdxContent = memo(function MdxContent({ mdx, fallback }) { - if ( - mdx == null || - (typeof mdx === "string" && mdx.trim().length === 0) || - (typeof mdx !== "string" && mdx.code.trim().length === 0) - ) { + if (isMdxEmpty(mdx) || mdx == null) { return fallback; } @@ -34,6 +46,16 @@ export const MdxContent = memo(function MdxContent({ mdx, fall return mdx; } + if (Array.isArray(mdx)) { + return ( + <> + {mdx.map((mdx, index) => ( + + ))} + + ); + } + const MdxComponent = mdx.engine === "mdx-bundler" ? MdxBundlerComponent : NextMdxRemoteComponent; return ( diff --git a/packages/ui/app/src/mdx/bundlers/next-mdx-remote.ts b/packages/ui/app/src/mdx/bundlers/next-mdx-remote.ts index 0ea4e6c858..d4b23d58ef 100644 --- a/packages/ui/app/src/mdx/bundlers/next-mdx-remote.ts +++ b/packages/ui/app/src/mdx/bundlers/next-mdx-remote.ts @@ -7,7 +7,6 @@ import remarkGfm from "remark-gfm"; import remarkMath from "remark-math"; import remarkSmartypants from "remark-smartypants"; import type { PluggableList } from "unified"; -import { stringHasMarkdown } from "../common/util"; import { FernDocsFrontmatter } from "../frontmatter"; import { rehypeFernCode } from "../plugins/rehypeFernCode"; import { rehypeFernComponents } from "../plugins/rehypeFernComponents"; @@ -97,9 +96,9 @@ export async function serializeMdx( return undefined; } - if (options?.frontmatterDefaults == null && !stringHasMarkdown(content)) { - return content; - } + // if (options?.frontmatterDefaults == null && !stringHasMarkdown(content)) { + // return content; + // } content = replaceBrokenBrTags(content); diff --git a/packages/ui/app/src/mdx/common/util.ts b/packages/ui/app/src/mdx/common/util.ts index 594cd81007..c65d7c9b9b 100644 --- a/packages/ui/app/src/mdx/common/util.ts +++ b/packages/ui/app/src/mdx/common/util.ts @@ -12,73 +12,73 @@ export type ExpectedCodeBlockChildren = { }; }; -export function stringHasMarkdown(s: string): boolean { - s = s.trim(); +// export function stringHasMarkdown(s: string): boolean { +// s = s.trim(); - // has frontmatter - if (s.startsWith("---")) { - return true; - } +// // has frontmatter +// if (s.startsWith("---")) { +// return true; +// } - // has headings (using regex, match if any line starts with 1-6 #) - if (s.match(/^\s*#{1,6} .+/m)) { - return true; - } +// // has headings (using regex, match if any line starts with 1-6 #) +// if (s.match(/^\s*#{1,6} .+/m)) { +// return true; +// } - // has list items or blockquotes - if (s.match(/^\s*[*->] .+/m)) { - return true; - } +// // has list items or blockquotes +// if (s.match(/^\s*[*->] .+/m)) { +// return true; +// } - // has numbered list items - if (s.match(/^\s*\d+\. .+/m)) { - return true; - } +// // has numbered list items +// if (s.match(/^\s*\d+\. .+/m)) { +// return true; +// } - // has inline code or code blocks - if (s.includes("`")) { - return true; - } +// // has inline code or code blocks +// if (s.includes("`")) { +// return true; +// } - // has horizontal rules - if (s.match(/^\s*---+$/m)) { - return true; - } +// // has horizontal rules +// if (s.match(/^\s*---+$/m)) { +// return true; +// } - // has tables - if (s.match(/^\s*\|.*\|.*\|.*\|/m)) { - return true; - } +// // has tables +// if (s.match(/^\s*\|.*\|.*\|.*\|/m)) { +// return true; +// } - // has bolded or italicized text - if (s.match(/\*\*|__|\*|_/)) { - return true; - } +// // has bolded or italicized text +// if (s.match(/\*\*|__|\*|_/)) { +// return true; +// } - // has strikethrough text - if (s.match(/~~/)) { - return true; - } +// // has strikethrough text +// if (s.match(/~~/)) { +// return true; +// } - // has links or images - if (s.match(/\[.+\]\(.+\)/)) { - return true; - } +// // has links or images +// if (s.match(/\[.+\]\(.+\)/)) { +// return true; +// } - // has plaintext links - if (s.match(/https?:\/\/|mailto:|tel:/)) { - return true; - } +// // has plaintext links +// if (s.match(/https?:\/\/|mailto:|tel:/)) { +// return true; +// } - // has html or jsx tags - if (s.includes("<")) { - return true; - } +// // has html or jsx tags +// if (s.includes("<")) { +// return true; +// } - // has `\n\n`, indicating paragraphs - if (s.includes("\n\n")) { - return true; - } +// // has `\n\n`, indicating paragraphs +// if (s.includes("\n\n")) { +// return true; +// } - return false; -} +// return false; +// } diff --git a/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx b/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx index e521aa55e6..96d1b49f65 100644 --- a/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx +++ b/packages/ui/app/src/mdx/components/snippets/EndpointRequestSnippet.tsx @@ -1,15 +1,13 @@ +import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; -import { useMemo } from "react"; +import { ReactElement, useMemo } from "react"; import { CodeExampleClientDropdown } from "../../../api-reference/endpoints/CodeExampleClientDropdown"; import { EndpointUrlWithOverflow } from "../../../api-reference/endpoints/EndpointUrlWithOverflow"; import { CodeSnippetExample } from "../../../api-reference/examples/CodeSnippetExample"; import { generateCodeExamples } from "../../../api-reference/examples/code-example"; -import { useDocsContent } from "../../../atoms"; -import { useSelectedEnvironmentId } from "../../../atoms/environment"; -import { ApiReferenceButton } from "../../../components/ApiReferenceButton"; -import { ResolvedEndpointDefinition, resolveEnvironment } from "../../../resolver/types"; -import { findEndpoint } from "../../../util/processRequestSnippetComponents"; +import { usePlaygroundBaseUrl } from "../../../playground/utils/select-environment"; import { RequestSnippet } from "./types"; +import { useFindEndpoint } from "./useFindEndpoint"; import { extractEndpointPathAndMethod, useSelectedClient } from "./utils"; export const EndpointRequestSnippet: React.FC> = ({ @@ -22,39 +20,35 @@ export const EndpointRequestSnippet: React.FC; + return ; }; -const EndpointRequestSnippetInternal: React.FC> = ({ +const EndpointRequestSnippetRenderer: React.FC> = ({ method, path, example, }) => { - const content = useDocsContent(); - const selectedEnvironmentId = useSelectedEnvironmentId(); + const endpoint = useFindEndpoint(method, path); - const endpoint = useMemo(() => { - if (content.type !== "custom-markdown-page") { - return; - } - let endpoint: ResolvedEndpointDefinition | undefined; - for (const api of Object.values(content.apis)) { - endpoint = findEndpoint({ - api, - path, - method, - }); - if (endpoint) { - break; - } - } - return endpoint; - }, [method, path, content]); + if (endpoint == null) { + return null; + } + + return ; +}; - const clients = useMemo(() => generateCodeExamples(endpoint?.examples ?? []), [endpoint?.examples]); +export function EndpointRequestSnippetInternal({ + endpoint, + example, +}: { + endpoint: ApiDefinition.EndpointDefinition; + example: string | undefined; +}): ReactElement | null { + const clients = useMemo(() => generateCodeExamples(endpoint.examples), [endpoint.examples]); const [selectedClient, setSelectedClient] = useSelectedClient(clients, example); + const [baseUrl, selectedEnvironmentId] = usePlaygroundBaseUrl(endpoint); - if (endpoint == null || selectedClient == null) { + if (selectedClient == null) { return null; } @@ -64,8 +58,9 @@ const EndpointRequestSnippetInternal: React.FC } actions={ @@ -77,7 +72,8 @@ const EndpointRequestSnippetInternal: React.FC )} - + {/* TODO: Restore this button */} + {/* */} } code={selectedClient.code} @@ -87,4 +83,4 @@ const EndpointRequestSnippetInternal: React.FC
); -}; +} diff --git a/packages/ui/app/src/mdx/components/snippets/EndpointResponseSnippet.tsx b/packages/ui/app/src/mdx/components/snippets/EndpointResponseSnippet.tsx index 2b8dd76e06..5c95171644 100644 --- a/packages/ui/app/src/mdx/components/snippets/EndpointResponseSnippet.tsx +++ b/packages/ui/app/src/mdx/components/snippets/EndpointResponseSnippet.tsx @@ -1,10 +1,8 @@ import { useMemo } from "react"; import { CodeSnippetExample } from "../../../api-reference/examples/CodeSnippetExample"; import { generateCodeExamples } from "../../../api-reference/examples/code-example"; -import { useDocsContent } from "../../../atoms"; -import { ResolvedEndpointDefinition } from "../../../resolver/types"; -import { findEndpoint } from "../../../util/processRequestSnippetComponents"; import { RequestSnippet } from "./types"; +import { useFindEndpoint } from "./useFindEndpoint"; import { extractEndpointPathAndMethod, useSelectedClient } from "./utils"; export const EndpointResponseSnippet: React.FC> = ({ @@ -25,25 +23,7 @@ const EndpointResponseSnippetInternal: React.FC { - const content = useDocsContent(); - - const endpoint = useMemo(() => { - if (content.type !== "custom-markdown-page") { - return; - } - let endpoint: ResolvedEndpointDefinition | undefined; - for (const api of Object.values(content.apis)) { - endpoint = findEndpoint({ - api, - path, - method, - }); - if (endpoint) { - break; - } - } - return endpoint; - }, [method, path, content]); + const endpoint = useFindEndpoint(method, path); const clients = useMemo(() => generateCodeExamples(endpoint?.examples ?? []), [endpoint?.examples]); const [selectedClient] = useSelectedClient(clients, example); diff --git a/packages/ui/app/src/mdx/components/snippets/useFindEndpoint.tsx b/packages/ui/app/src/mdx/components/snippets/useFindEndpoint.tsx new file mode 100644 index 0000000000..14caa73334 --- /dev/null +++ b/packages/ui/app/src/mdx/components/snippets/useFindEndpoint.tsx @@ -0,0 +1,28 @@ +import { EndpointDefinition } from "@fern-api/fdr-sdk/api-definition"; +import { atom, useAtomValue } from "jotai"; +import { useMemoOne } from "use-memo-one"; +import { READ_APIS_ATOM } from "../../../atoms"; +import { findEndpoint } from "../../../util/processRequestSnippetComponents"; + +export function useFindEndpoint(method: string, path: string): EndpointDefinition | undefined { + return useAtomValue( + useMemoOne( + () => + atom((get) => { + let endpoint: EndpointDefinition | undefined; + for (const apiDefinition of Object.values(get(READ_APIS_ATOM))) { + endpoint = findEndpoint({ + apiDefinition, + path, + method, + }); + if (endpoint) { + break; + } + } + return endpoint; + }), + [method, path], + ), + ); +} diff --git a/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx b/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx index 9fd8e9fab7..39400fc22c 100644 --- a/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx +++ b/packages/ui/app/src/playground/PlaygroundAuthorizationForm.tsx @@ -1,3 +1,4 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { @@ -34,7 +35,6 @@ import { PasswordInputGroup } from "./PasswordInputGroup"; import { PlaygroundEndpointForm } from "./endpoint/PlaygroundEndpointForm"; import { useOAuthEndpointContext } from "./hooks/useOauthEndpointContext"; import { PlaygroundAuthState } from "./types"; -import { EndpointContext } from "./types/endpoint-context"; import { oAuthClientCredentialReferencedEndpointLoginFlow } from "./utils/oauth"; import { usePlaygroundBaseUrl } from "./utils/select-environment"; @@ -168,7 +168,7 @@ function FoundOAuthReferencedEndpointForm({ const [value, setValue] = useAtom(PLAYGROUND_AUTH_STATE_OAUTH_ATOM); const proxyEnvironment = useStandardProxyEnvironment(); const [formState, setFormState] = usePlaygroundEndpointFormState(context); - const baseUrl = usePlaygroundBaseUrl(context.endpoint); + const [baseUrl] = usePlaygroundBaseUrl(context.endpoint); const [displayFailedLogin, setDisplayFailedLogin] = useState(false); diff --git a/packages/ui/app/src/playground/PlaygroundDrawer.tsx b/packages/ui/app/src/playground/PlaygroundDrawer.tsx index 4dfc7539c4..f06a2f87f8 100644 --- a/packages/ui/app/src/playground/PlaygroundDrawer.tsx +++ b/packages/ui/app/src/playground/PlaygroundDrawer.tsx @@ -1,4 +1,4 @@ -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { NodeId } from "@fern-api/fdr-sdk/navigation"; import { FernButton } from "@fern-ui/components"; import * as Dialog from "@radix-ui/react-dialog"; import * as VisuallyHidden from "@radix-ui/react-visually-hidden"; @@ -85,7 +85,7 @@ export const PlaygroundDrawer = memo((): ReactElement | null => { group: undefined, }; - const setFormState = useSetAtom(usePlaygroundFormStateAtom(selectionState?.id ?? FernNavigation.NodeId(""))); + const setFormState = useSetAtom(usePlaygroundFormStateAtom(selectionState?.id ?? NodeId(""))); const renderMobileHeader = () => (
diff --git a/packages/ui/app/src/playground/PlaygroundRequestPreview.tsx b/packages/ui/app/src/playground/PlaygroundRequestPreview.tsx index 48ef1217c9..f9917220aa 100644 --- a/packages/ui/app/src/playground/PlaygroundRequestPreview.tsx +++ b/packages/ui/app/src/playground/PlaygroundRequestPreview.tsx @@ -1,3 +1,4 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { useAtom, useAtomValue } from "jotai"; import { FC, useMemo } from "react"; import { PLAYGROUND_AUTH_STATE_ATOM, PLAYGROUND_AUTH_STATE_OAUTH_ATOM, useFeatureFlags } from "../atoms"; @@ -6,7 +7,6 @@ import { FernSyntaxHighlighter } from "../syntax-highlighting/FernSyntaxHighligh import { PlaygroundCodeSnippetResolverBuilder } from "./code-snippets/resolver"; import { useSnippet } from "./code-snippets/useSnippet"; import { PlaygroundEndpointRequestFormState } from "./types"; -import { EndpointContext } from "./types/endpoint-context"; import { usePlaygroundBaseUrl } from "./utils/select-environment"; interface PlaygroundRequestPreviewProps { @@ -20,7 +20,7 @@ export const PlaygroundRequestPreview: FC = ({ co const authState = useAtomValue(PLAYGROUND_AUTH_STATE_ATOM); const { isFileForgeHackEnabled } = useFeatureFlags(); const [oAuthValue, setOAuthValue] = useAtom(PLAYGROUND_AUTH_STATE_OAUTH_ATOM); - const baseUrl = usePlaygroundBaseUrl(context.endpoint); + const [baseUrl] = usePlaygroundBaseUrl(context.endpoint); const builder = useMemo( () => new PlaygroundCodeSnippetResolverBuilder(context, isSnippetTemplatesEnabled, isFileForgeHackEnabled), diff --git a/packages/ui/app/src/playground/PlaygroundWebSocket.tsx b/packages/ui/app/src/playground/PlaygroundWebSocket.tsx index 81e022892e..b184292561 100644 --- a/packages/ui/app/src/playground/PlaygroundWebSocket.tsx +++ b/packages/ui/app/src/playground/PlaygroundWebSocket.tsx @@ -1,3 +1,4 @@ +import type { WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; import { WebSocketMessage, buildRequestUrl } from "@fern-api/fdr-sdk/api-definition"; import { FernTooltipProvider } from "@fern-ui/components"; import { usePrevious } from "@fern-ui/react-commons"; @@ -8,9 +9,8 @@ import { usePlaygroundSettings } from "../hooks/usePlaygroundSettings"; import { PlaygroundWebSocketContent } from "./PlaygroundWebSocketContent"; import { PlaygroundEndpointPath } from "./endpoint/PlaygroundEndpointPath"; import { useWebsocketMessages } from "./hooks/useWebsocketMessages"; -import { WebSocketContext } from "./types/endpoint-context"; import { buildAuthHeaders } from "./utils"; -import { usePlaygroundBaseUrl, useSelectedEnvironment } from "./utils/select-environment"; +import { usePlaygroundBaseUrl } from "./utils/select-environment"; // TODO: decide if this should be an env variable, and if we should move REST proxy to the same (or separate) cloudflare worker const WEBSOCKET_PROXY_URI = "wss://websocket.proxy.ferndocs.com/ws"; @@ -42,10 +42,7 @@ export const PlaygroundWebSocket: FC = ({ context }): const settings = usePlaygroundSettings(); - const baseUrl = usePlaygroundBaseUrl(context.channel); - - // TODO: is this is kind of weird that we're using the selected environment here? - const selectedEnvironment = useSelectedEnvironment(context.channel); + const [baseUrl, environmentId] = usePlaygroundBaseUrl(context.channel); const startSession = useCallback(async () => { return new Promise((resolve) => { @@ -148,7 +145,8 @@ export const PlaygroundWebSocket: FC = ({ context }): ? socket.current?.close() : null } - environment={selectedEnvironment} + environmentId={environmentId} + baseUrl={baseUrl} environmentFilters={settings?.environments} path={context.channel.path} queryParameters={context.channel.queryParameters} @@ -166,6 +164,7 @@ export const PlaygroundWebSocket: FC = ({ context }): ) } + types={context.types} />
diff --git a/packages/ui/app/src/playground/PlaygroundWebSocketContent.tsx b/packages/ui/app/src/playground/PlaygroundWebSocketContent.tsx index 83031e74fd..459239546c 100644 --- a/packages/ui/app/src/playground/PlaygroundWebSocketContent.tsx +++ b/packages/ui/app/src/playground/PlaygroundWebSocketContent.tsx @@ -1,9 +1,9 @@ import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; +import type { WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; import { Dispatch, FC, SetStateAction, useEffect, useRef, useState } from "react"; import { WebSocketMessage } from "../api-reference/web-socket/WebSocketMessages"; import { PlaygroundWebSocketSessionForm } from "./PlaygroundWebSocketSessionForm"; import { PlaygroundWebSocketRequestFormState } from "./types"; -import { WebSocketContext } from "./types/endpoint-context"; interface PlaygroundWebSocketContentProps { context: WebSocketContext; diff --git a/packages/ui/app/src/playground/PlaygroundWebSocketHandshakeForm.tsx b/packages/ui/app/src/playground/PlaygroundWebSocketHandshakeForm.tsx index 3f9625d198..25742e5b4e 100644 --- a/packages/ui/app/src/playground/PlaygroundWebSocketHandshakeForm.tsx +++ b/packages/ui/app/src/playground/PlaygroundWebSocketHandshakeForm.tsx @@ -1,3 +1,4 @@ +import type { WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; import { FernCard } from "@fern-ui/components"; import isEmpty from "lodash-es/isEmpty"; import { Dispatch, FC, SetStateAction, useCallback } from "react"; @@ -5,7 +6,6 @@ import { Callout } from "../mdx/components/callout"; import { PlaygroundAuthorizationFormCard } from "./PlaygroundAuthorizationForm"; import { PlaygroundObjectPropertiesForm } from "./form/PlaygroundObjectPropertyForm"; import { PlaygroundWebSocketRequestFormState } from "./types"; -import { WebSocketContext } from "./types/endpoint-context"; interface PlaygroundWebSocketHandshakeFormProps { context: WebSocketContext; @@ -62,7 +62,9 @@ export const PlaygroundWebSocketHandshakeForm: FC @@ -75,7 +77,7 @@ export const PlaygroundWebSocketHandshakeForm: FC}
- {channel.requestHeaders && channel.requestHeaders.length > 0 && ( + {headers.length > 0 && (
Headers
@@ -83,7 +85,7 @@ export const PlaygroundWebSocketHandshakeForm: FC > = ({ availability={property.availability} description={property.description} renderInline={renderInline} - isRequired={property.valueShape.type !== "optional"} + isRequired={!unwrapped.isOptional} isList={unwrapped.shape.type === "list"} isBoolean={unwrapped.shape.type === "primitive" && unwrapped.shape.value.type === "boolean"} typeShorthand={renderTypeShorthand(unwrapped.shape, undefined, types)} diff --git a/packages/ui/app/src/playground/code-snippets/__test__/code-snippets.test.ts b/packages/ui/app/src/playground/code-snippets/__test__/code-snippets.test.ts index a64b74926b..4654a91a05 100644 --- a/packages/ui/app/src/playground/code-snippets/__test__/code-snippets.test.ts +++ b/packages/ui/app/src/playground/code-snippets/__test__/code-snippets.test.ts @@ -1,8 +1,12 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; -import { EndpointDefinition, EndpointId, EnvironmentId, PropertyKey } from "@fern-api/fdr-sdk/api-definition"; +import { + EndpointContext, + EndpointDefinition, + EndpointId, + EnvironmentId, + PropertyKey, +} from "@fern-api/fdr-sdk/api-definition"; import { ApiDefinitionId, EndpointNode, NodeId, Slug } from "@fern-api/fdr-sdk/navigation"; import { PlaygroundEndpointRequestFormState } from "../../types"; -import { EndpointContext } from "../../types/endpoint-context"; import { CurlSnippetBuilder } from "../builders/curl"; import { PythonRequestSnippetBuilder } from "../builders/python"; import { TypescriptFetchSnippetBuilder } from "../builders/typescript"; @@ -42,15 +46,18 @@ describe("PlaygroundCodeSnippetBuilder", () => { ], pathParameters: [ { - key: APIV1Read.PropertyKey("test"), + key: PropertyKey("test"), valueShape: { - type: "primitive", + type: "alias", value: { - type: "string", - regex: undefined, - minLength: undefined, - maxLength: undefined, - default: undefined, + type: "primitive", + value: { + type: "string", + regex: undefined, + minLength: undefined, + maxLength: undefined, + default: undefined, + }, }, }, description: undefined, @@ -94,6 +101,7 @@ describe("PlaygroundCodeSnippetBuilder", () => { endpoint, auth: undefined, types: {}, + globalHeaders: [], }; it("should render curl", () => { diff --git a/packages/ui/app/src/playground/code-snippets/builders/types.ts b/packages/ui/app/src/playground/code-snippets/builders/types.ts index 03eeed6eb0..319bee938e 100644 --- a/packages/ui/app/src/playground/code-snippets/builders/types.ts +++ b/packages/ui/app/src/playground/code-snippets/builders/types.ts @@ -1,11 +1,10 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { buildEndpointUrl } from "@fern-api/fdr-sdk/api-definition"; import { PlaygroundAuthState, PlaygroundEndpointRequestFormState } from "../../types"; -import { EndpointContext } from "../../types/endpoint-context"; export abstract class PlaygroundCodeSnippetBuilder { protected url: string; constructor( - // TODO: make this more generic and easier to test by removing dependency on "ResolvedEndpointDefinition" protected context: EndpointContext, protected formState: PlaygroundEndpointRequestFormState, protected authState: PlaygroundAuthState, diff --git a/packages/ui/app/src/playground/code-snippets/resolver.ts b/packages/ui/app/src/playground/code-snippets/resolver.ts index 8d8b1feab1..5b0dd0732e 100644 --- a/packages/ui/app/src/playground/code-snippets/resolver.ts +++ b/packages/ui/app/src/playground/code-snippets/resolver.ts @@ -1,10 +1,10 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { toCurlyBraceEndpointPathLiteral } from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; import { SnippetTemplateResolver } from "@fern-api/template-resolver"; import { UnreachableCaseError } from "ts-essentials"; import { provideRegistryService } from "../../services/registry"; import { PlaygroundAuthState, PlaygroundEndpointRequestFormState } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { buildAuthHeaders, convertToCustomSnippetPayload } from "../utils"; import { CurlSnippetBuilder } from "./builders/curl"; import { PythonRequestSnippetBuilder } from "./builders/python"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx index ef5904de99..ae9e871e7c 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpoint.tsx @@ -1,3 +1,4 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { buildEndpointUrl } from "@fern-api/fdr-sdk/api-definition"; import { unknownToString } from "@fern-api/ui-core-utils"; import { FernTooltipProvider } from "@fern-ui/components"; @@ -23,7 +24,6 @@ import { executeProxyFile } from "../fetch-utils/executeProxyFile"; import { executeProxyRest } from "../fetch-utils/executeProxyRest"; import { executeProxyStream } from "../fetch-utils/executeProxyStream"; import type { GrpcProxyRequest, ProxyRequest } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { PlaygroundResponse } from "../types/playgroundResponse"; import { buildAuthHeaders, @@ -31,7 +31,7 @@ import { getInitialEndpointRequestFormStateWithExample, serializeFormStateBody, } from "../utils"; -import { usePlaygroundBaseUrl, useSelectedEnvironment } from "../utils/select-environment"; +import { usePlaygroundBaseUrl } from "../utils/select-environment"; import { PlaygroundEndpointContent } from "./PlaygroundEndpointContent"; import { PlaygroundEndpointPath } from "./PlaygroundEndpointPath"; @@ -55,8 +55,7 @@ export const PlaygroundEndpoint = ({ context }: { context: EndpointContext }): R const proxyBasePath = proxyShouldUseAppBuildwithfernCom ? getAppBuildwithfernCom() : basePath; const proxyEnvironment = useApiRoute("/api/fern-docs/proxy", { basepath: proxyBasePath }); const uploadEnvironment = useApiRoute("/api/fern-docs/upload", { basepath: proxyBasePath }); - const baseUrl = usePlaygroundBaseUrl(endpoint); - const selectedEnvironment = useSelectedEnvironment(endpoint); + const [baseUrl, environmentId] = usePlaygroundBaseUrl(endpoint); // TODO: remove potentially // const grpcClient = useMemo(() => { @@ -251,11 +250,13 @@ export const PlaygroundEndpoint = ({ context }: { context: EndpointContext }): R formState={formState} // TODO: Remove this after pinecone demo, this is a temporary flag sendRequest={grpcEndpoints?.includes(endpoint.id) ? sendGrpcRequest : sendRequest} - environment={selectedEnvironment} + environmentId={environmentId} + baseUrl={baseUrl} environmentFilters={settings?.environments} path={endpoint.path} queryParameters={endpoint.queryParameters} sendRequestIcon={} + types={context.types} />
diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointContent.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointContent.tsx index 5065ad3798..ea1abda6f1 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointContent.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointContent.tsx @@ -1,8 +1,8 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { Loadable } from "@fern-ui/loadable"; import { Dispatch, ReactElement, SetStateAction, useDeferredValue } from "react"; import { PlaygroundAuthorizationFormCard } from "../PlaygroundAuthorizationForm"; import { PlaygroundEndpointRequestFormState } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { PlaygroundResponse } from "../types/playgroundResponse"; import { PlaygroundEndpointContentLayout } from "./PlaygroundEndpointContentLayout"; import { PlaygroundEndpointForm } from "./PlaygroundEndpointForm"; diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointDescription.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointDescription.tsx deleted file mode 100644 index c5956e8c51..0000000000 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointDescription.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { useBooleanState, useResizeObserver } from "@fern-ui/react-commons"; -import cn from "clsx"; -import dynamic from "next/dynamic"; -import { ReactElement, useRef, useState } from "react"; -import { ResolvedEndpointDefinition } from "../../resolver/types"; - -const Markdown = dynamic(() => import("../../mdx/Markdown").then(({ Markdown }) => Markdown), { - ssr: true, -}); - -interface PlaygroundEndpointDescriptionProps { - endpoint: ResolvedEndpointDefinition; -} - -export function PlaygroundEndpointDescription({ endpoint }: PlaygroundEndpointDescriptionProps): ReactElement { - const descriptionRef = useRef(null); - const { value: showFullDescription, toggleValue: toggleShowFullDescription } = useBooleanState(false); - const [descriptionIsClamped, setDescriptionIsClamped] = useState(false); - - useResizeObserver(descriptionRef, ([entry]) => { - if (!showFullDescription && entry != null) { - setDescriptionIsClamped(entry.target.scrollHeight > entry.target.clientHeight); - } - }); - - return ( -
-
- -
- {descriptionIsClamped && ( - - )} -
- ); -} diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx index 6fb31802c8..8f9e969e86 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointForm.tsx @@ -1,12 +1,12 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { unwrapObjectType, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; import { EMPTY_ARRAY, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import { isEmpty } from "lodash-es"; -import { Dispatch, FC, SetStateAction, useCallback } from "react"; +import { Dispatch, FC, SetStateAction, useCallback, useMemo } from "react"; import { PlaygroundFileUploadForm } from "../form/PlaygroundFileUploadForm"; import { PlaygroundObjectPropertiesForm } from "../form/PlaygroundObjectPropertyForm"; import { PlaygroundTypeReferenceForm } from "../form/PlaygroundTypeReferenceForm"; import { PlaygroundEndpointRequestFormState, PlaygroundFormStateBody } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { PlaygroundEndpointFormSection } from "./PlaygroundEndpointFormSection"; import { PlaygroundEndpointMultipartForm } from "./PlaygroundEndpointMultipartForm"; @@ -18,7 +18,7 @@ interface PlaygroundEndpointFormProps { } export const PlaygroundEndpointForm: FC = ({ - context: { endpoint, types }, + context: { endpoint, types, globalHeaders }, formState, setFormState, ignoreHeaders, @@ -95,15 +95,19 @@ export const PlaygroundEndpointForm: FC = ({ [setBody], ); + const headers = useMemo(() => { + return [...globalHeaders, ...(endpoint.requestHeaders ?? EMPTY_ARRAY)]; + }, [endpoint.requestHeaders, globalHeaders]); + return ( <> - {!isEmpty(endpoint.requestHeaders) && ( + {!isEmpty(headers) && ( diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx index a0c9e5ce17..daa1a7bd79 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointPath.tsx @@ -1,12 +1,14 @@ -import { - Environment, +import type { EnvironmentId, HttpMethod, ObjectProperty, PathPart, - buildRequestUrl, + TypeDefinition, + TypeId, } from "@fern-api/fdr-sdk/api-definition"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; +import { buildRequestUrl, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; +import unknownToString from "@fern-api/ui-core-utils/unknownToString"; +import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { CopyToClipboardButton, FernButton } from "@fern-ui/components"; import { useBooleanState } from "@fern-ui/react-commons"; import * as Dialog from "@radix-ui/react-dialog"; @@ -14,7 +16,6 @@ import cn from "clsx"; import { Xmark } from "iconoir-react"; import { isUndefined, omitBy } from "lodash-es"; import { FC, Fragment, ReactNode } from "react"; -import { usePlaygroundEnvironment } from "../../atoms"; import { useAllEnvironmentIds } from "../../atoms/environment"; import { HttpMethodTag } from "../../components/HttpMethodTag"; import { MaybeEnvironmentDropdown } from "../../components/MaybeEnvironmentDropdown"; @@ -23,7 +24,8 @@ import { PlaygroundRequestFormState } from "../types"; interface PlaygroundEndpointPathProps { method: HttpMethod | undefined; - environment: Environment | undefined; + environmentId: EnvironmentId | undefined; + baseUrl: string | undefined; environmentFilters: EnvironmentId[] | undefined; formState: PlaygroundRequestFormState; path: PathPart[]; @@ -31,10 +33,12 @@ interface PlaygroundEndpointPathProps { sendRequest: () => void; sendRequestButtonLabel?: string; sendRequestIcon?: ReactNode; + types: Record; } export const PlaygroundEndpointPath: FC = ({ - environment, + environmentId, + baseUrl, environmentFilters, method, formState, @@ -43,10 +47,10 @@ export const PlaygroundEndpointPath: FC = ({ sendRequest, sendRequestButtonLabel, sendRequestIcon, + types, }) => { const environmentIds = useAllEnvironmentIds(); const isEditingEnvironment = useBooleanState(false); - const playgroundEnvironment = usePlaygroundEnvironment(); return (
@@ -54,25 +58,22 @@ export const PlaygroundEndpointPath: FC = ({ {method != null && } 1 - ? "playground-endpoint-url-with-switcher" - : "playground-endpoint-url", + environmentIds.length > 1 ? "playground-endpoint-url-with-switcher" : "playground-endpoint-url", "flex flex-row w-full", "items-baseline", )} > - {environment != null && ( - - )} + {path.map((part, idx) => { return visitDiscriminatedUnion(part, "type")._visit({ @@ -101,7 +102,8 @@ export const PlaygroundEndpointPath: FC = ({ queryParameters .filter((queryParameter) => { const stateValue = formState.queryParameters[queryParameter.key]; - if (stateValue == null && queryParameter.valueShape.type === "optional") { + const unwrapped = unwrapReference(queryParameter.valueShape, types); + if (stateValue == null && unwrapped.isOptional) { return false; } return true; @@ -126,7 +128,7 @@ export const PlaygroundEndpointPath: FC = ({ path, pathParameters: formState.pathParameters, queryParameters: formState.queryParameters, - baseUrl: playgroundEnvironment ?? environment?.baseUrl, + baseUrl, }) } /> diff --git a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointRequestCard.tsx b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointRequestCard.tsx index 9ef7d94ce8..d6f96738b6 100644 --- a/packages/ui/app/src/playground/endpoint/PlaygroundEndpointRequestCard.tsx +++ b/packages/ui/app/src/playground/endpoint/PlaygroundEndpointRequestCard.tsx @@ -1,3 +1,4 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { CopyToClipboardButton, FernButton, FernButtonGroup, FernCard } from "@fern-ui/components"; import { useAtom, useSetAtom } from "jotai"; import { ReactElement } from "react"; @@ -12,7 +13,6 @@ import { useStandardProxyEnvironment } from "../../hooks/useStandardProxyEnviron import { PlaygroundRequestPreview } from "../PlaygroundRequestPreview"; import { PlaygroundCodeSnippetResolverBuilder } from "../code-snippets/resolver"; import { PlaygroundEndpointRequestFormState } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { usePlaygroundBaseUrl } from "../utils/select-environment"; interface PlaygroundEndpointRequestCardProps { @@ -28,7 +28,7 @@ export function PlaygroundEndpointRequestCard({ const [requestType, setRequestType] = useAtom(PLAYGROUND_REQUEST_TYPE_ATOM); const setOAuthValue = useSetAtom(PLAYGROUND_AUTH_STATE_OAUTH_ATOM); const proxyEnvironment = useStandardProxyEnvironment(); - const baseUrl = usePlaygroundBaseUrl(context.endpoint); + const [baseUrl] = usePlaygroundBaseUrl(context.endpoint); return (
diff --git a/packages/ui/app/src/playground/form/PlaygroundObjectPropertyForm.tsx b/packages/ui/app/src/playground/form/PlaygroundObjectPropertyForm.tsx index b2e943c067..c6259c5ce5 100644 --- a/packages/ui/app/src/playground/form/PlaygroundObjectPropertyForm.tsx +++ b/packages/ui/app/src/playground/form/PlaygroundObjectPropertyForm.tsx @@ -1,4 +1,4 @@ -import { ObjectProperty, TypeDefinition, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; +import { ObjectProperty, TypeDefinition, TypeId, unwrapReference } from "@fern-api/fdr-sdk/api-definition"; import { FernButton, FernDropdown } from "@fern-ui/components"; import { useBooleanState } from "@fern-ui/react-commons"; import cn from "clsx"; @@ -19,7 +19,7 @@ interface PlaygroundObjectPropertyFormProps { onChange: (key: string, value: unknown) => void; value: unknown; expandByDefault?: boolean; - types: Record; + types: Record; disabled?: boolean; } @@ -103,14 +103,14 @@ export const PlaygroundObjectPropertiesForm = memo { return properties.filter((property) => - shouldShowProperty(property.valueShape, castToRecord(value)[property.key]), + shouldShowProperty(property.valueShape, types, castToRecord(value)[property.key]), ); - }, [properties, value]); + }, [properties, types, value]); const hiddenProperties = useMemo(() => { return properties.filter( - (property) => !shouldShowProperty(property.valueShape, castToRecord(value)[property.key]), + (property) => !shouldShowProperty(property.valueShape, types, castToRecord(value)[property.key]), ); - }, [properties, value]); + }, [properties, types, value]); const hiddenPropertiesOptions = useMemo(() => { const options = hiddenProperties.map( @@ -213,6 +213,11 @@ export const PlaygroundObjectPropertiesForm = memo, + value: unknown, +): boolean { + const unwrapped = unwrapReference(shape, types); + return !unwrapped.isOptional || value !== undefined; } diff --git a/packages/ui/app/src/playground/form/PlaygroundUniscriminatedUnionForm.tsx b/packages/ui/app/src/playground/form/PlaygroundUniscriminatedUnionForm.tsx index 6b6f82fecb..c7112c5558 100644 --- a/packages/ui/app/src/playground/form/PlaygroundUniscriminatedUnionForm.tsx +++ b/packages/ui/app/src/playground/form/PlaygroundUniscriminatedUnionForm.tsx @@ -3,6 +3,7 @@ import { FernButton, FernDropdown, FernSegmentedControl } from "@fern-ui/compone import { NavArrowDown } from "iconoir-react"; import dynamic from "next/dynamic"; import { memo, useCallback, useMemo, useState } from "react"; +import { renderTypeShorthand } from "../../type-shorthand"; import { getEmptyValueForType, matchesTypeReference } from "../utils"; import { PlaygroundTypeReferenceForm } from "./PlaygroundTypeReferenceForm"; @@ -43,35 +44,15 @@ export const PlaygroundUniscriminatedUnionForm = memo undiscriminatedUnion.variants.map((variant, idx): FernDropdown.Option => { - let labelFallback: string; - switch (variant.shape.type) { - case "literal": - labelFallback = - variant.shape.value.type === "booleanLiteral" - ? variant.shape.value.value - ? "true" - : "false" - : variant.shape.value.value; - break; - case "primitive": - labelFallback = variant.shape.value.type; - break; - case "optional": - labelFallback = variant.shape.shape.type; - break; - default: - labelFallback = variant.shape.type; - break; - } return { type: "value", - label: variant.displayName ?? labelFallback, + label: variant.displayName ?? renderTypeShorthand(variant.shape, {}, types), value: idx.toString(), // todo: handle availability tooltip: variant.description != null ? : undefined, }; }), - [undiscriminatedUnion.variants], + [types, undiscriminatedUnion.variants], ); const selectedOption = options diff --git a/packages/ui/app/src/playground/hooks/useEndpointContext.ts b/packages/ui/app/src/playground/hooks/useEndpointContext.ts index afd09180d6..c7e2768eea 100644 --- a/packages/ui/app/src/playground/hooks/useEndpointContext.ts +++ b/packages/ui/app/src/playground/hooks/useEndpointContext.ts @@ -1,11 +1,9 @@ -import { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import { createEndpointContext, type ApiDefinition, type EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { useSetAtom } from "jotai"; import { useMemo } from "react"; import useSWRImmutable from "swr/immutable"; -import { WRITE_API_DEFINITION_ATOM } from "../../atoms"; +import { useWriteApiDefinitionAtom } from "../../atoms"; import { useApiRoute } from "../../hooks/useApiRoute"; -import { EndpointContext, createEndpointContext } from "../types/endpoint-context"; interface LoadableEndpointContext { context: EndpointContext | undefined; @@ -24,11 +22,7 @@ export function useEndpointContext(node: FernNavigation.EndpointNode | undefined ); const { data: apiDefinition, isLoading } = useSWRImmutable(node != null ? route : null, fetcher); const context = useMemo(() => createEndpointContext(node, apiDefinition), [node, apiDefinition]); - const set = useSetAtom(WRITE_API_DEFINITION_ATOM); - - if (apiDefinition != null) { - set(apiDefinition); - } + useWriteApiDefinitionAtom(apiDefinition); return { context, isLoading }; } diff --git a/packages/ui/app/src/playground/hooks/useOauthEndpointContext.ts b/packages/ui/app/src/playground/hooks/useOauthEndpointContext.ts index 28fa88b392..ab6faf2a3c 100644 --- a/packages/ui/app/src/playground/hooks/useOauthEndpointContext.ts +++ b/packages/ui/app/src/playground/hooks/useOauthEndpointContext.ts @@ -1,4 +1,4 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; +import type { APIV1Read } from "@fern-api/fdr-sdk"; import { EndpointNode } from "@fern-api/fdr-sdk/navigation"; import { atom, useAtomValue } from "jotai"; import { useMemoOne } from "use-memo-one"; diff --git a/packages/ui/app/src/playground/hooks/useWebSocketContext.ts b/packages/ui/app/src/playground/hooks/useWebSocketContext.ts index 87f3c4448c..2922f57fd9 100644 --- a/packages/ui/app/src/playground/hooks/useWebSocketContext.ts +++ b/packages/ui/app/src/playground/hooks/useWebSocketContext.ts @@ -1,11 +1,11 @@ -import { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; +import type { ApiDefinition, WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; +import { createWebSocketContext } from "@fern-api/fdr-sdk/api-definition"; import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; import { useSetAtom } from "jotai"; -import { useMemo } from "react"; +import { useEffect, useMemo } from "react"; import useSWRImmutable from "swr/immutable"; import { WRITE_API_DEFINITION_ATOM } from "../../atoms"; import { useApiRoute } from "../../hooks/useApiRoute"; -import { WebSocketContext, createWebSocketContext } from "../types/endpoint-context"; interface LoadableWebSocketContext { context: WebSocketContext | undefined; @@ -26,9 +26,11 @@ export function useWebSocketContext(node: FernNavigation.WebSocketNode): Loadabl const context = useMemo(() => createWebSocketContext(node, apiDefinition), [node, apiDefinition]); const set = useSetAtom(WRITE_API_DEFINITION_ATOM); - if (apiDefinition != null) { - set(apiDefinition); - } + useEffect(() => { + if (apiDefinition != null) { + set(apiDefinition); + } + }, [apiDefinition, set]); return { context, isLoading }; } diff --git a/packages/ui/app/src/playground/utils/auth-headers.ts b/packages/ui/app/src/playground/utils/auth-headers.ts index 7de71445a0..457dab1999 100644 --- a/packages/ui/app/src/playground/utils/auth-headers.ts +++ b/packages/ui/app/src/playground/utils/auth-headers.ts @@ -1,4 +1,4 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import visitDiscriminatedUnion from "@fern-api/ui-core-utils/visitDiscriminatedUnion"; import { decodeJwt } from "jose"; import { noop } from "ts-essentials"; @@ -10,7 +10,7 @@ import { import { obfuscateSecret } from "./obfuscate-secret"; export function buildAuthHeaders( - auth: APIV1Read.ApiAuth | undefined, + auth: ApiDefinition.AuthScheme | undefined, authState: PlaygroundAuthState, { redacted }: { redacted: boolean }, oAuthClientCredentialReferencedEndpointLoginFlowProps?: Omit< diff --git a/packages/ui/app/src/playground/utils/endpoints.ts b/packages/ui/app/src/playground/utils/endpoints.ts index b9364cfda2..9f2ecfac32 100644 --- a/packages/ui/app/src/playground/utils/endpoints.ts +++ b/packages/ui/app/src/playground/utils/endpoints.ts @@ -1,8 +1,8 @@ +import type { EndpointContext } from "@fern-api/fdr-sdk/api-definition"; import { ExampleEndpointCall } from "@fern-api/fdr-sdk/api-definition"; import { EMPTY_OBJECT } from "@fern-api/ui-core-utils"; import { mapValues } from "lodash-es"; import { PlaygroundEndpointRequestFormState, PlaygroundFormDataEntryValue } from "../types"; -import { EndpointContext } from "../types/endpoint-context"; import { getEmptyValueForHttpRequestBody, getEmptyValueForObjectProperties } from "./default-values"; export function getInitialEndpointRequestFormState( @@ -10,7 +10,10 @@ export function getInitialEndpointRequestFormState( ): PlaygroundEndpointRequestFormState { return { type: "endpoint", - headers: getEmptyValueForObjectProperties(ctx?.endpoint?.requestHeaders, ctx?.types ?? EMPTY_OBJECT), + headers: getEmptyValueForObjectProperties( + [...(ctx?.globalHeaders ?? []), ...(ctx?.endpoint?.requestHeaders ?? [])], + ctx?.types ?? EMPTY_OBJECT, + ), pathParameters: getEmptyValueForObjectProperties(ctx?.endpoint?.pathParameters, ctx?.types ?? EMPTY_OBJECT), queryParameters: getEmptyValueForObjectProperties(ctx?.endpoint?.queryParameters, ctx?.types ?? EMPTY_OBJECT), body: getEmptyValueForHttpRequestBody(ctx?.endpoint?.request?.body, ctx?.types ?? EMPTY_OBJECT), diff --git a/packages/ui/app/src/playground/utils/flatten-apis.ts b/packages/ui/app/src/playground/utils/flatten-apis.ts index 34e0f7188d..c539e94158 100644 --- a/packages/ui/app/src/playground/utils/flatten-apis.ts +++ b/packages/ui/app/src/playground/utils/flatten-apis.ts @@ -33,7 +33,7 @@ export function flattenApiSection(root: FernNavigation.SidebarRootNode | undefin // current node should be included in the breadcrumb const breadcrumb = FernNavigation.utils - .createBreadcrumbs([...parents, node]) + .createBreadcrumb([...parents, node]) .map((breadcrumb) => breadcrumb.title); result.push({ diff --git a/packages/ui/app/src/playground/utils/oauth.ts b/packages/ui/app/src/playground/utils/oauth.ts index 981d522ac7..edd9e39f2a 100644 --- a/packages/ui/app/src/playground/utils/oauth.ts +++ b/packages/ui/app/src/playground/utils/oauth.ts @@ -1,5 +1,5 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; -import { EndpointDefinition, buildEndpointUrl } from "@fern-api/fdr-sdk/api-definition"; +import type { APIV1Read } from "@fern-api/fdr-sdk"; +import { buildEndpointUrl, type EndpointDefinition } from "@fern-api/fdr-sdk/api-definition"; import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; import jsonpath from "jsonpath"; import { mapValues } from "lodash-es"; diff --git a/packages/ui/app/src/playground/utils/select-environment.ts b/packages/ui/app/src/playground/utils/select-environment.ts index e13237de97..698eb85ee6 100644 --- a/packages/ui/app/src/playground/utils/select-environment.ts +++ b/packages/ui/app/src/playground/utils/select-environment.ts @@ -1,4 +1,4 @@ -import { EndpointDefinition, Environment, WebSocketChannel } from "@fern-api/fdr-sdk/api-definition"; +import { EndpointDefinition, Environment, EnvironmentId, WebSocketChannel } from "@fern-api/fdr-sdk/api-definition"; import { useAtomValue } from "jotai"; import { usePlaygroundEnvironment } from "../../atoms"; import { SELECTED_ENVIRONMENT_ATOM } from "../../atoms/environment"; @@ -19,8 +19,10 @@ export function useSelectedEnvironment(endpoint: WebSocketChannel | EndpointDefi return selectEnvironment(endpoint, selectedEnvironmentId); } -export function usePlaygroundBaseUrl(endpoint: WebSocketChannel | EndpointDefinition): string | undefined { +export function usePlaygroundBaseUrl( + endpoint: WebSocketChannel | EndpointDefinition, +): [baseUrl: string | undefined, environmentId: EnvironmentId | undefined] { const environment = useSelectedEnvironment(endpoint); const playgroundBaseUrl = usePlaygroundEnvironment(); - return playgroundBaseUrl ?? environment?.baseUrl; + return [playgroundBaseUrl ?? environment?.baseUrl, environment?.id]; } diff --git a/packages/ui/app/src/playground/utils/snippets.ts b/packages/ui/app/src/playground/utils/snippets.ts index 4badedabfd..229438d722 100644 --- a/packages/ui/app/src/playground/utils/snippets.ts +++ b/packages/ui/app/src/playground/utils/snippets.ts @@ -1,4 +1,4 @@ -import { Snippets } from "@fern-api/fdr-sdk"; +import type { Snippets } from "@fern-api/fdr-sdk"; import { PlaygroundAuthState, PlaygroundEndpointRequestFormState } from "../types"; export function convertToCustomSnippetPayload( diff --git a/packages/ui/app/src/playground/utils/utils.ts b/packages/ui/app/src/playground/utils/utils.ts index ff3542af17..1ffb3709e3 100644 --- a/packages/ui/app/src/playground/utils/utils.ts +++ b/packages/ui/app/src/playground/utils/utils.ts @@ -36,7 +36,7 @@ export function isExpandable( } export function hasRequiredFields( - bodyShape: HttpRequestBodyShape | TypeReference, + bodyShape: HttpRequestBodyShape | TypeShapeOrReference, types: Record, ): boolean { if (bodyShape.type === "formData") { diff --git a/packages/ui/app/src/playground/utils/websocket.ts b/packages/ui/app/src/playground/utils/websocket.ts index 2d5bfe89ad..4c3a9065b8 100644 --- a/packages/ui/app/src/playground/utils/websocket.ts +++ b/packages/ui/app/src/playground/utils/websocket.ts @@ -1,11 +1,14 @@ +import type { WebSocketContext } from "@fern-api/fdr-sdk/api-definition"; import { PlaygroundWebSocketRequestFormState } from "../types"; -import { WebSocketContext } from "../types/endpoint-context"; import { getEmptyValueForObjectProperties, getEmptyValueForType } from "./default-values"; export function getInitialWebSocketRequestFormState(context: WebSocketContext): PlaygroundWebSocketRequestFormState { return { type: "websocket", - headers: getEmptyValueForObjectProperties(context.channel.requestHeaders, context.types), + headers: getEmptyValueForObjectProperties( + [...context.globalHeaders, ...(context.channel.requestHeaders ?? [])], + context.types, + ), pathParameters: getEmptyValueForObjectProperties(context.channel.pathParameters, context.types), queryParameters: getEmptyValueForObjectProperties(context.channel.queryParameters, context.types), messages: Object.fromEntries( diff --git a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts b/packages/ui/app/src/resolver/ApiDefinitionResolver.ts deleted file mode 100644 index dfbe13ff26..0000000000 --- a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts +++ /dev/null @@ -1,273 +0,0 @@ -import type { DocsV1Read } from "@fern-api/fdr-sdk"; -import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { isNonNullish, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; -import { FernRegistry } from "../../../../fdr-sdk/src/client/generated"; -import { type MDX_SERIALIZER } from "../mdx/bundler"; -import type { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiEndpointResolver } from "./ApiEndpointResolver"; -import { ApiTypeResolver } from "./ApiTypeResolver"; -import type { - ResolvedApiPageMetadata, - ResolvedEndpointDefinition, - ResolvedPackageItem, - ResolvedRootPackage, - ResolvedSubpackage, - ResolvedTypeDefinition, - ResolvedWithApiDefinition, -} from "./types"; - -/** - * @deprecated - */ -export interface ApiDefinitionResolverCache { - putResolvedEndpoint({ - apiDefinitionId, - endpoint, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - endpoint: ResolvedEndpointDefinition; - }): Promise; - - getResolvedEndpoint({ - apiDefinitionId, - endpointId, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - endpointId: FernNavigation.EndpointId; - }): Promise; - - putApiPageMetadata({ - apiDefinitionId, - page, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - page: ResolvedApiPageMetadata; - }): Promise; - - getApiPageMetadata({ - apiDefinitionId, - pageId, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - pageId: DocsV1Read.PageId; - }): Promise; - - putResolvedTypeDeclaration({ - apiDefinitionId, - typeId, - type, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - typeId: FernRegistry.TypeId; - type: ResolvedTypeDefinition; - }): Promise; - - getResolvedTypeDeclaration({ - apiDefinitionId, - typeId, - }: { - apiDefinitionId: FernRegistry.ApiDefinitionId; - typeId: FernNavigation.TypeId; - }): Promise; -} - -/** - * @deprecated - */ -export class ApiDefinitionResolver { - public static async resolve( - collector: FernNavigation.NodeCollector, - root: FernNavigation.ApiReferenceNode, - holder: FernNavigation.ApiDefinitionHolder, - pages: Record, - mdxOptions: FernSerializeMdxOptions | undefined, - featureFlags: FeatureFlags, - serializeMdx: MDX_SERIALIZER, - cache?: ApiDefinitionResolverCache, - ): Promise { - const resolver = new ApiDefinitionResolver( - collector, - root, - holder, - new ApiTypeResolver(root.apiDefinitionId, holder.api.types, mdxOptions, serializeMdx, cache), - pages, - featureFlags, - mdxOptions, - serializeMdx, - cache, - ); - return resolver.resolveApiDefinition(); - } - - private resolvedTypes: Record = {}; - - private definitionResolver: ApiEndpointResolver; - private constructor( - private collector: FernNavigation.NodeCollector, // used for breadcrumb generation - private root: FernNavigation.ApiReferenceNode, - private holder: FernNavigation.ApiDefinitionHolder, - private typeResolver: ApiTypeResolver, - private pages: Record, - private featureFlags: FeatureFlags, - private mdxOptions: FernSerializeMdxOptions | undefined, - private serializeMdx: MDX_SERIALIZER, - private cache?: ApiDefinitionResolverCache, - ) { - this.definitionResolver = new ApiEndpointResolver( - this.collector, - this.holder, - typeResolver, - this.resolvedTypes, - featureFlags, - mdxOptions, - serializeMdx, - ); - } - - private async resolveApiDefinition(): Promise { - this.resolvedTypes = await this.typeResolver.resolve(); - - const withPackage = await this.resolveApiDefinitionPackage(this.root); - - return { - type: "rootPackage", - ...withPackage, - api: this.root.apiDefinitionId, - auth: this.holder.api.auth, - types: this.resolvedTypes, - }; - } - - async resolveApiDefinitionPackage( - node: FernNavigation.ApiReferenceNode | FernNavigation.ApiPackageNode, - ): Promise { - const maybeItems = await Promise.all( - node.children.map((item) => - visitDiscriminatedUnion(item)._visit>({ - endpoint: async (endpoint) => { - return this.resolveEndpointDefinitionCached(endpoint); - }, - endpointPair: async (endpointPair) => { - if (this.featureFlags.isBatchStreamToggleDisabled) { - // TODO: sentry - // eslint-disable-next-line no-console - console.error("Batch stream toggle is disabled, but an endpoint pair was found"); - } - const [nonStream, stream] = await Promise.all([ - this.resolveEndpointDefinitionCached(endpointPair.nonStream), - this.resolveEndpointDefinitionCached(endpointPair.stream), - ]); - nonStream.stream = stream; - return nonStream; - }, - link: async () => undefined, - webSocket: (websocket) => this.definitionResolver.resolveWebsocketChannel(websocket), - webhook: (webhook) => this.definitionResolver.resolveWebhookDefinition(webhook), - apiPackage: (section) => this.resolveSubpackage(section), - page: async (page) => { - return this.resolvePage(page); - }, - }), - ), - ); - - const items = maybeItems.filter(isNonNullish); - - if (node.overviewPageId != null && this.pages[node.overviewPageId] != null) { - const resolvedOverviewPage = await this.resolvePage({ - type: "page", - id: node.id, - hidden: node.hidden, - canonicalSlug: node.canonicalSlug, - icon: node.icon, - noindex: node.noindex, - pageId: node.overviewPageId, - title: node.title, - slug: node.slug, - }); - if (resolvedOverviewPage != null) { - items.unshift(resolvedOverviewPage); - } else { - // TODO: alert if the page is null - } - } - - return { - items, - slug: node.slug, - }; - } - - async resolveSubpackage(subpackage: FernNavigation.ApiPackageNode): Promise { - const { items } = await this.resolveApiDefinitionPackage(subpackage); - - if (subpackage == null || items.length === 0) { - return undefined; - } - return { - // description: await this.serializeMdx(subpackage.description), - description: undefined, - availability: undefined, - title: subpackage.title, - type: "subpackage", - slug: subpackage.slug, - items, - }; - } - - private async resolveEndpointDefinitionCached( - endpoint: FernNavigation.EndpointNode, - ): Promise { - const cached = await this.cache?.getResolvedEndpoint({ - apiDefinitionId: endpoint.apiDefinitionId, - endpointId: endpoint.endpointId, - }); - if (cached != null) { - return cached; - } - const resolvedEndpoint = await this.definitionResolver.resolveEndpointDefinition(endpoint); - await this.cache?.putResolvedEndpoint({ - apiDefinitionId: endpoint.apiDefinitionId, - endpoint: resolvedEndpoint, - }); - return resolvedEndpoint; - } - - private async resolvePage(page: FernNavigation.PageNode): Promise { - const cached = await this.cache?.getApiPageMetadata({ - apiDefinitionId: this.root.apiDefinitionId, - pageId: page.pageId, - }); - if (cached != null) { - return cached; - } - const pageContent = this.pages[page.pageId]; - if (pageContent == null) { - return undefined; - } - const resolvedPage: ResolvedApiPageMetadata = { - type: "page", - id: page.pageId, - slug: page.slug, - title: page.title, - markdown: await this.serializeMdx(pageContent.markdown, { - ...this.mdxOptions, - filename: page.pageId, - frontmatterDefaults: { - title: page.title, - breadcrumb: [], // TODO: implement breadcrumbs - "edit-this-page-url": pageContent.editThisPageUrl, - "hide-nav-links": true, - layout: "reference", - "force-toc": this.featureFlags.isTocDefaultEnabled, - }, - }), - }; - await this.cache?.putApiPageMetadata({ - apiDefinitionId: this.root.apiDefinitionId, - page: resolvedPage, - }); - return resolvedPage; - } -} diff --git a/packages/ui/app/src/resolver/ApiEndpointResolver.ts b/packages/ui/app/src/resolver/ApiEndpointResolver.ts deleted file mode 100644 index 2341daeed7..0000000000 --- a/packages/ui/app/src/resolver/ApiEndpointResolver.ts +++ /dev/null @@ -1,771 +0,0 @@ -import { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; -import { compact, mapValues } from "lodash-es"; -import { sortKeysByShape } from "../api-reference/examples/sortKeysByShape"; -import { MDX_SERIALIZER } from "../mdx/bundler"; -import type { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiTypeResolver } from "./ApiTypeResolver"; -import { resolveCodeSnippets } from "./resolveCodeSnippets"; -import type { - ResolvedEndpointDefinition, - ResolvedEndpointPathParts, - ResolvedError, - ResolvedExampleEndpointRequest, - ResolvedExampleEndpointResponse, - ResolvedFormData, - ResolvedFormDataRequestProperty, - ResolvedFormValue, - ResolvedHttpRequestBodyShape, - ResolvedHttpResponseBodyShape, - ResolvedObjectProperty, - ResolvedRequestBody, - ResolvedResponseBody, - ResolvedTypeDefinition, - ResolvedTypeShape, - ResolvedWebSocketChannel, - ResolvedWebhookDefinition, -} from "./types"; - -interface MergedAuthAndHeaders { - auth: APIV1Read.ApiAuth | undefined; - headers: ResolvedObjectProperty[]; -} - -/** - * @deprecated - */ -export class ApiEndpointResolver { - public constructor( - private collector: FernNavigation.NodeCollector, - private holder: FernNavigation.ApiDefinitionHolder, - private typeResolver: ApiTypeResolver, - private resolvedTypes: Record, - private featureFlags: FeatureFlags, - private mdxOptions: FernSerializeMdxOptions | undefined, - private serializeMdx: MDX_SERIALIZER, - ) {} - - async resolveEndpointDefinition(node: FernNavigation.EndpointNode): Promise { - const endpoint = this.holder.endpoints.get(node.endpointId); - if (endpoint == null) { - throw new Error(`Endpoint with ID ${node.endpointId} not found`); - } - const pathParametersPromise = await Promise.all( - endpoint.path.pathParameters.map(async (parameter): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(parameter.type), - this.serializeMdx(parameter.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(parameter.key), - valueShape, - description, - availability: parameter.availability, - hidden: false, - }; - }), - ); - - const queryParametersPromise = Promise.all( - endpoint.queryParameters.map(async (parameter): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(parameter.type), - this.serializeMdx(parameter.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(parameter.key), - valueShape, - description, - availability: parameter.availability, - hidden: false, - }; - }), - ); - - const headersPromise = Promise.all([ - ...endpoint.headers.map(async (header): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(header.type), - this.serializeMdx(header.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(header.key), - valueShape, - description, - availability: header.availability, - hidden: false, - }; - }), - ...(this.holder.api.globalHeaders ?? []).map(async (header): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(header.type), - this.serializeMdx(header.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(header.key), - valueShape, - description, - availability: header.availability, - hidden: true, - }; - }), - ]); - - const errorsPromise = Promise.all( - (endpoint.errorsV2 ?? []).map(async (error): Promise => { - const [shape, description] = await Promise.all([ - error.type != null - ? this.typeResolver.resolveTypeShape({ - typeShape: error.type, - id: `${endpoint.id}-${error.statusCode}-${error.name}`, - name: error.name, - }) - : ({ type: "unknown" } as ResolvedTypeDefinition), - this.serializeMdx(error.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - statusCode: error.statusCode, - name: error.name, - shape, - description, - availability: error.availability, - examples: - error.examples?.map((example) => ({ - name: example.name, - description: example.description, - responseBody: example.responseBody.value, - })) ?? [], - }; - }), - ); - - const descriptionPromise = this.serializeMdx(endpoint.description, { - files: this.mdxOptions?.files, - }); - - const [pathParameters, queryParameters, rawHeaders, errors, description, requestBody, responseBody] = - await Promise.all([ - pathParametersPromise, - queryParametersPromise, - headersPromise, - errorsPromise, - descriptionPromise, - endpoint.request != null ? this.resolveRequestBody(endpoint.request) : undefined, - endpoint.response != null ? this.resolveResponseBody(endpoint.response) : undefined, - ]); - - const path = endpoint.path.parts.map((pathPart): ResolvedEndpointPathParts => { - if (pathPart.type === "literal") { - return pathPart; - } else { - const parameter = pathParameters.find((parameter) => String(parameter.key) === String(pathPart.value)); - if (parameter == null) { - return { - type: "pathParameter", - key: APIV1Read.PropertyKey(pathPart.value), - valueShape: { - type: "unknown", - availability: undefined, - description: undefined, - }, - description: undefined, - availability: undefined, - hidden: false, - }; - } - return { - ...parameter, - type: "pathParameter", - }; - } - }); - - const { auth, headers } = this.mergeAuthAndHeaders(endpoint.authed, this.holder.api.auth, rawHeaders); - - const toRet: ResolvedEndpointDefinition = { - type: "endpoint", - nodeId: node.id, - breadcrumb: FernNavigation.utils.createBreadcrumbs(this.collector.getParents(node.id)), - id: node.endpointId, - slug: node.slug, - description, - auth, - availability: endpoint.availability, - apiDefinitionId: node.apiDefinitionId, - environments: endpoint.environments, - method: endpoint.method, - examples: [], - title: node.title, - defaultEnvironment: endpoint.environments.find((env) => env.id === endpoint.defaultEnvironment), - path, - pathParameters, - queryParameters, - headers, - requestBody, - responseBody, - errors, - snippetTemplates: endpoint.snippetTemplates, - stream: undefined, - }; - - toRet.examples = await Promise.all( - endpoint.examples.map(async (example) => { - const requestBody = this.resolveExampleEndpointRequest(example.requestBodyV3, toRet.requestBody?.shape); - const responseBody = this.resolveExampleEndpointResponse( - example.responseBodyV3, - toRet.responseBody?.shape, - ); - return { - name: example.name, - description: example.description, - path: example.path, - pathParameters: example.pathParameters, - queryParameters: example.queryParameters, - headers: example.headers, - requestBody, - responseStatusCode: example.responseStatusCode, - responseBody, - // TODO: handle this differently for streaming/file responses - // responseHast: - // responseBody != null - // ? highlight(highlighter, JSON.stringify(responseBody.value, undefined, 2), "json") - // : undefined, - snippets: await resolveCodeSnippets( - toRet, - example, - requestBody, - this.featureFlags.isHttpSnippetsEnabled, - this.featureFlags.useJavaScriptAsTypeScript, - this.featureFlags.alwaysEnableJavaScriptFetch, - ), - }; - }), - ); - - return toRet; - } - - async resolveRequestBody(request: APIV1Read.HttpRequest): Promise { - const [shape, description] = await Promise.all([ - this.resolveRequestBodyShape(request.type), - this.serializeMdx(request.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - contentType: request.contentType, - shape, - description, - availability: undefined, - }; - } - - async resolveResponseBody(response: APIV1Read.HttpResponse): Promise { - const [shape, description] = await Promise.all([ - this.resolveResponseBodyShape(response.type), - this.serializeMdx(response.description, { - files: this.mdxOptions?.files, - }), - ]); - return { shape, description, statusCode: response?.statusCode ?? 200, availability: undefined }; - } - - // HACKHACK: this handles the case where FernIR is unable to interpret the security scheme for AsyncAPI - // and that we direct users to specify the websocket bindings instead. - mergeAuthAndHeaders( - authed: boolean, - auth: APIV1Read.ApiAuth | undefined, - headers: ResolvedObjectProperty[], - ): MergedAuthAndHeaders { - if (authed && auth != null) { - return { auth, headers }; - } - - for (const header of headers) { - if ( - APIV1Read.PropertyKey(header.key).toLowerCase() === "authorization" || - APIV1Read.PropertyKey(header.key).toLowerCase().includes("api-key") || - APIV1Read.PropertyKey(header.key).toLowerCase().includes("apikey") - ) { - const auth: APIV1Read.ApiAuth = { - type: "header", - headerWireValue: APIV1Read.PropertyKey(header.key), - nameOverride: undefined, - prefix: undefined, - }; - return { auth, headers: headers.filter((h) => h.key !== APIV1Read.PropertyKey(header.key)) }; - } - } - - return { auth: undefined, headers }; - } - - async resolveWebsocketChannel(node: FernNavigation.WebSocketNode): Promise { - const channel = this.holder.webSockets.get(node.webSocketId); - if (channel == null) { - throw new Error(`WebSocket channel with ID ${node.webSocketId} not found`); - } - const pathParametersPromise = Promise.all( - channel.path.pathParameters.map( - async (parameter): Promise => ({ - key: APIV1Read.PropertyKey(parameter.key), - valueShape: await this.typeResolver.resolveTypeReference(parameter.type), - description: await this.serializeMdx(parameter.description, { - files: this.mdxOptions?.files, - }), - availability: parameter.availability, - hidden: false, - }), - ), - ); - const headersPromise = Promise.all([ - ...channel.headers.map(async (header): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(header.type), - this.serializeMdx(header.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(header.key), - valueShape, - description, - availability: header.availability, - hidden: false, - }; - }), - ...(this.holder.api.globalHeaders ?? []).map(async (header): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(header.type), - this.serializeMdx(header.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(header.key), - valueShape, - description, - availability: header.availability, - hidden: true, - }; - }), - ]); - const queryParametersPromise = Promise.all( - channel.queryParameters.map(async (parameter): Promise => { - const [valueShape, description] = await Promise.all([ - this.typeResolver.resolveTypeReference(parameter.type), - this.serializeMdx(parameter.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: APIV1Read.PropertyKey(parameter.key), - valueShape, - description, - availability: parameter.availability, - hidden: false, - }; - }), - ); - const messagesPromise = Promise.all( - channel.messages.map(async ({ type, body, origin, displayName, description, availability }) => { - const [resolvedBody, resolvedDescription] = await Promise.all([ - this.resolvePayloadShape(body), - this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - ]); - return { - type, - body: resolvedBody, - displayName, - origin, - description: resolvedDescription, - availability, - }; - }), - ); - - const descriptionPromise = this.serializeMdx(channel.description, { - files: this.mdxOptions?.files, - }); - - const [pathParameters, rawHeaders, queryParameters, messages, description] = await Promise.all([ - pathParametersPromise, - headersPromise, - queryParametersPromise, - messagesPromise, - descriptionPromise, - ]); - - // HACKHACK: force auth=true forces auth to always be included since websocket security schemes is borked in FernIR -> FDR - const { auth, headers } = this.mergeAuthAndHeaders(true, this.holder.api.auth, rawHeaders); - - return { - type: "websocket", - nodeId: node.id, - breadcrumb: FernNavigation.utils.createBreadcrumbs(this.collector.getParents(node.id)), - auth, - environments: channel.environments, - id: node.webSocketId, - apiDefinitionId: node.apiDefinitionId, - description, - availability: channel.availability, - slug: node.slug, - title: node.title, - path: channel.path.parts - .map((pathPart): ResolvedEndpointPathParts | undefined => { - if (pathPart.type === "literal") { - return { ...pathPart }; - } else { - const correspondingParameter = pathParameters.find( - (param) => String(param.key) === String(pathPart.value), - ); - if (correspondingParameter === undefined) { - // eslint-disable-next-line no-console - console.error( - "Path parameter contained within path.parts not found within websocket.path.pathParameters", - ); - return; - } else { - return { ...pathPart, ...correspondingParameter }; - } - } - }) - .filter((param) => param !== undefined) as ResolvedEndpointPathParts[], - headers, - pathParameters, - queryParameters, - messages, - examples: channel.examples, - defaultEnvironment: channel.environments.find((env) => env.id === channel.defaultEnvironment), - }; - } - - async resolveWebhookDefinition(node: FernNavigation.WebhookNode): Promise { - const webhook = this.holder.webhooks.get(node.webhookId); - if (webhook == null) { - throw new Error(`Webhook with ID ${node.webhookId} not found`); - } - const [payloadShape, description, headers] = await Promise.all([ - this.resolvePayloadShape(webhook.payload.type), - await this.serializeMdx(webhook.description, { - files: this.mdxOptions?.files, - }), - Promise.all( - webhook.headers.map( - async (header): Promise => ({ - key: APIV1Read.PropertyKey(header.key), - valueShape: await this.typeResolver.resolveTypeReference(header.type), - description: await this.serializeMdx(header.description, { - files: this.mdxOptions?.files, - }), - availability: header.availability, - hidden: false, - }), - ), - ), - ]); - return { - type: "webhook", - nodeId: node.id, - breadcrumb: FernNavigation.utils.createBreadcrumbs(this.collector.getParents(node.id)), - title: node.title, - description, - availability: undefined, - slug: node.slug, - method: webhook.method, - apiDefinitionId: node.apiDefinitionId, - id: node.webhookId, - path: webhook.path, - headers, - payload: { - shape: payloadShape, - description: await this.serializeMdx(webhook.payload.description, { - files: this.mdxOptions?.files, - }), - availability: undefined, - }, - examples: webhook.examples.map((example) => { - const sortedPayload = this.safeSortKeysByShape(example.payload, payloadShape); - return { payload: sortedPayload }; - }), - }; - } - - resolvePayloadShape( - payloadShape: APIV1Read.WebhookPayloadShape | APIV1Read.WebSocketMessageBodyShape, - ): Promise { - return visitDiscriminatedUnion(payloadShape, "type")._visit>({ - object: async (object) => ({ - type: "object", - name: undefined, - extends: object.extends, - properties: await this.typeResolver.resolveObjectProperties(object), - description: undefined, - availability: undefined, - }), - reference: (reference) => this.typeResolver.resolveTypeReference(reference.value), - _other: () => - Promise.resolve({ - type: "unknown", - availability: undefined, - description: undefined, - }), - }); - } - - resolveRequestBodyShape(requestBodyShape: APIV1Read.HttpRequestBodyShape): Promise { - return visitDiscriminatedUnion(requestBodyShape, "type")._visit>({ - object: async (object) => ({ - type: "object", - name: undefined, - extends: object.extends, - properties: await this.typeResolver.resolveObjectProperties(object), - description: undefined, - availability: undefined, - }), - formData: this.resolveFormData, - fileUpload: (fileUpload) => - fileUpload.value != null - ? this.resolveFormData(fileUpload.value) - : Promise.resolve({ - type: "formData", - name: "Form Data", - properties: [], - description: undefined, - availability: undefined, - }), - bytes: (bytes) => Promise.resolve(bytes), - reference: (reference) => this.typeResolver.resolveTypeReference(reference.value), - _other: () => - Promise.resolve({ - type: "unknown", - availability: undefined, - description: undefined, - }), - }); - } - - async resolveFormData(formData: APIV1Read.FormDataRequest): Promise { - return { - type: "formData", - description: await this.serializeMdx(formData.description, { - files: this.mdxOptions?.files, - }), - availability: formData.availability, - name: formData.name, - properties: await Promise.all( - formData.properties.map(async (property): Promise => { - switch (property.type) { - case "file": { - const description = await this.serializeMdx(property.value.description, { - files: this.mdxOptions?.files, - }); - return { - type: property.value.type, - key: property.value.key, - description, - availability: property.value.availability, - isOptional: property.value.isOptional, - contentType: property.value.contentType, - }; - } - case "bodyProperty": { - const [description, valueShape] = await Promise.all([ - this.serializeMdx(property.description, { - files: this.mdxOptions?.files, - }), - this.typeResolver.resolveTypeReference(property.valueType), - ]); - return { - type: "bodyProperty", - key: property.key, - description, - availability: property.availability, - valueShape, - hidden: false, - contentType: property.contentType, - }; - } - } - }), - ), - }; - } - - resolveResponseBodyShape( - responseBodyShape: APIV1Read.HttpResponseBodyShape, - ): Promise { - return Promise.resolve( - visitDiscriminatedUnion(responseBodyShape, "type")._visit< - ResolvedHttpResponseBodyShape | Promise - >({ - object: async (object) => ({ - type: "object", - name: undefined, - extends: object.extends, - properties: await this.typeResolver.resolveObjectProperties(object), - description: undefined, - availability: undefined, - }), - fileDownload: (fileDownload) => fileDownload, - streamingText: (streamingText) => streamingText, - streamCondition: (streamCondition) => streamCondition, - reference: (reference) => this.typeResolver.resolveTypeReference(reference.value), - stream: async (stream) => { - if (stream.shape.type === "reference") { - return { - type: "stream", - value: await this.typeResolver.resolveTypeReference(stream.shape.value), - }; - } - return { - type: "stream", - value: { - type: "object", - name: undefined, - extends: stream.shape.extends, - properties: await this.typeResolver.resolveObjectProperties(stream.shape), - description: undefined, - availability: undefined, - }, - }; - }, - _other: () => ({ type: "unknown", availability: undefined, description: undefined }), - }), - ); - } - - resolveExampleEndpointRequest( - requestBodyV3: APIV1Read.ExampleEndpointRequest | undefined, - shape: ResolvedHttpRequestBodyShape | undefined, - ): ResolvedExampleEndpointRequest | undefined { - if (requestBodyV3 == null) { - return undefined; - } - return visitDiscriminatedUnion(requestBodyV3, "type")._visit({ - json: (json) => ({ - type: "json", - value: this.safeSortKeysByShape(json.value, shape), - }), - form: (form) => ({ - type: "form", - value: mapValues(form.value, (v, key) => - visitDiscriminatedUnion(v, "type")._visit({ - json: (value) => { - const property = - shape?.type === "formData" - ? shape.properties.find((p) => p.key === key && p.type === "bodyProperty") - : undefined; - // this is a hack to allow the API Playground to send JSON blobs in form data - // revert this once we have a better solution - const contentType = - compact(property?.contentType)[0] ?? - (this.featureFlags.usesApplicationJsonInFormDataValue ? "application/json" : undefined); - return { type: "json" as const, value: value.value, contentType }; - }, - filename: (value) => ({ - type: "file", - fileName: value.value, - fileId: undefined, - contentType: undefined, - }), - filenames: (value) => ({ - type: "fileArray", - files: value.value.map((v) => ({ - type: "file", - fileName: v, - fileId: undefined, - contentType: undefined, - })), - }), - filenameWithData: (value) => ({ - type: "file", - fileName: value.filename, - fileId: value.data, - contentType: undefined, - }), - filenamesWithData: (value) => ({ - type: "fileArray", - files: value.value.map((v) => ({ - type: "file", - fileName: v.filename, - fileId: v.data, - contentType: undefined, - })), - }), - _other: () => ({ type: "json", value: undefined, contentType: undefined }), - }), - ), - }), - bytes: (bytes) => ({ type: "bytes", value: bytes.value.value, fileName: undefined }), - _other: () => undefined, - }); - } - - resolveExampleEndpointResponse( - responseBodyV3: APIV1Read.ExampleEndpointResponse | undefined, - shape: ResolvedHttpResponseBodyShape | undefined, - ): ResolvedExampleEndpointResponse | undefined { - if (responseBodyV3 == null) { - return undefined; - } - return visitDiscriminatedUnion(responseBodyV3, "type")._visit({ - json: (json) => ({ - type: "json", - value: json.value != null ? this.safeSortKeysByShape(json.value, shape) : undefined, - }), - filename: (filename) => ({ type: "filename", value: filename.value }), - stream: (stream) => ({ - type: "stream", - value: stream.value.map((streamValue) => this.safeSortKeysByShape(streamValue, shape)), - }), - sse: (sse) => ({ - type: "sse", - value: sse.value.map((sse) => ({ - event: sse.event, - data: this.safeSortKeysByShape(sse.data, shape), - })), - }), - _other: () => undefined, - }); - } - - safeSortKeysByShape( - value: unknown, - shape: ResolvedTypeShape | ResolvedHttpRequestBodyShape | ResolvedHttpResponseBodyShape | null | undefined, - ): unknown { - if (value == null) { - return value; - } - try { - return this.stripUndefines(sortKeysByShape(value, shape, this.resolvedTypes)); - } catch (e) { - // TODO: sentry - // eslint-disable-next-line no-console - console.error( - "Failed to sort and strip undefines from JSON value, indicating a bug in the resolver. This error should be investigated.", - e, - ); - - return value; - } - } - - stripUndefines(obj: unknown): unknown { - return JSON.parse(JSON.stringify(obj)); - } -} diff --git a/packages/ui/app/src/resolver/ApiTypeResolver.ts b/packages/ui/app/src/resolver/ApiTypeResolver.ts deleted file mode 100644 index ae9d6481af..0000000000 --- a/packages/ui/app/src/resolver/ApiTypeResolver.ts +++ /dev/null @@ -1,260 +0,0 @@ -import { FernNavigation } from "@fern-api/fdr-sdk"; -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { once } from "lodash-es"; -import { MDX_SERIALIZER } from "../mdx/bundler"; -import { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiDefinitionResolverCache } from "./ApiDefinitionResolver"; -import { - NonOptionalTypeShapeWithReference, - ResolvedObjectProperty, - ResolvedReferenceShape, - ResolvedTypeDefinition, - ResolvedTypeShape, -} from "./types"; - -/** - * @deprecated - */ -export class ApiTypeResolver { - public constructor( - private apiDefinitionId: APIV1Read.ApiDefinitionId, - private types: Record, - private mdxOptions: FernSerializeMdxOptions | undefined, - private serializeMdx: MDX_SERIALIZER, - private cache?: ApiDefinitionResolverCache, - ) {} - - public resolve = once(async (): Promise> => { - return Object.fromEntries( - await Promise.all( - Object.entries(this.types).map(async ([key, value]) => { - return [key, await this.resolveTypeDefinition(key, value)]; - }), - ), - ); - }); - - public resolveTypeDefinition( - id: string, - typeDefinition: APIV1Read.TypeDefinition, - ): Promise { - return this.resolveTypeShape({ - id, - name: typeDefinition.name, - typeShape: typeDefinition.shape, - description: typeDefinition.description, - availability: typeDefinition.availability, - }); - } - - public async resolveTypeShape({ - id, - name, - typeShape, - description, - availability, - }: { - id: string; - name: string | undefined; - typeShape: APIV1Read.TypeShape; - description?: string; - availability?: APIV1Read.Availability; - }): Promise { - const cached = await this.cache?.getResolvedTypeDeclaration({ - apiDefinitionId: this.apiDefinitionId, - typeId: FernNavigation.TypeId(id), - }); - if (cached != null) { - return cached; - } - const computed = await visitDiscriminatedUnion(typeShape, "type")._visit>({ - object: async (object) => ({ - type: "object", - name, - extends: object.extends, - properties: await this.resolveObjectProperties(object), - description: await this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - availability, - }), - enum: async (enum_) => ({ - type: "enum", - name, - values: await Promise.all( - enum_.values.map(async (enumValue) => ({ - value: enumValue.value, - description: await this.serializeMdx(enumValue.description, { - files: this.mdxOptions?.files, - }), - availability: undefined, - })), - ), - description: await this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - availability, - default: enum_.default, - }), - undiscriminatedUnion: async (undiscriminatedUnion) => ({ - type: "undiscriminatedUnion", - name, - variants: await Promise.all( - undiscriminatedUnion.variants.map(async (variant) => ({ - displayName: variant.displayName, - shape: await this.resolveTypeReference(variant.type), - description: await this.serializeMdx(variant.description, { - files: this.mdxOptions?.files, - }), - availability: variant.availability, - })), - ), - description: await this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - availability, - }), - alias: async (alias) => ({ - type: "alias", - name, - shape: await this.resolveTypeReference(alias.value), - description: await this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - availability, - }), - discriminatedUnion: async (discriminatedUnion) => { - return { - type: "discriminatedUnion", - name, - discriminant: discriminatedUnion.discriminant, - variants: await Promise.all( - discriminatedUnion.variants.map(async (variant) => ({ - discriminantValue: variant.discriminantValue, - extends: variant.additionalProperties.extends, - properties: await this.resolveObjectProperties(variant.additionalProperties), - description: await this.serializeMdx(variant.description, { - files: this.mdxOptions?.files, - }), - displayName: variant.displayName, - availability: variant.availability, - })), - ), - description: await this.serializeMdx(description, { - files: this.mdxOptions?.files, - }), - availability, - }; - }, - _other: () => - Promise.resolve({ - type: "unknown", - availability: undefined, - description: undefined, - }), - }); - await this.cache?.putResolvedTypeDeclaration({ - apiDefinitionId: this.apiDefinitionId, - type: computed, - typeId: FernNavigation.TypeId(id), - }); - return computed; - } - - private typeRefCache = new WeakMap>(); - - public resolveTypeReference(typeReference: APIV1Read.TypeReference): Promise { - const cached = this.typeRefCache.get(typeReference); - if (cached) { - return cached; - } - const uncached = Promise.resolve( - visitDiscriminatedUnion(typeReference, "type")._visit>({ - literal: (literal) => ({ - type: "literal", - value: literal.value, - description: undefined, - availability: undefined, - }), - unknown: (unknown) => ({ - ...unknown, - availability: undefined, - description: undefined, - }), - optional: async (optional) => ({ - type: "optional", - shape: await this.unwrapOptionalRaw(await this.resolveTypeReference(optional.itemType)), - availability: undefined, - description: undefined, - }), - list: async (list) => ({ - type: "list", - shape: await this.resolveTypeReference(list.itemType), - availability: undefined, - description: undefined, - }), - set: async (set) => ({ - type: "set", - shape: await this.resolveTypeReference(set.itemType), - availability: undefined, - description: undefined, - }), - map: async (map) => ({ - type: "map", - keyShape: await this.resolveTypeReference(map.keyType), - valueShape: await this.resolveTypeReference(map.valueType), - availability: undefined, - description: undefined, - }), - id: ({ value: typeId }): ResolvedReferenceShape | APIV1Read.TypeReference.Unknown => { - const typeDefinition = this.types[typeId]; - if (typeDefinition == null) { - return { type: "unknown" }; - } - return { type: "reference", typeId }; - }, - primitive: (primitive) => ({ - type: "primitive", - value: primitive.value, - description: undefined, - availability: undefined, - }), - _other: () => ({ type: "unknown", availability: undefined, description: undefined }), - }), - ); - this.typeRefCache.set(typeReference, uncached); - return uncached; - } - - public resolveObjectProperties(object: APIV1Read.ObjectType): Promise { - return Promise.all( - object.properties.map(async (property): Promise => { - const [valueShape, description] = await Promise.all([ - this.resolveTypeReference(property.valueType), - this.serializeMdx(property.description, { - files: this.mdxOptions?.files, - }), - ]); - return { - key: property.key, - valueShape, - description, - availability: property.availability, - hidden: false, - }; - }), - ); - } - - private async unwrapOptionalRaw(shape: ResolvedTypeShape): Promise { - if (shape.type === "optional") { - return this.unwrapOptionalRaw(shape.shape); - } - return shape; - } - - public getTypes(): Record { - return this.types; - } -} diff --git a/packages/ui/app/src/resolver/DocsContent.ts b/packages/ui/app/src/resolver/DocsContent.ts index 9f4a79158a..0d49a24ea5 100644 --- a/packages/ui/app/src/resolver/DocsContent.ts +++ b/packages/ui/app/src/resolver/DocsContent.ts @@ -1,7 +1,6 @@ -import type { APIV1Read, FdrAPI } from "@fern-api/fdr-sdk"; +import type { ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import type { ResolvedApiEndpoint, ResolvedRootPackage, ResolvedTypeDefinition } from "./types"; export declare namespace DocsContent { export interface Neighbor { @@ -38,32 +37,34 @@ export declare namespace DocsContent { interface CustomMarkdownPage { type: "custom-markdown-page"; slug: FernNavigation.Slug; - title: string; mdx: FernDocs.MarkdownText; neighbors: Neighbors; // TODO: downselect apis to only the fields we need - apis: Record; + apis: Record; } interface ApiEndpointPage { type: "api-endpoint-page"; slug: FernNavigation.Slug; - api: FdrAPI.ApiDefinitionId; - auth: APIV1Read.ApiAuth | undefined; - types: Record; - item: ResolvedApiEndpoint; + nodeId: FernNavigation.NodeId; + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; + apiDefinition: ApiDefinition; showErrors: boolean; neighbors: Neighbors; } + // TODO: it's a bit excessive to resolve and send all the pages here rather than simply stream them interface ApiReferencePage { type: "api-reference-page"; - title: string; slug: FernNavigation.Slug; - api: string; - paginated: boolean; - apiDefinition: ResolvedRootPackage; - showErrors: boolean; + title?: string; + mdxs: Record; + + // TODO: the api reference node is probably duplicated in the initial props + // so we should deduplicate it to avoid sending it twice + breadcrumb: readonly FernNavigation.BreadcrumbItem[]; // this is the breadcrumb up to the api reference node + apiReferenceNodeId: FernNavigation.NodeId; + apiDefinition: ApiDefinition; } } diff --git a/packages/ui/app/src/resolver/SchemaWithExample.ts b/packages/ui/app/src/resolver/SchemaWithExample.ts deleted file mode 100644 index 783dd56a52..0000000000 --- a/packages/ui/app/src/resolver/SchemaWithExample.ts +++ /dev/null @@ -1,321 +0,0 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { noop } from "ts-essentials"; -import { - ResolvedCodeSnippet, - ResolvedEndpointDefinition, - ResolvedExampleEndpointCall, - ResolvedExampleEndpointRequest, - ResolvedExampleEndpointResponse, - ResolvedFormValue, - ResolvedHttpResponseStreamShape, - ResolvedObjectProperty, - ResolvedRequestBody, - ResolvedResponseBody, - ResolvedTypeShape, - visitResolvedHttpRequestBodyShape, - visitResolvedHttpResponseBodyShape, -} from "./types"; - -/** - * @deprecated - */ -export interface ResolvedExampleValueWithSchema { - schema: ResolvedTypeShape; - value: unknown; -} - -/** - * @deprecated - */ -export type ResolvedExampleEndpointRequestWithSchema = - | ResolvedExampleEndpointRequestWithSchema.Json - | ResolvedExampleEndpointRequestWithSchema.Form - | ResolvedExampleEndpointRequestWithSchema.Bytes; - -/** - * @deprecated - */ -export declare namespace ResolvedExampleEndpointRequestWithSchema { - interface Json { - type: "json"; - schema: ResolvedTypeShape; - value: unknown; - } - - interface Form { - type: "form"; - value: Record; - } - - interface Bytes extends ResolvedExampleEndpointRequest.Bytes, APIV1Read.HttpRequestBodyShape.Bytes {} -} - -/** - * @deprecated - */ -export type ResolvedExampleFormValueWithSchema = - | ResolvedExampleFormValueWithSchema.Json - | ResolvedExampleFormValueWithSchema.SingleFile - | ResolvedExampleFormValueWithSchema.MultipleFiles; - -/** - * @deprecated - */ -export declare namespace ResolvedExampleFormValueWithSchema { - interface Json { - type: "json"; - value: unknown | undefined; - contentType: string | undefined; - schema: ResolvedTypeShape; - } - - interface SingleFile extends ResolvedFormValue.SingleFile { - type: "file"; - fileName: string; - fileId: string | undefined; // lookup file by UUID - } - - interface MultipleFiles extends ResolvedFormValue.MultipleFiles { - type: "fileArray"; - files: SingleFile[]; - } -} - -/** - * @deprecated - */ -export type ResolvedExampleEndpointResponseWithSchema = - | ResolvedExampleEndpointResponseWithSchema.Json - | ResolvedExampleEndpointResponseWithSchema.Filename - | ResolvedExampleEndpointResponseWithSchema.Stream - | ResolvedExampleEndpointResponseWithSchema.ServerSentEvents; - -/** - * @deprecated - */ -export declare namespace ResolvedExampleEndpointResponseWithSchema { - interface Json { - type: "json"; - value: unknown | undefined; - schema: ResolvedTypeShape; - statusCode: number; - } - - interface Filename { - type: "filename"; - value: string | undefined; - schema: APIV1Read.HttpResponseBodyShape.FileDownload; - statusCode: number; - } - - interface Stream { - type: "stream"; - value: unknown[]; - schema: ResolvedHttpResponseStreamShape; - } - - interface ServerSentEvent { - event: string; - data: unknown | undefined; - } - - interface ServerSentEvents { - type: "sse"; - value: ServerSentEvent[]; - schema: ResolvedHttpResponseStreamShape; - } -} - -/** - * @deprecated - */ -export interface ResolvedExampleEndpointCallWithSchema { - name: string | undefined; - description: string | undefined; - path: string; - pathParameters: Record; - queryParameters: Record; - headers: Record; - requestBody: ResolvedExampleEndpointRequestWithSchema | undefined; - responseStatusCode: number; - responseBody: ResolvedExampleEndpointResponseWithSchema | undefined; - snippets: ResolvedCodeSnippet[]; -} - -/** - * @deprecated - */ -function mergeSchemaWithExample( - properties: ResolvedObjectProperty[] | undefined, - example: Record | undefined, -): Record { - if (properties == null || example == null) { - return {}; - } - - return properties.reduce>((acc, property) => { - acc[property.key] = { - schema: property.valueShape, - value: example[property.key], - }; - return acc; - }, {}); -} - -/** - * @deprecated - */ -function mergeRequestBodySchemaWithExample( - requestBody: ResolvedRequestBody | undefined, - example: ResolvedExampleEndpointRequest | undefined, -): ResolvedExampleEndpointRequestWithSchema | undefined { - if (requestBody == null || example == null) { - return undefined; - } - - return visitResolvedHttpRequestBodyShape(requestBody.shape, { - formData: (schema) => { - if (example.type !== "form") { - return undefined; - } - const value: Record = {}; - - for (const property of schema.properties) { - const propertyValue = example.value[property.key]; - if (propertyValue == null) { - continue; - } - - visitDiscriminatedUnion(property, "type")._visit({ - file: (fileValue) => { - if (propertyValue.type === "file") { - value[property.key] = { - ...fileValue, - ...propertyValue, - }; - } - }, - fileArray: (fileArrayValue) => { - if (propertyValue.type === "fileArray") { - value[property.key] = { - ...fileArrayValue, - ...propertyValue, - }; - } - }, - bodyProperty: (bodyProperty) => { - if (propertyValue.type === "json") { - value[property.key] = { - type: "json", - contentType: propertyValue.contentType, - schema: bodyProperty.valueShape, - value: propertyValue.value, - }; - } - }, - _other: noop, - }); - } - - return { type: "form", value }; - }, - bytes: (schema) => { - if (example.type !== "bytes") { - return undefined; - } - - return { ...example, ...schema }; - }, - typeShape: (schema) => { - if (example.type !== "json") { - return undefined; - } - - return { - type: "json", - schema, - value: example.value, - }; - }, - }); -} - -/** - * @deprecated - */ -function mergeResponseBodySchemaWithExample( - responseBody: ResolvedResponseBody | undefined, - example: ResolvedExampleEndpointResponse | undefined, -): ResolvedExampleEndpointResponseWithSchema | undefined { - if (responseBody == null) { - return undefined; - } - - return visitResolvedHttpResponseBodyShape( - responseBody.shape, - { - fileDownload: (schema) => ({ - type: "filename", - value: example?.type === "filename" ? example.value : undefined, - schema, - statusCode: responseBody.statusCode, - }), - streamingText: (schema) => { - if (example?.type === "stream") { - return { type: "stream", value: example.value, schema }; - } else if (example?.type === "sse") { - return { type: "sse", value: example.value, schema }; - } else { - return undefined; - } - }, - streamCondition: (schema) => { - if (example?.type === "stream") { - return { type: "stream", value: example.value, schema }; - } else if (example?.type === "sse") { - return { type: "sse", value: example.value, schema }; - } else { - return undefined; - } - }, - stream: (schema) => { - if (example?.type === "stream") { - return { type: "stream", value: example.value, schema }; - } else if (example?.type === "sse") { - return { type: "sse", value: example.value, schema }; - } else { - return undefined; - } - }, - typeShape: (schema) => { - if (example == null || example.type !== "json") { - return undefined; - } - - return { type: "json", schema, value: example.value, statusCode: responseBody.statusCode }; - }, - }, - ); -} - -/** - * @deprecated - */ -export function mergeEndpointSchemaWithExample( - endpoint: ResolvedEndpointDefinition | undefined, - example: ResolvedExampleEndpointCall, -): ResolvedExampleEndpointCallWithSchema { - return { - name: example.name, - description: example.description, - path: example.path, - pathParameters: mergeSchemaWithExample(endpoint?.pathParameters, example.pathParameters), - queryParameters: mergeSchemaWithExample(endpoint?.queryParameters, example.queryParameters), - headers: mergeSchemaWithExample(endpoint?.headers, example.headers), - requestBody: mergeRequestBodySchemaWithExample(endpoint?.requestBody, example.requestBody), - responseStatusCode: example.responseStatusCode, - responseBody: mergeResponseBodySchemaWithExample(endpoint?.responseBody, example.responseBody), - snippets: example.snippets, - }; -} diff --git a/packages/ui/app/src/resolver/__test__/ApiDefinitionResolver.test.ts b/packages/ui/app/src/resolver/__test__/ApiDefinitionResolver.test.ts deleted file mode 100644 index 5d7eb4f8c4..0000000000 --- a/packages/ui/app/src/resolver/__test__/ApiDefinitionResolver.test.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { DEFAULT_FEATURE_FLAGS } from "@fern-ui/fern-docs-utils"; -import fs from "fs"; -import path from "path"; -import { serializeMdx } from "../../mdx/bundlers/next-mdx-remote"; -import { ApiDefinitionResolver } from "../ApiDefinitionResolver"; -import { ResolvedEndpointDefinition } from "../types"; - -describe("resolveApiDefinition", () => { - it("should finish resolving", async () => { - const fixturePath = path.join(__dirname, "fixtures/recursive-reference.json"); - const content = fs.readFileSync(fixturePath, "utf-8"); - - const fixture = JSON.parse(content) as APIV1Read.ApiDefinition; - const holder = FernNavigation.ApiDefinitionHolder.create(fixture); - - // mocked node - const v1 = FernNavigation.V1.ApiReferenceNavigationConverter.convert( - { - title: "API Reference", - api: fixture.id, - skipUrlSlug: false, - showErrors: true, - urlSlug: "api-reference", - artifacts: undefined, - changelog: undefined, - navigation: undefined, - longScrolling: undefined, - flattened: undefined, - icon: undefined, - hidden: undefined, - fullSlug: undefined, - }, - fixture, - ); - const node = FernNavigation.migrate.FernNavigationV1ToLatest.create().apiReference(v1, []); - const collector = FernNavigation.NodeCollector.collect(node); - - const resolved = await ApiDefinitionResolver.resolve( - collector, - node, - holder, - {}, - undefined, - DEFAULT_FEATURE_FLAGS, - serializeMdx, - ); - expect(resolved).toMatchSnapshot(); - }); - - it("should resolve authed and unauthed endpoints", async () => { - const fixturePath = path.join(__dirname, "fixtures/authed.json"); - const content = fs.readFileSync(fixturePath, "utf-8"); - - const fixture = JSON.parse(content) as APIV1Read.ApiDefinition; - const holder = FernNavigation.ApiDefinitionHolder.create(fixture); - - // mocked node - const v1 = FernNavigation.V1.ApiReferenceNavigationConverter.convert( - { - title: "API Reference", - api: fixture.id, - skipUrlSlug: false, - showErrors: true, - urlSlug: "api-reference", - artifacts: undefined, - changelog: undefined, - navigation: undefined, - longScrolling: undefined, - flattened: undefined, - icon: undefined, - hidden: undefined, - fullSlug: undefined, - }, - fixture, - ); - const node = FernNavigation.migrate.FernNavigationV1ToLatest.create().apiReference(v1, []); - const collector = FernNavigation.NodeCollector.collect(node); - - const resolved = await ApiDefinitionResolver.resolve( - collector, - node, - holder, - {}, - undefined, - DEFAULT_FEATURE_FLAGS, - serializeMdx, - ); - expect(resolved).toMatchSnapshot(); - // eslint-disable-next-line deprecation/deprecation - expect((resolved.items[0] as ResolvedEndpointDefinition).auth).toBeUndefined(); - // eslint-disable-next-line deprecation/deprecation - expect((resolved.items[1] as ResolvedEndpointDefinition).auth?.type).toBe("bearerAuth"); - // eslint-disable-next-line deprecation/deprecation - expect((resolved.items[2] as ResolvedEndpointDefinition).auth).toEqual({ - type: "header", - headerWireValue: "test-api-key", - }); - }); -}); diff --git a/packages/ui/app/src/resolver/__test__/__snapshots__/ApiDefinitionResolver.test.ts.snap b/packages/ui/app/src/resolver/__test__/__snapshots__/ApiDefinitionResolver.test.ts.snap deleted file mode 100644 index 2eee953a6d..0000000000 --- a/packages/ui/app/src/resolver/__test__/__snapshots__/ApiDefinitionResolver.test.ts.snap +++ /dev/null @@ -1,452 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`resolveApiDefinition > should finish resolving 1`] = ` -{ - "api": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": { - "tokenName": "token", - "type": "bearerAuth", - }, - "items": [ - { - "availability": undefined, - "description": undefined, - "items": [ - { - "apiDefinitionId": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": { - "tokenName": "token", - "type": "bearerAuth", - }, - "availability": undefined, - "breadcrumb": [ - { - "pointsTo": "api-reference/merchants/get-merchants", - "title": "API Reference", - }, - { - "pointsTo": "api-reference/merchants/get-merchants", - "title": "Merchants", - }, - ], - "defaultEnvironment": undefined, - "description": "Request Rewards Merchants", - "environments": [], - "errors": [], - "examples": [], - "headers": [], - "id": "subpackage_merchants.getMerchants", - "method": "GET", - "nodeId": "api-reference.subpackage_merchants.subpackage_merchants.getMerchants", - "path": [], - "pathParameters": [], - "queryParameters": [], - "requestBody": undefined, - "responseBody": { - "availability": undefined, - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "shape": { - "type": "reference", - "typeId": "type_merchants:Merchant", - }, - "type": "list", - }, - "statusCode": 200, - }, - "slug": "api-reference/merchants/get-merchants", - "snippetTemplates": undefined, - "stream": undefined, - "title": "Get Merchants", - "type": "endpoint", - }, - ], - "slug": "api-reference/merchants", - "title": "Merchants", - "type": "subpackage", - }, - ], - "slug": "api-reference", - "type": "rootPackage", - "types": { - "type_merchants:Merchant": { - "availability": undefined, - "description": undefined, - "extends": [], - "name": "Merchant", - "properties": [ - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "offers", - "valueShape": { - "availability": undefined, - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "shape": { - "type": "reference", - "typeId": "type_merchants:Offer", - }, - "type": "list", - }, - "type": "optional", - }, - }, - ], - "type": "object", - }, - "type_merchants:Offer": { - "availability": undefined, - "description": undefined, - "extends": [], - "name": "Offer", - "properties": [ - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "merchant", - "valueShape": { - "availability": undefined, - "description": undefined, - "shape": { - "type": "reference", - "typeId": "type_merchants:Merchant", - }, - "type": "optional", - }, - }, - ], - "type": "object", - }, - }, -} -`; - -exports[`resolveApiDefinition > should resolve authed and unauthed endpoints 1`] = ` -{ - "api": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": { - "tokenName": "token", - "type": "bearerAuth", - }, - "items": [ - { - "apiDefinitionId": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": undefined, - "availability": undefined, - "breadcrumb": [ - { - "pointsTo": "api-reference/get-token", - "title": "API Reference", - }, - ], - "defaultEnvironment": { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - "description": "Hit the auth endpoint to get a bearer token", - "environments": [ - { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - ], - "errors": [], - "examples": [], - "headers": [], - "id": "getToken", - "method": "POST", - "nodeId": "api-reference.getToken", - "path": [ - { - "type": "literal", - "value": "", - }, - { - "type": "literal", - "value": "/oauth/token", - }, - ], - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "availability": undefined, - "contentType": "application/json", - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "extends": [], - "name": undefined, - "properties": [ - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "client_id", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "primitive", - "value": { - "type": "string", - }, - }, - }, - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "client_secret", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "primitive", - "value": { - "type": "string", - }, - }, - }, - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "audience", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "sayari.com", - }, - }, - }, - { - "availability": undefined, - "description": undefined, - "hidden": false, - "key": "grant_type", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "client_credentials", - }, - }, - }, - ], - "type": "object", - }, - }, - "responseBody": { - "availability": undefined, - "description": undefined, - "shape": { - "type": "reference", - "typeId": "type_auth:AuthResponse", - }, - "statusCode": 200, - }, - "slug": "api-reference/get-token", - "snippetTemplates": undefined, - "stream": undefined, - "title": "Get Token", - "type": "endpoint", - }, - { - "apiDefinitionId": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": { - "tokenName": "token", - "type": "bearerAuth", - }, - "availability": undefined, - "breadcrumb": [ - { - "pointsTo": "api-reference/get-token", - "title": "API Reference", - }, - ], - "defaultEnvironment": { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - "description": undefined, - "environments": [ - { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - ], - "errors": [], - "examples": [], - "headers": [], - "id": "testAuth", - "method": "POST", - "nodeId": "api-reference.testAuth", - "path": [ - { - "type": "literal", - "value": "/test/authed", - }, - ], - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "availability": undefined, - "contentType": "text/plain", - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "type": "unknown", - }, - }, - "responseBody": { - "availability": undefined, - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "type": "unknown", - }, - "statusCode": 200, - }, - "slug": "api-reference/test-authed", - "snippetTemplates": undefined, - "stream": undefined, - "title": "Get Token", - "type": "endpoint", - }, - { - "apiDefinitionId": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "auth": { - "headerWireValue": "test-api-key", - "nameOverride": undefined, - "prefix": undefined, - "type": "header", - }, - "availability": undefined, - "breadcrumb": [ - { - "pointsTo": "api-reference/get-token", - "title": "API Reference", - }, - ], - "defaultEnvironment": { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - "description": undefined, - "environments": [ - { - "baseUrl": "https://api.sayari.com", - "id": "Production", - }, - ], - "errors": [], - "examples": [], - "headers": [], - "id": "testHeaderAuth", - "method": "POST", - "nodeId": "api-reference.testHeaderAuth", - "path": [ - { - "type": "literal", - "value": "/test/authed", - }, - ], - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "availability": undefined, - "contentType": "text/plain", - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "type": "unknown", - }, - }, - "responseBody": { - "availability": undefined, - "description": undefined, - "shape": { - "availability": undefined, - "description": undefined, - "type": "unknown", - }, - "statusCode": 200, - }, - "slug": "api-reference/test-header-auth", - "snippetTemplates": undefined, - "stream": undefined, - "title": "Get Token", - "type": "endpoint", - }, - ], - "slug": "api-reference", - "type": "rootPackage", - "types": { - "type_auth:AuthResponse": { - "availability": undefined, - "description": undefined, - "extends": [], - "name": "AuthResponse", - "properties": [ - { - "availability": undefined, - "description": "The bearer token you will pass in to subsequent API calls to authenticate.", - "hidden": false, - "key": "access_token", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "primitive", - "value": { - "type": "string", - }, - }, - }, - { - "availability": undefined, - "description": "Tells you how long (in seconds) until your bearer token expires.", - "hidden": false, - "key": "expires_in", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "primitive", - "value": { - "type": "integer", - }, - }, - }, - { - "availability": undefined, - "description": "Will always be "Bearer"", - "hidden": false, - "key": "token_type", - "valueShape": { - "availability": undefined, - "description": undefined, - "type": "primitive", - "value": { - "type": "string", - }, - }, - }, - ], - "type": "object", - }, - }, -} -`; diff --git a/packages/ui/app/src/resolver/__test__/fixtures/authed.json b/packages/ui/app/src/resolver/__test__/fixtures/authed.json deleted file mode 100644 index 5cf380b15f..0000000000 --- a/packages/ui/app/src/resolver/__test__/fixtures/authed.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "id": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "rootPackage": { - "endpoints": [ - { - "environments": [ - { - "id": "Production", - "baseUrl": "https://api.sayari.com" - } - ], - "defaultEnvironment": "Production", - "urlSlug": "get-token", - "method": "POST", - "id": "getToken", - "originalEndpointId": "getToken", - "name": "Get Token", - "path": { - "pathParameters": [], - "parts": [ - { - "type": "literal", - "value": "" - }, - { - "type": "literal", - "value": "/oauth/token" - } - ] - }, - "queryParameters": [], - "headers": [], - "request": { - "contentType": "application/json", - "type": { - "type": "object", - "extends": [], - "properties": [ - { - "key": "client_id", - "valueType": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - { - "key": "client_secret", - "valueType": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - { - "key": "audience", - "valueType": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "sayari.com" - } - } - }, - { - "key": "grant_type", - "valueType": { - "type": "literal", - "value": { - "type": "stringLiteral", - "value": "client_credentials" - } - } - } - ] - } - }, - "response": { - "type": { - "type": "reference", - "value": { - "type": "id", - "value": "type_auth:AuthResponse" - } - } - }, - "errors": [], - "errorsV2": [], - "examples": [], - "description": "Hit the auth endpoint to get a bearer token", - "authed": false - }, - { - "environments": [ - { - "id": "Production", - "baseUrl": "https://api.sayari.com" - } - ], - "defaultEnvironment": "Production", - "urlSlug": "test-authed", - "method": "POST", - "id": "testAuth", - "originalEndpointId": "testAuth", - "name": "Get Token", - "path": { - "pathParameters": [], - "parts": [ - { - "type": "literal", - "value": "/test/authed" - } - ] - }, - "queryParameters": [], - "headers": [], - "request": { - "contentType": "text/plain", - "type": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "response": { - "type": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "errors": [], - "errorsV2": [], - "examples": [], - "authed": true - }, - { - "environments": [ - { - "id": "Production", - "baseUrl": "https://api.sayari.com" - } - ], - "defaultEnvironment": "Production", - "urlSlug": "test-header-auth", - "method": "POST", - "id": "testHeaderAuth", - "originalEndpointId": "testHeaderAuth", - "name": "Get Token", - "path": { - "pathParameters": [], - "parts": [ - { - "type": "literal", - "value": "/test/authed" - } - ] - }, - "queryParameters": [], - "headers": [ - { - "key": "test-api-key", - "type": { - "type": "primitive", - "value": { - "type": "string" - } - } - } - ], - "request": { - "contentType": "text/plain", - "type": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "response": { - "type": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - "errors": [], - "errorsV2": [], - "examples": [], - "authed": false - } - ], - "subpackages": [], - "types": [], - "webhooks": [], - "websockets": [] - }, - "types": { - "type_auth:AuthResponse": { - "name": "AuthResponse", - "shape": { - "type": "object", - "extends": [], - "properties": [ - { - "description": "The bearer token you will pass in to subsequent API calls to authenticate.", - "key": "access_token", - "valueType": { - "type": "primitive", - "value": { - "type": "string" - } - } - }, - { - "description": "Tells you how long (in seconds) until your bearer token expires.", - "key": "expires_in", - "valueType": { - "type": "primitive", - "value": { - "type": "integer" - } - } - }, - { - "description": "Will always be \"Bearer\"", - "key": "token_type", - "valueType": { - "type": "primitive", - "value": { - "type": "string" - } - } - } - ] - } - } - }, - "subpackages": {}, - "auth": { - "type": "bearerAuth", - "tokenName": "token" - }, - "hasMultipleBaseUrls": false, - "globalHeaders": [] -} diff --git a/packages/ui/app/src/resolver/__test__/fixtures/recursive-reference.json b/packages/ui/app/src/resolver/__test__/fixtures/recursive-reference.json deleted file mode 100644 index 79158abc04..0000000000 --- a/packages/ui/app/src/resolver/__test__/fixtures/recursive-reference.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "id": "054ca3d6-33a5-4d53-a813-f2a33e4062cc", - "rootPackage": { - "endpoints": [], - "subpackages": ["subpackage_merchants"], - "types": [], - "webhooks": [], - "websockets": [] - }, - "types": { - "type_merchants:Merchant": { - "name": "Merchant", - "shape": { - "type": "object", - "extends": [], - "properties": [ - { - "key": "offers", - "valueType": { - "type": "optional", - "itemType": { - "type": "list", - "itemType": { - "type": "id", - "value": "type_merchants:Offer" - } - } - } - } - ] - } - }, - "type_merchants:Offer": { - "name": "Offer", - "shape": { - "type": "object", - "extends": [], - "properties": [ - { - "key": "merchant", - "valueType": { - "type": "optional", - "itemType": { - "type": "id", - "value": "type_merchants:Merchant" - } - } - } - ] - } - } - }, - "subpackages": { - "subpackage_merchants": { - "subpackageId": "subpackage_merchants", - "name": "merchants", - "endpoints": [ - { - "environments": [], - "defaultEnvironment": "Dev", - "urlSlug": "get-merchants", - "method": "GET", - "id": "getMerchants", - "name": "Get Merchants", - "path": { - "pathParameters": [], - "parts": [] - }, - "queryParameters": [], - "headers": [], - "response": { - "type": { - "type": "reference", - "value": { - "type": "list", - "itemType": { - "type": "id", - "value": "type_merchants:Merchant" - } - } - } - }, - "errors": [], - "errorsV2": [], - "examples": [], - "description": "Request Rewards Merchants", - "authed": true - } - ], - "types": ["type_merchants:Merchant", "type_merchants:Offer"], - "subpackages": [], - "urlSlug": "merchants", - "webhooks": [], - "websockets": [] - } - }, - "auth": { - "type": "bearerAuth", - "tokenName": "token" - }, - "hasMultipleBaseUrls": false, - "globalHeaders": [] -} diff --git a/packages/ui/app/src/resolver/resolveApiEndpointPage.ts b/packages/ui/app/src/resolver/resolveApiEndpointPage.ts index 1288dde119..3c825721dd 100644 --- a/packages/ui/app/src/resolver/resolveApiEndpointPage.ts +++ b/packages/ui/app/src/resolver/resolveApiEndpointPage.ts @@ -1,78 +1,57 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; -import type { MDX_SERIALIZER } from "../mdx/bundler"; -import type { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiEndpointResolver } from "./ApiEndpointResolver"; -import { ApiTypeResolver } from "./ApiTypeResolver"; +import type { ApiDefinitionLoader } from "@fern-ui/fern-docs-server"; import type { DocsContent } from "./DocsContent"; -import { ResolvedApiEndpoint } from "./types"; interface ResolveApiEndpointPageOpts { node: FernNavigation.NavigationNodeApiLeaf; parents: readonly FernNavigation.NavigationNodeParent[]; - apis: Record; - mdxOptions: FernSerializeMdxOptions | undefined; - featureFlags: FeatureFlags; + apiDefinitionLoader: ApiDefinitionLoader; neighbors: DocsContent.Neighbors; - serializeMdx: MDX_SERIALIZER; - collector: FernNavigation.NodeCollector; showErrors: boolean | undefined; } export async function resolveApiEndpointPage({ node, parents, - apis, - mdxOptions, - featureFlags, + apiDefinitionLoader, neighbors, - serializeMdx, - collector, showErrors, }: ResolveApiEndpointPageOpts): Promise { - let api = apis[node.apiDefinitionId]; - if (api == null) { + const parent = parents[parents.length - 1]; + + if (parent?.type === "endpointPair") { + apiDefinitionLoader.withPrune(parent.nonStream); + apiDefinitionLoader.withPrune(parent.stream); + } else { + apiDefinitionLoader.withPrune(node); + } + + const apiDefinition = await apiDefinitionLoader.load(); + + if (!apiDefinition) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error(`Failed to load API definition for ${node.slug}`); return; } - const pruner = new FernNavigation.ApiDefinitionPruner(api); - const parent = parents[parents.length - 1]; - api = pruner.prune(parent?.type === "endpointPair" ? parent : node); - const holder = FernNavigation.ApiDefinitionHolder.create(api); - const typeResolver = new ApiTypeResolver(node.apiDefinitionId, api.types, mdxOptions, serializeMdx); - const resolvedTypes = await typeResolver.resolve(); - const defResolver = new ApiEndpointResolver( - collector, - holder, - typeResolver, - resolvedTypes, - featureFlags, - mdxOptions, - serializeMdx, + + const sidebarRootNodeIdx = parents.findIndex((p) => p.type === "sidebarRoot"); + if (sidebarRootNodeIdx === -1) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error("Failed to find sidebar root node"); + } + const breadcrumb = FernNavigation.utils.createBreadcrumb( + sidebarRootNodeIdx >= 0 ? parents.slice(sidebarRootNodeIdx) : parents, ); + return { type: "api-endpoint-page", slug: node.slug, - api: node.apiDefinitionId, - auth: api.auth, - types: resolvedTypes, - item: await visitDiscriminatedUnion(node)._visit>({ - endpoint: async (endpoint) => { - if (parent?.type === "endpointPair") { - const [stream, nonStream] = await Promise.all([ - defResolver.resolveEndpointDefinition(parent.stream), - defResolver.resolveEndpointDefinition(parent.nonStream), - ]); - nonStream.stream = stream; - return nonStream; - } - return defResolver.resolveEndpointDefinition(endpoint); - }, - webSocket: (webSocket) => defResolver.resolveWebsocketChannel(webSocket), - webhook: (webhook) => defResolver.resolveWebhookDefinition(webhook), - }), + nodeId: parent?.type === "endpointPair" ? parent.id : node.id, + apiDefinition, showErrors: showErrors ?? false, neighbors, + breadcrumb, }; } diff --git a/packages/ui/app/src/resolver/resolveApiReferencePage.ts b/packages/ui/app/src/resolver/resolveApiReferencePage.ts index 6b1fdea0fd..c19dd8351e 100644 --- a/packages/ui/app/src/resolver/resolveApiReferencePage.ts +++ b/packages/ui/app/src/resolver/resolveApiReferencePage.ts @@ -1,58 +1,80 @@ -import type { APIV1Read, DocsV1Read } from "@fern-api/fdr-sdk"; +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; -import type { MDX_SERIALIZER } from "../mdx/bundler"; -import type { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiDefinitionResolver } from "./ApiDefinitionResolver"; +import { ApiDefinitionLoader, MarkdownLoader } from "@fern-ui/fern-docs-server"; import type { DocsContent } from "./DocsContent"; interface ResolveApiReferencePageOpts { node: FernNavigation.NavigationNodeWithMetadata; - apiReference: FernNavigation.ApiReferenceNode; parents: readonly FernNavigation.NavigationNodeParent[]; - pages: Record; - apis: Record; - mdxOptions: FernSerializeMdxOptions | undefined; - featureFlags: FeatureFlags; - serializeMdx: MDX_SERIALIZER; - collector: FernNavigation.NodeCollector; + apiReferenceNode: FernNavigation.ApiReferenceNode; + apiDefinitionLoader: ApiDefinitionLoader; + markdownLoader: MarkdownLoader; } export async function resolveApiReferencePage({ node, - apis, - apiReference, - pages, - mdxOptions, - featureFlags, - serializeMdx, - collector, + parents, + apiReferenceNode, + apiDefinitionLoader, + markdownLoader, }: ResolveApiReferencePageOpts): Promise { - const api = apis[apiReference.apiDefinitionId]; - if (api == null) { + const apiDefinition = await apiDefinitionLoader.load(); + + if (!apiDefinition) { + // TODO: sentry // eslint-disable-next-line no-console - console.error("API not found", apiReference.apiDefinitionId); + console.error(`Failed to load API definition for ${node.slug}`); return; } - const holder = FernNavigation.ApiDefinitionHolder.create(api); - const apiDefinition = await ApiDefinitionResolver.resolve( - collector, - apiReference, - holder, - pages, - mdxOptions, - featureFlags, - serializeMdx, + + const nodes: [FernNavigation.NavigationNodeWithMarkdown, readonly FernNavigation.BreadcrumbItem[]][] = []; + + const apiReferenceNodeIdx = parents.findIndex((parent) => parent.id === apiReferenceNode.id); + if (apiReferenceNodeIdx === -1) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error("Could not find api reference node in parents"); + } + + const sidebarRootNodeIdx = parents.findIndex((parent) => parent.type === "sidebarRoot"); + if (sidebarRootNodeIdx === -1) { + // TODO: sentry + // eslint-disable-next-line no-console + console.error("Failed to find sidebar root node"); + } + + // get all the parents of the api reference node (excluding the api reference node itself) up to the sidebar root node + const apiReferenceNodeParents = parents.slice( + Math.max(0, sidebarRootNodeIdx), + Math.max(0, apiReferenceNodeIdx - 1), ); + + const breadcrumb = FernNavigation.utils.createBreadcrumb(apiReferenceNodeParents); + + FernNavigation.traverseDF(apiReferenceNode, (node, parents) => { + if (!FernNavigation.hasMarkdown(node)) { + return; + } + nodes.push([node, [...breadcrumb, ...FernNavigation.utils.createBreadcrumb(parents)]]); + }); + + const mdxs = Object.fromEntries( + ( + await Promise.all( + nodes.map(async ([node, breadcrumb]) => { + const page = await markdownLoader.load(node, breadcrumb); + return [node.id, page] as const; + }), + ) + ).filter((entry): entry is [FernNavigation.NodeId, FernDocs.MarkdownText] => entry[1] != null), + ); + return { type: "api-reference-page", slug: node.slug, - title: node.title, - api: apiReference.apiDefinitionId, + apiReferenceNodeId: apiReferenceNode.id, apiDefinition, - paginated: apiReference.paginated ?? false, - // artifacts: apiSection.artifacts ?? null, // TODO: add artifacts - showErrors: apiReference.showErrors ?? false, - // neighbors, + mdxs, + breadcrumb, }; } diff --git a/packages/ui/app/src/resolver/resolveCodeSnippets.ts b/packages/ui/app/src/resolver/resolveCodeSnippets.ts deleted file mode 100644 index f3ebc9aa4e..0000000000 --- a/packages/ui/app/src/resolver/resolveCodeSnippets.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { cleanLanguage } from "@fern-api/fdr-sdk/api-definition"; -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { unknownToString, visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { HTTPSnippet, type HarRequest, type TargetId } from "httpsnippet-lite"; -import { noop } from "ts-essentials"; -import { convertEndpointExampleToHttpRequestExample } from "../api-reference/examples/HttpRequestExample"; -import { stringifyHttpRequestExampleToCurl } from "../api-reference/examples/stringifyHttpRequestExampleToCurl"; -import { - ResolvedCodeSnippet, - ResolvedEndpointDefinition, - ResolvedExampleEndpointRequest, - resolveEnvironment, -} from "./types"; -import { buildRequestUrl } from "./url"; - -interface HTTPSnippetClient { - targetId: TargetId; - clientId: string; -} - -const CLIENTS: HTTPSnippetClient[] = [ - { targetId: "python", clientId: "requests" }, - { targetId: "javascript", clientId: "fetch" }, - { targetId: "go", clientId: "native" }, - { targetId: "ruby", clientId: "native" }, - { targetId: "java", clientId: "unirest" }, - { targetId: "php", clientId: "guzzle" }, - { targetId: "csharp", clientId: "restsharp" }, - { targetId: "swift", clientId: "nsurlsession" }, -]; - -export async function resolveCodeSnippets( - endpoint: ResolvedEndpointDefinition, - example: APIV1Read.ExampleEndpointCall, - requestBody: ResolvedExampleEndpointRequest | undefined, - isHttpSnippetsEnabled: boolean, - useJavaScriptAsTypeScript: boolean, - alwaysEnableJavaScriptFetch: boolean, - playgroundEnvironment?: string, -): Promise { - let toRet: ResolvedCodeSnippet[] = []; - - const curlCode = stringifyHttpRequestExampleToCurl( - convertEndpointExampleToHttpRequestExample(endpoint, example, requestBody), - ); - toRet.push({ - name: undefined, - language: "curl", - install: undefined, - code: unknownToString(curlCode), - // hast: highlight(highlighter, curlCode, "bash"), - generated: true, - }); - - if (example.codeExamples.pythonSdk != null) { - toRet.push({ - name: undefined, - language: "python", - install: example.codeExamples.pythonSdk.install, - code: example.codeExamples.pythonSdk.sync_client, - // hast: highlight(highlighter, code, "python"), - generated: true, - }); - } - - if (example.codeExamples.typescriptSdk != null) { - toRet.push({ - name: alwaysEnableJavaScriptFetch ? `${useJavaScriptAsTypeScript ? "Java" : "Type"}Script SDK` : undefined, - language: useJavaScriptAsTypeScript ? "javascript" : "typescript", - install: example.codeExamples.typescriptSdk.install, - code: example.codeExamples.typescriptSdk.client, - // hast: highlight(highlighter, code, "typescript"), - generated: true, - }); - } - - if (example.codeExamples.goSdk != null) { - toRet.push({ - name: undefined, - language: "go", - install: example.codeExamples.goSdk.install, - code: example.codeExamples.goSdk.client, - // hast: highlight(highlighter, code, "go"), - generated: true, - }); - } - - if (example.codeExamples.rubySdk != null) { - toRet.push({ - name: undefined, - language: "ruby", - install: example.codeExamples.rubySdk.install, - code: example.codeExamples.rubySdk.client, - // hast: highlight(highlighter, code, "ruby"), - generated: true, - }); - } - - example.codeSamples.forEach((codeSample) => { - const language = cleanLanguage(codeSample.language); - - if (!alwaysEnableJavaScriptFetch) { - // Remove any generated code snippets with the same language - toRet = toRet.filter((snippet) => (snippet.generated ? snippet.language !== language : true)); - } - - toRet.push({ - name: codeSample.name, - language, - install: codeSample.install, - code: codeSample.code, - // hast: highlight(highlighter, code, language), - generated: false, - }); - }); - - try { - if (isHttpSnippetsEnabled) { - const snippet = new HTTPSnippet(getHarRequest(endpoint, example, requestBody, playgroundEnvironment)); - for (const { clientId, targetId } of CLIENTS) { - if (!alwaysEnableJavaScriptFetch) { - if (toRet.some((snippet) => cleanLanguage(snippet.language) === targetId)) { - continue; - } - - if ( - targetId === "javascript" && - toRet.some((snippet) => cleanLanguage(snippet.language) === "typescript") - ) { - continue; - } - } - - const convertedCode = await snippet.convert(targetId, clientId); - const code = - typeof convertedCode === "string" - ? convertedCode - : convertedCode != null - ? convertedCode[0] - : undefined; - if (code != null) { - toRet.push({ - name: alwaysEnableJavaScriptFetch ? "HTTP Request" : undefined, - language: targetId, - install: undefined, - code, - generated: true, - }); - } - } - } - } catch (e) { - // eslint-disable-next-line no-console - console.error(e); - } - - return toRet; -} - -function getHarRequest( - endpoint: ResolvedEndpointDefinition, - example: APIV1Read.ExampleEndpointCall, - requestBody: ResolvedExampleEndpointRequest | undefined, - playgroundEnvironment: string | undefined, -): HarRequest { - const request: HarRequest = { - httpVersion: "1.1", - method: "GET", - url: "", - headers: [], - headersSize: -1, - queryString: [], - cookies: [], - bodySize: -1, - }; - request.url = buildRequestUrl( - playgroundEnvironment ?? resolveEnvironment(endpoint)?.baseUrl, - endpoint.path, - example.pathParameters, - ); - request.method = endpoint.method; - request.queryString = Object.entries(example.queryParameters).map(([name, value]) => ({ - name, - value: unknownToString(value), - })); - request.headers = Object.entries(example.headers).map(([name, value]) => ({ name, value: unknownToString(value) })); - - let mimeType = endpoint.requestBody?.contentType as string | undefined; - - if (requestBody != null) { - if (mimeType == null) { - mimeType = requestBody.type === "json" ? "application/json" : "multipart/form-data"; - } - request.postData = { - mimeType, - }; - - if (requestBody.type === "json") { - request.postData.text = JSON.stringify(requestBody.value, null, 2); - } else if (requestBody.type === "form") { - request.postData.params = []; - - for (const [name, value] of Object.entries(requestBody.value)) { - if (value.type === "json") { - request.postData.params.push({ - name, - value: JSON.stringify(value.value, null, 2), - }); - } else if (value.type === "file") { - request.postData.params.push({ - name, - fileName: value.fileName, - }); - } else if (value.type === "fileArray") { - for (const fileName of value.files) { - request.postData.params.push({ - name, - fileName: fileName.fileName, - }); - } - } - } - } else if (requestBody.type === "bytes") { - // TODO: verify this is correct - request.postData.params = [{ name: "file", fileName: requestBody.fileName }]; - } - } - - if (endpoint.auth != null) { - visitDiscriminatedUnion(endpoint.auth, "type")._visit({ - basicAuth: ({ usernameName = "username", passwordName = "password" }) => { - request.headers.push({ - name: "Authorization", - value: `Basic <${usernameName}>:<${passwordName}>`, - }); - }, - bearerAuth: ({ tokenName = "token" }) => { - request.headers.push({ - name: "Authorization", - value: `Bearer <${tokenName}>`, - }); - }, - header: ({ headerWireValue, nameOverride = headerWireValue, prefix }) => { - request.headers.push({ - name: headerWireValue, - value: prefix != null ? `${prefix} <${nameOverride}>` : `<${nameOverride}>`, - }); - }, - oAuth: (oAuth) => { - visitDiscriminatedUnion(oAuth.value, "type")._visit({ - clientCredentials: (clientCredentials) => { - visitDiscriminatedUnion(clientCredentials.value, "type")._visit({ - referencedEndpoint: () => { - request.headers.push({ - name: "Authorization", - value: "Bearer ", - }); - }, - }); - }, - _other: noop, - }); - }, - _other: noop, - }); - } - - if (mimeType != null) { - request.headers.push({ - name: "Content-Type", - value: mimeType, - }); - } - - return request; -} diff --git a/packages/ui/app/src/resolver/resolveDocsContent.ts b/packages/ui/app/src/resolver/resolveDocsContent.ts index 7dfa871887..cc46808fcd 100644 --- a/packages/ui/app/src/resolver/resolveDocsContent.ts +++ b/packages/ui/app/src/resolver/resolveDocsContent.ts @@ -1,6 +1,9 @@ +import { ApiDefinitionV1ToLatest } from "@fern-api/fdr-sdk/api-definition"; import type { APIV1Read, DocsV1Read } from "@fern-api/fdr-sdk/client/types"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { ApiDefinitionLoader, MarkdownLoader } from "@fern-ui/fern-docs-server"; import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; +import { mapValues } from "lodash-es"; import type { MDX_SERIALIZER } from "../mdx/bundler"; import type { FernSerializeMdxOptions } from "../mdx/types"; import type { DocsContent } from "./DocsContent"; @@ -12,22 +15,58 @@ import { resolveMarkdownPage } from "./resolveMarkdownPage"; import { resolveSubtitle } from "./resolveSubtitle"; export async function resolveDocsContent({ + host, found, apis, pages, mdxOptions, featureFlags, serializeMdx, + engine, }: { + host: string; found: FernNavigation.utils.Node.Found; apis: Record; pages: Record; mdxOptions?: FernSerializeMdxOptions; featureFlags: FeatureFlags; serializeMdx: MDX_SERIALIZER; + engine: string; }): Promise { const neighbors = await getNeighbors(found, pages, serializeMdx); - const { node, apiReference, parents, breadcrumb, collector } = found; + const { node, apiReference, parents, breadcrumb } = found; + + const markdownLoader = MarkdownLoader.create(host) + .withPages(pages) + .withMdxBundler( + ( + mdx: string, + pageId: FernNavigation.PageId, + title: string | undefined, + breadcrumb: FernNavigation.BreadcrumbItem[], + editThisPageUrl: FernNavigation.Url | undefined, + ) => + serializeMdx(mdx, { + ...mdxOptions, + filename: pageId, + frontmatterDefaults: { + title, + breadcrumb, + "edit-this-page-url": editThisPageUrl, + "force-toc": featureFlags.isTocDefaultEnabled, + }, + }), + engine, + ); + + const apiLoaders = mapValues(apis, (api) => { + return ApiDefinitionLoader.create(host, api.id) + .withMdxBundler(serializeMdx, engine) + .withFlags(featureFlags) + .withApiDefinition(ApiDefinitionV1ToLatest.from(api, featureFlags).migrate()) + .withEnvironment(process.env.NEXT_PUBLIC_FDR_ORIGIN) + .withResolveDescriptions(); + }); if (node.type === "changelog") { return resolveChangelogPage({ @@ -52,51 +91,51 @@ export async function resolveDocsContent({ return resolveMarkdownPage({ node, found, - apis, - pages, - mdxOptions, - featureFlags, - serializeMdx, + apiLoaders, neighbors, + markdownLoader, }); } else if (apiReference != null) { + const loader = apiLoaders[apiReference.apiDefinitionId]; + if (loader == null) { + // eslint-disable-next-line no-console + console.error("API definition not found", apiReference.apiDefinitionId); + return; + } + if (apiReference.paginated && FernNavigation.isApiLeaf(node)) { return resolveApiEndpointPage({ node, parents, - apis, - mdxOptions, - featureFlags, + apiDefinitionLoader: loader, neighbors, - serializeMdx, - collector, showErrors: apiReference.showErrors, }); } return resolveApiReferencePage({ node, - apis, - apiReference, + apiDefinitionLoader: loader, + apiReferenceNode: apiReference, parents, - pages, - mdxOptions, - featureFlags, - serializeMdx, - collector, + markdownLoader, }); - } else { + } else if (FernNavigation.hasMarkdown(node)) { return resolveMarkdownPage({ node, found, - apis, - pages, - mdxOptions, - featureFlags, - serializeMdx, + apiLoaders, neighbors, + markdownLoader, }); } + + /** + * This should never happen, but if it does, we should log it and return undefined + */ + // eslint-disable-next-line no-console + console.error(`Failed to resolve content for ${node.slug}`); + return undefined; } async function getNeighbor( diff --git a/packages/ui/app/src/resolver/resolveMarkdownPage.ts b/packages/ui/app/src/resolver/resolveMarkdownPage.ts index 6fd4e2cf42..1b7c561d0e 100644 --- a/packages/ui/app/src/resolver/resolveMarkdownPage.ts +++ b/packages/ui/app/src/resolver/resolveMarkdownPage.ts @@ -1,103 +1,75 @@ -import type { APIV1Read, DocsV1Read } from "@fern-api/fdr-sdk"; +import { type ApiDefinition } from "@fern-api/fdr-sdk/api-definition"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; -import type { MDX_SERIALIZER } from "../mdx/bundler"; -import type { FernSerializeMdxOptions } from "../mdx/types"; -import { ApiDefinitionResolver } from "./ApiDefinitionResolver"; +import { isNonNullish } from "@fern-api/ui-core-utils"; +import { ApiDefinitionLoader, type MarkdownLoader } from "@fern-ui/fern-docs-server"; import type { DocsContent } from "./DocsContent"; -import { ResolvedRootPackage } from "./types"; interface ResolveMarkdownPageOptions { - node: FernNavigation.NavigationNodePage; + node: FernNavigation.NavigationNodeWithMarkdown; found: FernNavigation.utils.Node.Found; - apis: Record; - pages: Record; - mdxOptions: FernSerializeMdxOptions | undefined; - featureFlags: FeatureFlags; + apiLoaders: Record; neighbors: DocsContent.Neighbors; - serializeMdx: MDX_SERIALIZER; + markdownLoader: MarkdownLoader; +} + +// TODO: this should be more robust +function shouldFetchApiRef(markdown: FernDocs.MarkdownText): boolean { + if (typeof markdown === "string") { + return markdown.includes("EndpointRequestSnippet") || markdown.includes("EndpointResponseSnippet"); + } else { + return shouldFetchApiRef(markdown.code); + } } export async function resolveMarkdownPage({ node, found, - apis, - pages, - mdxOptions, - featureFlags, + apiLoaders, neighbors, - serializeMdx, + markdownLoader, }: ResolveMarkdownPageOptions): Promise { - const pageId = FernNavigation.getPageId(node); - if (pageId == null) { - return; - } - const pageContent = pages[pageId]; - if (pageContent == null) { + const mdx = await markdownLoader.load(node, found.breadcrumb); + + if (!mdx) { // eslint-disable-next-line no-console - console.error("Markdown content not found", pageId); + console.error(`Failed to load markdown for ${node.slug}`); return; } - const mdx = await serializeMdx(pageContent.markdown, { - ...mdxOptions, - filename: pageId, - frontmatterDefaults: { - title: node.title, - breadcrumb: [...found.breadcrumb], - "edit-this-page-url": pageContent.editThisPageUrl, - "force-toc": featureFlags.isTocDefaultEnabled, - }, - }); - const frontmatter: Partial = typeof mdx === "string" ? {} : mdx.frontmatter; - let apiNodes: FernNavigation.ApiReferenceNode[] = []; - if ( - pageContent.markdown.includes("EndpointRequestSnippet") || - pageContent.markdown.includes("EndpointResponseSnippet") - ) { - apiNodes = FernNavigation.utils.collectApiReferences(found.currentVersion ?? found.root); + const apiDefinitionIds = new Set(); + if (shouldFetchApiRef(mdx)) { + FernNavigation.utils.collectApiReferences(found.currentVersion ?? found.root).forEach((apiRef) => { + apiDefinitionIds.add(apiRef.apiDefinitionId); + }); } const resolvedApis = Object.fromEntries( - await Promise.all( - apiNodes.map(async (apiNode): Promise<[title: string, ResolvedRootPackage]> => { - const definition = apis[apiNode.apiDefinitionId]; - if (definition == null) { - // eslint-disable-next-line no-console - console.error("API not found", apiNode.apiDefinitionId); - return [ - apiNode.title, - { - // TODO: alert if the API is not found — this is a bug - type: "rootPackage", - api: apiNode.apiDefinitionId, - auth: undefined, - types: {}, - items: [], - slug: FernNavigation.Slug(""), - }, - ]; - } - const holder = FernNavigation.ApiDefinitionHolder.create(definition); - return [ - apiNode.title, - await ApiDefinitionResolver.resolve( - found.collector, - apiNode, - holder, - pages, - mdxOptions, - featureFlags, - serializeMdx, - ), - ]; - }), - ), + ( + await Promise.all( + [...apiDefinitionIds].map( + async (id): Promise<[id: FernNavigation.ApiDefinitionId, ApiDefinition] | undefined> => { + const loader = apiLoaders[id]; + if (loader == null) { + // eslint-disable-next-line no-console + console.error("API definition not found", id); + return; + } + const apiDefinition = await loader.load(); + + if (apiDefinition == null) { + // eslint-disable-next-line no-console + console.error(`Failed to load API definition for ${id}`); + return; + } + return [apiDefinition.id, apiDefinition] as const; + }, + ), + ) + ).filter(isNonNullish), ); return { type: "custom-markdown-page", slug: node.slug, - title: frontmatter.title ?? node.title, mdx, neighbors, apis: resolvedApis, diff --git a/packages/ui/app/src/resolver/types.ts b/packages/ui/app/src/resolver/types.ts deleted file mode 100644 index 3eef69b029..0000000000 --- a/packages/ui/app/src/resolver/types.ts +++ /dev/null @@ -1,1117 +0,0 @@ -import { APIV1Read, DocsV1Read, FdrAPI } from "@fern-api/fdr-sdk/client/types"; -import type * as FernDocs from "@fern-api/fdr-sdk/docs"; -import type * as FernNavigation from "@fern-api/fdr-sdk/navigation"; -import { assertNever } from "@fern-api/ui-core-utils"; -import { sortBy } from "lodash-es"; -import { UnreachableCaseError } from "ts-essentials"; -import { parse } from "url"; -import { store } from "../atoms"; -import { SELECTED_ENVIRONMENT_ATOM } from "../atoms/environment"; - -type WithoutQuestionMarks = { - [K in keyof Required]: undefined extends T[K] ? T[K] | undefined : T[K]; -}; - -export type WithDescription = { description: FernDocs.MarkdownText | undefined }; -export type WithAvailability = { availability: APIV1Read.Availability | undefined }; - -/** - * @deprecated - */ -export interface WithMetadata { - description: FernDocs.MarkdownText | undefined; - availability: APIV1Read.Availability | undefined; -} - -/** - * @deprecated - */ -export interface WithEndpointMetadata extends WithMetadata { - title: string; - nodeId: FernNavigation.NodeId; - breadcrumb: readonly FernNavigation.BreadcrumbItem[]; - apiDefinitionId: FdrAPI.ApiDefinitionId; - slug: FernNavigation.Slug; -} - -/** - * @deprecated - */ -export function dereferenceObjectProperties( - object: ResolvedObjectShape | ResolvedDiscriminatedUnionShapeVariant, - types: Record, -): ResolvedObjectProperty[] { - const directProperties = object.properties; - const extendedProperties = object.extends.flatMap((typeId) => { - const referencedShape = types[typeId] ?? { - type: "unknown", - availability: undefined, - description: undefined, - }; - const shape = unwrapReference(referencedShape, types); - // TODO: should we be able to extend discriminated and undiscriminated unions? - if (shape?.type !== "object") { - // eslint-disable-next-line no-console - console.error("Object extends non-object", typeId); - return []; - } - return dereferenceObjectProperties(shape, types); - }); - if (extendedProperties.length === 0) { - // if there are no extended properties, we can just return the direct properties - // required properties should come before optional properties - // however, we do NOT sort the properties by key because the initial order of properties may be significant - return sortBy( - [...directProperties], - (property) => unwrapAlias(property.valueShape, types).type === "optional", - (property) => (property.availability === "Deprecated" ? 2 : property.availability === "Beta" ? 1 : 0), - ); - } - const propertyKeys = new Set(object.properties.map((property) => property.key)); - const filteredExtendedProperties = extendedProperties.filter( - (extendedProperty) => !propertyKeys.has(extendedProperty.key), - ); - - // required properties should come before optional properties - // since there are extended properties, the initial order of properties are not significant, and we should sort by key - return sortBy( - [...directProperties, ...filteredExtendedProperties], - (property) => unwrapAlias(property.valueShape, types).type === "optional", - (property) => (property.availability === "Deprecated" ? 2 : property.availability === "Beta" ? 1 : 0), - (property) => property.key, - ); -} - -// export type ResolvedNavigationItem = -// | ResolvedNavigationItemPageGroup -// | ResolvedNavigationItemApiSection -// | ResolvedNavigationItemSection; - -// export interface ResolvedNavigationItemPageGroup { -// type: "pageGroup"; -// pages: ResolvedPageMetadata[]; -// } - -/** - * @deprecated - */ -export interface ResolvedPageMetadata { - id: DocsV1Read.PageId; - slug: FernNavigation.Slug; - title: string; - markdown: FernDocs.MarkdownText; -} - -/** - * @deprecated - */ -export interface ResolvedNavigationItemApiSection - extends WithoutQuestionMarks>, - ResolvedWithApiDefinition { - type: "apiSection"; - auth: APIV1Read.ApiAuth | undefined; - hasMultipleBaseUrls: boolean | undefined; - slug: FernNavigation.Slug; - types: Record; - artifacts: DocsV1Read.ApiArtifacts | undefined; -} - -/** - * @deprecated - */ -export interface FlattenedRootPackage { - auth: APIV1Read.ApiAuth | undefined; - types: Record; - endpoints: ResolvedApiEndpointWithPackage[]; -} - -/** - * @deprecated - */ -export function flattenRootPackage(rootPackage: ResolvedRootPackage): FlattenedRootPackage { - function getApiEndpoints(apiPackage: ResolvedApiDefinitionPackage): ResolvedApiEndpointWithPackage[] { - return apiPackage.items.flatMap((item) => { - if (item.type === "subpackage") { - return getApiEndpoints(item); - } - if (item.type === "page") { - return []; - } - if (item.type === "endpoint" && item.stream != null) { - return [ - { ...item, package: apiPackage }, - { ...item.stream, package: apiPackage }, - ]; - } - return [{ ...item, package: apiPackage }]; - }); - } - - return { - auth: rootPackage.auth, - types: rootPackage.types, - endpoints: getApiEndpoints(rootPackage), - }; -} - -/** - * @deprecated - */ -export interface ResolvedWithApiDefinition { - items: ResolvedPackageItem[]; - slug: FernNavigation.Slug; -} - -/** - * @deprecated - */ -export interface ResolvedApiPageMetadata extends ResolvedPageMetadata { - type: "page"; -} - -/** - * @deprecated - */ -export type ResolvedPackageItem = - | ResolvedApiPageMetadata - | ResolvedEndpointDefinition - | ResolvedWebhookDefinition - | ResolvedWebSocketChannel - | ResolvedSubpackage; - -/** - * @deprecated - */ -interface ResolvedPackageItemVisitor { - page(item: ResolvedPageMetadata): T; - endpoint(item: ResolvedEndpointDefinition): T; - webhook(item: ResolvedWebhookDefinition): T; - websocket(item: ResolvedWebSocketChannel): T; - subpackage(item: ResolvedSubpackage): T; -} - -/** - * @deprecated - */ -export const ResolvedPackageItem = { - visit: (item: ResolvedPackageItem, visitor: ResolvedPackageItemVisitor): T => { - switch (item.type) { - case "endpoint": - return visitor.endpoint(item); - case "webhook": - return visitor.webhook(item); - case "websocket": - return visitor.websocket(item); - case "subpackage": - return visitor.subpackage(item); - case "page": - return visitor.page(item); - default: - assertNever(item); - } - }, -}; - -/** - * @deprecated - */ -export type ResolvedApiEndpointWithPackage = - | ResolvedApiEndpointWithPackage.Endpoint - | ResolvedApiEndpointWithPackage.Webhook - | ResolvedApiEndpointWithPackage.WebSocket; - -/** - * @deprecated - */ -export type ResolvedApiEndpoint = ResolvedEndpointDefinition | ResolvedWebhookDefinition | ResolvedWebSocketChannel; - -/** - * @deprecated - */ -export declare namespace ResolvedApiEndpointWithPackage { - export interface Endpoint extends ResolvedEndpointDefinition { - package: ResolvedApiDefinitionPackage; - } - - export interface Webhook extends ResolvedWebhookDefinition { - package: ResolvedApiDefinitionPackage; - } - - export interface WebSocket extends ResolvedWebSocketChannel { - package: ResolvedApiDefinitionPackage; - } -} - -/** - * @deprecated - */ -export function isEndpoint( - definition: ResolvedApiEndpointWithPackage, -): definition is ResolvedApiEndpointWithPackage.Endpoint { - return definition.type === "endpoint"; -} - -/** - * @deprecated - */ -export function isWebhook( - definition: ResolvedApiEndpointWithPackage, -): definition is ResolvedApiEndpointWithPackage.Webhook { - return definition.type === "webhook"; -} - -/** - * @deprecated - */ -export function isWebSocket( - definition: ResolvedApiEndpointWithPackage, -): definition is ResolvedApiEndpointWithPackage.WebSocket { - return definition.type === "websocket"; -} - -/** - * @deprecated - */ -interface ResolvedApiEndpointWithPackageVisitor { - endpoint(definition: ResolvedApiEndpointWithPackage.Endpoint): T; - webhook(definition: ResolvedApiEndpointWithPackage.Webhook): T; - websocket(definition: ResolvedApiEndpointWithPackage.WebSocket): T; -} - -/** - * @deprecated - */ -export const ResolvedApiEndpointWithPackage = { - visit: (definition: ResolvedApiEndpointWithPackage, visitor: ResolvedApiEndpointWithPackageVisitor): T => { - switch (definition.type) { - case "endpoint": - return visitor.endpoint(definition); - case "webhook": - return visitor.webhook(definition); - case "websocket": - return visitor.websocket(definition); - default: - throw new UnreachableCaseError(definition); - } - }, -}; - -/** - * @deprecated - */ -export interface ResolvedSubpackage extends WithMetadata, ResolvedWithApiDefinition { - type: "subpackage"; - // apiDefinitionId: FdrAPI.ApiDefinitionId; - // id: APIV1Read.SubpackageId; - // name: string; - title: string; -} - -/** - * @deprecated - */ -export function isResolvedSubpackage(item: ResolvedWithApiDefinition): item is ResolvedSubpackage { - return (item as ResolvedSubpackage).type === "subpackage"; -} - -/** - * @deprecated - */ -export interface ResolvedRootPackage extends ResolvedWithApiDefinition { - type: "rootPackage"; - api: FdrAPI.ApiDefinitionId; - auth: APIV1Read.ApiAuth | undefined; - types: Record; -} - -/** - * @deprecated - */ -export type ResolvedApiDefinitionPackage = ResolvedRootPackage | ResolvedSubpackage; - -/** - * @deprecated - */ -export interface ResolvedEndpointDefinition extends WithEndpointMetadata { - type: "endpoint"; - id: APIV1Read.EndpointId; - auth: APIV1Read.ApiAuth | undefined; - defaultEnvironment: APIV1Read.Environment | undefined; - environments: APIV1Read.Environment[]; - method: APIV1Read.HttpMethod; - title: string; - path: ResolvedEndpointPathParts[]; - pathParameters: ResolvedObjectProperty[]; - queryParameters: ResolvedObjectProperty[]; - headers: ResolvedObjectProperty[]; - requestBody: ResolvedRequestBody | undefined; - responseBody: ResolvedResponseBody | undefined; - errors: ResolvedError[]; - examples: ResolvedExampleEndpointCall[]; - snippetTemplates: APIV1Read.EndpointSnippetTemplates | undefined; - stream: ResolvedEndpointDefinition | undefined; -} - -/** - * @deprecated - */ -export interface ResolvedExampleEndpointCall { - name: string | undefined; - description: string | undefined; - path: string; - pathParameters: Record; - queryParameters: Record; - headers: Record; - requestBody: ResolvedExampleEndpointRequest | undefined; - responseStatusCode: number; - responseBody: ResolvedExampleEndpointResponse | undefined; - // responseHast: Root | undefined; - snippets: ResolvedCodeSnippet[]; -} - -/** - * @deprecated - */ -export type ResolvedExampleEndpointRequest = - | ResolvedExampleEndpointRequest.Json - | ResolvedExampleEndpointRequest.Form - | ResolvedExampleEndpointRequest.Bytes; - -/** - * @deprecated - */ -export declare namespace ResolvedExampleEndpointRequest { - interface Json { - type: "json"; - value: unknown | undefined; - } - - interface Form { - type: "form"; - value: Record; - } - - interface Bytes { - type: "bytes"; - value: string | undefined; // base64 encoded - fileName: string | undefined; - } -} - -/** - * @deprecated - */ -export type ResolvedFormValue = ResolvedFormValue.Json | ResolvedFormValue.SingleFile | ResolvedFormValue.MultipleFiles; - -/** - * @deprecated - */ -export declare namespace ResolvedFormValue { - interface Json { - type: "json"; - value: unknown | undefined; - contentType: string | undefined; - } - - interface SingleFile { - type: "file"; - fileName: string; - fileId: string | undefined; // lookup file by UUID - contentType: string | undefined; - } - - interface MultipleFiles { - type: "fileArray"; - files: SingleFile[]; - } -} - -/** - * @deprecated - */ -export type ResolvedExampleEndpointResponse = - | ResolvedExampleEndpointResponse.Json - | ResolvedExampleEndpointResponse.Filename - | ResolvedExampleEndpointResponse.Stream - | ResolvedExampleEndpointResponse.ServerSentEvents; - -/** - * @deprecated - */ -export declare namespace ResolvedExampleEndpointResponse { - interface Json { - type: "json"; - value: unknown | undefined; - } - - interface Filename { - type: "filename"; - value: string; - } - - interface Stream { - type: "stream"; - value: unknown[]; - } - - interface ServerSentEvent { - event: string; - data: unknown | undefined; - } - - interface ServerSentEvents { - type: "sse"; - value: ServerSentEvent[]; - } -} - -/** - * @deprecated - */ -export interface ResolvedCodeSnippet { - name: string | undefined; - language: string; - install: string | undefined; - code: string; - // hast: Root; - generated: boolean; -} - -/** - * @deprecated - */ -export interface ResolvedRequestBody extends WithMetadata { - contentType: string; - shape: ResolvedHttpRequestBodyShape; -} - -/** - * @deprecated - */ -export interface ResolvedError extends WithMetadata { - shape: ResolvedTypeShape | undefined; - statusCode: number; - name: string | undefined; - examples: ResolvedExampleError[]; -} - -/** - * @deprecated - */ -export interface ResolvedExampleError { - name: string | undefined; - description: string | undefined; - responseBody: unknown | undefined; -} - -/** - * @deprecated - */ -export interface ResolvedObjectProperty extends WithMetadata { - key: APIV1Read.PropertyKey; - valueShape: ResolvedTypeShape; - hidden: boolean; // should be hidden in API reference, but present in examples and API Playground -} - -/** - * @deprecated - */ -export interface ResolvedResponseBody extends WithMetadata { - shape: ResolvedHttpResponseBodyShape; - statusCode: number; -} - -/** - * @deprecated - */ -export type ResolvedEndpointPathParts = ResolvedEndpointPathParts.Literal | ResolvedEndpointPathParts.PathParameter; - -/** - * @deprecated - */ -export declare namespace ResolvedEndpointPathParts { - interface Literal { - type: "literal"; - value: string; - } - - interface PathParameter extends ResolvedObjectProperty { - type: "pathParameter"; - } -} - -/** - * @deprecated - */ -export function stringifyResolvedEndpointPathParts( - pathParts: ResolvedEndpointPathParts[], -): APIV1Read.EndpointPathLiteral { - return APIV1Read.EndpointPathLiteral( - pathParts.map((part) => (part.type === "literal" ? part.value : `:${part.key}`)).join(""), - ); -} - -/** - * @deprecated - */ -export function stringifyResolvedEndpointPathPartsTemplate( - pathParts: ResolvedEndpointPathParts[], -): APIV1Read.EndpointPathLiteral { - return APIV1Read.EndpointPathLiteral( - pathParts.map((part) => (part.type === "literal" ? part.value : `{${part.key}}`)).join(""), - ); -} - -/** - * @deprecated - */ -export interface ResolvedWebSocketChannel extends WithEndpointMetadata { - type: "websocket"; - id: APIV1Read.WebSocketId; - auth: APIV1Read.ApiAuth | undefined; - defaultEnvironment: APIV1Read.Environment | undefined; - environments: APIV1Read.Environment[]; - path: ResolvedEndpointPathParts[]; - headers: ResolvedObjectProperty[]; - pathParameters: ResolvedObjectProperty[]; - queryParameters: ResolvedObjectProperty[]; - messages: ResolvedWebSocketMessage[]; - examples: APIV1Read.ExampleWebSocketSession[]; -} - -/** - * @deprecated - */ -export interface ResolvedWebSocketMessage extends WithMetadata { - type: APIV1Read.WebSocketMessageId; - body: ResolvedTypeShape; - displayName: string | undefined; - origin: APIV1Read.WebSocketMessageOrigin; -} - -/** - * @deprecated - */ -export interface ResolvedWebhookDefinition extends WithEndpointMetadata { - type: "webhook"; - id: APIV1Read.WebhookId; - method: APIV1Read.WebhookHttpMethod; - path: string[]; - headers: ResolvedObjectProperty[]; - payload: ResolvedPayload; - examples: ResolvedExampleWebhookPayload[]; -} - -/** - * @deprecated - */ -export interface ResolvedExampleWebhookPayload { - payload: unknown; - // hast: Root; -} - -/** - * @deprecated - */ -export interface ResolvedPayload extends WithMetadata { - shape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export interface ResolvedObjectShape extends WithMetadata { - name: string | undefined; - type: "object"; - extends: string[]; - properties: ResolvedObjectProperty[]; -} - -/** - * @deprecated - */ -export interface ResolvedUndiscriminatedUnionShapeVariant extends WithMetadata { - displayName: string | undefined; - shape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export interface ResolvedUndiscriminatedUnionShape extends WithMetadata { - name: string | undefined; - type: "undiscriminatedUnion"; - variants: ResolvedUndiscriminatedUnionShapeVariant[]; -} - -/** - * @deprecated - */ -export interface ResolvedDiscriminatedUnionShapeVariant extends WithMetadata { - discriminantValue: string; - extends: string[]; - properties: ResolvedObjectProperty[]; - displayName?: string; -} - -/** - * @deprecated - */ -export interface ResolvedDiscriminatedUnionShape extends WithMetadata { - name: string | undefined; - type: "discriminatedUnion"; - discriminant: string; - variants: ResolvedDiscriminatedUnionShapeVariant[]; -} - -/** - * @deprecated - */ -export interface ResolvedOptionalShape extends WithMetadata { - type: "optional"; - shape: NonOptionalTypeShapeWithReference; -} - -/** - * @deprecated - */ -export interface ResolvedListShape extends WithMetadata { - type: "list"; - shape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export interface ResolvedSetShape extends WithMetadata { - type: "set"; - shape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export interface ResolvedMapShape extends WithMetadata { - type: "map"; - keyShape: ResolvedTypeShape; - valueShape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export type ResolvedTypeDefinition = - | ResolvedObjectShape - | ResolvedUndiscriminatedUnionShape - | ResolvedDiscriminatedUnionShape - | ResolvedEnumShape - | ResolvedAliasShape - | (APIV1Read.TypeReference.Unknown & WithMetadata) - | (APIV1Read.TypeReference.Literal & WithMetadata); - -/** - * @deprecated - */ -interface ResolvedEnumShape extends WithMetadata { - name: string | undefined; - type: "enum"; - values: ResolvedEnumValue[]; - default: string | undefined; -} - -/** - * @deprecated - */ -export interface ResolvedEnumValue extends WithMetadata { - value: string; -} - -/** - * @deprecated - */ -interface ResolvedAliasShape extends WithMetadata { - name: string | undefined; - type: "alias"; - shape: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export type ResolvedTypeShape = - | ResolvedTypeDefinition - | (APIV1Read.TypeReference.Primitive & WithMetadata) - | ResolvedOptionalShape - | ResolvedListShape - | ResolvedSetShape - | ResolvedMapShape - | (APIV1Read.TypeReference.Literal & WithMetadata) - | APIV1Read.TypeReference.Unknown - | ResolvedUnknownTypeShape - | ResolvedReferenceShape; - -/** - * @deprecated - */ -export interface ResolvedUnknownTypeShape extends APIV1Read.TypeReference.Unknown { - displayName?: string; -} - -/** - * @deprecated - */ -export type WithoutMetadata = APIV1Read.TypeReference.Unknown | ResolvedReferenceShape; - -/** - * @deprecated - */ -export function hasMetadata(shape: ResolvedTypeShape): shape is Exclude { - return shape.type !== "unknown" && shape.type !== "reference"; -} - -/** - * @deprecated - */ -export type DereferencedTypeShape = Exclude; -/** - * @deprecated - */ -export type NonOptionalTypeShape = Exclude; -/** - * @deprecated - */ -export type NonOptionalTypeShapeWithReference = Exclude; -/** - * @deprecated - */ -export type UnaliasedTypeShape = Exclude; - -/** - * @deprecated - */ -export interface ResolvedReferenceShape { - type: "reference"; - typeId: string; -} - -/** - * @deprecated - */ -export declare namespace ResolvedFormDataRequestProperty { - interface FileProperty extends WithMetadata { - type: "file"; - key: string; - isOptional: boolean; - contentType: string | string[] | undefined; - } - interface FileArrayProperty extends WithMetadata { - type: "fileArray"; - key: string; - isOptional: boolean; - contentType: string | string[] | undefined; - } - - interface BodyProperty extends ResolvedObjectProperty { - type: "bodyProperty"; - contentType: string | string[] | undefined; - } -} - -/** - * @deprecated - */ -export type ResolvedFormDataRequestProperty = - | ResolvedFormDataRequestProperty.FileProperty - | ResolvedFormDataRequestProperty.FileArrayProperty - | ResolvedFormDataRequestProperty.BodyProperty; - -/** - * @deprecated - */ -export interface ResolvedFormDataRequest extends WithMetadata { - name: string; - properties: ResolvedFormDataRequestProperty[]; -} - -/** - * @deprecated - */ -export interface ResolvedFormData extends ResolvedFormDataRequest { - type: "formData"; -} - -/** - * @deprecated - */ -export type ResolvedHttpRequestBodyShape = ResolvedFormData | APIV1Read.HttpRequestBodyShape.Bytes | ResolvedTypeShape; - -/** - * @deprecated - */ -interface ResolvedHttpRequestBodyShapeVisitor { - formData: (shape: ResolvedFormData) => T; - bytes: (shape: APIV1Read.BytesRequest) => T; - typeShape: (shape: ResolvedTypeShape) => T; -} - -/** - * @deprecated - */ -export function visitResolvedHttpRequestBodyShape( - shape: ResolvedHttpRequestBodyShape, - visitor: ResolvedHttpRequestBodyShapeVisitor, -): T { - if (shape.type === "formData") { - return visitor.formData(shape); - } else if (shape.type === "bytes") { - return visitor.bytes(shape); - } else { - return visitor.typeShape(shape); - } -} - -/** - * @deprecated - */ -export interface ResolvedStreamShape { - type: "stream"; - value: ResolvedTypeShape; -} - -/** - * @deprecated - */ -export type ResolvedHttpResponseBodyShape = - | APIV1Read.HttpResponseBodyShape.FileDownload - | ResolvedHttpResponseStreamShape - | ResolvedTypeShape; - -/** - * @deprecated - */ -export type ResolvedHttpResponseStreamShape = - | ResolvedStreamShape - | APIV1Read.HttpResponseBodyShape.StreamingText - | APIV1Read.HttpResponseBodyShape.StreamCondition; - -/** - * @deprecated - */ -interface ResolvedHttpResponseBodyShapeVisitor { - fileDownload: (shape: APIV1Read.HttpResponseBodyShape.FileDownload) => T; - streamingText: (shape: APIV1Read.HttpResponseBodyShape.StreamingText) => T; - streamCondition: (shape: APIV1Read.HttpResponseBodyShape.StreamCondition) => T; - stream: (shape: ResolvedStreamShape) => T; - typeShape: (shape: ResolvedTypeShape) => T; -} - -/** - * @deprecated - */ -export function visitResolvedHttpResponseBodyShape( - shape: ResolvedHttpResponseBodyShape, - visitor: ResolvedHttpResponseBodyShapeVisitor, -): T { - switch (shape.type) { - case "fileDownload": - return visitor.fileDownload(shape); - case "streamingText": - return visitor.streamingText(shape); - case "streamCondition": - return visitor.streamCondition(shape); - case "stream": - return visitor.stream(shape); - default: - return visitor.typeShape(shape); - } -} - -/** - * @deprecated - */ -export function unwrapReference( - shape: ResolvedTypeShape, - types: Record, -): DereferencedTypeShape { - if (shape.type === "reference") { - const nestedShape = types[shape.typeId]; - if (nestedShape == null) { - return { type: "unknown", availability: undefined, description: undefined }; - } - return unwrapReference(nestedShape, types); - } - - if (shape.type === "alias") { - return { - ...shape, - shape: unwrapReference(shape.shape, types), - }; - } - - return shape; -} - -/** - * @deprecated - */ -export function unwrapAlias( - shape: ResolvedTypeShape, - types: Record, -): DereferencedTypeShape { - shape = unwrapReference(shape, types); - if (shape.type === "alias") { - return unwrapAlias(shape.shape, types); - } - - if (shape.type === "optional") { - return { - ...shape, - shape: unwrapAlias(shape.shape, types) as NonOptionalTypeShapeWithReference, - }; - } - - return shape; -} - -/** - * @deprecated - */ -export function unwrapOptional( - shape: ResolvedTypeShape, - types: Record, -): NonOptionalTypeShape { - shape = unwrapReference(shape, types); - if (shape.type === "optional") { - return unwrapOptional(shape.shape, types); - } - - if (shape.type === "alias") { - return { - ...shape, - shape: unwrapOptional(shape.shape, types), - }; - } - - return shape; -} - -/** - * @deprecated - */ -export function unwrapDescription( - valueShape: ResolvedTypeShape, - types: Record, -): FernDocs.MarkdownText | undefined { - while (valueShape.type === "alias" || valueShape.type === "reference" || valueShape.type === "optional") { - if (valueShape.type === "reference") { - const nestedShape = types[valueShape.typeId]; - if (nestedShape == null) { - return undefined; - } - valueShape = nestedShape; - } else { - if (valueShape.description != null) { - return valueShape.description; - } - valueShape = valueShape.shape; - } - } - - if (hasMetadata(valueShape) && valueShape.description != null) { - return valueShape.description; - } - - if (valueShape.type === "map") { - return unwrapDescription(valueShape.valueShape, types); - } - - if (valueShape.type === "list" || valueShape.type === "set") { - return unwrapDescription(valueShape.shape, types); - } - - return undefined; -} - -/** - * @deprecated - */ -export function getParameterDescription( - parameter: ResolvedObjectProperty, - types: Record, -): FernDocs.MarkdownText | undefined { - if (parameter.description != null) { - return parameter.description; - } - - return unwrapDescription(parameter.valueShape, types); -} - -/** - * @deprecated - */ -export const resolveEnvironment = ( - endpoint: ResolvedWebSocketChannel | ResolvedEndpointDefinition, - selectedEnvironmentId?: string, -): APIV1Read.Environment | undefined => { - if (!selectedEnvironmentId && typeof window !== "undefined") { - // TODO: replace this, this is a workaround for now, for functions that need to resolve in the playground, - // but do not have access to hooks - selectedEnvironmentId = store.get(SELECTED_ENVIRONMENT_ATOM); - } - return ( - endpoint.environments.find((env) => env.id === selectedEnvironmentId) ?? - endpoint.defaultEnvironment ?? - endpoint.environments[0] - ); -}; - -/** - * @deprecated - */ -export const resolveEnvironmentUrlInCodeSnippet = ( - endpoint: ResolvedEndpointDefinition, - requestCodeSnippet: string, - playgroundEnvironment: string | undefined, - selectedEnvironmentId?: string, - includePath?: boolean, -): string => { - const urlToReplace = endpoint.environments.find((env) => requestCodeSnippet.includes(env.baseUrl))?.baseUrl; - const resolvedEnvironment = resolveEnvironment(endpoint, selectedEnvironmentId); - const playgroundReplacement = playgroundEnvironment && parse(playgroundEnvironment); - return urlToReplace && resolvedEnvironment - ? requestCodeSnippet.replace( - urlToReplace, - (playgroundReplacement && - `${playgroundReplacement.protocol}//${playgroundReplacement.host}${includePath ? playgroundReplacement.pathname : ""}`) ?? - resolvedEnvironment.baseUrl, - ) - : requestCodeSnippet; -}; - -// This hack is no longer needed since it was introduced for Hume's demo only. -// keeping this around in case we need to re-introduce it. - -// HACK: remove this function when we have a proper way to merge content types -// function mergeContentTypes(definitions: ResolvedEndpointDefinition[]): ResolvedEndpointDefinition[] { -// const toRet: ResolvedEndpointDefinition[] = []; - -// definitions.forEach((definition) => { -// if (!definition.id.endsWith("_multipart")) { -// toRet.push(definition); -// } -// }); - -// definitions.forEach((definition) => { -// if (definition.id.endsWith("_multipart")) { -// const baseId = definition.id.replace("_multipart", ""); -// const baseDefinition = toRet.find((def) => def.id === baseId); -// if (baseDefinition) { -// baseDefinition.requestBody = [...baseDefinition.requestBody, ...definition.requestBody]; -// } else { -// toRet.push(definition); -// } -// } -// }); - -// return toRet; -// } diff --git a/packages/ui/app/src/resolver/url.ts b/packages/ui/app/src/resolver/url.ts deleted file mode 100644 index 81fce367cc..0000000000 --- a/packages/ui/app/src/resolver/url.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { unknownToString } from "@fern-api/ui-core-utils"; -import { ResolvedEndpointPathParts } from "./types"; - -/** - * @deprecated - */ -export function buildQueryParams(queryParameters: Record | undefined): string { - if (queryParameters == null) { - return ""; - } - const queryParams = new URLSearchParams(); - Object.entries(queryParameters).forEach(([key, value]) => { - if (value != null) { - queryParams.set(key, unknownToString(value)); - } - }); - return queryParams.size > 0 ? "?" + queryParams.toString() : ""; -} - -/** - * @deprecated - */ -function buildPath(path: ResolvedEndpointPathParts[], pathParameters?: Record): string { - return path - .map((part) => { - if (part.type === "pathParameter") { - const key = part.key; - const stateValue = unknownToString(pathParameters?.[key]); - return stateValue.length > 0 ? encodeURIComponent(stateValue) : ":" + key; - } - return part.value; - }) - .join(""); -} - -/** - * @deprecated - */ -export function buildRequestUrl( - baseUrl: string = "", - path: ResolvedEndpointPathParts[] = [], - pathParameters: Record = {}, - queryParameters: Record = {}, -): string { - return baseUrl + buildPath(path, pathParameters) + buildQueryParams(queryParameters); -} diff --git a/packages/ui/app/src/seo/__test__/getBreadcrumbList.test.ts b/packages/ui/app/src/seo/__test__/getBreadcrumbList.test.ts index db3260b802..ef8182c401 100644 --- a/packages/ui/app/src/seo/__test__/getBreadcrumbList.test.ts +++ b/packages/ui/app/src/seo/__test__/getBreadcrumbList.test.ts @@ -20,6 +20,7 @@ title: Overriden Title icon: undefined, hidden: false, noindex: undefined, + canonicalSlug: undefined, }; const parents: FernNavigation.NavigationNode[] = [ { @@ -34,13 +35,14 @@ title: Overriden Title children: [node], overviewPageId: undefined, pointsTo: undefined, + canonicalSlug: undefined, }, ]; expect( getBreadcrumbList( "buildwithfern.com", { - [node.pageId]: { markdown }, + [node.pageId]: { markdown, editThisPageUrl: undefined }, }, parents, node, diff --git a/packages/ui/app/src/util/__test__/getMatchablePermutationsForEndpoint.test.ts b/packages/ui/app/src/util/__test__/getMatchablePermutationsForEndpoint.test.ts index d6217c5a29..1f374b47a4 100644 --- a/packages/ui/app/src/util/__test__/getMatchablePermutationsForEndpoint.test.ts +++ b/packages/ui/app/src/util/__test__/getMatchablePermutationsForEndpoint.test.ts @@ -1,33 +1,24 @@ -import { ResolvedEndpointDefinition } from "../../resolver/types"; +import { EndpointDefinition, EnvironmentId, PathPart, PropertyKey } from "@fern-api/fdr-sdk/api-definition"; import { getMatchablePermutationsForEndpoint } from "../processRequestSnippetComponents"; -function literal(value: string) { +function literal(value: string): PathPart.Literal { return { type: "literal" as const, value, }; } -function pathParameter(key: string) { +function pathParameter(key: string): PathPart.PathParameter { return { type: "pathParameter" as const, - key, - valueShape: { - type: "primitive" as const, - value: { type: "string" as const }, - description: undefined, - availability: undefined, - }, - hidden: false, - description: undefined, - availability: undefined, + value: PropertyKey(key), }; } describe("getAllMatchablePathsForEndpoint", () => { it("should return all permutations for an endpoint", () => { - const endpoint: Pick = { - path: [literal("api"), pathParameter("id")], - environments: [{ id: "1", baseUrl: "https://api.example.com" }], + const endpoint: Pick = { + path: [literal("/api/"), pathParameter("id")], + environments: [{ id: EnvironmentId("1"), baseUrl: "https://api.example.com" }], }; const result = getMatchablePermutationsForEndpoint(endpoint); expect(result).toEqual( @@ -36,9 +27,9 @@ describe("getAllMatchablePathsForEndpoint", () => { }); it("should return all permutations for an endpoint with a base path", () => { - const endpoint: Pick = { - path: [literal("api"), pathParameter("id")], - environments: [{ id: "1", baseUrl: "https://api.example.com/v1" }], + const endpoint: Pick = { + path: [literal("/api/"), pathParameter("id")], + environments: [{ id: EnvironmentId("1"), baseUrl: "https://api.example.com/v1" }], }; const result = getMatchablePermutationsForEndpoint(endpoint); expect(result).toEqual( @@ -55,9 +46,9 @@ describe("getAllMatchablePathsForEndpoint", () => { // tests urljoin works it("should return all permutations for an endpoint with a base path 2", () => { - const endpoint: Pick = { + const endpoint: Pick = { path: [literal("/api/"), pathParameter("id")], - environments: [{ id: "1", baseUrl: "https://api.example.com/v1/" }], + environments: [{ id: EnvironmentId("1"), baseUrl: "https://api.example.com/v1/" }], }; const result = getMatchablePermutationsForEndpoint(endpoint); expect(result).toEqual( diff --git a/packages/ui/app/src/util/endpoint.ts b/packages/ui/app/src/util/endpoint.ts deleted file mode 100644 index d18eae057b..0000000000 --- a/packages/ui/app/src/util/endpoint.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { APIV1Read } from "@fern-api/fdr-sdk/client/types"; -import { visitDiscriminatedUnion } from "@fern-api/ui-core-utils"; -import { ResolvedEndpointDefinition, resolveEnvironment } from "../resolver/types"; - -export type EndpointPathPart = - | { - type: "literal"; - value: string; - } - | { - type: "pathParameter"; - name: string; - }; - -export function getEndpointEnvironmentUrl( - endpoint: ResolvedEndpointDefinition, - playgroundEnvironment?: string | undefined, -): string | undefined { - return playgroundEnvironment ?? resolveEnvironment(endpoint)?.baseUrl; -} - -export function getEndpointTitleAsString(endpoint: APIV1Read.EndpointDefinition): string { - return endpoint.name ?? getEndpointPathAsString(endpoint); -} - -export function getEndpointPathAsString(endpoint: APIV1Read.EndpointDefinition): string { - return ( - endpoint.method + - " " + - endpoint.path.parts - .map((part) => - visitDiscriminatedUnion(part, "type")._visit({ - literal: (literal) => literal.value, - pathParameter: (pathParameter) => getPathParameterAsString(pathParameter.value), - _other: () => "", - }), - ) - .join("") - ); -} - -export function getPathParameterAsString(pathParameterKey: APIV1Read.PropertyKey): string { - return `:${pathParameterKey}`; -} diff --git a/packages/ui/app/src/util/processRequestSnippetComponents.ts b/packages/ui/app/src/util/processRequestSnippetComponents.ts index b3aa17e52c..2c6f41a614 100644 --- a/packages/ui/app/src/util/processRequestSnippetComponents.ts +++ b/packages/ui/app/src/util/processRequestSnippetComponents.ts @@ -1,32 +1,20 @@ +import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import { parse } from "url"; import urljoin from "url-join"; -import { ResolvedEndpointDefinition, ResolvedEndpointPathParts, ResolvedWithApiDefinition } from "../resolver/types"; export function findEndpoint({ - api, + apiDefinition, method, path, }: { - api: ResolvedWithApiDefinition; + apiDefinition: ApiDefinition.ApiDefinition; method: string; path: string; -}): ResolvedEndpointDefinition | undefined { +}): ApiDefinition.EndpointDefinition | undefined { path = path.startsWith("/") ? path : `/${path}`; - for (const item of api.items) { - if (item.type !== "endpoint") { - continue; - } - if (item.method === method && getMatchablePermutationsForEndpoint(item).has(path)) { - return item; - } - } - - for (const [_, subpackage] of Object.entries(api.items)) { - if (subpackage.type === "subpackage") { - const endpoint = findEndpoint({ api: subpackage, method, path }); - if (endpoint) { - return endpoint; - } + for (const endpoint of Object.values(apiDefinition.endpoints)) { + if (endpoint.method === method && getMatchablePermutationsForEndpoint(endpoint).has(path)) { + return endpoint; } } @@ -34,12 +22,12 @@ export function findEndpoint({ } export function getMatchablePermutationsForEndpoint( - endpoint: Pick, + endpoint: Pick, ): Set { - const path1 = getPathFromEndpoint1(endpoint.path); - const path2 = getPathFromEndpoint2(endpoint.path); - const possiblePaths = new Set([path1, path2]); - endpoint.environments.forEach((env) => { + const path1 = ApiDefinition.toCurlyBraceEndpointPathLiteral(endpoint.path); + const path2 = ApiDefinition.toColonEndpointPathLiteral(endpoint.path); + const possiblePaths = new Set([path1, path2]); + endpoint.environments?.forEach((env) => { const fullUrl1 = urljoin(env.baseUrl, path1); const fullUrl2 = urljoin(env.baseUrl, path2); possiblePaths.add(fullUrl1); @@ -55,11 +43,3 @@ export function getMatchablePermutationsForEndpoint( }); return possiblePaths; } - -function getPathFromEndpoint1(path: ResolvedEndpointPathParts[]): string { - return urljoin("/", ...path.map((part) => (part.type === "literal" ? part.value : `{${part.key}}`))); -} - -function getPathFromEndpoint2(path: ResolvedEndpointPathParts[]): string { - return urljoin("/", ...path.map((part) => (part.type === "literal" ? part.value : `:${part.key}`))); -} diff --git a/packages/ui/app/tsconfig.json b/packages/ui/app/tsconfig.json index 7bf64b8f5f..c794f169e8 100644 --- a/packages/ui/app/tsconfig.json +++ b/packages/ui/app/tsconfig.json @@ -4,7 +4,7 @@ "composite": true, "noEmit": false, "outDir": "./dist", - "rootDir": "." + "rootDir": "./src" }, "include": ["./src/**/*"], "references": [ @@ -41,6 +41,9 @@ { "path": "../fern-docs-utils" }, + { + "path": "../fern-docs-server" + }, { "path": "../components" } diff --git a/packages/ui/chatbot/package.json b/packages/ui/chatbot/package.json index acc6498eaa..85585eb538 100644 --- a/packages/ui/chatbot/package.json +++ b/packages/ui/chatbot/package.json @@ -21,6 +21,7 @@ ], "scripts": { "test": "vitest --run --passWithNoTests --globals", + "compile": "tsc --build", "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", "lint:eslint:fix": "pnpm lint:eslint --fix", "lint:style": "stylelint 'src/**/*.scss' --allow-empty-input --max-warnings 0", diff --git a/packages/ui/components/package.json b/packages/ui/components/package.json index a246d940c0..396317f56f 100644 --- a/packages/ui/components/package.json +++ b/packages/ui/components/package.json @@ -21,6 +21,7 @@ ], "scripts": { "test": "vitest --run --passWithNoTests --globals --disable-console-intercept", + "compile": "tsc --build", "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", "lint:eslint:fix": "pnpm lint:eslint --fix", "lint:style": "stylelint 'src/**/*.scss' --allow-empty-input --max-warnings 0", diff --git a/packages/ui/docs-bundle/package.json b/packages/ui/docs-bundle/package.json index aca6a7b28d..d2bd5403a0 100644 --- a/packages/ui/docs-bundle/package.json +++ b/packages/ui/docs-bundle/package.json @@ -38,6 +38,7 @@ "@fern-ui/fern-docs-auth": "workspace:*", "@fern-ui/fern-docs-edge-config": "workspace:*", "@fern-ui/fern-docs-utils": "workspace:*", + "@fern-ui/fern-docs-server": "workspace:*", "@fern-ui/search-utils": "workspace:*", "@fern-ui/ui": "workspace:*", "@vercel/analytics": "^1.3.1", @@ -49,7 +50,6 @@ "esbuild": "0.20.2", "feed": "^4.2.2", "form-data": "4.0.0", - "httpsnippet-lite": "^3.0.5", "jose": "^5.2.3", "jsonpath": "^1.1.1", "next": "npm:@fern-api/next@14.2.9-fork.0", diff --git a/packages/ui/docs-bundle/src/pages/api/fern-docs/api-definition/[api]/endpoint/[endpoint].ts b/packages/ui/docs-bundle/src/pages/api/fern-docs/api-definition/[api]/endpoint/[endpoint].ts index ed7d152a20..7f100e2724 100644 --- a/packages/ui/docs-bundle/src/pages/api/fern-docs/api-definition/[api]/endpoint/[endpoint].ts +++ b/packages/ui/docs-bundle/src/pages/api/fern-docs/api-definition/[api]/endpoint/[endpoint].ts @@ -1,7 +1,8 @@ -import { ApiDefinitionLoader } from "@/server/ApiDefinitionLoader"; import { getXFernHostNode } from "@/server/xfernhost/node"; import * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import { getFeatureFlags } from "@fern-ui/fern-docs-edge-config"; +import { ApiDefinitionLoader } from "@fern-ui/fern-docs-server"; +import { getMdxBundler } from "@fern-ui/ui/bundlers"; import { NextApiHandler, NextApiResponse } from "next"; const resolveApiHandler: NextApiHandler = async (req, res: NextApiResponse) => { @@ -14,11 +15,17 @@ const resolveApiHandler: NextApiHandler = async (req, res: NextApiResponse) => { @@ -14,11 +15,17 @@ const resolveApiHandler: NextApiHandler = async (req, res: NextApiResponse) => { @@ -14,11 +15,17 @@ const resolveApiHandler: NextApiHandler = async (req, res: NextApiResponse | null>, -) => { - try { - if (req.method !== "GET") { - res.status(400).json(null); - return; - } - - const xFernHost = getXFernHostNode(req); - - res.setHeader("host", xFernHost); - - // we're not doing any auth here because api definitions are not authed in FDR. - const docsResponse = await provideRegistryService().docs.v2.read.getDocsForUrl({ - url: FdrAPI.Url(xFernHost), - }); - - if (!docsResponse.ok) { - res.status(404).json(null); - return; - } - - const docs = docsResponse.body; - const featureFlags = await getFeatureFlags(docs.baseUrl.domain); - - const root = FernNavigation.utils.toRootNode( - docsResponse.body, - featureFlags.isBatchStreamToggleDisabled, - featureFlags.isApiScrollingDisabled, - ); - - const collector = FernNavigation.NodeCollector.collect(root); - - const serializeMdx = await getMdxBundler(featureFlags.useMdxBundler ? "mdx-bundler" : "next-mdx-remote"); - - const packagesPromise: Promise[] = []; - FernNavigation.utils.collectApiReferences(root).forEach((apiReference) => { - const api = docs.definition.apis[apiReference.apiDefinitionId]; - if (api == null) { - return; - } - const holder = ApiDefinitionHolder.create(api); - const resolved = ApiDefinitionResolver.resolve( - collector, - apiReference, - holder, - docs.definition.pages, - { files: docs.definition.jsFiles }, - featureFlags, - serializeMdx, - DocsKVCache.getInstance(xFernHost), - ); - packagesPromise.push(resolved); - }); - - const toRet: Record = {}; - - const packages = await Promise.all(packagesPromise); - packages.forEach((p) => { - toRet[p.api] = p; - }); - - res.status(200).json(toRet); - } catch (err) { - // eslint-disable-next-line no-console - console.error(err); - res.status(500).json(null); - } -}; - -export default resolveApiHandler; diff --git a/packages/ui/docs-bundle/src/server/DocsCache.ts b/packages/ui/docs-bundle/src/server/DocsCache.ts index 2d54264caa..b50d0b9fc6 100644 --- a/packages/ui/docs-bundle/src/server/DocsCache.ts +++ b/packages/ui/docs-bundle/src/server/DocsCache.ts @@ -1,16 +1,10 @@ -import type { APIV1Read, FernNavigation } from "@fern-api/fdr-sdk"; -import { - ApiDefinitionResolverCache, - ResolvedApiPageMetadata, - ResolvedEndpointDefinition, - ResolvedTypeDefinition, -} from "@fern-ui/ui"; +import type { FernNavigation } from "@fern-api/fdr-sdk"; import { kv } from "@vercel/kv"; const DEPLOYMENT_ID = process.env.VERCEL_DEPLOYMENT_ID ?? "development"; const PREFIX = `docs:${DEPLOYMENT_ID}`; -export class DocsKVCache implements ApiDefinitionResolverCache { +export class DocsKVCache { private static instance: Map; private constructor(private domain: string) {} @@ -41,94 +35,4 @@ export class DocsKVCache implements ApiDefinitionResolverCache { public async removeVisitedSlugs(...slug: FernNavigation.Slug[]): Promise { await kv.srem(`${PREFIX}:${this.domain}:visited-slugs`, ...slug); } - - async putResolvedEndpoint({ - apiDefinitionId, - endpoint, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - endpoint: ResolvedEndpointDefinition; - }): Promise { - await kv.set(this.getResovledEndpointId({ apiDefinitionId, endpointId: endpoint.id }), endpoint); - } - async getResolvedEndpoint({ - apiDefinitionId, - endpointId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - endpointId: APIV1Read.EndpointId; - }): Promise { - return await kv.get(this.getResovledEndpointId({ apiDefinitionId, endpointId })); - } - - private getResovledEndpointId({ - apiDefinitionId, - endpointId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - endpointId: APIV1Read.EndpointId; - }): string { - return `${PREFIX}:${this.domain}:${apiDefinitionId}:endpoint:${endpointId}`; - } - - async putApiPageMetadata({ - apiDefinitionId, - page, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - page: ResolvedApiPageMetadata; - }): Promise { - await kv.set(this.getResovledApiPageId({ apiDefinitionId, pageId: page.id }), page); - } - - async getApiPageMetadata({ - apiDefinitionId, - pageId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - pageId: APIV1Read.PageId; - }): Promise { - return await kv.get(this.getResovledApiPageId({ apiDefinitionId, pageId })); - } - - private getResovledApiPageId({ - apiDefinitionId, - pageId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - pageId: APIV1Read.PageId; - }): string { - return `${PREFIX}:${this.domain}:${apiDefinitionId}:api-page:${pageId}`; - } - - async putResolvedTypeDeclaration({ - apiDefinitionId, - typeId, - type, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - typeId: APIV1Read.TypeId; - type: ResolvedTypeDefinition; - }): Promise { - await kv.set(this.getResolvedTypeId({ apiDefinitionId, typeId }), type); - } - async getResolvedTypeDeclaration({ - apiDefinitionId, - typeId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - typeId: APIV1Read.TypeId; - }): Promise { - return await kv.get(this.getResolvedTypeId({ apiDefinitionId, typeId })); - } - - private getResolvedTypeId({ - apiDefinitionId, - typeId, - }: { - apiDefinitionId: APIV1Read.ApiDefinitionId; - typeId: APIV1Read.TypeId; - }): string { - return `${PREFIX}:${this.domain}:${apiDefinitionId}:type:${typeId}`; - } } diff --git a/packages/ui/docs-bundle/src/server/DocsLoader.ts b/packages/ui/docs-bundle/src/server/DocsLoader.ts index 1d88881b53..1f95dded5f 100644 --- a/packages/ui/docs-bundle/src/server/DocsLoader.ts +++ b/packages/ui/docs-bundle/src/server/DocsLoader.ts @@ -47,6 +47,9 @@ export class DocsLoader { if (!this.authConfig || !this.fernToken || (this.authProps && this.authConfig)) { return [this.authProps, this.authConfig]; } + if (!this.fernToken) { + return [undefined, this.auth]; + } try { return [await withAuthProps(this.authConfig, this.fernToken), this.authConfig]; } catch (e) { diff --git a/packages/ui/docs-bundle/src/server/withInitialProps.ts b/packages/ui/docs-bundle/src/server/withInitialProps.ts index c790783ea7..983b83bba4 100644 --- a/packages/ui/docs-bundle/src/server/withInitialProps.ts +++ b/packages/ui/docs-bundle/src/server/withInitialProps.ts @@ -126,7 +126,8 @@ export async function withInitialProps({ }; } - const serializeMdx = await getMdxBundler(featureFlags.useMdxBundler ? "mdx-bundler" : "next-mdx-remote"); + const engine = featureFlags.useMdxBundler ? "mdx-bundler" : "next-mdx-remote"; + const serializeMdx = await getMdxBundler(engine); const content = await resolveDocsContent({ found: node, @@ -137,6 +138,8 @@ export async function withInitialProps({ files: docs.definition.jsFiles, }, serializeMdx, + host: docs.baseUrl.domain, + engine, }); if (content == null) { diff --git a/packages/ui/docs-bundle/tsconfig.json b/packages/ui/docs-bundle/tsconfig.json index 99f67216da..150ceaef97 100644 --- a/packages/ui/docs-bundle/tsconfig.json +++ b/packages/ui/docs-bundle/tsconfig.json @@ -28,6 +28,9 @@ { "path": "../fern-docs-utils" }, + { + "path": "../fern-docs-server" + }, { "path": "../../fdr-sdk/tsconfig.build.json" }, diff --git a/packages/ui/fern-docs-edge-config/package.json b/packages/ui/fern-docs-edge-config/package.json index f150a7942d..3da1afc87f 100644 --- a/packages/ui/fern-docs-edge-config/package.json +++ b/packages/ui/fern-docs-edge-config/package.json @@ -4,7 +4,7 @@ "repository": { "type": "git", "url": "https://github.com/fern-api/fern-platform.git", - "directory": "packages/commons/fdr-utils" + "directory": "packages/ui/fern-docs-edge-config" }, "private": true, "files": [ diff --git a/packages/ui/fern-docs-server/.depcheckrc.json b/packages/ui/fern-docs-server/.depcheckrc.json new file mode 100644 index 0000000000..cf8a6564f2 --- /dev/null +++ b/packages/ui/fern-docs-server/.depcheckrc.json @@ -0,0 +1 @@ +{ "ignores": ["@fern-platform/configs", "@types/node", "vite", "@types/react"], "ignore-patterns": ["dist"] } diff --git a/packages/ui/fern-docs-server/.prettierrc.cjs b/packages/ui/fern-docs-server/.prettierrc.cjs new file mode 100644 index 0000000000..39cf0d0b8c --- /dev/null +++ b/packages/ui/fern-docs-server/.prettierrc.cjs @@ -0,0 +1 @@ +module.exports = require("../../../.prettierrc.json"); diff --git a/packages/ui/fern-docs-server/.stylelintrc.json b/packages/ui/fern-docs-server/.stylelintrc.json new file mode 100644 index 0000000000..0d2e3ff61d --- /dev/null +++ b/packages/ui/fern-docs-server/.stylelintrc.json @@ -0,0 +1 @@ +{ "extends": ["../../../shared/stylelintrc.shared.json"] } diff --git a/packages/ui/fern-docs-server/package.json b/packages/ui/fern-docs-server/package.json new file mode 100644 index 0000000000..351e4fdafc --- /dev/null +++ b/packages/ui/fern-docs-server/package.json @@ -0,0 +1,55 @@ +{ + "name": "@fern-ui/fern-docs-server", + "version": "0.0.0", + "repository": { + "type": "git", + "url": "https://github.com/fern-api/fern-platform.git", + "directory": "packages/ui/fern-docs-server" + }, + "private": true, + "files": [ + "dist" + ], + "type": "module", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, + "sideEffects": false, + "scripts": { + "clean": "rm -rf ./lib && tsc --build --clean", + "compile": "tsc --build", + "test": "vitest --run --passWithNoTests --globals", + "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", + "lint:eslint:fix": "pnpm lint:eslint --fix", + "lint:style": "stylelint 'src/**/*.scss' --allow-empty-input --max-warnings 0", + "lint:style:fix": "pnpm lint:style --fix", + "format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "organize-imports": "organize-imports-cli tsconfig.json", + "depcheck": "depcheck", + "dev": "tsc --watch", + "docs:dev": "pnpm dev" + }, + "dependencies": { + "@fern-api/fdr-sdk": "workspace:*", + "@fern-api/ui-core-utils": "workspace:*", + "@fern-ui/fern-docs-utils": "workspace:*", + "@vercel/kv": "^2.0.0", + "httpsnippet-lite": "^3.0.5", + "ts-essentials": "^10.0.1" + }, + "devDependencies": { + "@fern-platform/configs": "workspace:*", + "@types/node": "^18.7.18", + "depcheck": "^1.4.3", + "eslint": "^8.56.0", + "organize-imports-cli": "^0.10.0", + "prettier": "^3.3.2", + "stylelint": "^16.1.0", + "typescript": "5.4.3", + "vitest": "^1.5.0" + } +} diff --git a/packages/ui/docs-bundle/src/server/ApiDefinitionCache.ts b/packages/ui/fern-docs-server/src/ApiDefinitionKVCache.ts similarity index 71% rename from packages/ui/docs-bundle/src/server/ApiDefinitionCache.ts rename to packages/ui/fern-docs-server/src/ApiDefinitionKVCache.ts index de6dfd2c7b..5421e4bbca 100644 --- a/packages/ui/docs-bundle/src/server/ApiDefinitionCache.ts +++ b/packages/ui/fern-docs-server/src/ApiDefinitionKVCache.ts @@ -1,6 +1,7 @@ import type * as ApiDefinition from "@fern-api/fdr-sdk/api-definition"; import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import { kv } from "@vercel/kv"; +import { MarkdownKVCache } from "./MarkdownKVCache"; const DEPLOYMENT_ID = process.env.VERCEL_DEPLOYMENT_ID ?? "development"; const PREFIX = `docs:${DEPLOYMENT_ID}`; @@ -19,10 +20,13 @@ export class ApiDefinitionKVCache { } } + private markdownCache: MarkdownKVCache; private constructor( private domain: string, private api: string, - ) {} + ) { + this.markdownCache = MarkdownKVCache.getInstance(domain); + } private createKey(key: string): string { return `${PREFIX}:${this.domain}:${this.api}:${key}`; @@ -50,53 +54,21 @@ export class ApiDefinitionKVCache { } private async getResolvedDescription(key: string): Promise { - try { - return kv.get(this.createKey(key)); - } catch (e) { - // eslint-disable-next-line no-console - console.error(e); - return null; - } + return this.markdownCache.getMarkdownText(`${this.api}:${key}`); } private async mgetResolvedDescriptions(keys: string[]): Promise> { - const toRet: Record = {}; - try { - const response = await kv.mget<(FernDocs.MarkdownText | null)[]>(keys.map((key) => this.createKey(key))); - keys.map((key, index) => [key, response[index] ?? null] as const).forEach(([key, value]) => { - if (value != null) { - toRet[key] = value; - } - }); - } catch (e) { - // eslint-disable-next-line no-console - console.error(e); - } - return toRet; + return this.markdownCache.mgetMarkdownText(keys.map((key) => `${this.api}:${key}`)); } private async setResolvedDescription(description: FernDocs.MarkdownText, key: string): Promise { - try { - await kv.set(this.createKey(key), description); - } catch (e) { - // eslint-disable-next-line no-console - console.error(e); - } + await this.markdownCache.setMarkdownText(`${this.api}:${key}`, description); } - // TODO: validate that mset records is <1MB or else this will throw! private async msetResolvedDescriptions(records: Record): Promise { - try { - const entries = Object.entries(records).map(([key, value]) => [this.createKey(key), value] as const); - const batches = []; - while (entries.length > 0) { - batches.push(entries.splice(0, 100)); - } - await Promise.all(batches.map((batch) => kv.mset(Object.fromEntries(batch)))); - } catch (e) { - // eslint-disable-next-line no-console - console.error(e); - } + await this.markdownCache.msetMarkdownText( + Object.fromEntries(Object.entries(records).map(([key, value]) => [`${this.api}:${key}`, value])), + ); } public async resolveDescription( diff --git a/packages/ui/docs-bundle/src/server/ApiDefinitionLoader.ts b/packages/ui/fern-docs-server/src/ApiDefinitionLoader.ts similarity index 88% rename from packages/ui/docs-bundle/src/server/ApiDefinitionLoader.ts rename to packages/ui/fern-docs-server/src/ApiDefinitionLoader.ts index a9369a9177..7cac3d10c5 100644 --- a/packages/ui/docs-bundle/src/server/ApiDefinitionLoader.ts +++ b/packages/ui/fern-docs-server/src/ApiDefinitionLoader.ts @@ -1,4 +1,4 @@ -import { APIV1Read } from "@fern-api/fdr-sdk"; +import { APIV1Read, FdrClient } from "@fern-api/fdr-sdk"; import { ApiDefinitionId, ApiDefinitionV1ToLatest, @@ -13,11 +13,9 @@ import { import type * as FernDocs from "@fern-api/fdr-sdk/docs"; import type { FeatureFlags } from "@fern-ui/fern-docs-utils"; import { DEFAULT_FEATURE_FLAGS } from "@fern-ui/fern-docs-utils"; -import { provideRegistryService } from "@fern-ui/ui"; -import { getMdxBundler } from "@fern-ui/ui/bundlers"; import { HTTPSnippet, type TargetId } from "httpsnippet-lite"; import { UnreachableCaseError } from "ts-essentials"; -import { ApiDefinitionKVCache } from "./ApiDefinitionCache"; +import { ApiDefinitionKVCache } from "./ApiDefinitionKVCache"; import { getHarRequest } from "./getHarRequest"; interface HTTPSnippetClient { @@ -41,6 +39,12 @@ export class ApiDefinitionLoader { return new ApiDefinitionLoader(xFernHost, apiDefinitionId); }; + private environment: string | undefined; + public withEnvironment = (environment: string | undefined): ApiDefinitionLoader => { + this.environment = environment; + return this; + }; + private cache: ApiDefinitionKVCache; private constructor( xFernHost: string, @@ -74,6 +78,7 @@ export class ApiDefinitionLoader { return this; }; + #getClient = () => new FdrClient({ environment: this.environment }); #getApi = async (): Promise => { if (this.apiDefinition != null) { return this.apiDefinition; @@ -85,7 +90,7 @@ export class ApiDefinitionLoader { // return apiDefinition; // } - const v1 = await provideRegistryService().api.v1.read.getApi(this.apiDefinitionId); + const v1 = await this.#getClient().api.v1.read.getApi(this.apiDefinitionId); if (!v1.ok) { if (v1.error.error === "ApiDoesNotExistError") { return undefined; @@ -221,14 +226,21 @@ export class ApiDefinitionLoader { return { ...example, snippets }; }; - private resolveDescriptions = async (apiDefinition: ApiDefinition): Promise => { - // TODO: pass in other tsx/mdx files to serializeMdx options - const engine = this.flags.useMdxBundler ? "mdx-bundler" : "next-mdx-remote"; - const serializeMdx = await getMdxBundler(engine); + #serializeMdx = async (mdx: string): Promise => Promise.resolve(mdx); + #engine = "raw"; + public withMdxBundler = ( + fn: (mdx: string) => Promise, + engine: string, + ): ApiDefinitionLoader => { + this.#serializeMdx = fn; + this.#engine = engine; + return this; + }; - const descriptions = await this.#collectDescriptions(apiDefinition, engine); - const resolvedDescriptions = await this.cache.batchResolveDescriptions(descriptions, serializeMdx); - const transformed = await this.#transformDescriptions(apiDefinition, resolvedDescriptions, engine); + private resolveDescriptions = async (apiDefinition: ApiDefinition): Promise => { + const descriptions = await this.#collectDescriptions(apiDefinition); + const resolvedDescriptions = await this.cache.batchResolveDescriptions(descriptions, this.#serializeMdx); + const transformed = await this.#transformDescriptions(apiDefinition, resolvedDescriptions); return transformed; }; @@ -239,18 +251,15 @@ export class ApiDefinitionLoader { * @param apiDefinition The API definition to collect descriptions from * @param engine to prefix the key, so that we can differentiate between different serialization engines */ - #collectDescriptions = async ( - apiDefinition: ApiDefinition, - engine: string, - ): Promise> => { + #collectDescriptions = async (apiDefinition: ApiDefinition): Promise> => { const descriptions: Record = {}; const descriptionCollector = (description: FernDocs.MarkdownText, key: string) => { - if (descriptions[`${engine}/${key}`] != null) { + if (descriptions[`${this.#engine}/${key}`] != null) { // eslint-disable-next-line no-console console.error(`Duplicate description key: ${key}!`); return description; } - descriptions[`${engine}/${key}`] = description; + descriptions[`${this.#engine}/${key}`] = description; return description; }; await Transformer.descriptions(descriptionCollector).apiDefinition(apiDefinition); @@ -260,10 +269,9 @@ export class ApiDefinitionLoader { #transformDescriptions = async ( apiDefinition: ApiDefinition, descriptions: Record, - engine: string, ): Promise => { const transformer = (description: FernDocs.MarkdownText, key: string) => { - return descriptions[`${engine}/${key}`] ?? description; + return descriptions[`${this.#engine}/${key}`] ?? description; }; return await Transformer.descriptions(transformer).apiDefinition(apiDefinition); diff --git a/packages/ui/fern-docs-server/src/MarkdownKVCache.ts b/packages/ui/fern-docs-server/src/MarkdownKVCache.ts new file mode 100644 index 0000000000..779db58fbb --- /dev/null +++ b/packages/ui/fern-docs-server/src/MarkdownKVCache.ts @@ -0,0 +1,75 @@ +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import { kv } from "@vercel/kv"; + +const DEPLOYMENT_ID = process.env.VERCEL_DEPLOYMENT_ID ?? "development"; +const PREFIX = `docs:${DEPLOYMENT_ID}`; + +export class MarkdownKVCache { + private static instances: Map = new Map(); + public static getInstance(domain: string): MarkdownKVCache { + const instance = MarkdownKVCache.instances.get(domain); + if (!instance) { + const newInstance = new MarkdownKVCache(domain); + MarkdownKVCache.instances.set(domain, newInstance); + return newInstance; + } else { + return instance; + } + } + + private constructor(private domain: string) {} + + private createKey(key: string): string { + return `${PREFIX}:${this.domain}:${key}`; + } + + public async getMarkdownText(key: string): Promise { + try { + return kv.get(this.createKey(key)); + } catch (e) { + // eslint-disable-next-line no-console + console.error(`Could not get ${key} from cache`, e); + return null; + } + } + + public async mgetMarkdownText(keys: string[]): Promise> { + const toRet: Record = {}; + try { + const response = await kv.mget<(FernDocs.MarkdownText | null)[]>(keys.map((key) => this.createKey(key))); + keys.map((key, index) => [key, response[index] ?? null] as const).forEach(([key, value]) => { + if (value != null) { + toRet[key] = value; + } + }); + } catch (e) { + // eslint-disable-next-line no-console + console.error(e); + } + return toRet; + } + + public async setMarkdownText(key: string, markdownText: FernDocs.MarkdownText): Promise { + try { + await kv.set(this.createKey(key), markdownText); + } catch (e) { + // eslint-disable-next-line no-console + console.error(`Could not set ${key} in cache`, e); + } + } + + // TODO: validate that mset records is <1MB or else this will throw! + public async msetMarkdownText(records: Record, batchSize = 100): Promise { + try { + const entries = Object.entries(records).map(([key, value]) => [this.createKey(key), value] as const); + const batches = []; + while (entries.length > 0) { + batches.push(entries.splice(0, batchSize)); // batched + } + await Promise.all(batches.map((batch) => kv.mset(Object.fromEntries(batch)))); + } catch (e) { + // eslint-disable-next-line no-console + console.error(e); + } + } +} diff --git a/packages/ui/fern-docs-server/src/MarkdownLoader.ts b/packages/ui/fern-docs-server/src/MarkdownLoader.ts new file mode 100644 index 0000000000..e78aaa61eb --- /dev/null +++ b/packages/ui/fern-docs-server/src/MarkdownLoader.ts @@ -0,0 +1,92 @@ +import type { DocsV1Read } from "@fern-api/fdr-sdk"; +import type * as FernDocs from "@fern-api/fdr-sdk/docs"; +import * as FernNavigation from "@fern-api/fdr-sdk/navigation"; +import { MarkdownKVCache } from "./MarkdownKVCache"; + +export class MarkdownLoader { + public static create(domain: string): MarkdownLoader { + return new MarkdownLoader(domain); + } + + private cache: MarkdownKVCache; + private constructor(domain: string) { + this.cache = MarkdownKVCache.getInstance(domain); + } + + private pages: Record = {}; + public withPages(pages: Record): MarkdownLoader { + this.pages = { ...this.pages, ...pages }; + return this; + } + + // this is the docs instance id + private instanceId: string | undefined; + public withInstanceId(instanceId: string): MarkdownLoader { + this.instanceId = instanceId; + return this; + } + + #serializeMdx = async ( + mdx: string, + _pageId: FernNavigation.PageId, + _title: string | undefined, + _breadcrumb: FernNavigation.BreadcrumbItem[], + _editThisPageUrl: FernNavigation.Url | undefined, + ): Promise => Promise.resolve(mdx); + #engine = "raw"; + public withMdxBundler = ( + fn: ( + mdx: string, + pageId: FernNavigation.PageId, + title: string | undefined, + breadcrumb: FernNavigation.BreadcrumbItem[], + editThisPageUrl: FernNavigation.Url | undefined, + ) => Promise, + engine: string, + ): MarkdownLoader => { + this.#serializeMdx = fn; + this.#engine = engine; + return this; + }; + + public async load( + node: FernNavigation.NavigationNodeWithMarkdown, + breadcrumb: readonly FernNavigation.BreadcrumbItem[], + ): Promise { + const pageId = FernNavigation.getPageId(node); + + if (!pageId) { + return; + } + + const cacheKey = `${this.instanceId}:${this.#engine}:${node.id}`; + + // instanceId is required to load from cache because the instanceId is used to invalidate the cache + // when a new version of the docs is deployed + if (this.instanceId) { + const cached = await this.cache.getMarkdownText(cacheKey); + if (cached) { + return cached; + } + } + + const page = this.pages[pageId]; + if (!page) { + return; + } + + const serialized = await this.#serializeMdx( + page.markdown, + pageId, + node.title, + [...(breadcrumb ?? [])], + page.editThisPageUrl, + ); + + if (this.instanceId) { + await this.cache.setMarkdownText(cacheKey, serialized); + } + + return serialized; + } +} diff --git a/packages/ui/docs-bundle/src/server/getHarRequest.ts b/packages/ui/fern-docs-server/src/getHarRequest.ts similarity index 100% rename from packages/ui/docs-bundle/src/server/getHarRequest.ts rename to packages/ui/fern-docs-server/src/getHarRequest.ts diff --git a/packages/ui/fern-docs-server/src/index.ts b/packages/ui/fern-docs-server/src/index.ts new file mode 100644 index 0000000000..fdb005d8c4 --- /dev/null +++ b/packages/ui/fern-docs-server/src/index.ts @@ -0,0 +1,2 @@ +export * from "./ApiDefinitionLoader"; +export * from "./MarkdownLoader"; diff --git a/packages/ui/fern-docs-server/tsconfig.json b/packages/ui/fern-docs-server/tsconfig.json new file mode 100644 index 0000000000..2a5ee321aa --- /dev/null +++ b/packages/ui/fern-docs-server/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "@fern-platform/configs/tsconfig/library.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["./src/**/*"], + "references": [ + { + "path": "../../fdr-sdk/tsconfig.build.json" + }, + { + "path": "../../commons/core-utils" + }, + { + "path": "../fern-docs-utils" + } + ] +} diff --git a/packages/ui/fern-docs-server/vitest.config.ts b/packages/ui/fern-docs-server/vitest.config.ts new file mode 100644 index 0000000000..4f772037cd --- /dev/null +++ b/packages/ui/fern-docs-server/vitest.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + globals: true, + }, +}); diff --git a/packages/ui/fern-docs-utils/package.json b/packages/ui/fern-docs-utils/package.json index 34628192d0..cc62feeb28 100644 --- a/packages/ui/fern-docs-utils/package.json +++ b/packages/ui/fern-docs-utils/package.json @@ -4,7 +4,7 @@ "repository": { "type": "git", "url": "https://github.com/fern-api/fern-platform.git", - "directory": "packages/commons/fdr-utils" + "directory": "packages/ui/fern-docs-utils" }, "private": true, "files": [ diff --git a/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts b/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts index 6759875a05..0c8b5141fa 100644 --- a/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts +++ b/packages/ui/local-preview-bundle/src/utils/getDocsPageProps.ts @@ -68,6 +68,8 @@ export async function getDocsPageProps( files: docs.definition.jsFiles, }, serializeMdx, + host: docs.baseUrl.domain, + engine: "next-mdx-remote", }); if (content == null) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 08cc1543f4..9f1bc450cc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1067,6 +1067,9 @@ importers: '@fern-ui/fdr-utils': specifier: workspace:* version: link:../../commons/fdr-utils + '@fern-ui/fern-docs-server': + specifier: workspace:* + version: link:../fern-docs-server '@fern-ui/fern-docs-utils': specifier: workspace:* version: link:../fern-docs-utils @@ -1172,9 +1175,6 @@ importers: hastscript: specifier: ^9.0.0 version: 9.0.0 - httpsnippet-lite: - specifier: ^3.0.5 - version: 3.0.5 iconoir-react: specifier: ^7.7.0 version: 7.7.0(react@18.3.1) @@ -1781,6 +1781,9 @@ importers: '@fern-ui/fern-docs-edge-config': specifier: workspace:* version: link:../fern-docs-edge-config + '@fern-ui/fern-docs-server': + specifier: workspace:* + version: link:../fern-docs-server '@fern-ui/fern-docs-utils': specifier: workspace:* version: link:../fern-docs-utils @@ -1817,9 +1820,6 @@ importers: form-data: specifier: 4.0.0 version: 4.0.0 - httpsnippet-lite: - specifier: ^3.0.5 - version: 3.0.5 jose: specifier: ^5.2.3 version: 5.2.4 @@ -2174,6 +2174,55 @@ importers: specifier: ^1.5.0 version: 1.6.0(@edge-runtime/vm@3.2.0)(@types/node@18.19.33)(jsdom@24.0.0)(less@4.2.0)(sass@1.77.0)(stylus@0.62.0)(terser@5.31.0) + packages/ui/fern-docs-server: + dependencies: + '@fern-api/fdr-sdk': + specifier: workspace:* + version: link:../../fdr-sdk + '@fern-api/ui-core-utils': + specifier: workspace:* + version: link:../../commons/core-utils + '@fern-ui/fern-docs-utils': + specifier: workspace:* + version: link:../fern-docs-utils + '@vercel/kv': + specifier: ^2.0.0 + version: 2.0.0 + httpsnippet-lite: + specifier: ^3.0.5 + version: 3.0.5 + ts-essentials: + specifier: ^10.0.1 + version: 10.0.1(typescript@5.4.3) + devDependencies: + '@fern-platform/configs': + specifier: workspace:* + version: link:../../configs + '@types/node': + specifier: ^18.7.18 + version: 18.19.33 + depcheck: + specifier: ^1.4.3 + version: 1.4.7 + eslint: + specifier: ^8.56.0 + version: 8.57.0 + organize-imports-cli: + specifier: ^0.10.0 + version: 0.10.0 + prettier: + specifier: ^3.3.2 + version: 3.3.2 + stylelint: + specifier: ^16.1.0 + version: 16.5.0(typescript@5.4.3) + typescript: + specifier: 5.4.3 + version: 5.4.3 + vitest: + specifier: ^1.5.0 + version: 1.6.0(@edge-runtime/vm@3.2.0)(@types/node@18.19.33)(jsdom@24.0.0)(less@4.2.0)(sass@1.77.0)(stylus@0.62.0)(terser@5.31.0) + packages/ui/fern-docs-utils: dependencies: '@fern-api/fdr-sdk': @@ -16672,10 +16721,10 @@ snapshots: '@aws-crypto/sha1-browser': 3.0.0 '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.572.0 - '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) + '@aws-sdk/client-sso-oidc': 3.572.0(@aws-sdk/client-sts@3.572.0) + '@aws-sdk/client-sts': 3.572.0 '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0(@aws-sdk/client-sts@3.572.0))(@aws-sdk/client-sts@3.572.0) '@aws-sdk/middleware-bucket-endpoint': 3.568.0 '@aws-sdk/middleware-expect-continue': 3.572.0 '@aws-sdk/middleware-flexible-checksums': 3.572.0 @@ -16736,7 +16785,7 @@ snapshots: '@aws-crypto/sha256-js': 3.0.0 '@aws-sdk/client-sts': 3.572.0 '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0) '@aws-sdk/middleware-host-header': 3.567.0 '@aws-sdk/middleware-logger': 3.568.0 '@aws-sdk/middleware-recursion-detection': 3.567.0 @@ -16870,52 +16919,7 @@ snapshots: '@aws-crypto/sha256-js': 3.0.0 '@aws-sdk/client-sso-oidc': 3.572.0 '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0) - '@aws-sdk/middleware-host-header': 3.567.0 - '@aws-sdk/middleware-logger': 3.568.0 - '@aws-sdk/middleware-recursion-detection': 3.567.0 - '@aws-sdk/middleware-user-agent': 3.572.0 - '@aws-sdk/region-config-resolver': 3.572.0 - '@aws-sdk/types': 3.567.0 - '@aws-sdk/util-endpoints': 3.572.0 - '@aws-sdk/util-user-agent-browser': 3.567.0 - '@aws-sdk/util-user-agent-node': 3.568.0 - '@smithy/config-resolver': 2.2.0 - '@smithy/core': 1.4.2 - '@smithy/fetch-http-handler': 2.5.0 - '@smithy/hash-node': 2.2.0 - '@smithy/invalid-dependency': 2.2.0 - '@smithy/middleware-content-length': 2.2.0 - '@smithy/middleware-endpoint': 2.5.1 - '@smithy/middleware-retry': 2.3.1 - '@smithy/middleware-serde': 2.3.0 - '@smithy/middleware-stack': 2.2.0 - '@smithy/node-config-provider': 2.3.0 - '@smithy/node-http-handler': 2.5.0 - '@smithy/protocol-http': 3.3.0 - '@smithy/smithy-client': 2.5.1 - '@smithy/types': 2.12.0 - '@smithy/url-parser': 2.2.0 - '@smithy/util-base64': 2.3.0 - '@smithy/util-body-length-browser': 2.2.0 - '@smithy/util-body-length-node': 2.3.0 - '@smithy/util-defaults-mode-browser': 2.2.1 - '@smithy/util-defaults-mode-node': 2.3.1 - '@smithy/util-endpoints': 1.2.0 - '@smithy/util-middleware': 2.2.0 - '@smithy/util-retry': 2.2.0 - '@smithy/util-utf8': 2.3.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - - '@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)': - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.572.0 - '@aws-sdk/core': 3.572.0 - '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) + '@aws-sdk/credential-provider-node': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0(@aws-sdk/client-sts@3.572.0))(@aws-sdk/client-sts@3.572.0) '@aws-sdk/middleware-host-header': 3.567.0 '@aws-sdk/middleware-logger': 3.568.0 '@aws-sdk/middleware-recursion-detection': 3.567.0 @@ -16952,7 +16956,6 @@ snapshots: '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - aws-crt '@aws-sdk/core@3.572.0': @@ -17001,23 +17004,6 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-ini@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0))': - dependencies: - '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) - '@aws-sdk/credential-provider-env': 3.568.0 - '@aws-sdk/credential-provider-process': 3.572.0 - '@aws-sdk/credential-provider-sso': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) - '@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/client-sts@3.572.0) - '@aws-sdk/types': 3.567.0 - '@smithy/credential-provider-imds': 2.3.0 - '@smithy/property-provider': 2.2.0 - '@smithy/shared-ini-file-loader': 2.4.0 - '@smithy/types': 2.12.0 - tslib: 2.6.2 - transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - - aws-crt - '@aws-sdk/credential-provider-ini@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0)': dependencies: '@aws-sdk/client-sts': 3.572.0 @@ -17054,25 +17040,6 @@ snapshots: - '@aws-sdk/client-sts' - aws-crt - '@aws-sdk/credential-provider-node@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0))': - dependencies: - '@aws-sdk/credential-provider-env': 3.568.0 - '@aws-sdk/credential-provider-http': 3.568.0 - '@aws-sdk/credential-provider-ini': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)) - '@aws-sdk/credential-provider-process': 3.572.0 - '@aws-sdk/credential-provider-sso': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) - '@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/client-sts@3.572.0) - '@aws-sdk/types': 3.567.0 - '@smithy/credential-provider-imds': 2.3.0 - '@smithy/property-provider': 2.2.0 - '@smithy/shared-ini-file-loader': 2.4.0 - '@smithy/types': 2.12.0 - tslib: 2.6.2 - transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - - '@aws-sdk/client-sts' - - aws-crt - '@aws-sdk/credential-provider-node@3.572.0(@aws-sdk/client-sso-oidc@3.572.0)(@aws-sdk/client-sts@3.572.0)': dependencies: '@aws-sdk/credential-provider-env': 3.568.0 @@ -17128,7 +17095,7 @@ snapshots: '@aws-sdk/credential-provider-web-identity@3.568.0(@aws-sdk/client-sts@3.572.0)': dependencies: - '@aws-sdk/client-sts': 3.572.0(@aws-sdk/client-sso-oidc@3.572.0) + '@aws-sdk/client-sts': 3.572.0 '@aws-sdk/types': 3.567.0 '@smithy/property-provider': 2.2.0 '@smithy/types': 2.12.0 diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ListType.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ListType.d.ts index 5f1316b69f..f757afab77 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ListType.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ListType.d.ts @@ -3,5 +3,5 @@ */ import * as FernRegistry from "../../../../../../../index"; export interface ListType { - itemShape: FernRegistry.api.latest.TypeReference; + itemShape: FernRegistry.api.latest.TypeShape; } diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/MapType.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/MapType.d.ts index dcd28a3e66..a17eb8ad2a 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/MapType.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/MapType.d.ts @@ -3,6 +3,6 @@ */ import * as FernRegistry from "../../../../../../../index"; export interface MapType { - keyShape: FernRegistry.api.latest.TypeReference; - valueShape: FernRegistry.api.latest.TypeReference; + keyShape: FernRegistry.api.latest.TypeShape; + valueShape: FernRegistry.api.latest.TypeShape; } diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.d.ts index 543e998d7a..f23588436a 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/ObjectProperty.d.ts @@ -4,5 +4,5 @@ import * as FernRegistry from "../../../../../../../index"; export interface ObjectProperty extends FernRegistry.api.latest.WithDescription, FernRegistry.api.latest.WithAvailability { key: FernRegistry.PropertyKey; - valueShape: FernRegistry.api.latest.TypeReference; + valueShape: FernRegistry.api.latest.TypeShape; } diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.d.ts index 5d2567cc3c..3f0dc72ac5 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/OptionalType.d.ts @@ -3,6 +3,6 @@ */ import * as FernRegistry from "../../../../../../../index"; export interface OptionalType { - shape: FernRegistry.api.latest.TypeReference; + shape: FernRegistry.api.latest.TypeShape; default: unknown | undefined; } diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/SetType.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/SetType.d.ts index ed3fe698c3..a4ffb6f648 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/SetType.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/SetType.d.ts @@ -3,5 +3,5 @@ */ import * as FernRegistry from "../../../../../../../index"; export interface SetType { - itemShape: FernRegistry.api.latest.TypeReference; + itemShape: FernRegistry.api.latest.TypeShape; } diff --git a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.d.ts b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.d.ts index 6a5a4af583..85c9ca6b87 100644 --- a/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.d.ts +++ b/servers/fdr/src/api/generated/api/resources/api/resources/latest/resources/type/types/UndiscriminatedUnionVariant.d.ts @@ -4,5 +4,5 @@ import * as FernRegistry from "../../../../../../../index"; export interface UndiscriminatedUnionVariant extends FernRegistry.api.latest.WithDescription, FernRegistry.api.latest.WithAvailability { displayName: string | undefined; - shape: FernRegistry.api.latest.TypeReference; + shape: FernRegistry.api.latest.TypeShape; } diff --git a/turbo.json b/turbo.json index fe28dbcdb4..7a47bf21dc 100644 --- a/turbo.json +++ b/turbo.json @@ -12,6 +12,9 @@ "outputs": ["dist/**"], "dependsOn": ["^compile"] }, + "check-types": { + "dependsOn": ["^compile"] + }, "lint": {}, "lint:eslint": {}, "lint:style": {},