diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ed8e406c..62918c6b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 16f22cbf-f23f-4419-8924-3a4b06381947 management: - docChecksum: 46ec1ce493542eb1a574ee88fc8b0895 + docChecksum: e95c0e17d3e268dcd18d26ac8d0bfc98 docVersion: 1.1.1 - speakeasyVersion: 1.636.3 - generationVersion: 2.723.11 - releaseVersion: 0.42.1 - configChecksum: 1257d94ee0399a14dbd3fa3da2f70f46 + speakeasyVersion: 1.656.1 + generationVersion: 2.753.1 + releaseVersion: 0.43.0 + configChecksum: d19d0763c1fa11a918aba6737078ecff repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -15,9 +15,9 @@ features: typescript: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 - additionalProperties: 0.1.1 + additionalProperties: 0.1.2 constsAndDefaults: 0.1.12 - core: 3.21.26 + core: 3.26.6 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.1.0 downloadStreams: 0.1.1 @@ -27,7 +27,7 @@ features: globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 + globalServerURLs: 2.83.0 globals: 2.82.2 nameOverrides: 2.81.2 responseFormat: 0.2.3 @@ -980,6 +980,8 @@ generatedFiles: - docs/sdk/models/shared/items.md - docs/sdk/models/shared/librarysection.md - docs/sdk/models/shared/librarysectionlocation.md + - docs/sdk/models/shared/librarysections.md + - docs/sdk/models/shared/librarysectionsmediacontainer.md - docs/sdk/models/shared/lineup.md - docs/sdk/models/shared/lineuptype.md - docs/sdk/models/shared/locationparameter.md @@ -1030,8 +1032,6 @@ generatedFiles: - docs/sdk/models/shared/postresponses200mediacontainer.md - docs/sdk/models/shared/protocol.md - docs/sdk/models/shared/recommendationsvisibility.md - - docs/sdk/models/shared/requesthandlerslashgetresponses200.md - - docs/sdk/models/shared/requesthandlerslashgetresponses200mediacontainer.md - docs/sdk/models/shared/security.md - docs/sdk/models/shared/session.md - docs/sdk/models/shared/sessionlocation.md @@ -1621,6 +1621,7 @@ generatedFiles: - src/sdk/models/shared/index.ts - src/sdk/models/shared/items.ts - src/sdk/models/shared/librarysection.ts + - src/sdk/models/shared/librarysections.ts - src/sdk/models/shared/lineup.ts - src/sdk/models/shared/locationparameter.ts - src/sdk/models/shared/media.ts @@ -1644,7 +1645,6 @@ generatedFiles: - src/sdk/models/shared/player.ts - src/sdk/models/shared/postresponses200.ts - src/sdk/models/shared/protocol.ts - - src/sdk/models/shared/requesthandlerslashgetresponses200.ts - src/sdk/models/shared/security.ts - src/sdk/models/shared/session.ts - src/sdk/models/shared/setting.ts diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 480f26b3..ca56fe4f 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -17,18 +17,23 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" tests: generateTests: true generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.42.1 + version: 0.43.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: LukeHagar baseErrorName: PlexAPIError clientServerStatusCodesAsErrors: true @@ -38,6 +43,7 @@ typescript: enableMCPServer: true enableReactQuery: false enumFormat: enum + exportZodModelNamespace: false flattenGlobalSecurity: true flatteningOrder: body-first generateExamples: true @@ -60,5 +66,7 @@ typescript: responseFormat: envelope sseFlatResponse: false templateVersion: v2 + unionStrategy: left-to-right usageSDKInitImports: [] useIndexModules: true + zodVersion: v3 diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 5381d837..1a2b2001 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -413,16 +413,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "livetv": 7, - "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", - "musicAnalysis": 2, - "myPlexMappingState": "mapped", - "myPlexSigninState": "ok", - "offlineTranscode": 1 - } - } + {"MediaContainer":{"livetv":7,"machineIdentifier":"0123456789abcdef0123456789abcdef012345678","musicAnalysis":2,"myPlexMappingState":"mapped","myPlexSigninState":"ok","offlineTranscode":1}} type: simple x-speakeasy-test-group: Timeline x-speakeasy-test-rebuild: true @@ -837,153 +828,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Download Queue x-speakeasy-test-rebuild: true @@ -1089,164 +934,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -1293,164 +981,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -1550,164 +1081,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -1760,164 +1134,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -1970,164 +1187,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -2180,164 +1240,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -2390,164 +1293,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Hubs x-speakeasy-test-rebuild: true @@ -2703,164 +1449,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Search x-speakeasy-test-rebuild: true @@ -2910,164 +1499,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Search x-speakeasy-test-rebuild: true @@ -3114,153 +1546,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -3319,153 +1605,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -3521,153 +1661,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -3805,153 +1799,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Directory": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Directory":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -3964,16 +1812,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "livetv": 7, - "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", - "musicAnalysis": 2, - "myPlexMappingState": "mapped", - "myPlexSigninState": "ok", - "offlineTranscode": 1 - } - } + {"MediaContainer":{"livetv":7,"machineIdentifier":"0123456789abcdef0123456789abcdef012345678","musicAnalysis":2,"myPlexMappingState":"mapped","myPlexSigninState":"ok","offlineTranscode":1}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -4023,16 +1862,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "livetv": 7, - "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", - "musicAnalysis": 2, - "myPlexMappingState": "mapped", - "myPlexSigninState": "ok", - "offlineTranscode": 1 - } - } + {"MediaContainer":{"livetv":7,"machineIdentifier":"0123456789abcdef0123456789abcdef012345678","musicAnalysis":2,"myPlexMappingState":"mapped","myPlexSigninState":"ok","offlineTranscode":1}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -4129,153 +1959,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -4325,153 +2009,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -4633,153 +2171,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -4829,153 +2221,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -5025,164 +2271,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Hub": [ - { - "type": "track", - "context": "hub.home.onDeck", - "hubIdentifier": "home.onDeck", - "key": "/hubs/sections/home/onDeck", - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ], - "size": 1, - "subtype": "podcast", - "totalSize": 8 - } - ] - } - } + {"MediaContainer":{"Hub":[{"type":"track","context":"hub.home.onDeck","hubIdentifier":"home.onDeck","key":"/hubs/sections/home/onDeck","Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}],"size":1,"subtype":"podcast","totalSize":8}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -5232,153 +2321,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -5428,296 +2371,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MetadataItem": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "MetadataItem": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - ] - } - } + {"MediaContainer":{"MetadataItem":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"MetadataItem":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -5817,19 +2471,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Directory": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } + {"MediaContainer":{"Directory":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -5879,153 +2521,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -6078,153 +2574,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Directory": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Directory":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -6274,153 +2624,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -6470,153 +2674,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -6666,153 +2724,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -7112,7 +3024,7 @@ workflows: - condition: $response.header.Content-Type == text/plain - context: $response.body condition: | - "\u003cvalue\u003e" + "" type: simple x-speakeasy-test-group: Library x-speakeasy-test-rebuild: true @@ -7442,153 +3354,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Collections x-speakeasy-test-rebuild: true @@ -7917,153 +3683,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: DVRs x-speakeasy-test-rebuild: true @@ -8525,123 +4145,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "title": "The American Dream Is Killing Me", - "type": "track", - "addedAt": 1705543312, - "art": "/library/metadata/39904/art/1705310687", - "duration": 186240, - "grandparentArt": "/library/metadata/39904/art/1705310687", - "grandparentKey": "/library/metadata/39904", - "grandparentRatingKey": "39904", - "grandparentThumb": "/library/metadata/39904/thumb/1705310687", - "grandparentTitle": "Green Day", - "index": 1, - "key": "/library/metadata/67085", - "Media": [ - { - "audioChannels": 2, - "audioCodec": "flac", - "bitrate": 1014, - "container": "flac", - "duration": 186240, - "id": 130355, - "Part": [ - { - "container": "flac", - "duration": 186240, - "file": "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac", - "id": 130625, - "key": "/library/parts/130625/1705543268/file.flac", - "size": 23644000, - "Stream": [ - { - "audioChannelLayout": "stereo", - "bitDepth": 16, - "bitrate": 1014, - "codec": "flac", - "displayTitle": "FLAC (Stereo)", - "id": 352487, - "index": 0, - "samplingRate": 44100, - "selected": true, - "streamType": 2, - "albumGain": "-12.94", - "albumPeak": "1.000000", - "albumRange": "4.751014", - "channels": 2, - "extendedDisplayTitle": "FLAC (Stereo)", - "gain": "-12.94", - "loudness": "-5.94", - "lra": "1.74", - "peak": "1.000000", - "location": "direct" - } - ], - "hasThumbnail": "1", - "decision": "directplay", - "selected": true - } - ], - "selected": true - } - ], - "originalTitle": "The American Dream Is Killing Me", - "parentIndex": 1, - "parentKey": "/library/metadata/67084", - "parentRatingKey": "67084", - "parentThumb": "/library/metadata/67084/thumb/1705543314", - "parentTitle": "Saviors", - "ratingCount": 45885, - "ratingKey": "67085", - "thumb": "/library/metadata/67084/thumb/1705543314", - "titleSort": "American Dream Is Killing Me", - "updatedAt": 1705543314, - "viewOffset": 1000, - "grandparentGuid": "plex://artist/5d07bbfd403c6402904a6480", - "guid": "plex://track/6535834f71f22f36f71a8e8f", - "librarySectionID": "3", - "librarySectionKey": "/library/sections/3", - "librarySectionTitle": "Music", - "musicAnalysisVersion": "1", - "parentGuid": "plex://album/65394d6d472b8ab03ef47f12", - "parentStudio": "Reprise Records", - "parentYear": 2024, - "sessionKey": "203", - "User": { - "id": "1", - "thumb": "https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661", - "title": "Blindkitty38" - }, - "Player": { - "address": "10.10.10.171", - "machineIdentifier": "3tsdzir85m2onc3qyr255aq1", - "model": "standalone", - "platform": "windows", - "platformVersion": "10.0.22621", - "product": "Plex for Windows", - "profile": "Plex Desktop", - "remotePublicAddress": "68.248.140.20", - "state": "playing", - "title": "DESKTOP-BL80MTD", - "version": "1.85.0.4071-21128b56", - "local": true, - "relayed": false, - "secure": true, - "userID": 1 - }, - "Session": { - "id": "93h7e00ncblxncqw9lkfaoxi", - "bandwidth": 1050, - "location": "lan" - } - } - ] - } - } + {"MediaContainer":{"Metadata":[{"title":"The American Dream Is Killing Me","type":"track","addedAt":1705543312,"art":"/library/metadata/39904/art/1705310687","duration":186240,"grandparentArt":"/library/metadata/39904/art/1705310687","grandparentKey":"/library/metadata/39904","grandparentRatingKey":"39904","grandparentThumb":"/library/metadata/39904/thumb/1705310687","grandparentTitle":"Green Day","index":1,"key":"/library/metadata/67085","Media":[{"audioChannels":2,"audioCodec":"flac","bitrate":1014,"container":"flac","duration":186240,"id":130355,"Part":[{"container":"flac","duration":186240,"file":"/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac","id":130625,"key":"/library/parts/130625/1705543268/file.flac","size":23644000,"Stream":[{"audioChannelLayout":"stereo","bitDepth":16,"bitrate":1014,"codec":"flac","displayTitle":"FLAC (Stereo)","id":352487,"index":0,"samplingRate":44100,"selected":true,"streamType":2,"albumGain":"-12.94","albumPeak":"1.000000","albumRange":"4.751014","channels":2,"extendedDisplayTitle":"FLAC (Stereo)","gain":"-12.94","loudness":"-5.94","lra":"1.74","peak":"1.000000","location":"direct"}],"hasThumbnail":"1","decision":"directplay","selected":true}],"selected":true}],"originalTitle":"The American Dream Is Killing Me","parentIndex":1,"parentKey":"/library/metadata/67084","parentRatingKey":"67084","parentThumb":"/library/metadata/67084/thumb/1705543314","parentTitle":"Saviors","ratingCount":45885,"ratingKey":"67085","thumb":"/library/metadata/67084/thumb/1705543314","titleSort":"American Dream Is Killing Me","updatedAt":1705543314,"viewOffset":1000,"grandparentGuid":"plex://artist/5d07bbfd403c6402904a6480","guid":"plex://track/6535834f71f22f36f71a8e8f","librarySectionID":"3","librarySectionKey":"/library/sections/3","librarySectionTitle":"Music","musicAnalysisVersion":"1","parentGuid":"plex://album/65394d6d472b8ab03ef47f12","parentStudio":"Reprise Records","parentYear":2024,"sessionKey":"203","User":{"id":"1","thumb":"https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661","title":"Blindkitty38"},"Player":{"address":"10.10.10.171","machineIdentifier":"3tsdzir85m2onc3qyr255aq1","model":"standalone","platform":"windows","platformVersion":"10.0.22621","product":"Plex for Windows","profile":"Plex Desktop","remotePublicAddress":"68.248.140.20","state":"playing","title":"DESKTOP-BL80MTD","version":"1.85.0.4071-21128b56","local":true,"relayed":false,"secure":true,"userID":1},"Session":{"id":"93h7e00ncblxncqw9lkfaoxi","bandwidth":1050,"location":"lan"}}]}} type: simple x-speakeasy-test-group: Live TV x-speakeasy-test-rebuild: true @@ -8691,153 +4195,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Live TV x-speakeasy-test-rebuild: true @@ -9342,16 +4700,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "livetv": 7, - "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", - "musicAnalysis": 2, - "myPlexMappingState": "mapped", - "myPlexSigninState": "ok", - "offlineTranscode": 1 - } - } + {"MediaContainer":{"livetv":7,"machineIdentifier":"0123456789abcdef0123456789abcdef012345678","musicAnalysis":2,"myPlexMappingState":"mapped","myPlexSigninState":"ok","offlineTranscode":1}} type: simple x-speakeasy-test-group: Provider x-speakeasy-test-rebuild: true @@ -9404,159 +4753,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaSubscription": [ - { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - } + {"MediaContainer":{"MediaSubscription":[{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -9621,159 +4818,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaSubscription": [ - { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - } + {"MediaContainer":{"MediaSubscription":[{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -9786,155 +4831,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - } + {"MediaContainer":{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -9984,164 +4881,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "SubscriptionTemplate": [ - { - "MediaSubscription": [ - { - "title": "This Episode", - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - ] - } - } + {"MediaContainer":{"SubscriptionTemplate":[{"MediaSubscription":[{"title":"This Episode","MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -10197,159 +4937,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaSubscription": [ - { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - } + {"MediaContainer":{"MediaSubscription":[{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -10402,159 +4990,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaSubscription": [ - { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - } + {"MediaContainer":{"MediaSubscription":[{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -10604,159 +5040,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "MediaSubscription": [ - { - "MediaGrabOperation": [ - { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - ] - } - ] - } - } + {"MediaContainer":{"MediaSubscription":[{"MediaGrabOperation":[{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} type: simple x-speakeasy-test-group: Subscriptions x-speakeasy-test-rebuild: true @@ -10955,153 +5239,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Transcoder x-speakeasy-test-rebuild: true @@ -11285,153 +5423,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Playlist x-speakeasy-test-rebuild: true @@ -11481,29 +5473,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "composite": "/playlists/95/composite/1705717387", - "duration": 282000, - "key": "/playlists/95/items", - "leafCount": 2, - "playlistType": "video", - "smart": true, - "title": "Smart Movie Playlist", - "type": "playlist", - "addedAt": 1705716493, - "ratingKey": "95", - "summary": "", - "updatedAt": 1705717387, - "content": "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", - "guid": "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", - "icon": "playlist://image.smart" - } - ] - } - } + {"MediaContainer":{"Metadata":[{"composite":"/playlists/95/composite/1705717387","duration":282000,"key":"/playlists/95/items","leafCount":2,"playlistType":"video","smart":true,"title":"Smart Movie Playlist","type":"playlist","addedAt":1705716493,"ratingKey":"95","summary":"","updatedAt":1705717387,"content":"library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1","guid":"com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91","icon":"playlist://image.smart"}]}} type: simple x-speakeasy-test-group: Playlist x-speakeasy-test-rebuild: true @@ -11553,153 +5523,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Playlist x-speakeasy-test-rebuild: true @@ -11749,30 +5573,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "composite": "/playlists/96/composite/1705724593", - "duration": 141000, - "key": "/playlists/96/items", - "leafCount": 1, - "playlistType": "video", - "smart": false, - "title": "A Great Playlist", - "type": "playlist", - "addedAt": 1705719589, - "lastViewedAt": 1705719589, - "ratingKey": "96", - "summary": "What a great playlist", - "updatedAt": 1705724593, - "viewCount": 1, - "guid": "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", - "icon": "playlist://image.smart" - } - ] - } - } + {"MediaContainer":{"Metadata":[{"composite":"/playlists/96/composite/1705724593","duration":141000,"key":"/playlists/96/items","leafCount":1,"playlistType":"video","smart":false,"title":"A Great Playlist","type":"playlist","addedAt":1705719589,"lastViewedAt":1705719589,"ratingKey":"96","summary":"What a great playlist","updatedAt":1705724593,"viewCount":1,"guid":"com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55","icon":"playlist://image.smart"}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -12010,153 +5811,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -12206,153 +5861,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -12405,153 +5914,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -12671,153 +6034,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -12870,151 +6087,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - } - } + {"MediaContainer":{"Metadata":{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -13067,153 +6140,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Playlists x-speakeasy-test-rebuild: true @@ -13337,153 +6264,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -13536,153 +6317,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -13732,153 +6367,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -13928,153 +6417,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -14124,153 +6467,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -14320,153 +6517,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -14519,153 +6570,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -14718,153 +6623,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Play Queue x-speakeasy-test-rebuild: true @@ -14995,153 +6754,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Status x-speakeasy-test-rebuild: true @@ -15368,153 +6981,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -15588,153 +7055,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -15784,153 +7105,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -15980,153 +7155,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -16176,153 +7205,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -16528,153 +7411,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -16827,153 +7564,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Content x-speakeasy-test-rebuild: true @@ -17079,153 +7670,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Collections x-speakeasy-test-rebuild: true @@ -17278,153 +7723,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Collections x-speakeasy-test-rebuild: true @@ -17477,153 +7776,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - { - "MediaContainer": { - "Metadata": [ - { - "Autotag": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Country": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Director": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Genre": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Guid": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Media": [ - { - "aspectRatio": 2.35, - "audioChannels": 2, - "audioCodec": "aac", - "audioProfile": "lc", - "bitrate": 5612, - "container": "mov", - "duration": 150192, - "has64bitOffsets": false, - "hasVoiceActivity": true, - "height": 544, - "id": 1, - "optimizedForStreaming": false, - "Part": [ - { - "audioProfile": "lc", - "container": "mov", - "duration": 150192, - "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", - "has64bitOffsets": false, - "id": 1, - "key": "/library/parts/1/1531779263/file.mov", - "optimizedForStreaming": false, - "size": 105355654, - "Stream": [ - { - "default": true, - "audioChannelLayout": "stereo", - "bitDepth": 8, - "bitrate": 5466, - "canAutoSync": true, - "chromaLocation": "topleft", - "chromaSubsampling": "4:2:0", - "codec": "h264", - "colorPrimaries": "bt709", - "colorRange": "tv", - "colorSpace": "bt709", - "colorTrc": "bt709", - "displayTitle": "English (H.264 Main)", - "frameRate": 23.976, - "hasScalingMatrix": false, - "height": 544, - "id": 1, - "index": 0, - "key": "/library/streams/1", - "language": "English", - "languageCode": "eng", - "level": 31, - "profile": "main", - "refFrames": 2, - "samplingRate": 48000, - "streamIdentifier": 1, - "streamType": 1, - "width": 1280 - } - ], - "videoProfile": "main" - } - ], - "videoCodec": "h264", - "videoFrameRate": "24p", - "videoProfile": "main", - "videoResolution": "720", - "width": 1280 - } - ], - "Rating": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Role": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ], - "Writer": [ - { - "filter": "actor=49", - "role": "Secretary", - "tag": "Shaun Lawton", - "tagKey": "5d3ee12c4cde6a001c3e0b27", - "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg" - } - ] - } - ] - } - } + {"MediaContainer":{"Metadata":[{"Autotag":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Country":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Director":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Genre":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Guid":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Media":[{"aspectRatio":2.35,"audioChannels":2,"audioCodec":"aac","audioProfile":"lc","bitrate":5612,"container":"mov","duration":150192,"has64bitOffsets":false,"hasVoiceActivity":true,"height":544,"id":1,"optimizedForStreaming":false,"Part":[{"audioProfile":"lc","container":"mov","duration":150192,"file":"/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov","has64bitOffsets":false,"id":1,"key":"/library/parts/1/1531779263/file.mov","optimizedForStreaming":false,"size":105355654,"Stream":[{"default":true,"audioChannelLayout":"stereo","bitDepth":8,"bitrate":5466,"canAutoSync":true,"chromaLocation":"topleft","chromaSubsampling":"4:2:0","codec":"h264","colorPrimaries":"bt709","colorRange":"tv","colorSpace":"bt709","colorTrc":"bt709","displayTitle":"English (H.264 Main)","frameRate":23.976,"hasScalingMatrix":false,"height":544,"id":1,"index":0,"key":"/library/streams/1","language":"English","languageCode":"eng","level":31,"profile":"main","refFrames":2,"samplingRate":48000,"streamIdentifier":1,"streamType":1,"width":1280}],"videoProfile":"main"}],"videoCodec":"h264","videoFrameRate":"24p","videoProfile":"main","videoResolution":"720","width":1280}],"Rating":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Role":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}],"Writer":[{"filter":"actor=49","role":"Secretary","tag":"Shaun Lawton","tagKey":"5d3ee12c4cde6a001c3e0b27","thumb":"http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} type: simple x-speakeasy-test-group: Library Collections x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6295357f..5848f8e7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.636.3 +speakeasyVersion: 1.656.1 sources: my-source: sourceNamespace: my-source @@ -9,20 +9,20 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624 - sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64 + sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b + sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f tags: - latest - - speakeasy-sdk-regen-1760253962 + - speakeasy-sdk-regen-1762992705 - 1.1.1 targets: plexjs: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624 - sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64 + sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b + sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:535bcf840dfe9a3ffe1ad738ce6cccb59da883cd2465bf03ee2abbf0bc163e68 + codeSamplesRevisionDigest: sha256:9c301d7b022dab8173b220aa8f2546378c973a75491335d1742c60d131abdf27 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index ea2edaec..a488ce72 100644 --- a/README.md +++ b/README.md @@ -555,18 +555,18 @@ You can override the default server globally by passing a server index to the `s | --- | ---------------------------------------------------------- | -------------------------------------------- | ----------- | | 0 | `https://{IP-description}.{identifier}.plex.direct:{port}` | `identifier`
`IP-description`
`port` | | | 1 | `{protocol}://{host}:{port}` | `protocol`
`host`
`port` | | -| 2 | `https://{full_server_url}` | `server_url` | | +| 2 | `https://{full_server_url}` | `full_server_url` | | If the selected server has variables, you may override its default values through the additional parameters made available in the SDK constructor: -| Variable | Parameter | Default | Description | -| ---------------- | ----------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `identifier` | `identifier: string` | `"0123456789abcdef0123456789abcdef"` | The unique identifier of this particular PMS | -| `IP-description` | `ipDescription: string` | `"1-2-3-4"` | A `-` separated string of the IPv4 or IPv6 address components | -| `port` | `port: string` | `"32400"` | The Port number configured on the PMS. Typically (`32400`).
If using a reverse proxy, this would be the port number configured on the proxy.
| -| `protocol` | `protocol: string` | `"http"` | The network protocol to use. Typically (`http` or `https`) | -| `host` | `host: string` | `"localhost"` | The Host of the PMS.
If using on a local network, this is the internal IP address of the server hosting the PMS.
If using on an external network, this is the external IP address for your network, and requires port forwarding.
If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding.
| -| `server_url` | `serverUrl: string` | `"http://localhost:32400"` | The full manual URL to access the PMS | +| Variable | Parameter | Default | Description | +| ----------------- | ----------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `identifier` | `identifier: string` | `"0123456789abcdef0123456789abcdef"` | The unique identifier of this particular PMS | +| `IP-description` | `ipDescription: string` | `"1-2-3-4"` | A `-` separated string of the IPv4 or IPv6 address components | +| `port` | `port: string` | `"32400"` | The Port number configured on the PMS. Typically (`32400`).
If using a reverse proxy, this would be the port number configured on the proxy.
| +| `protocol` | `protocol: string` | `"http"` | The network protocol to use. Typically (`http` or `https`) | +| `host` | `host: string` | `"localhost"` | The Host of the PMS.
If using on a local network, this is the internal IP address of the server hosting the PMS.
If using on an external network, this is the external IP address for your network, and requires port forwarding.
If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding.
| +| `full_server_url` | `fullServerUrl: string` | `"http://localhost:32400"` | The full manual URL to access the PMS | #### Example @@ -575,10 +575,10 @@ import { PlexAPI } from "@lukehagar/plexjs"; import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - serverIdx: 1, - protocol: "", - host: "electric-excess.name", - port: "36393", + serverIdx: 0, + identifier: "0123456789abcdef0123456789abcdef", + ipDescription: "1-2-3-4", + port: "32400", accepts: Accepts.ApplicationXml, clientIdentifier: "abc123", product: "Plex for Roku", @@ -610,7 +610,7 @@ import { PlexAPI } from "@lukehagar/plexjs"; import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - serverURL: "https://{full_server_url}", + serverURL: "https://http://localhost:32400", accepts: Accepts.ApplicationXml, clientIdentifier: "abc123", product: "Plex for Roku", diff --git a/RELEASES.md b/RELEASES.md index fd80ecac..e3788463 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1428,4 +1428,14 @@ Based on: ### Generated - [typescript v0.42.1] . ### Releases -- [NPM v0.42.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.42.1 - . \ No newline at end of file +- [NPM v0.42.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.42.1 - . + +## 2025-11-13 00:11:23 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.656.1 (2.753.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.43.0] . +### Releases +- [NPM v0.43.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.43.0 - . \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsprefsresponse.md b/docs/sdk/models/operations/getsectionsprefsresponse.md index 2a103272..fd3a03ad 100644 --- a/docs/sdk/models/operations/getsectionsprefsresponse.md +++ b/docs/sdk/models/operations/getsectionsprefsresponse.md @@ -13,9 +13,9 @@ let value: GetSectionsPrefsResponse = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `requestHandlerSlashGetResponses200` | [shared.RequestHandlerSlashGetResponses200](../../../sdk/models/shared/requesthandlerslashgetresponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopallrefreshesresponse.md b/docs/sdk/models/operations/stopallrefreshesresponse.md index e5e98437..d7afcd57 100644 --- a/docs/sdk/models/operations/stopallrefreshesresponse.md +++ b/docs/sdk/models/operations/stopallrefreshesresponse.md @@ -13,9 +13,9 @@ let value: StopAllRefreshesResponse = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `requestHandlerSlashGetResponses200` | [shared.RequestHandlerSlashGetResponses200](../../../sdk/models/shared/requesthandlerslashgetresponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/sdk/models/shared/librarysections.md b/docs/sdk/models/shared/librarysections.md new file mode 100644 index 00000000..95583063 --- /dev/null +++ b/docs/sdk/models/shared/librarysections.md @@ -0,0 +1,26 @@ +# LibrarySections + +OK + +## Example Usage + +```typescript +import { LibrarySections } from "@lukehagar/plexjs/sdk/models/shared"; + +let value: LibrarySections = { + mediaContainer: { + livetv: 7, + machineIdentifier: "0123456789abcdef0123456789abcdef012345678", + musicAnalysis: 2, + myPlexMappingState: "mapped", + myPlexSigninState: "ok", + offlineTranscode: 1, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [shared.LibrarySectionsMediaContainer](../../../sdk/models/shared/librarysectionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/requesthandlerslashgetresponses200mediacontainer.md b/docs/sdk/models/shared/librarysectionsmediacontainer.md similarity index 99% rename from docs/sdk/models/shared/requesthandlerslashgetresponses200mediacontainer.md rename to docs/sdk/models/shared/librarysectionsmediacontainer.md index 83092665..25100ff1 100644 --- a/docs/sdk/models/shared/requesthandlerslashgetresponses200mediacontainer.md +++ b/docs/sdk/models/shared/librarysectionsmediacontainer.md @@ -1,4 +1,4 @@ -# RequestHandlerSlashGetResponses200MediaContainer +# LibrarySectionsMediaContainer `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) @@ -8,9 +8,9 @@ The container often "hoists" common attributes from its children. For example, i ## Example Usage ```typescript -import { RequestHandlerSlashGetResponses200MediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; +import { LibrarySectionsMediaContainer } from "@lukehagar/plexjs/sdk/models/shared"; -let value: RequestHandlerSlashGetResponses200MediaContainer = { +let value: LibrarySectionsMediaContainer = { livetv: 7, machineIdentifier: "0123456789abcdef0123456789abcdef012345678", musicAnalysis: 2, diff --git a/docs/sdk/models/shared/requesthandlerslashgetresponses200.md b/docs/sdk/models/shared/requesthandlerslashgetresponses200.md deleted file mode 100644 index de6f5408..00000000 --- a/docs/sdk/models/shared/requesthandlerslashgetresponses200.md +++ /dev/null @@ -1,26 +0,0 @@ -# RequestHandlerSlashGetResponses200 - -OK - -## Example Usage - -```typescript -import { RequestHandlerSlashGetResponses200 } from "@lukehagar/plexjs/sdk/models/shared"; - -let value: RequestHandlerSlashGetResponses200 = { - mediaContainer: { - livetv: 7, - machineIdentifier: "0123456789abcdef0123456789abcdef012345678", - musicAnalysis: 2, - myPlexMappingState: "mapped", - myPlexSigninState: "ok", - offlineTranscode: 1, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [shared.RequestHandlerSlashGetResponses200MediaContainer](../../../sdk/models/shared/requesthandlerslashgetresponses200mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 434e4f7b..b5474747 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -4757,8 +4757,8 @@ run(); ## autocomplete -The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. -Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match +The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. +Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match ### Example Usage diff --git a/examples/package-lock.json b/examples/package-lock.json index 78110c54..2fbeb9e1 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,9 +18,9 @@ }, "..": { "name": "@lukehagar/plexjs", - "version": "0.42.1", + "version": "0.43.0", "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" }, "devDependencies": { "@eslint/js": "^9.19.0", diff --git a/jsr.json b/jsr.json index 295d2770..c62fe74b 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@lukehagar/plexjs", - "version": "0.42.1", + "version": "0.43.0", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 3d4a3805..b0ed64be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "@lukehagar/plexjs", - "version": "0.42.1", + "version": "0.43.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.42.1", + "version": "0.43.0", "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" }, "devDependencies": { "@eslint/js": "^9.19.0", diff --git a/package.json b/package.json index 525046fd..898901e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.42.1", + "version": "0.43.0", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, @@ -25,6 +25,6 @@ "typescript-eslint": "^8.26.0" }, "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" } } diff --git a/src/funcs/libraryAutocomplete.ts b/src/funcs/libraryAutocomplete.ts index 03fd7e46..d8e78eaa 100644 --- a/src/funcs/libraryAutocomplete.ts +++ b/src/funcs/libraryAutocomplete.ts @@ -28,8 +28,8 @@ import { Result } from "../sdk/types/fp.js"; * Get autocompletions for search * * @remarks - * The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + * The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match */ export function libraryAutocomplete( client: PlexAPICore, diff --git a/src/funcs/libraryGetSectionsPrefs.ts b/src/funcs/libraryGetSectionsPrefs.ts index bb811ae5..e29b8b7f 100644 --- a/src/funcs/libraryGetSectionsPrefs.ts +++ b/src/funcs/libraryGetSectionsPrefs.ts @@ -217,7 +217,7 @@ async function $do( | SDKValidationError >( M.json(200, operations.GetSectionsPrefsResponse$inboundSchema, { - key: "requestHandler_slash-get-responses-200", + key: "LibrarySections", }), M.fail([400, "4XX"]), M.fail("5XX"), diff --git a/src/funcs/libraryStopAllRefreshes.ts b/src/funcs/libraryStopAllRefreshes.ts index f3e8417b..7c843fac 100644 --- a/src/funcs/libraryStopAllRefreshes.ts +++ b/src/funcs/libraryStopAllRefreshes.ts @@ -139,7 +139,7 @@ async function $do( | SDKValidationError >( M.json(200, operations.StopAllRefreshesResponse$inboundSchema, { - key: "requestHandler_slash-get-responses-200", + key: "LibrarySections", }), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/logWriteLog.ts b/src/funcs/logWriteLog.ts index 31ea2458..d291eaa6 100644 --- a/src/funcs/logWriteLog.ts +++ b/src/funcs/logWriteLog.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PlexAPICore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b389..0aebd8b0 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index d1eddf64..9ea52af3 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -101,9 +101,9 @@ export type SDKOptions = { */ host?: string | undefined; /** - * Sets the server_url variable for url substitution + * Sets the full_server_url variable for url substitution */ - serverUrl?: string | undefined; + fullServerUrl?: string | undefined; /** * Allows overriding the default server URL used by the SDK */ @@ -135,7 +135,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { "port": options.port ?? "32400", }, { - "server_url": options.serverUrl ?? "http://localhost:32400", + "full_server_url": options.fullServerUrl ?? "http://localhost:32400", }, ]; let params: Params = {}; @@ -156,7 +156,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.1.1", - sdkVersion: "0.42.1", - genVersion: "2.723.11", - userAgent: "speakeasy-sdk/typescript 0.42.1 2.723.11 1.1.1 @lukehagar/plexjs", + sdkVersion: "0.43.0", + genVersion: "2.753.1", + userAgent: "speakeasy-sdk/typescript 0.43.0 2.753.1 1.1.1 @lukehagar/plexjs", } as const; diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 6bfea6f6..dc2510e3 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../sdk/types/fp.js"; diff --git a/src/sdk/library.ts b/src/sdk/library.ts index 15bb495a..4f680a7e 100644 --- a/src/sdk/library.ts +++ b/src/sdk/library.ts @@ -974,8 +974,8 @@ export class Library extends ClientSDK { * Get autocompletions for search * * @remarks - * The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + * The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match */ async autocomplete( request: operations.AutocompleteRequest, diff --git a/src/sdk/models/errors/responsevalidationerror.ts b/src/sdk/models/errors/responsevalidationerror.ts index 15eaed32..4066ba44 100644 --- a/src/sdk/models/errors/responsevalidationerror.ts +++ b/src/sdk/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PlexAPIError } from "./plexapierror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/sdk/models/errors/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts index 37face8a..6826e120 100644 --- a/src/sdk/models/errors/sdkvalidationerror.ts +++ b/src/sdk/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/sdk/models/operations/addcollectionitems.ts b/src/sdk/models/operations/addcollectionitems.ts index 725296c1..6c168c9d 100644 --- a/src/sdk/models/operations/addcollectionitems.ts +++ b/src/sdk/models/operations/addcollectionitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,150 +130,6 @@ export type AddCollectionItemsResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const AddCollectionItemsGlobals$inboundSchema: z.ZodType< - AddCollectionItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddCollectionItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddCollectionItemsGlobals$outboundSchema: z.ZodType< - AddCollectionItemsGlobals$Outbound, - z.ZodTypeDef, - AddCollectionItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddCollectionItemsGlobals$ { - /** @deprecated use `AddCollectionItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = AddCollectionItemsGlobals$inboundSchema; - /** @deprecated use `AddCollectionItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = AddCollectionItemsGlobals$outboundSchema; - /** @deprecated use `AddCollectionItemsGlobals$Outbound` instead. */ - export type Outbound = AddCollectionItemsGlobals$Outbound; -} - -export function addCollectionItemsGlobalsToJSON( - addCollectionItemsGlobals: AddCollectionItemsGlobals, -): string { - return JSON.stringify( - AddCollectionItemsGlobals$outboundSchema.parse(addCollectionItemsGlobals), - ); -} - -export function addCollectionItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddCollectionItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddCollectionItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddCollectionItemsRequest$inboundSchema: z.ZodType< - AddCollectionItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - collectionId: z.number().int(), - uri: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddCollectionItemsRequest$Outbound = { accepts: string; @@ -325,19 +181,6 @@ export const AddCollectionItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddCollectionItemsRequest$ { - /** @deprecated use `AddCollectionItemsRequest$inboundSchema` instead. */ - export const inboundSchema = AddCollectionItemsRequest$inboundSchema; - /** @deprecated use `AddCollectionItemsRequest$outboundSchema` instead. */ - export const outboundSchema = AddCollectionItemsRequest$outboundSchema; - /** @deprecated use `AddCollectionItemsRequest$Outbound` instead. */ - export type Outbound = AddCollectionItemsRequest$Outbound; -} - export function addCollectionItemsRequestToJSON( addCollectionItemsRequest: AddCollectionItemsRequest, ): string { @@ -346,16 +189,6 @@ export function addCollectionItemsRequestToJSON( ); } -export function addCollectionItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddCollectionItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddCollectionItemsRequest' from JSON`, - ); -} - /** @internal */ export const AddCollectionItemsResponse$inboundSchema: z.ZodType< AddCollectionItemsResponse, @@ -376,59 +209,6 @@ export const AddCollectionItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddCollectionItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const AddCollectionItemsResponse$outboundSchema: z.ZodType< - AddCollectionItemsResponse$Outbound, - z.ZodTypeDef, - AddCollectionItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddCollectionItemsResponse$ { - /** @deprecated use `AddCollectionItemsResponse$inboundSchema` instead. */ - export const inboundSchema = AddCollectionItemsResponse$inboundSchema; - /** @deprecated use `AddCollectionItemsResponse$outboundSchema` instead. */ - export const outboundSchema = AddCollectionItemsResponse$outboundSchema; - /** @deprecated use `AddCollectionItemsResponse$Outbound` instead. */ - export type Outbound = AddCollectionItemsResponse$Outbound; -} - -export function addCollectionItemsResponseToJSON( - addCollectionItemsResponse: AddCollectionItemsResponse, -): string { - return JSON.stringify( - AddCollectionItemsResponse$outboundSchema.parse(addCollectionItemsResponse), - ); -} - export function addCollectionItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/adddevice.ts b/src/sdk/models/operations/adddevice.ts index 0aa44c36..2b0a03d1 100644 --- a/src/sdk/models/operations/adddevice.ts +++ b/src/sdk/models/operations/adddevice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type AddDeviceResponse = { mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; }; -/** @internal */ -export const AddDeviceGlobals$inboundSchema: z.ZodType< - AddDeviceGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddDeviceGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddDeviceGlobals$outboundSchema: z.ZodType< - AddDeviceGlobals$Outbound, - z.ZodTypeDef, - AddDeviceGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceGlobals$ { - /** @deprecated use `AddDeviceGlobals$inboundSchema` instead. */ - export const inboundSchema = AddDeviceGlobals$inboundSchema; - /** @deprecated use `AddDeviceGlobals$outboundSchema` instead. */ - export const outboundSchema = AddDeviceGlobals$outboundSchema; - /** @deprecated use `AddDeviceGlobals$Outbound` instead. */ - export type Outbound = AddDeviceGlobals$Outbound; -} - -export function addDeviceGlobalsToJSON( - addDeviceGlobals: AddDeviceGlobals, -): string { - return JSON.stringify( - AddDeviceGlobals$outboundSchema.parse(addDeviceGlobals), - ); -} - -export function addDeviceGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDeviceGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDeviceGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddDeviceRequest$inboundSchema: z.ZodType< - AddDeviceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - uri: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddDeviceRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const AddDeviceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceRequest$ { - /** @deprecated use `AddDeviceRequest$inboundSchema` instead. */ - export const inboundSchema = AddDeviceRequest$inboundSchema; - /** @deprecated use `AddDeviceRequest$outboundSchema` instead. */ - export const outboundSchema = AddDeviceRequest$outboundSchema; - /** @deprecated use `AddDeviceRequest$Outbound` instead. */ - export type Outbound = AddDeviceRequest$Outbound; -} - export function addDeviceRequestToJSON( addDeviceRequest: AddDeviceRequest, ): string { @@ -339,16 +183,6 @@ export function addDeviceRequestToJSON( ); } -export function addDeviceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDeviceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDeviceRequest' from JSON`, - ); -} - /** @internal */ export const AddDeviceResponse$inboundSchema: z.ZodType< AddDeviceResponse, @@ -369,59 +203,6 @@ export const AddDeviceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDeviceResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; -}; - -/** @internal */ -export const AddDeviceResponse$outboundSchema: z.ZodType< - AddDeviceResponse$Outbound, - z.ZodTypeDef, - AddDeviceResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceResponse$ { - /** @deprecated use `AddDeviceResponse$inboundSchema` instead. */ - export const inboundSchema = AddDeviceResponse$inboundSchema; - /** @deprecated use `AddDeviceResponse$outboundSchema` instead. */ - export const outboundSchema = AddDeviceResponse$outboundSchema; - /** @deprecated use `AddDeviceResponse$Outbound` instead. */ - export type Outbound = AddDeviceResponse$Outbound; -} - -export function addDeviceResponseToJSON( - addDeviceResponse: AddDeviceResponse, -): string { - return JSON.stringify( - AddDeviceResponse$outboundSchema.parse(addDeviceResponse), - ); -} - export function addDeviceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/adddevicetodvr.ts b/src/sdk/models/operations/adddevicetodvr.ts index bbde760c..6722913c 100644 --- a/src/sdk/models/operations/adddevicetodvr.ts +++ b/src/sdk/models/operations/adddevicetodvr.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,150 +179,6 @@ export type AddDeviceToDVRResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const AddDeviceToDVRGlobals$inboundSchema: z.ZodType< - AddDeviceToDVRGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddDeviceToDVRGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddDeviceToDVRGlobals$outboundSchema: z.ZodType< - AddDeviceToDVRGlobals$Outbound, - z.ZodTypeDef, - AddDeviceToDVRGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRGlobals$ { - /** @deprecated use `AddDeviceToDVRGlobals$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRGlobals$inboundSchema; - /** @deprecated use `AddDeviceToDVRGlobals$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRGlobals$outboundSchema; - /** @deprecated use `AddDeviceToDVRGlobals$Outbound` instead. */ - export type Outbound = AddDeviceToDVRGlobals$Outbound; -} - -export function addDeviceToDVRGlobalsToJSON( - addDeviceToDVRGlobals: AddDeviceToDVRGlobals, -): string { - return JSON.stringify( - AddDeviceToDVRGlobals$outboundSchema.parse(addDeviceToDVRGlobals), - ); -} - -export function addDeviceToDVRGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDeviceToDVRGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDeviceToDVRGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddDeviceToDVRRequest$inboundSchema: z.ZodType< - AddDeviceToDVRRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddDeviceToDVRRequest$Outbound = { accepts: string; @@ -374,19 +230,6 @@ export const AddDeviceToDVRRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRRequest$ { - /** @deprecated use `AddDeviceToDVRRequest$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRRequest$inboundSchema; - /** @deprecated use `AddDeviceToDVRRequest$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRRequest$outboundSchema; - /** @deprecated use `AddDeviceToDVRRequest$Outbound` instead. */ - export type Outbound = AddDeviceToDVRRequest$Outbound; -} - export function addDeviceToDVRRequestToJSON( addDeviceToDVRRequest: AddDeviceToDVRRequest, ): string { @@ -395,16 +238,6 @@ export function addDeviceToDVRRequestToJSON( ); } -export function addDeviceToDVRRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDeviceToDVRRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDeviceToDVRRequest' from JSON`, - ); -} - /** @internal */ export const AddDeviceToDVRMediaContainerMediaContainer$inboundSchema: z.ZodType = @@ -416,55 +249,6 @@ export const AddDeviceToDVRMediaContainerMediaContainer$inboundSchema: status: z.number().int().optional(), }); -/** @internal */ -export type AddDeviceToDVRMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const AddDeviceToDVRMediaContainerMediaContainer$outboundSchema: - z.ZodType< - AddDeviceToDVRMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - AddDeviceToDVRMediaContainerMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRMediaContainerMediaContainer$ { - /** @deprecated use `AddDeviceToDVRMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - AddDeviceToDVRMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `AddDeviceToDVRMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - AddDeviceToDVRMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `AddDeviceToDVRMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = AddDeviceToDVRMediaContainerMediaContainer$Outbound; -} - -export function addDeviceToDVRMediaContainerMediaContainerToJSON( - addDeviceToDVRMediaContainerMediaContainer: - AddDeviceToDVRMediaContainerMediaContainer, -): string { - return JSON.stringify( - AddDeviceToDVRMediaContainerMediaContainer$outboundSchema.parse( - addDeviceToDVRMediaContainerMediaContainer, - ), - ); -} - export function addDeviceToDVRMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -498,53 +282,6 @@ export const AddDeviceToDVRDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDeviceToDVRDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const AddDeviceToDVRDVR$outboundSchema: z.ZodType< - AddDeviceToDVRDVR$Outbound, - z.ZodTypeDef, - AddDeviceToDVRDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRDVR$ { - /** @deprecated use `AddDeviceToDVRDVR$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRDVR$inboundSchema; - /** @deprecated use `AddDeviceToDVRDVR$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRDVR$outboundSchema; - /** @deprecated use `AddDeviceToDVRDVR$Outbound` instead. */ - export type Outbound = AddDeviceToDVRDVR$Outbound; -} - -export function addDeviceToDVRDVRToJSON( - addDeviceToDVRDVR: AddDeviceToDVRDVR, -): string { - return JSON.stringify( - AddDeviceToDVRDVR$outboundSchema.parse(addDeviceToDVRDVR), - ); -} - export function addDeviceToDVRDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -572,54 +309,6 @@ export const AddDeviceToDVRMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDeviceToDVRMediaContainer$Outbound = { - MediaContainer?: - | AddDeviceToDVRMediaContainerMediaContainer$Outbound - | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const AddDeviceToDVRMediaContainer$outboundSchema: z.ZodType< - AddDeviceToDVRMediaContainer$Outbound, - z.ZodTypeDef, - AddDeviceToDVRMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - AddDeviceToDVRMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => AddDeviceToDVRDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRMediaContainer$ { - /** @deprecated use `AddDeviceToDVRMediaContainer$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRMediaContainer$inboundSchema; - /** @deprecated use `AddDeviceToDVRMediaContainer$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRMediaContainer$outboundSchema; - /** @deprecated use `AddDeviceToDVRMediaContainer$Outbound` instead. */ - export type Outbound = AddDeviceToDVRMediaContainer$Outbound; -} - -export function addDeviceToDVRMediaContainerToJSON( - addDeviceToDVRMediaContainer: AddDeviceToDVRMediaContainer, -): string { - return JSON.stringify( - AddDeviceToDVRMediaContainer$outboundSchema.parse( - addDeviceToDVRMediaContainer, - ), - ); -} - export function addDeviceToDVRMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -644,46 +333,6 @@ export const AddDeviceToDVRResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDeviceToDVRResponseBody$Outbound = { - MediaContainer?: AddDeviceToDVRMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const AddDeviceToDVRResponseBody$outboundSchema: z.ZodType< - AddDeviceToDVRResponseBody$Outbound, - z.ZodTypeDef, - AddDeviceToDVRResponseBody -> = z.object({ - mediaContainer: z.lazy(() => AddDeviceToDVRMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRResponseBody$ { - /** @deprecated use `AddDeviceToDVRResponseBody$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRResponseBody$inboundSchema; - /** @deprecated use `AddDeviceToDVRResponseBody$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRResponseBody$outboundSchema; - /** @deprecated use `AddDeviceToDVRResponseBody$Outbound` instead. */ - export type Outbound = AddDeviceToDVRResponseBody$Outbound; -} - -export function addDeviceToDVRResponseBodyToJSON( - addDeviceToDVRResponseBody: AddDeviceToDVRResponseBody, -): string { - return JSON.stringify( - AddDeviceToDVRResponseBody$outboundSchema.parse(addDeviceToDVRResponseBody), - ); -} - export function addDeviceToDVRResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -704,7 +353,7 @@ export const AddDeviceToDVRResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => AddDeviceToDVRResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -714,58 +363,6 @@ export const AddDeviceToDVRResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDeviceToDVRResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: AddDeviceToDVRResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const AddDeviceToDVRResponse$outboundSchema: z.ZodType< - AddDeviceToDVRResponse$Outbound, - z.ZodTypeDef, - AddDeviceToDVRResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => AddDeviceToDVRResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDeviceToDVRResponse$ { - /** @deprecated use `AddDeviceToDVRResponse$inboundSchema` instead. */ - export const inboundSchema = AddDeviceToDVRResponse$inboundSchema; - /** @deprecated use `AddDeviceToDVRResponse$outboundSchema` instead. */ - export const outboundSchema = AddDeviceToDVRResponse$outboundSchema; - /** @deprecated use `AddDeviceToDVRResponse$Outbound` instead. */ - export type Outbound = AddDeviceToDVRResponse$Outbound; -} - -export function addDeviceToDVRResponseToJSON( - addDeviceToDVRResponse: AddDeviceToDVRResponse, -): string { - return JSON.stringify( - AddDeviceToDVRResponse$outboundSchema.parse(addDeviceToDVRResponse), - ); -} - export function addDeviceToDVRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/adddownloadqueueitems.ts b/src/sdk/models/operations/adddownloadqueueitems.ts index 2bb20a78..37820fa2 100644 --- a/src/sdk/models/operations/adddownloadqueueitems.ts +++ b/src/sdk/models/operations/adddownloadqueueitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -283,178 +283,6 @@ export type AddDownloadQueueItemsResponse = { object?: AddDownloadQueueItemsResponseBody | undefined; }; -/** @internal */ -export const AddDownloadQueueItemsGlobals$inboundSchema: z.ZodType< - AddDownloadQueueItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddDownloadQueueItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddDownloadQueueItemsGlobals$outboundSchema: z.ZodType< - AddDownloadQueueItemsGlobals$Outbound, - z.ZodTypeDef, - AddDownloadQueueItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDownloadQueueItemsGlobals$ { - /** @deprecated use `AddDownloadQueueItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = AddDownloadQueueItemsGlobals$inboundSchema; - /** @deprecated use `AddDownloadQueueItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = AddDownloadQueueItemsGlobals$outboundSchema; - /** @deprecated use `AddDownloadQueueItemsGlobals$Outbound` instead. */ - export type Outbound = AddDownloadQueueItemsGlobals$Outbound; -} - -export function addDownloadQueueItemsGlobalsToJSON( - addDownloadQueueItemsGlobals: AddDownloadQueueItemsGlobals, -): string { - return JSON.stringify( - AddDownloadQueueItemsGlobals$outboundSchema.parse( - addDownloadQueueItemsGlobals, - ), - ); -} - -export function addDownloadQueueItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDownloadQueueItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDownloadQueueItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddDownloadQueueItemsRequest$inboundSchema: z.ZodType< - AddDownloadQueueItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - keys: z.array(z.string()), - advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: shared.BoolInt$inboundSchema.optional(), - autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), - directPlay: shared.BoolInt$inboundSchema.optional(), - directStream: shared.BoolInt$inboundSchema.optional(), - directStreamAudio: shared.BoolInt$inboundSchema.optional(), - disableResolutionRotation: shared.BoolInt$inboundSchema.optional(), - hasMDE: shared.BoolInt$inboundSchema.optional(), - location: shared.LocationParameter$inboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - offset: z.number().optional(), - partIndex: z.number().int().optional(), - path: z.string().optional(), - peakBitrate: z.number().int().optional(), - photoResolution: z.string().optional(), - protocol: shared.Protocol$inboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), - subtitles: shared.Subtitles$inboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -558,19 +386,6 @@ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDownloadQueueItemsRequest$ { - /** @deprecated use `AddDownloadQueueItemsRequest$inboundSchema` instead. */ - export const inboundSchema = AddDownloadQueueItemsRequest$inboundSchema; - /** @deprecated use `AddDownloadQueueItemsRequest$outboundSchema` instead. */ - export const outboundSchema = AddDownloadQueueItemsRequest$outboundSchema; - /** @deprecated use `AddDownloadQueueItemsRequest$Outbound` instead. */ - export type Outbound = AddDownloadQueueItemsRequest$Outbound; -} - export function addDownloadQueueItemsRequestToJSON( addDownloadQueueItemsRequest: AddDownloadQueueItemsRequest, ): string { @@ -581,16 +396,6 @@ export function addDownloadQueueItemsRequestToJSON( ); } -export function addDownloadQueueItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddDownloadQueueItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddDownloadQueueItemsRequest' from JSON`, - ); -} - /** @internal */ export const AddedQueueItem$inboundSchema: z.ZodType< AddedQueueItem, @@ -601,39 +406,6 @@ export const AddedQueueItem$inboundSchema: z.ZodType< key: z.string().optional(), }); -/** @internal */ -export type AddedQueueItem$Outbound = { - id?: number | undefined; - key?: string | undefined; -}; - -/** @internal */ -export const AddedQueueItem$outboundSchema: z.ZodType< - AddedQueueItem$Outbound, - z.ZodTypeDef, - AddedQueueItem -> = z.object({ - id: z.number().int().optional(), - key: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddedQueueItem$ { - /** @deprecated use `AddedQueueItem$inboundSchema` instead. */ - export const inboundSchema = AddedQueueItem$inboundSchema; - /** @deprecated use `AddedQueueItem$outboundSchema` instead. */ - export const outboundSchema = AddedQueueItem$outboundSchema; - /** @deprecated use `AddedQueueItem$Outbound` instead. */ - export type Outbound = AddedQueueItem$Outbound; -} - -export function addedQueueItemToJSON(addedQueueItem: AddedQueueItem): string { - return JSON.stringify(AddedQueueItem$outboundSchema.parse(addedQueueItem)); -} - export function addedQueueItemFromJSON( jsonString: string, ): SafeParseResult { @@ -662,58 +434,6 @@ export const AddDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDownloadQueueItemsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - AddedQueueItems?: Array | undefined; -}; - -/** @internal */ -export const AddDownloadQueueItemsMediaContainer$outboundSchema: z.ZodType< - AddDownloadQueueItemsMediaContainer$Outbound, - z.ZodTypeDef, - AddDownloadQueueItemsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - addedQueueItems: z.array(z.lazy(() => AddedQueueItem$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - addedQueueItems: "AddedQueueItems", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDownloadQueueItemsMediaContainer$ { - /** @deprecated use `AddDownloadQueueItemsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - AddDownloadQueueItemsMediaContainer$inboundSchema; - /** @deprecated use `AddDownloadQueueItemsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - AddDownloadQueueItemsMediaContainer$outboundSchema; - /** @deprecated use `AddDownloadQueueItemsMediaContainer$Outbound` instead. */ - export type Outbound = AddDownloadQueueItemsMediaContainer$Outbound; -} - -export function addDownloadQueueItemsMediaContainerToJSON( - addDownloadQueueItemsMediaContainer: AddDownloadQueueItemsMediaContainer, -): string { - return JSON.stringify( - AddDownloadQueueItemsMediaContainer$outboundSchema.parse( - addDownloadQueueItemsMediaContainer, - ), - ); -} - export function addDownloadQueueItemsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -740,50 +460,6 @@ export const AddDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDownloadQueueItemsResponseBody$Outbound = { - MediaContainer?: AddDownloadQueueItemsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const AddDownloadQueueItemsResponseBody$outboundSchema: z.ZodType< - AddDownloadQueueItemsResponseBody$Outbound, - z.ZodTypeDef, - AddDownloadQueueItemsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - AddDownloadQueueItemsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDownloadQueueItemsResponseBody$ { - /** @deprecated use `AddDownloadQueueItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = AddDownloadQueueItemsResponseBody$inboundSchema; - /** @deprecated use `AddDownloadQueueItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - AddDownloadQueueItemsResponseBody$outboundSchema; - /** @deprecated use `AddDownloadQueueItemsResponseBody$Outbound` instead. */ - export type Outbound = AddDownloadQueueItemsResponseBody$Outbound; -} - -export function addDownloadQueueItemsResponseBodyToJSON( - addDownloadQueueItemsResponseBody: AddDownloadQueueItemsResponseBody, -): string { - return JSON.stringify( - AddDownloadQueueItemsResponseBody$outboundSchema.parse( - addDownloadQueueItemsResponseBody, - ), - ); -} - export function addDownloadQueueItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -813,58 +489,6 @@ export const AddDownloadQueueItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddDownloadQueueItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: AddDownloadQueueItemsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const AddDownloadQueueItemsResponse$outboundSchema: z.ZodType< - AddDownloadQueueItemsResponse$Outbound, - z.ZodTypeDef, - AddDownloadQueueItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => AddDownloadQueueItemsResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddDownloadQueueItemsResponse$ { - /** @deprecated use `AddDownloadQueueItemsResponse$inboundSchema` instead. */ - export const inboundSchema = AddDownloadQueueItemsResponse$inboundSchema; - /** @deprecated use `AddDownloadQueueItemsResponse$outboundSchema` instead. */ - export const outboundSchema = AddDownloadQueueItemsResponse$outboundSchema; - /** @deprecated use `AddDownloadQueueItemsResponse$Outbound` instead. */ - export type Outbound = AddDownloadQueueItemsResponse$Outbound; -} - -export function addDownloadQueueItemsResponseToJSON( - addDownloadQueueItemsResponse: AddDownloadQueueItemsResponse, -): string { - return JSON.stringify( - AddDownloadQueueItemsResponse$outboundSchema.parse( - addDownloadQueueItemsResponse, - ), - ); -} - export function addDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addextras.ts b/src/sdk/models/operations/addextras.ts index 2c83ae15..550b125a 100644 --- a/src/sdk/models/operations/addextras.ts +++ b/src/sdk/models/operations/addextras.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,152 +131,6 @@ export type AddExtrasResponse = { rawResponse: Response; }; -/** @internal */ -export const AddExtrasGlobals$inboundSchema: z.ZodType< - AddExtrasGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddExtrasGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddExtrasGlobals$outboundSchema: z.ZodType< - AddExtrasGlobals$Outbound, - z.ZodTypeDef, - AddExtrasGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddExtrasGlobals$ { - /** @deprecated use `AddExtrasGlobals$inboundSchema` instead. */ - export const inboundSchema = AddExtrasGlobals$inboundSchema; - /** @deprecated use `AddExtrasGlobals$outboundSchema` instead. */ - export const outboundSchema = AddExtrasGlobals$outboundSchema; - /** @deprecated use `AddExtrasGlobals$Outbound` instead. */ - export type Outbound = AddExtrasGlobals$Outbound; -} - -export function addExtrasGlobalsToJSON( - addExtrasGlobals: AddExtrasGlobals, -): string { - return JSON.stringify( - AddExtrasGlobals$outboundSchema.parse(addExtrasGlobals), - ); -} - -export function addExtrasGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddExtrasGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddExtrasGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddExtrasRequest$inboundSchema: z.ZodType< - AddExtrasRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - extraType: z.number().int().optional(), - url: z.string(), - title: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddExtrasRequest$Outbound = { accepts: string; @@ -332,19 +186,6 @@ export const AddExtrasRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddExtrasRequest$ { - /** @deprecated use `AddExtrasRequest$inboundSchema` instead. */ - export const inboundSchema = AddExtrasRequest$inboundSchema; - /** @deprecated use `AddExtrasRequest$outboundSchema` instead. */ - export const outboundSchema = AddExtrasRequest$outboundSchema; - /** @deprecated use `AddExtrasRequest$Outbound` instead. */ - export type Outbound = AddExtrasRequest$Outbound; -} - export function addExtrasRequestToJSON( addExtrasRequest: AddExtrasRequest, ): string { @@ -353,16 +194,6 @@ export function addExtrasRequestToJSON( ); } -export function addExtrasRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddExtrasRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddExtrasRequest' from JSON`, - ); -} - /** @internal */ export const AddExtrasResponse$inboundSchema: z.ZodType< AddExtrasResponse, @@ -380,53 +211,6 @@ export const AddExtrasResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddExtrasResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const AddExtrasResponse$outboundSchema: z.ZodType< - AddExtrasResponse$Outbound, - z.ZodTypeDef, - AddExtrasResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddExtrasResponse$ { - /** @deprecated use `AddExtrasResponse$inboundSchema` instead. */ - export const inboundSchema = AddExtrasResponse$inboundSchema; - /** @deprecated use `AddExtrasResponse$outboundSchema` instead. */ - export const outboundSchema = AddExtrasResponse$outboundSchema; - /** @deprecated use `AddExtrasResponse$Outbound` instead. */ - export type Outbound = AddExtrasResponse$Outbound; -} - -export function addExtrasResponseToJSON( - addExtrasResponse: AddExtrasResponse, -): string { - return JSON.stringify( - AddExtrasResponse$outboundSchema.parse(addExtrasResponse), - ); -} - export function addExtrasResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addlineup.ts b/src/sdk/models/operations/addlineup.ts index 5d130024..1727d5fd 100644 --- a/src/sdk/models/operations/addlineup.ts +++ b/src/sdk/models/operations/addlineup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,150 +179,6 @@ export type AddLineupResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const AddLineupGlobals$inboundSchema: z.ZodType< - AddLineupGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddLineupGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddLineupGlobals$outboundSchema: z.ZodType< - AddLineupGlobals$Outbound, - z.ZodTypeDef, - AddLineupGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupGlobals$ { - /** @deprecated use `AddLineupGlobals$inboundSchema` instead. */ - export const inboundSchema = AddLineupGlobals$inboundSchema; - /** @deprecated use `AddLineupGlobals$outboundSchema` instead. */ - export const outboundSchema = AddLineupGlobals$outboundSchema; - /** @deprecated use `AddLineupGlobals$Outbound` instead. */ - export type Outbound = AddLineupGlobals$Outbound; -} - -export function addLineupGlobalsToJSON( - addLineupGlobals: AddLineupGlobals, -): string { - return JSON.stringify( - AddLineupGlobals$outboundSchema.parse(addLineupGlobals), - ); -} - -export function addLineupGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddLineupGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddLineupGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddLineupRequest$inboundSchema: z.ZodType< - AddLineupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - lineup: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddLineupRequest$Outbound = { accepts: string; @@ -374,19 +230,6 @@ export const AddLineupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupRequest$ { - /** @deprecated use `AddLineupRequest$inboundSchema` instead. */ - export const inboundSchema = AddLineupRequest$inboundSchema; - /** @deprecated use `AddLineupRequest$outboundSchema` instead. */ - export const outboundSchema = AddLineupRequest$outboundSchema; - /** @deprecated use `AddLineupRequest$Outbound` instead. */ - export type Outbound = AddLineupRequest$Outbound; -} - export function addLineupRequestToJSON( addLineupRequest: AddLineupRequest, ): string { @@ -395,16 +238,6 @@ export function addLineupRequestToJSON( ); } -export function addLineupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddLineupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddLineupRequest' from JSON`, - ); -} - /** @internal */ export const AddLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< AddLineupMediaContainerMediaContainer, @@ -418,53 +251,6 @@ export const AddLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type AddLineupMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const AddLineupMediaContainerMediaContainer$outboundSchema: z.ZodType< - AddLineupMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - AddLineupMediaContainerMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupMediaContainerMediaContainer$ { - /** @deprecated use `AddLineupMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - AddLineupMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `AddLineupMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - AddLineupMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `AddLineupMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = AddLineupMediaContainerMediaContainer$Outbound; -} - -export function addLineupMediaContainerMediaContainerToJSON( - addLineupMediaContainerMediaContainer: AddLineupMediaContainerMediaContainer, -): string { - return JSON.stringify( - AddLineupMediaContainerMediaContainer$outboundSchema.parse( - addLineupMediaContainerMediaContainer, - ), - ); -} - export function addLineupMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -493,49 +279,6 @@ export const AddLineupDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddLineupDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const AddLineupDVR$outboundSchema: z.ZodType< - AddLineupDVR$Outbound, - z.ZodTypeDef, - AddLineupDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupDVR$ { - /** @deprecated use `AddLineupDVR$inboundSchema` instead. */ - export const inboundSchema = AddLineupDVR$inboundSchema; - /** @deprecated use `AddLineupDVR$outboundSchema` instead. */ - export const outboundSchema = AddLineupDVR$outboundSchema; - /** @deprecated use `AddLineupDVR$Outbound` instead. */ - export type Outbound = AddLineupDVR$Outbound; -} - -export function addLineupDVRToJSON(addLineupDVR: AddLineupDVR): string { - return JSON.stringify(AddLineupDVR$outboundSchema.parse(addLineupDVR)); -} - export function addLineupDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -563,50 +306,6 @@ export const AddLineupMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddLineupMediaContainer$Outbound = { - MediaContainer?: AddLineupMediaContainerMediaContainer$Outbound | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const AddLineupMediaContainer$outboundSchema: z.ZodType< - AddLineupMediaContainer$Outbound, - z.ZodTypeDef, - AddLineupMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - AddLineupMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => AddLineupDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupMediaContainer$ { - /** @deprecated use `AddLineupMediaContainer$inboundSchema` instead. */ - export const inboundSchema = AddLineupMediaContainer$inboundSchema; - /** @deprecated use `AddLineupMediaContainer$outboundSchema` instead. */ - export const outboundSchema = AddLineupMediaContainer$outboundSchema; - /** @deprecated use `AddLineupMediaContainer$Outbound` instead. */ - export type Outbound = AddLineupMediaContainer$Outbound; -} - -export function addLineupMediaContainerToJSON( - addLineupMediaContainer: AddLineupMediaContainer, -): string { - return JSON.stringify( - AddLineupMediaContainer$outboundSchema.parse(addLineupMediaContainer), - ); -} - export function addLineupMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -631,46 +330,6 @@ export const AddLineupResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddLineupResponseBody$Outbound = { - MediaContainer?: AddLineupMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const AddLineupResponseBody$outboundSchema: z.ZodType< - AddLineupResponseBody$Outbound, - z.ZodTypeDef, - AddLineupResponseBody -> = z.object({ - mediaContainer: z.lazy(() => AddLineupMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupResponseBody$ { - /** @deprecated use `AddLineupResponseBody$inboundSchema` instead. */ - export const inboundSchema = AddLineupResponseBody$inboundSchema; - /** @deprecated use `AddLineupResponseBody$outboundSchema` instead. */ - export const outboundSchema = AddLineupResponseBody$outboundSchema; - /** @deprecated use `AddLineupResponseBody$Outbound` instead. */ - export type Outbound = AddLineupResponseBody$Outbound; -} - -export function addLineupResponseBodyToJSON( - addLineupResponseBody: AddLineupResponseBody, -): string { - return JSON.stringify( - AddLineupResponseBody$outboundSchema.parse(addLineupResponseBody), - ); -} - export function addLineupResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -691,7 +350,7 @@ export const AddLineupResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => AddLineupResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -701,58 +360,6 @@ export const AddLineupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddLineupResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: AddLineupResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const AddLineupResponse$outboundSchema: z.ZodType< - AddLineupResponse$Outbound, - z.ZodTypeDef, - AddLineupResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => AddLineupResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddLineupResponse$ { - /** @deprecated use `AddLineupResponse$inboundSchema` instead. */ - export const inboundSchema = AddLineupResponse$inboundSchema; - /** @deprecated use `AddLineupResponse$outboundSchema` instead. */ - export const outboundSchema = AddLineupResponse$outboundSchema; - /** @deprecated use `AddLineupResponse$Outbound` instead. */ - export type Outbound = AddLineupResponse$Outbound; -} - -export function addLineupResponseToJSON( - addLineupResponse: AddLineupResponse, -): string { - return JSON.stringify( - AddLineupResponse$outboundSchema.parse(addLineupResponse), - ); -} - export function addLineupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addplaylistitems.ts b/src/sdk/models/operations/addplaylistitems.ts index 866c8a9e..5c306c1a 100644 --- a/src/sdk/models/operations/addplaylistitems.ts +++ b/src/sdk/models/operations/addplaylistitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -136,151 +136,6 @@ export type AddPlaylistItemsResponse = { | undefined; }; -/** @internal */ -export const AddPlaylistItemsGlobals$inboundSchema: z.ZodType< - AddPlaylistItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddPlaylistItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddPlaylistItemsGlobals$outboundSchema: z.ZodType< - AddPlaylistItemsGlobals$Outbound, - z.ZodTypeDef, - AddPlaylistItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddPlaylistItemsGlobals$ { - /** @deprecated use `AddPlaylistItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = AddPlaylistItemsGlobals$inboundSchema; - /** @deprecated use `AddPlaylistItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = AddPlaylistItemsGlobals$outboundSchema; - /** @deprecated use `AddPlaylistItemsGlobals$Outbound` instead. */ - export type Outbound = AddPlaylistItemsGlobals$Outbound; -} - -export function addPlaylistItemsGlobalsToJSON( - addPlaylistItemsGlobals: AddPlaylistItemsGlobals, -): string { - return JSON.stringify( - AddPlaylistItemsGlobals$outboundSchema.parse(addPlaylistItemsGlobals), - ); -} - -export function addPlaylistItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddPlaylistItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddPlaylistItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddPlaylistItemsRequest$inboundSchema: z.ZodType< - AddPlaylistItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - uri: z.string().optional(), - playQueueID: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddPlaylistItemsRequest$Outbound = { accepts: string; @@ -334,19 +189,6 @@ export const AddPlaylistItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddPlaylistItemsRequest$ { - /** @deprecated use `AddPlaylistItemsRequest$inboundSchema` instead. */ - export const inboundSchema = AddPlaylistItemsRequest$inboundSchema; - /** @deprecated use `AddPlaylistItemsRequest$outboundSchema` instead. */ - export const outboundSchema = AddPlaylistItemsRequest$outboundSchema; - /** @deprecated use `AddPlaylistItemsRequest$Outbound` instead. */ - export type Outbound = AddPlaylistItemsRequest$Outbound; -} - export function addPlaylistItemsRequestToJSON( addPlaylistItemsRequest: AddPlaylistItemsRequest, ): string { @@ -355,16 +197,6 @@ export function addPlaylistItemsRequestToJSON( ); } -export function addPlaylistItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddPlaylistItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddPlaylistItemsRequest' from JSON`, - ); -} - /** @internal */ export const AddPlaylistItemsResponse$inboundSchema: z.ZodType< AddPlaylistItemsResponse, @@ -385,59 +217,6 @@ export const AddPlaylistItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddPlaylistItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const AddPlaylistItemsResponse$outboundSchema: z.ZodType< - AddPlaylistItemsResponse$Outbound, - z.ZodTypeDef, - AddPlaylistItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddPlaylistItemsResponse$ { - /** @deprecated use `AddPlaylistItemsResponse$inboundSchema` instead. */ - export const inboundSchema = AddPlaylistItemsResponse$inboundSchema; - /** @deprecated use `AddPlaylistItemsResponse$outboundSchema` instead. */ - export const outboundSchema = AddPlaylistItemsResponse$outboundSchema; - /** @deprecated use `AddPlaylistItemsResponse$Outbound` instead. */ - export type Outbound = AddPlaylistItemsResponse$Outbound; -} - -export function addPlaylistItemsResponseToJSON( - addPlaylistItemsResponse: AddPlaylistItemsResponse, -): string { - return JSON.stringify( - AddPlaylistItemsResponse$outboundSchema.parse(addPlaylistItemsResponse), - ); -} - export function addPlaylistItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addprovider.ts b/src/sdk/models/operations/addprovider.ts index 0a4d423d..a0c596f5 100644 --- a/src/sdk/models/operations/addprovider.ts +++ b/src/sdk/models/operations/addprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type AddProviderResponse = { rawResponse: Response; }; -/** @internal */ -export const AddProviderGlobals$inboundSchema: z.ZodType< - AddProviderGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddProviderGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddProviderGlobals$outboundSchema: z.ZodType< - AddProviderGlobals$Outbound, - z.ZodTypeDef, - AddProviderGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddProviderGlobals$ { - /** @deprecated use `AddProviderGlobals$inboundSchema` instead. */ - export const inboundSchema = AddProviderGlobals$inboundSchema; - /** @deprecated use `AddProviderGlobals$outboundSchema` instead. */ - export const outboundSchema = AddProviderGlobals$outboundSchema; - /** @deprecated use `AddProviderGlobals$Outbound` instead. */ - export type Outbound = AddProviderGlobals$Outbound; -} - -export function addProviderGlobalsToJSON( - addProviderGlobals: AddProviderGlobals, -): string { - return JSON.stringify( - AddProviderGlobals$outboundSchema.parse(addProviderGlobals), - ); -} - -export function addProviderGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddProviderGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddProviderGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddProviderRequest$inboundSchema: z.ZodType< - AddProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - url: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddProviderRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const AddProviderRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddProviderRequest$ { - /** @deprecated use `AddProviderRequest$inboundSchema` instead. */ - export const inboundSchema = AddProviderRequest$inboundSchema; - /** @deprecated use `AddProviderRequest$outboundSchema` instead. */ - export const outboundSchema = AddProviderRequest$outboundSchema; - /** @deprecated use `AddProviderRequest$Outbound` instead. */ - export type Outbound = AddProviderRequest$Outbound; -} - export function addProviderRequestToJSON( addProviderRequest: AddProviderRequest, ): string { @@ -335,16 +179,6 @@ export function addProviderRequestToJSON( ); } -export function addProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddProviderRequest' from JSON`, - ); -} - /** @internal */ export const AddProviderResponse$inboundSchema: z.ZodType< AddProviderResponse, @@ -362,53 +196,6 @@ export const AddProviderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddProviderResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const AddProviderResponse$outboundSchema: z.ZodType< - AddProviderResponse$Outbound, - z.ZodTypeDef, - AddProviderResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddProviderResponse$ { - /** @deprecated use `AddProviderResponse$inboundSchema` instead. */ - export const inboundSchema = AddProviderResponse$inboundSchema; - /** @deprecated use `AddProviderResponse$outboundSchema` instead. */ - export const outboundSchema = AddProviderResponse$outboundSchema; - /** @deprecated use `AddProviderResponse$Outbound` instead. */ - export type Outbound = AddProviderResponse$Outbound; -} - -export function addProviderResponseToJSON( - addProviderResponse: AddProviderResponse, -): string { - return JSON.stringify( - AddProviderResponse$outboundSchema.parse(addProviderResponse), - ); -} - export function addProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addsection.ts b/src/sdk/models/operations/addsection.ts index 7950c739..7c448df6 100644 --- a/src/sdk/models/operations/addsection.ts +++ b/src/sdk/models/operations/addsection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -167,123 +167,6 @@ export type AddSectionResponse = { slashGetResponses200?: shared.SlashGetResponses200 | undefined; }; -/** @internal */ -export const AddSectionGlobals$inboundSchema: z.ZodType< - AddSectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddSectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddSectionGlobals$outboundSchema: z.ZodType< - AddSectionGlobals$Outbound, - z.ZodTypeDef, - AddSectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSectionGlobals$ { - /** @deprecated use `AddSectionGlobals$inboundSchema` instead. */ - export const inboundSchema = AddSectionGlobals$inboundSchema; - /** @deprecated use `AddSectionGlobals$outboundSchema` instead. */ - export const outboundSchema = AddSectionGlobals$outboundSchema; - /** @deprecated use `AddSectionGlobals$Outbound` instead. */ - export type Outbound = AddSectionGlobals$Outbound; -} - -export function addSectionGlobalsToJSON( - addSectionGlobals: AddSectionGlobals, -): string { - return JSON.stringify( - AddSectionGlobals$outboundSchema.parse(addSectionGlobals), - ); -} - -export function addSectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddSectionPrefs$inboundSchema: z.ZodType< - AddSectionPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type AddSectionPrefs$Outbound = {}; @@ -294,77 +177,12 @@ export const AddSectionPrefs$outboundSchema: z.ZodType< AddSectionPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSectionPrefs$ { - /** @deprecated use `AddSectionPrefs$inboundSchema` instead. */ - export const inboundSchema = AddSectionPrefs$inboundSchema; - /** @deprecated use `AddSectionPrefs$outboundSchema` instead. */ - export const outboundSchema = AddSectionPrefs$outboundSchema; - /** @deprecated use `AddSectionPrefs$Outbound` instead. */ - export type Outbound = AddSectionPrefs$Outbound; -} - export function addSectionPrefsToJSON( addSectionPrefs: AddSectionPrefs, ): string { return JSON.stringify(AddSectionPrefs$outboundSchema.parse(addSectionPrefs)); } -export function addSectionPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSectionPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSectionPrefs' from JSON`, - ); -} - -/** @internal */ -export const AddSectionRequest$inboundSchema: z.ZodType< - AddSectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - name: z.string(), - type: z.number().int(), - scanner: z.string().optional(), - agent: z.string(), - metadataAgentProviderGroupId: z.string().optional(), - language: z.string(), - locations: z.array(z.string()).optional(), - prefs: z.lazy(() => AddSectionPrefs$inboundSchema).optional(), - relative: shared.BoolInt$inboundSchema.optional(), - importFromiTunes: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddSectionRequest$Outbound = { accepts: string; @@ -432,19 +250,6 @@ export const AddSectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSectionRequest$ { - /** @deprecated use `AddSectionRequest$inboundSchema` instead. */ - export const inboundSchema = AddSectionRequest$inboundSchema; - /** @deprecated use `AddSectionRequest$outboundSchema` instead. */ - export const outboundSchema = AddSectionRequest$outboundSchema; - /** @deprecated use `AddSectionRequest$Outbound` instead. */ - export type Outbound = AddSectionRequest$Outbound; -} - export function addSectionRequestToJSON( addSectionRequest: AddSectionRequest, ): string { @@ -453,16 +258,6 @@ export function addSectionRequestToJSON( ); } -export function addSectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSectionRequest' from JSON`, - ); -} - /** @internal */ export const AddSectionResponse$inboundSchema: z.ZodType< AddSectionResponse, @@ -483,56 +278,6 @@ export const AddSectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddSectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "slash-get-responses-200"?: shared.SlashGetResponses200$Outbound | undefined; -}; - -/** @internal */ -export const AddSectionResponse$outboundSchema: z.ZodType< - AddSectionResponse$Outbound, - z.ZodTypeDef, - AddSectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - slashGetResponses200: shared.SlashGetResponses200$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - slashGetResponses200: "slash-get-responses-200", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSectionResponse$ { - /** @deprecated use `AddSectionResponse$inboundSchema` instead. */ - export const inboundSchema = AddSectionResponse$inboundSchema; - /** @deprecated use `AddSectionResponse$outboundSchema` instead. */ - export const outboundSchema = AddSectionResponse$outboundSchema; - /** @deprecated use `AddSectionResponse$Outbound` instead. */ - export type Outbound = AddSectionResponse$Outbound; -} - -export function addSectionResponseToJSON( - addSectionResponse: AddSectionResponse, -): string { - return JSON.stringify( - AddSectionResponse$outboundSchema.parse(addSectionResponse), - ); -} - export function addSectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addsubtitles.ts b/src/sdk/models/operations/addsubtitles.ts index 59a67fcc..242a3593 100644 --- a/src/sdk/models/operations/addsubtitles.ts +++ b/src/sdk/models/operations/addsubtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -129,156 +129,6 @@ export type AddSubtitlesResponse = { rawResponse: Response; }; -/** @internal */ -export const AddSubtitlesGlobals$inboundSchema: z.ZodType< - AddSubtitlesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddSubtitlesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddSubtitlesGlobals$outboundSchema: z.ZodType< - AddSubtitlesGlobals$Outbound, - z.ZodTypeDef, - AddSubtitlesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSubtitlesGlobals$ { - /** @deprecated use `AddSubtitlesGlobals$inboundSchema` instead. */ - export const inboundSchema = AddSubtitlesGlobals$inboundSchema; - /** @deprecated use `AddSubtitlesGlobals$outboundSchema` instead. */ - export const outboundSchema = AddSubtitlesGlobals$outboundSchema; - /** @deprecated use `AddSubtitlesGlobals$Outbound` instead. */ - export type Outbound = AddSubtitlesGlobals$Outbound; -} - -export function addSubtitlesGlobalsToJSON( - addSubtitlesGlobals: AddSubtitlesGlobals, -): string { - return JSON.stringify( - AddSubtitlesGlobals$outboundSchema.parse(addSubtitlesGlobals), - ); -} - -export function addSubtitlesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSubtitlesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSubtitlesGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddSubtitlesRequest$inboundSchema: z.ZodType< - AddSubtitlesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - title: z.string().optional(), - language: z.string().optional(), - mediaItemID: z.number().int().optional(), - url: z.string().optional(), - format: z.string().optional(), - forced: shared.BoolInt$inboundSchema.optional(), - hearingImpaired: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddSubtitlesRequest$Outbound = { accepts: string; @@ -342,19 +192,6 @@ export const AddSubtitlesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSubtitlesRequest$ { - /** @deprecated use `AddSubtitlesRequest$inboundSchema` instead. */ - export const inboundSchema = AddSubtitlesRequest$inboundSchema; - /** @deprecated use `AddSubtitlesRequest$outboundSchema` instead. */ - export const outboundSchema = AddSubtitlesRequest$outboundSchema; - /** @deprecated use `AddSubtitlesRequest$Outbound` instead. */ - export type Outbound = AddSubtitlesRequest$Outbound; -} - export function addSubtitlesRequestToJSON( addSubtitlesRequest: AddSubtitlesRequest, ): string { @@ -363,16 +200,6 @@ export function addSubtitlesRequestToJSON( ); } -export function addSubtitlesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddSubtitlesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddSubtitlesRequest' from JSON`, - ); -} - /** @internal */ export const AddSubtitlesResponse$inboundSchema: z.ZodType< AddSubtitlesResponse, @@ -390,53 +217,6 @@ export const AddSubtitlesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddSubtitlesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const AddSubtitlesResponse$outboundSchema: z.ZodType< - AddSubtitlesResponse$Outbound, - z.ZodTypeDef, - AddSubtitlesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddSubtitlesResponse$ { - /** @deprecated use `AddSubtitlesResponse$inboundSchema` instead. */ - export const inboundSchema = AddSubtitlesResponse$inboundSchema; - /** @deprecated use `AddSubtitlesResponse$outboundSchema` instead. */ - export const outboundSchema = AddSubtitlesResponse$outboundSchema; - /** @deprecated use `AddSubtitlesResponse$Outbound` instead. */ - export type Outbound = AddSubtitlesResponse$Outbound; -} - -export function addSubtitlesResponseToJSON( - addSubtitlesResponse: AddSubtitlesResponse, -): string { - return JSON.stringify( - AddSubtitlesResponse$outboundSchema.parse(addSubtitlesResponse), - ); -} - export function addSubtitlesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/addtoplayqueue.ts b/src/sdk/models/operations/addtoplayqueue.ts index 72c70ee7..58e430cc 100644 --- a/src/sdk/models/operations/addtoplayqueue.ts +++ b/src/sdk/models/operations/addtoplayqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -140,152 +140,6 @@ export type AddToPlayQueueResponse = { | undefined; }; -/** @internal */ -export const AddToPlayQueueGlobals$inboundSchema: z.ZodType< - AddToPlayQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AddToPlayQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AddToPlayQueueGlobals$outboundSchema: z.ZodType< - AddToPlayQueueGlobals$Outbound, - z.ZodTypeDef, - AddToPlayQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddToPlayQueueGlobals$ { - /** @deprecated use `AddToPlayQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = AddToPlayQueueGlobals$inboundSchema; - /** @deprecated use `AddToPlayQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = AddToPlayQueueGlobals$outboundSchema; - /** @deprecated use `AddToPlayQueueGlobals$Outbound` instead. */ - export type Outbound = AddToPlayQueueGlobals$Outbound; -} - -export function addToPlayQueueGlobalsToJSON( - addToPlayQueueGlobals: AddToPlayQueueGlobals, -): string { - return JSON.stringify( - AddToPlayQueueGlobals$outboundSchema.parse(addToPlayQueueGlobals), - ); -} - -export function addToPlayQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddToPlayQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddToPlayQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const AddToPlayQueueRequest$inboundSchema: z.ZodType< - AddToPlayQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), - uri: z.string().optional(), - playlistID: z.string().optional(), - next: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AddToPlayQueueRequest$Outbound = { accepts: string; @@ -341,19 +195,6 @@ export const AddToPlayQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddToPlayQueueRequest$ { - /** @deprecated use `AddToPlayQueueRequest$inboundSchema` instead. */ - export const inboundSchema = AddToPlayQueueRequest$inboundSchema; - /** @deprecated use `AddToPlayQueueRequest$outboundSchema` instead. */ - export const outboundSchema = AddToPlayQueueRequest$outboundSchema; - /** @deprecated use `AddToPlayQueueRequest$Outbound` instead. */ - export type Outbound = AddToPlayQueueRequest$Outbound; -} - export function addToPlayQueueRequestToJSON( addToPlayQueueRequest: AddToPlayQueueRequest, ): string { @@ -362,16 +203,6 @@ export function addToPlayQueueRequestToJSON( ); } -export function addToPlayQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddToPlayQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddToPlayQueueRequest' from JSON`, - ); -} - /** @internal */ export const AddToPlayQueueResponse$inboundSchema: z.ZodType< AddToPlayQueueResponse, @@ -392,59 +223,6 @@ export const AddToPlayQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AddToPlayQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const AddToPlayQueueResponse$outboundSchema: z.ZodType< - AddToPlayQueueResponse$Outbound, - z.ZodTypeDef, - AddToPlayQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddToPlayQueueResponse$ { - /** @deprecated use `AddToPlayQueueResponse$inboundSchema` instead. */ - export const inboundSchema = AddToPlayQueueResponse$inboundSchema; - /** @deprecated use `AddToPlayQueueResponse$outboundSchema` instead. */ - export const outboundSchema = AddToPlayQueueResponse$outboundSchema; - /** @deprecated use `AddToPlayQueueResponse$Outbound` instead. */ - export type Outbound = AddToPlayQueueResponse$Outbound; -} - -export function addToPlayQueueResponseToJSON( - addToPlayQueueResponse: AddToPlayQueueResponse, -): string { - return JSON.stringify( - AddToPlayQueueResponse$outboundSchema.parse(addToPlayQueueResponse), - ); -} - export function addToPlayQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/analyzemetadata.ts b/src/sdk/models/operations/analyzemetadata.ts index 73b84372..f87d6378 100644 --- a/src/sdk/models/operations/analyzemetadata.ts +++ b/src/sdk/models/operations/analyzemetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,151 +127,6 @@ export type AnalyzeMetadataResponse = { rawResponse: Response; }; -/** @internal */ -export const AnalyzeMetadataGlobals$inboundSchema: z.ZodType< - AnalyzeMetadataGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AnalyzeMetadataGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AnalyzeMetadataGlobals$outboundSchema: z.ZodType< - AnalyzeMetadataGlobals$Outbound, - z.ZodTypeDef, - AnalyzeMetadataGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AnalyzeMetadataGlobals$ { - /** @deprecated use `AnalyzeMetadataGlobals$inboundSchema` instead. */ - export const inboundSchema = AnalyzeMetadataGlobals$inboundSchema; - /** @deprecated use `AnalyzeMetadataGlobals$outboundSchema` instead. */ - export const outboundSchema = AnalyzeMetadataGlobals$outboundSchema; - /** @deprecated use `AnalyzeMetadataGlobals$Outbound` instead. */ - export type Outbound = AnalyzeMetadataGlobals$Outbound; -} - -export function analyzeMetadataGlobalsToJSON( - analyzeMetadataGlobals: AnalyzeMetadataGlobals, -): string { - return JSON.stringify( - AnalyzeMetadataGlobals$outboundSchema.parse(analyzeMetadataGlobals), - ); -} - -export function analyzeMetadataGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AnalyzeMetadataGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AnalyzeMetadataGlobals' from JSON`, - ); -} - -/** @internal */ -export const AnalyzeMetadataRequest$inboundSchema: z.ZodType< - AnalyzeMetadataRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - thumbOffset: z.number().optional(), - artOffset: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type AnalyzeMetadataRequest$Outbound = { accepts: string; @@ -325,19 +180,6 @@ export const AnalyzeMetadataRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AnalyzeMetadataRequest$ { - /** @deprecated use `AnalyzeMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = AnalyzeMetadataRequest$inboundSchema; - /** @deprecated use `AnalyzeMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = AnalyzeMetadataRequest$outboundSchema; - /** @deprecated use `AnalyzeMetadataRequest$Outbound` instead. */ - export type Outbound = AnalyzeMetadataRequest$Outbound; -} - export function analyzeMetadataRequestToJSON( analyzeMetadataRequest: AnalyzeMetadataRequest, ): string { @@ -346,16 +188,6 @@ export function analyzeMetadataRequestToJSON( ); } -export function analyzeMetadataRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AnalyzeMetadataRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AnalyzeMetadataRequest' from JSON`, - ); -} - /** @internal */ export const AnalyzeMetadataResponse$inboundSchema: z.ZodType< AnalyzeMetadataResponse, @@ -373,53 +205,6 @@ export const AnalyzeMetadataResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AnalyzeMetadataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const AnalyzeMetadataResponse$outboundSchema: z.ZodType< - AnalyzeMetadataResponse$Outbound, - z.ZodTypeDef, - AnalyzeMetadataResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AnalyzeMetadataResponse$ { - /** @deprecated use `AnalyzeMetadataResponse$inboundSchema` instead. */ - export const inboundSchema = AnalyzeMetadataResponse$inboundSchema; - /** @deprecated use `AnalyzeMetadataResponse$outboundSchema` instead. */ - export const outboundSchema = AnalyzeMetadataResponse$outboundSchema; - /** @deprecated use `AnalyzeMetadataResponse$Outbound` instead. */ - export type Outbound = AnalyzeMetadataResponse$Outbound; -} - -export function analyzeMetadataResponseToJSON( - analyzeMetadataResponse: AnalyzeMetadataResponse, -): string { - return JSON.stringify( - AnalyzeMetadataResponse$outboundSchema.parse(analyzeMetadataResponse), - ); -} - export function analyzeMetadataResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/applyupdates.ts b/src/sdk/models/operations/applyupdates.ts index 0ead0088..b0c84e6e 100644 --- a/src/sdk/models/operations/applyupdates.ts +++ b/src/sdk/models/operations/applyupdates.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type ApplyUpdatesResponse = { rawResponse: Response; }; -/** @internal */ -export const ApplyUpdatesGlobals$inboundSchema: z.ZodType< - ApplyUpdatesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ApplyUpdatesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ApplyUpdatesGlobals$outboundSchema: z.ZodType< - ApplyUpdatesGlobals$Outbound, - z.ZodTypeDef, - ApplyUpdatesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplyUpdatesGlobals$ { - /** @deprecated use `ApplyUpdatesGlobals$inboundSchema` instead. */ - export const inboundSchema = ApplyUpdatesGlobals$inboundSchema; - /** @deprecated use `ApplyUpdatesGlobals$outboundSchema` instead. */ - export const outboundSchema = ApplyUpdatesGlobals$outboundSchema; - /** @deprecated use `ApplyUpdatesGlobals$Outbound` instead. */ - export type Outbound = ApplyUpdatesGlobals$Outbound; -} - -export function applyUpdatesGlobalsToJSON( - applyUpdatesGlobals: ApplyUpdatesGlobals, -): string { - return JSON.stringify( - ApplyUpdatesGlobals$outboundSchema.parse(applyUpdatesGlobals), - ); -} - -export function applyUpdatesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplyUpdatesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplyUpdatesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ApplyUpdatesRequest$inboundSchema: z.ZodType< - ApplyUpdatesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - tonight: shared.BoolInt$inboundSchema.optional(), - skip: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ApplyUpdatesRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const ApplyUpdatesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplyUpdatesRequest$ { - /** @deprecated use `ApplyUpdatesRequest$inboundSchema` instead. */ - export const inboundSchema = ApplyUpdatesRequest$inboundSchema; - /** @deprecated use `ApplyUpdatesRequest$outboundSchema` instead. */ - export const outboundSchema = ApplyUpdatesRequest$outboundSchema; - /** @deprecated use `ApplyUpdatesRequest$Outbound` instead. */ - export type Outbound = ApplyUpdatesRequest$Outbound; -} - export function applyUpdatesRequestToJSON( applyUpdatesRequest: ApplyUpdatesRequest, ): string { @@ -342,16 +185,6 @@ export function applyUpdatesRequestToJSON( ); } -export function applyUpdatesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplyUpdatesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplyUpdatesRequest' from JSON`, - ); -} - /** @internal */ export const ApplyUpdatesResponse$inboundSchema: z.ZodType< ApplyUpdatesResponse, @@ -369,53 +202,6 @@ export const ApplyUpdatesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplyUpdatesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const ApplyUpdatesResponse$outboundSchema: z.ZodType< - ApplyUpdatesResponse$Outbound, - z.ZodTypeDef, - ApplyUpdatesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplyUpdatesResponse$ { - /** @deprecated use `ApplyUpdatesResponse$inboundSchema` instead. */ - export const inboundSchema = ApplyUpdatesResponse$inboundSchema; - /** @deprecated use `ApplyUpdatesResponse$outboundSchema` instead. */ - export const outboundSchema = ApplyUpdatesResponse$outboundSchema; - /** @deprecated use `ApplyUpdatesResponse$Outbound` instead. */ - export type Outbound = ApplyUpdatesResponse$Outbound; -} - -export function applyUpdatesResponseToJSON( - applyUpdatesResponse: ApplyUpdatesResponse, -): string { - return JSON.stringify( - ApplyUpdatesResponse$outboundSchema.parse(applyUpdatesResponse), - ); -} - export function applyUpdatesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/autocomplete.ts b/src/sdk/models/operations/autocomplete.ts index 182fa42e..09422ae6 100644 --- a/src/sdk/models/operations/autocomplete.ts +++ b/src/sdk/models/operations/autocomplete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -139,153 +139,6 @@ export type AutocompleteResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const AutocompleteGlobals$inboundSchema: z.ZodType< - AutocompleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type AutocompleteGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const AutocompleteGlobals$outboundSchema: z.ZodType< - AutocompleteGlobals$Outbound, - z.ZodTypeDef, - AutocompleteGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AutocompleteGlobals$ { - /** @deprecated use `AutocompleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AutocompleteGlobals$inboundSchema; - /** @deprecated use `AutocompleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AutocompleteGlobals$outboundSchema; - /** @deprecated use `AutocompleteGlobals$Outbound` instead. */ - export type Outbound = AutocompleteGlobals$Outbound; -} - -export function autocompleteGlobalsToJSON( - autocompleteGlobals: AutocompleteGlobals, -): string { - return JSON.stringify( - AutocompleteGlobals$outboundSchema.parse(autocompleteGlobals), - ); -} - -export function autocompleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AutocompleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AutocompleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AutocompleteRequest$inboundSchema: z.ZodType< - AutocompleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), - "field.query": z.string().optional(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "field.query": "fieldQuery", - }); -}); - /** @internal */ export type AutocompleteRequest$Outbound = { accepts: string; @@ -342,19 +195,6 @@ export const AutocompleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AutocompleteRequest$ { - /** @deprecated use `AutocompleteRequest$inboundSchema` instead. */ - export const inboundSchema = AutocompleteRequest$inboundSchema; - /** @deprecated use `AutocompleteRequest$outboundSchema` instead. */ - export const outboundSchema = AutocompleteRequest$outboundSchema; - /** @deprecated use `AutocompleteRequest$Outbound` instead. */ - export type Outbound = AutocompleteRequest$Outbound; -} - export function autocompleteRequestToJSON( autocompleteRequest: AutocompleteRequest, ): string { @@ -363,16 +203,6 @@ export function autocompleteRequestToJSON( ); } -export function autocompleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AutocompleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AutocompleteRequest' from JSON`, - ); -} - /** @internal */ export const AutocompleteResponse$inboundSchema: z.ZodType< AutocompleteResponse, @@ -384,7 +214,7 @@ export const AutocompleteResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -395,62 +225,6 @@ export const AutocompleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AutocompleteResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const AutocompleteResponse$outboundSchema: z.ZodType< - AutocompleteResponse$Outbound, - z.ZodTypeDef, - AutocompleteResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AutocompleteResponse$ { - /** @deprecated use `AutocompleteResponse$inboundSchema` instead. */ - export const inboundSchema = AutocompleteResponse$inboundSchema; - /** @deprecated use `AutocompleteResponse$outboundSchema` instead. */ - export const outboundSchema = AutocompleteResponse$outboundSchema; - /** @deprecated use `AutocompleteResponse$Outbound` instead. */ - export type Outbound = AutocompleteResponse$Outbound; -} - -export function autocompleteResponseToJSON( - autocompleteResponse: AutocompleteResponse, -): string { - return JSON.stringify( - AutocompleteResponse$outboundSchema.parse(autocompleteResponse), - ); -} - export function autocompleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/cancelactivity.ts b/src/sdk/models/operations/cancelactivity.ts index 309583c1..fa4275f6 100644 --- a/src/sdk/models/operations/cancelactivity.ts +++ b/src/sdk/models/operations/cancelactivity.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type CancelActivityResponse = { rawResponse: Response; }; -/** @internal */ -export const CancelActivityGlobals$inboundSchema: z.ZodType< - CancelActivityGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CancelActivityGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CancelActivityGlobals$outboundSchema: z.ZodType< - CancelActivityGlobals$Outbound, - z.ZodTypeDef, - CancelActivityGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelActivityGlobals$ { - /** @deprecated use `CancelActivityGlobals$inboundSchema` instead. */ - export const inboundSchema = CancelActivityGlobals$inboundSchema; - /** @deprecated use `CancelActivityGlobals$outboundSchema` instead. */ - export const outboundSchema = CancelActivityGlobals$outboundSchema; - /** @deprecated use `CancelActivityGlobals$Outbound` instead. */ - export type Outbound = CancelActivityGlobals$Outbound; -} - -export function cancelActivityGlobalsToJSON( - cancelActivityGlobals: CancelActivityGlobals, -): string { - return JSON.stringify( - CancelActivityGlobals$outboundSchema.parse(cancelActivityGlobals), - ); -} - -export function cancelActivityGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelActivityGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelActivityGlobals' from JSON`, - ); -} - -/** @internal */ -export const CancelActivityRequest$inboundSchema: z.ZodType< - CancelActivityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - activityId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CancelActivityRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const CancelActivityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelActivityRequest$ { - /** @deprecated use `CancelActivityRequest$inboundSchema` instead. */ - export const inboundSchema = CancelActivityRequest$inboundSchema; - /** @deprecated use `CancelActivityRequest$outboundSchema` instead. */ - export const outboundSchema = CancelActivityRequest$outboundSchema; - /** @deprecated use `CancelActivityRequest$Outbound` instead. */ - export type Outbound = CancelActivityRequest$Outbound; -} - export function cancelActivityRequestToJSON( cancelActivityRequest: CancelActivityRequest, ): string { @@ -335,16 +179,6 @@ export function cancelActivityRequestToJSON( ); } -export function cancelActivityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelActivityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelActivityRequest' from JSON`, - ); -} - /** @internal */ export const CancelActivityResponse$inboundSchema: z.ZodType< CancelActivityResponse, @@ -362,53 +196,6 @@ export const CancelActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CancelActivityResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CancelActivityResponse$outboundSchema: z.ZodType< - CancelActivityResponse$Outbound, - z.ZodTypeDef, - CancelActivityResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelActivityResponse$ { - /** @deprecated use `CancelActivityResponse$inboundSchema` instead. */ - export const inboundSchema = CancelActivityResponse$inboundSchema; - /** @deprecated use `CancelActivityResponse$outboundSchema` instead. */ - export const outboundSchema = CancelActivityResponse$outboundSchema; - /** @deprecated use `CancelActivityResponse$Outbound` instead. */ - export type Outbound = CancelActivityResponse$Outbound; -} - -export function cancelActivityResponseToJSON( - cancelActivityResponse: CancelActivityResponse, -): string { - return JSON.stringify( - CancelActivityResponse$outboundSchema.parse(cancelActivityResponse), - ); -} - export function cancelActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/cancelgrab.ts b/src/sdk/models/operations/cancelgrab.ts index c08a4390..e33a628a 100644 --- a/src/sdk/models/operations/cancelgrab.ts +++ b/src/sdk/models/operations/cancelgrab.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type CancelGrabResponse = { rawResponse: Response; }; -/** @internal */ -export const CancelGrabGlobals$inboundSchema: z.ZodType< - CancelGrabGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CancelGrabGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CancelGrabGlobals$outboundSchema: z.ZodType< - CancelGrabGlobals$Outbound, - z.ZodTypeDef, - CancelGrabGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelGrabGlobals$ { - /** @deprecated use `CancelGrabGlobals$inboundSchema` instead. */ - export const inboundSchema = CancelGrabGlobals$inboundSchema; - /** @deprecated use `CancelGrabGlobals$outboundSchema` instead. */ - export const outboundSchema = CancelGrabGlobals$outboundSchema; - /** @deprecated use `CancelGrabGlobals$Outbound` instead. */ - export type Outbound = CancelGrabGlobals$Outbound; -} - -export function cancelGrabGlobalsToJSON( - cancelGrabGlobals: CancelGrabGlobals, -): string { - return JSON.stringify( - CancelGrabGlobals$outboundSchema.parse(cancelGrabGlobals), - ); -} - -export function cancelGrabGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelGrabGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelGrabGlobals' from JSON`, - ); -} - -/** @internal */ -export const CancelGrabRequest$inboundSchema: z.ZodType< - CancelGrabRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - operationId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CancelGrabRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const CancelGrabRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelGrabRequest$ { - /** @deprecated use `CancelGrabRequest$inboundSchema` instead. */ - export const inboundSchema = CancelGrabRequest$inboundSchema; - /** @deprecated use `CancelGrabRequest$outboundSchema` instead. */ - export const outboundSchema = CancelGrabRequest$outboundSchema; - /** @deprecated use `CancelGrabRequest$Outbound` instead. */ - export type Outbound = CancelGrabRequest$Outbound; -} - export function cancelGrabRequestToJSON( cancelGrabRequest: CancelGrabRequest, ): string { @@ -335,16 +179,6 @@ export function cancelGrabRequestToJSON( ); } -export function cancelGrabRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelGrabRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelGrabRequest' from JSON`, - ); -} - /** @internal */ export const CancelGrabResponse$inboundSchema: z.ZodType< CancelGrabResponse, @@ -362,53 +196,6 @@ export const CancelGrabResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CancelGrabResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CancelGrabResponse$outboundSchema: z.ZodType< - CancelGrabResponse$Outbound, - z.ZodTypeDef, - CancelGrabResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelGrabResponse$ { - /** @deprecated use `CancelGrabResponse$inboundSchema` instead. */ - export const inboundSchema = CancelGrabResponse$inboundSchema; - /** @deprecated use `CancelGrabResponse$outboundSchema` instead. */ - export const outboundSchema = CancelGrabResponse$outboundSchema; - /** @deprecated use `CancelGrabResponse$Outbound` instead. */ - export type Outbound = CancelGrabResponse$Outbound; -} - -export function cancelGrabResponseToJSON( - cancelGrabResponse: CancelGrabResponse, -): string { - return JSON.stringify( - CancelGrabResponse$outboundSchema.parse(cancelGrabResponse), - ); -} - export function cancelGrabResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/cancelrefresh.ts b/src/sdk/models/operations/cancelrefresh.ts index e90767b1..6a0a924a 100644 --- a/src/sdk/models/operations/cancelrefresh.ts +++ b/src/sdk/models/operations/cancelrefresh.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type CancelRefreshResponse = { rawResponse: Response; }; -/** @internal */ -export const CancelRefreshGlobals$inboundSchema: z.ZodType< - CancelRefreshGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CancelRefreshGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CancelRefreshGlobals$outboundSchema: z.ZodType< - CancelRefreshGlobals$Outbound, - z.ZodTypeDef, - CancelRefreshGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelRefreshGlobals$ { - /** @deprecated use `CancelRefreshGlobals$inboundSchema` instead. */ - export const inboundSchema = CancelRefreshGlobals$inboundSchema; - /** @deprecated use `CancelRefreshGlobals$outboundSchema` instead. */ - export const outboundSchema = CancelRefreshGlobals$outboundSchema; - /** @deprecated use `CancelRefreshGlobals$Outbound` instead. */ - export type Outbound = CancelRefreshGlobals$Outbound; -} - -export function cancelRefreshGlobalsToJSON( - cancelRefreshGlobals: CancelRefreshGlobals, -): string { - return JSON.stringify( - CancelRefreshGlobals$outboundSchema.parse(cancelRefreshGlobals), - ); -} - -export function cancelRefreshGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelRefreshGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelRefreshGlobals' from JSON`, - ); -} - -/** @internal */ -export const CancelRefreshRequest$inboundSchema: z.ZodType< - CancelRefreshRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CancelRefreshRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const CancelRefreshRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelRefreshRequest$ { - /** @deprecated use `CancelRefreshRequest$inboundSchema` instead. */ - export const inboundSchema = CancelRefreshRequest$inboundSchema; - /** @deprecated use `CancelRefreshRequest$outboundSchema` instead. */ - export const outboundSchema = CancelRefreshRequest$outboundSchema; - /** @deprecated use `CancelRefreshRequest$Outbound` instead. */ - export type Outbound = CancelRefreshRequest$Outbound; -} - export function cancelRefreshRequestToJSON( cancelRefreshRequest: CancelRefreshRequest, ): string { @@ -335,16 +179,6 @@ export function cancelRefreshRequestToJSON( ); } -export function cancelRefreshRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CancelRefreshRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CancelRefreshRequest' from JSON`, - ); -} - /** @internal */ export const CancelRefreshResponse$inboundSchema: z.ZodType< CancelRefreshResponse, @@ -362,53 +196,6 @@ export const CancelRefreshResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CancelRefreshResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CancelRefreshResponse$outboundSchema: z.ZodType< - CancelRefreshResponse$Outbound, - z.ZodTypeDef, - CancelRefreshResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelRefreshResponse$ { - /** @deprecated use `CancelRefreshResponse$inboundSchema` instead. */ - export const inboundSchema = CancelRefreshResponse$inboundSchema; - /** @deprecated use `CancelRefreshResponse$outboundSchema` instead. */ - export const outboundSchema = CancelRefreshResponse$outboundSchema; - /** @deprecated use `CancelRefreshResponse$Outbound` instead. */ - export type Outbound = CancelRefreshResponse$Outbound; -} - -export function cancelRefreshResponseToJSON( - cancelRefreshResponse: CancelRefreshResponse, -): string { - return JSON.stringify( - CancelRefreshResponse$outboundSchema.parse(cancelRefreshResponse), - ); -} - export function cancelRefreshResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/checkupdates.ts b/src/sdk/models/operations/checkupdates.ts index 06d5d88f..226c5770 100644 --- a/src/sdk/models/operations/checkupdates.ts +++ b/src/sdk/models/operations/checkupdates.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type CheckUpdatesResponse = { rawResponse: Response; }; -/** @internal */ -export const CheckUpdatesGlobals$inboundSchema: z.ZodType< - CheckUpdatesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CheckUpdatesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CheckUpdatesGlobals$outboundSchema: z.ZodType< - CheckUpdatesGlobals$Outbound, - z.ZodTypeDef, - CheckUpdatesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckUpdatesGlobals$ { - /** @deprecated use `CheckUpdatesGlobals$inboundSchema` instead. */ - export const inboundSchema = CheckUpdatesGlobals$inboundSchema; - /** @deprecated use `CheckUpdatesGlobals$outboundSchema` instead. */ - export const outboundSchema = CheckUpdatesGlobals$outboundSchema; - /** @deprecated use `CheckUpdatesGlobals$Outbound` instead. */ - export type Outbound = CheckUpdatesGlobals$Outbound; -} - -export function checkUpdatesGlobalsToJSON( - checkUpdatesGlobals: CheckUpdatesGlobals, -): string { - return JSON.stringify( - CheckUpdatesGlobals$outboundSchema.parse(checkUpdatesGlobals), - ); -} - -export function checkUpdatesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckUpdatesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckUpdatesGlobals' from JSON`, - ); -} - -/** @internal */ -export const CheckUpdatesRequest$inboundSchema: z.ZodType< - CheckUpdatesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - download: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CheckUpdatesRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const CheckUpdatesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckUpdatesRequest$ { - /** @deprecated use `CheckUpdatesRequest$inboundSchema` instead. */ - export const inboundSchema = CheckUpdatesRequest$inboundSchema; - /** @deprecated use `CheckUpdatesRequest$outboundSchema` instead. */ - export const outboundSchema = CheckUpdatesRequest$outboundSchema; - /** @deprecated use `CheckUpdatesRequest$Outbound` instead. */ - export type Outbound = CheckUpdatesRequest$Outbound; -} - export function checkUpdatesRequestToJSON( checkUpdatesRequest: CheckUpdatesRequest, ): string { @@ -335,16 +179,6 @@ export function checkUpdatesRequestToJSON( ); } -export function checkUpdatesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckUpdatesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckUpdatesRequest' from JSON`, - ); -} - /** @internal */ export const CheckUpdatesResponse$inboundSchema: z.ZodType< CheckUpdatesResponse, @@ -362,53 +196,6 @@ export const CheckUpdatesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CheckUpdatesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CheckUpdatesResponse$outboundSchema: z.ZodType< - CheckUpdatesResponse$Outbound, - z.ZodTypeDef, - CheckUpdatesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckUpdatesResponse$ { - /** @deprecated use `CheckUpdatesResponse$inboundSchema` instead. */ - export const inboundSchema = CheckUpdatesResponse$inboundSchema; - /** @deprecated use `CheckUpdatesResponse$outboundSchema` instead. */ - export const outboundSchema = CheckUpdatesResponse$outboundSchema; - /** @deprecated use `CheckUpdatesResponse$Outbound` instead. */ - export type Outbound = CheckUpdatesResponse$Outbound; -} - -export function checkUpdatesResponseToJSON( - checkUpdatesResponse: CheckUpdatesResponse, -): string { - return JSON.stringify( - CheckUpdatesResponse$outboundSchema.parse(checkUpdatesResponse), - ); -} - export function checkUpdatesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/cleanbundles.ts b/src/sdk/models/operations/cleanbundles.ts index 23518c7b..6393b17c 100644 --- a/src/sdk/models/operations/cleanbundles.ts +++ b/src/sdk/models/operations/cleanbundles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const CleanBundlesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CleanBundlesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CleanBundlesResponse$outboundSchema: z.ZodType< - CleanBundlesResponse$Outbound, - z.ZodTypeDef, - CleanBundlesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CleanBundlesResponse$ { - /** @deprecated use `CleanBundlesResponse$inboundSchema` instead. */ - export const inboundSchema = CleanBundlesResponse$inboundSchema; - /** @deprecated use `CleanBundlesResponse$outboundSchema` instead. */ - export const outboundSchema = CleanBundlesResponse$outboundSchema; - /** @deprecated use `CleanBundlesResponse$Outbound` instead. */ - export type Outbound = CleanBundlesResponse$Outbound; -} - -export function cleanBundlesResponseToJSON( - cleanBundlesResponse: CleanBundlesResponse, -): string { - return JSON.stringify( - CleanBundlesResponse$outboundSchema.parse(cleanBundlesResponse), - ); -} - export function cleanBundlesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/clearplaylistitems.ts b/src/sdk/models/operations/clearplaylistitems.ts index 5b3051be..21fae2da 100644 --- a/src/sdk/models/operations/clearplaylistitems.ts +++ b/src/sdk/models/operations/clearplaylistitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,149 +128,6 @@ export type ClearPlaylistItemsResponse = { | undefined; }; -/** @internal */ -export const ClearPlaylistItemsGlobals$inboundSchema: z.ZodType< - ClearPlaylistItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ClearPlaylistItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ClearPlaylistItemsGlobals$outboundSchema: z.ZodType< - ClearPlaylistItemsGlobals$Outbound, - z.ZodTypeDef, - ClearPlaylistItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlaylistItemsGlobals$ { - /** @deprecated use `ClearPlaylistItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = ClearPlaylistItemsGlobals$inboundSchema; - /** @deprecated use `ClearPlaylistItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = ClearPlaylistItemsGlobals$outboundSchema; - /** @deprecated use `ClearPlaylistItemsGlobals$Outbound` instead. */ - export type Outbound = ClearPlaylistItemsGlobals$Outbound; -} - -export function clearPlaylistItemsGlobalsToJSON( - clearPlaylistItemsGlobals: ClearPlaylistItemsGlobals, -): string { - return JSON.stringify( - ClearPlaylistItemsGlobals$outboundSchema.parse(clearPlaylistItemsGlobals), - ); -} - -export function clearPlaylistItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlaylistItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlaylistItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ClearPlaylistItemsRequest$inboundSchema: z.ZodType< - ClearPlaylistItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ClearPlaylistItemsRequest$Outbound = { accepts: string; @@ -320,19 +177,6 @@ export const ClearPlaylistItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlaylistItemsRequest$ { - /** @deprecated use `ClearPlaylistItemsRequest$inboundSchema` instead. */ - export const inboundSchema = ClearPlaylistItemsRequest$inboundSchema; - /** @deprecated use `ClearPlaylistItemsRequest$outboundSchema` instead. */ - export const outboundSchema = ClearPlaylistItemsRequest$outboundSchema; - /** @deprecated use `ClearPlaylistItemsRequest$Outbound` instead. */ - export type Outbound = ClearPlaylistItemsRequest$Outbound; -} - export function clearPlaylistItemsRequestToJSON( clearPlaylistItemsRequest: ClearPlaylistItemsRequest, ): string { @@ -341,16 +185,6 @@ export function clearPlaylistItemsRequestToJSON( ); } -export function clearPlaylistItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlaylistItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlaylistItemsRequest' from JSON`, - ); -} - /** @internal */ export const ClearPlaylistItemsResponse$inboundSchema: z.ZodType< ClearPlaylistItemsResponse, @@ -371,59 +205,6 @@ export const ClearPlaylistItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ClearPlaylistItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ClearPlaylistItemsResponse$outboundSchema: z.ZodType< - ClearPlaylistItemsResponse$Outbound, - z.ZodTypeDef, - ClearPlaylistItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlaylistItemsResponse$ { - /** @deprecated use `ClearPlaylistItemsResponse$inboundSchema` instead. */ - export const inboundSchema = ClearPlaylistItemsResponse$inboundSchema; - /** @deprecated use `ClearPlaylistItemsResponse$outboundSchema` instead. */ - export const outboundSchema = ClearPlaylistItemsResponse$outboundSchema; - /** @deprecated use `ClearPlaylistItemsResponse$Outbound` instead. */ - export type Outbound = ClearPlaylistItemsResponse$Outbound; -} - -export function clearPlaylistItemsResponseToJSON( - clearPlaylistItemsResponse: ClearPlaylistItemsResponse, -): string { - return JSON.stringify( - ClearPlaylistItemsResponse$outboundSchema.parse(clearPlaylistItemsResponse), - ); -} - export function clearPlaylistItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/clearplayqueue.ts b/src/sdk/models/operations/clearplayqueue.ts index 2a062462..eb511845 100644 --- a/src/sdk/models/operations/clearplayqueue.ts +++ b/src/sdk/models/operations/clearplayqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,149 +128,6 @@ export type ClearPlayQueueResponse = { | undefined; }; -/** @internal */ -export const ClearPlayQueueGlobals$inboundSchema: z.ZodType< - ClearPlayQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ClearPlayQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ClearPlayQueueGlobals$outboundSchema: z.ZodType< - ClearPlayQueueGlobals$Outbound, - z.ZodTypeDef, - ClearPlayQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlayQueueGlobals$ { - /** @deprecated use `ClearPlayQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = ClearPlayQueueGlobals$inboundSchema; - /** @deprecated use `ClearPlayQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = ClearPlayQueueGlobals$outboundSchema; - /** @deprecated use `ClearPlayQueueGlobals$Outbound` instead. */ - export type Outbound = ClearPlayQueueGlobals$Outbound; -} - -export function clearPlayQueueGlobalsToJSON( - clearPlayQueueGlobals: ClearPlayQueueGlobals, -): string { - return JSON.stringify( - ClearPlayQueueGlobals$outboundSchema.parse(clearPlayQueueGlobals), - ); -} - -export function clearPlayQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlayQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlayQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const ClearPlayQueueRequest$inboundSchema: z.ZodType< - ClearPlayQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ClearPlayQueueRequest$Outbound = { accepts: string; @@ -320,19 +177,6 @@ export const ClearPlayQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlayQueueRequest$ { - /** @deprecated use `ClearPlayQueueRequest$inboundSchema` instead. */ - export const inboundSchema = ClearPlayQueueRequest$inboundSchema; - /** @deprecated use `ClearPlayQueueRequest$outboundSchema` instead. */ - export const outboundSchema = ClearPlayQueueRequest$outboundSchema; - /** @deprecated use `ClearPlayQueueRequest$Outbound` instead. */ - export type Outbound = ClearPlayQueueRequest$Outbound; -} - export function clearPlayQueueRequestToJSON( clearPlayQueueRequest: ClearPlayQueueRequest, ): string { @@ -341,16 +185,6 @@ export function clearPlayQueueRequestToJSON( ); } -export function clearPlayQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClearPlayQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClearPlayQueueRequest' from JSON`, - ); -} - /** @internal */ export const ClearPlayQueueResponse$inboundSchema: z.ZodType< ClearPlayQueueResponse, @@ -371,59 +205,6 @@ export const ClearPlayQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ClearPlayQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ClearPlayQueueResponse$outboundSchema: z.ZodType< - ClearPlayQueueResponse$Outbound, - z.ZodTypeDef, - ClearPlayQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlayQueueResponse$ { - /** @deprecated use `ClearPlayQueueResponse$inboundSchema` instead. */ - export const inboundSchema = ClearPlayQueueResponse$inboundSchema; - /** @deprecated use `ClearPlayQueueResponse$outboundSchema` instead. */ - export const outboundSchema = ClearPlayQueueResponse$outboundSchema; - /** @deprecated use `ClearPlayQueueResponse$Outbound` instead. */ - export type Outbound = ClearPlayQueueResponse$Outbound; -} - -export function clearPlayQueueResponseToJSON( - clearPlayQueueResponse: ClearPlayQueueResponse, -): string { - return JSON.stringify( - ClearPlayQueueResponse$outboundSchema.parse(clearPlayQueueResponse), - ); -} - export function clearPlayQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/computechannelmap.ts b/src/sdk/models/operations/computechannelmap.ts index e1c62078..db0bd745 100644 --- a/src/sdk/models/operations/computechannelmap.ts +++ b/src/sdk/models/operations/computechannelmap.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -176,150 +176,6 @@ export type ComputeChannelMapResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ComputeChannelMapGlobals$inboundSchema: z.ZodType< - ComputeChannelMapGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ComputeChannelMapGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ComputeChannelMapGlobals$outboundSchema: z.ZodType< - ComputeChannelMapGlobals$Outbound, - z.ZodTypeDef, - ComputeChannelMapGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapGlobals$ { - /** @deprecated use `ComputeChannelMapGlobals$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapGlobals$inboundSchema; - /** @deprecated use `ComputeChannelMapGlobals$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapGlobals$outboundSchema; - /** @deprecated use `ComputeChannelMapGlobals$Outbound` instead. */ - export type Outbound = ComputeChannelMapGlobals$Outbound; -} - -export function computeChannelMapGlobalsToJSON( - computeChannelMapGlobals: ComputeChannelMapGlobals, -): string { - return JSON.stringify( - ComputeChannelMapGlobals$outboundSchema.parse(computeChannelMapGlobals), - ); -} - -export function computeChannelMapGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComputeChannelMapGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComputeChannelMapGlobals' from JSON`, - ); -} - -/** @internal */ -export const ComputeChannelMapRequest$inboundSchema: z.ZodType< - ComputeChannelMapRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceQueryParameter: z.string(), - lineup: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ComputeChannelMapRequest$Outbound = { accepts: string; @@ -371,19 +227,6 @@ export const ComputeChannelMapRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapRequest$ { - /** @deprecated use `ComputeChannelMapRequest$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapRequest$inboundSchema; - /** @deprecated use `ComputeChannelMapRequest$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapRequest$outboundSchema; - /** @deprecated use `ComputeChannelMapRequest$Outbound` instead. */ - export type Outbound = ComputeChannelMapRequest$Outbound; -} - export function computeChannelMapRequestToJSON( computeChannelMapRequest: ComputeChannelMapRequest, ): string { @@ -392,16 +235,6 @@ export function computeChannelMapRequestToJSON( ); } -export function computeChannelMapRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComputeChannelMapRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComputeChannelMapRequest' from JSON`, - ); -} - /** @internal */ export const ComputeChannelMapChannelMapping$inboundSchema: z.ZodType< ComputeChannelMapChannelMapping, @@ -414,49 +247,6 @@ export const ComputeChannelMapChannelMapping$inboundSchema: z.ZodType< lineupIdentifier: z.string().optional(), }); -/** @internal */ -export type ComputeChannelMapChannelMapping$Outbound = { - channelKey?: string | undefined; - deviceIdentifier?: string | undefined; - favorite?: boolean | undefined; - lineupIdentifier?: string | undefined; -}; - -/** @internal */ -export const ComputeChannelMapChannelMapping$outboundSchema: z.ZodType< - ComputeChannelMapChannelMapping$Outbound, - z.ZodTypeDef, - ComputeChannelMapChannelMapping -> = z.object({ - channelKey: z.string().optional(), - deviceIdentifier: z.string().optional(), - favorite: z.boolean().optional(), - lineupIdentifier: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapChannelMapping$ { - /** @deprecated use `ComputeChannelMapChannelMapping$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapChannelMapping$inboundSchema; - /** @deprecated use `ComputeChannelMapChannelMapping$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapChannelMapping$outboundSchema; - /** @deprecated use `ComputeChannelMapChannelMapping$Outbound` instead. */ - export type Outbound = ComputeChannelMapChannelMapping$Outbound; -} - -export function computeChannelMapChannelMappingToJSON( - computeChannelMapChannelMapping: ComputeChannelMapChannelMapping, -): string { - return JSON.stringify( - ComputeChannelMapChannelMapping$outboundSchema.parse( - computeChannelMapChannelMapping, - ), - ); -} - export function computeChannelMapChannelMappingFromJSON( jsonString: string, ): SafeParseResult { @@ -486,57 +276,6 @@ export const ComputeChannelMapMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ComputeChannelMapMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - ChannelMapping?: Array | undefined; -}; - -/** @internal */ -export const ComputeChannelMapMediaContainer$outboundSchema: z.ZodType< - ComputeChannelMapMediaContainer$Outbound, - z.ZodTypeDef, - ComputeChannelMapMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - channelMapping: z.array( - z.lazy(() => ComputeChannelMapChannelMapping$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - channelMapping: "ChannelMapping", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapMediaContainer$ { - /** @deprecated use `ComputeChannelMapMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapMediaContainer$inboundSchema; - /** @deprecated use `ComputeChannelMapMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapMediaContainer$outboundSchema; - /** @deprecated use `ComputeChannelMapMediaContainer$Outbound` instead. */ - export type Outbound = ComputeChannelMapMediaContainer$Outbound; -} - -export function computeChannelMapMediaContainerToJSON( - computeChannelMapMediaContainer: ComputeChannelMapMediaContainer, -): string { - return JSON.stringify( - ComputeChannelMapMediaContainer$outboundSchema.parse( - computeChannelMapMediaContainer, - ), - ); -} - export function computeChannelMapMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -561,48 +300,6 @@ export const ComputeChannelMapResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ComputeChannelMapResponseBody$Outbound = { - MediaContainer?: ComputeChannelMapMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ComputeChannelMapResponseBody$outboundSchema: z.ZodType< - ComputeChannelMapResponseBody$Outbound, - z.ZodTypeDef, - ComputeChannelMapResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ComputeChannelMapMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapResponseBody$ { - /** @deprecated use `ComputeChannelMapResponseBody$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapResponseBody$inboundSchema; - /** @deprecated use `ComputeChannelMapResponseBody$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapResponseBody$outboundSchema; - /** @deprecated use `ComputeChannelMapResponseBody$Outbound` instead. */ - export type Outbound = ComputeChannelMapResponseBody$Outbound; -} - -export function computeChannelMapResponseBodyToJSON( - computeChannelMapResponseBody: ComputeChannelMapResponseBody, -): string { - return JSON.stringify( - ComputeChannelMapResponseBody$outboundSchema.parse( - computeChannelMapResponseBody, - ), - ); -} - export function computeChannelMapResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -623,7 +320,7 @@ export const ComputeChannelMapResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => ComputeChannelMapResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -633,58 +330,6 @@ export const ComputeChannelMapResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ComputeChannelMapResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ComputeChannelMapResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ComputeChannelMapResponse$outboundSchema: z.ZodType< - ComputeChannelMapResponse$Outbound, - z.ZodTypeDef, - ComputeChannelMapResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ComputeChannelMapResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComputeChannelMapResponse$ { - /** @deprecated use `ComputeChannelMapResponse$inboundSchema` instead. */ - export const inboundSchema = ComputeChannelMapResponse$inboundSchema; - /** @deprecated use `ComputeChannelMapResponse$outboundSchema` instead. */ - export const outboundSchema = ComputeChannelMapResponse$outboundSchema; - /** @deprecated use `ComputeChannelMapResponse$Outbound` instead. */ - export type Outbound = ComputeChannelMapResponse$Outbound; -} - -export function computeChannelMapResponseToJSON( - computeChannelMapResponse: ComputeChannelMapResponse, -): string { - return JSON.stringify( - ComputeChannelMapResponse$outboundSchema.parse(computeChannelMapResponse), - ); -} - export function computeChannelMapResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/connectwebsocket.ts b/src/sdk/models/operations/connectwebsocket.ts index 19ee489c..98ab28d2 100644 --- a/src/sdk/models/operations/connectwebsocket.ts +++ b/src/sdk/models/operations/connectwebsocket.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,149 +133,6 @@ export type ConnectWebSocketResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const ConnectWebSocketGlobals$inboundSchema: z.ZodType< - ConnectWebSocketGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ConnectWebSocketGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ConnectWebSocketGlobals$outboundSchema: z.ZodType< - ConnectWebSocketGlobals$Outbound, - z.ZodTypeDef, - ConnectWebSocketGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectWebSocketGlobals$ { - /** @deprecated use `ConnectWebSocketGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectWebSocketGlobals$inboundSchema; - /** @deprecated use `ConnectWebSocketGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectWebSocketGlobals$outboundSchema; - /** @deprecated use `ConnectWebSocketGlobals$Outbound` instead. */ - export type Outbound = ConnectWebSocketGlobals$Outbound; -} - -export function connectWebSocketGlobalsToJSON( - connectWebSocketGlobals: ConnectWebSocketGlobals, -): string { - return JSON.stringify( - ConnectWebSocketGlobals$outboundSchema.parse(connectWebSocketGlobals), - ); -} - -export function connectWebSocketGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectWebSocketGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectWebSocketGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectWebSocketRequest$inboundSchema: z.ZodType< - ConnectWebSocketRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - filter: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ConnectWebSocketRequest$Outbound = { accepts: string; @@ -325,19 +182,6 @@ export const ConnectWebSocketRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectWebSocketRequest$ { - /** @deprecated use `ConnectWebSocketRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectWebSocketRequest$inboundSchema; - /** @deprecated use `ConnectWebSocketRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectWebSocketRequest$outboundSchema; - /** @deprecated use `ConnectWebSocketRequest$Outbound` instead. */ - export type Outbound = ConnectWebSocketRequest$Outbound; -} - export function connectWebSocketRequestToJSON( connectWebSocketRequest: ConnectWebSocketRequest, ): string { @@ -346,16 +190,6 @@ export function connectWebSocketRequestToJSON( ); } -export function connectWebSocketRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectWebSocketRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectWebSocketRequest' from JSON`, - ); -} - /** @internal */ export const ConnectWebSocketResponse$inboundSchema: z.ZodType< ConnectWebSocketResponse, @@ -375,56 +209,6 @@ export const ConnectWebSocketResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectWebSocketResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const ConnectWebSocketResponse$outboundSchema: z.ZodType< - ConnectWebSocketResponse$Outbound, - z.ZodTypeDef, - ConnectWebSocketResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectWebSocketResponse$ { - /** @deprecated use `ConnectWebSocketResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectWebSocketResponse$inboundSchema; - /** @deprecated use `ConnectWebSocketResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectWebSocketResponse$outboundSchema; - /** @deprecated use `ConnectWebSocketResponse$Outbound` instead. */ - export type Outbound = ConnectWebSocketResponse$Outbound; -} - -export function connectWebSocketResponseToJSON( - connectWebSocketResponse: ConnectWebSocketResponse, -): string { - return JSON.stringify( - ConnectWebSocketResponse$outboundSchema.parse(connectWebSocketResponse), - ); -} - export function connectWebSocketResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createcollection.ts b/src/sdk/models/operations/createcollection.ts index 64ad07cb..c4dfda1f 100644 --- a/src/sdk/models/operations/createcollection.ts +++ b/src/sdk/models/operations/createcollection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -142,153 +142,6 @@ export type CreateCollectionResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const CreateCollectionGlobals$inboundSchema: z.ZodType< - CreateCollectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreateCollectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreateCollectionGlobals$outboundSchema: z.ZodType< - CreateCollectionGlobals$Outbound, - z.ZodTypeDef, - CreateCollectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCollectionGlobals$ { - /** @deprecated use `CreateCollectionGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateCollectionGlobals$inboundSchema; - /** @deprecated use `CreateCollectionGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateCollectionGlobals$outboundSchema; - /** @deprecated use `CreateCollectionGlobals$Outbound` instead. */ - export type Outbound = CreateCollectionGlobals$Outbound; -} - -export function createCollectionGlobalsToJSON( - createCollectionGlobals: CreateCollectionGlobals, -): string { - return JSON.stringify( - CreateCollectionGlobals$outboundSchema.parse(createCollectionGlobals), - ); -} - -export function createCollectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCollectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCollectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreateCollectionRequest$inboundSchema: z.ZodType< - CreateCollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.string(), - title: z.string().optional(), - smart: z.boolean().optional(), - uri: z.string().optional(), - type: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreateCollectionRequest$Outbound = { accepts: string; @@ -346,19 +199,6 @@ export const CreateCollectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCollectionRequest$ { - /** @deprecated use `CreateCollectionRequest$inboundSchema` instead. */ - export const inboundSchema = CreateCollectionRequest$inboundSchema; - /** @deprecated use `CreateCollectionRequest$outboundSchema` instead. */ - export const outboundSchema = CreateCollectionRequest$outboundSchema; - /** @deprecated use `CreateCollectionRequest$Outbound` instead. */ - export type Outbound = CreateCollectionRequest$Outbound; -} - export function createCollectionRequestToJSON( createCollectionRequest: CreateCollectionRequest, ): string { @@ -367,16 +207,6 @@ export function createCollectionRequestToJSON( ); } -export function createCollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCollectionRequest' from JSON`, - ); -} - /** @internal */ export const CreateCollectionResponse$inboundSchema: z.ZodType< CreateCollectionResponse, @@ -397,59 +227,6 @@ export const CreateCollectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCollectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const CreateCollectionResponse$outboundSchema: z.ZodType< - CreateCollectionResponse$Outbound, - z.ZodTypeDef, - CreateCollectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCollectionResponse$ { - /** @deprecated use `CreateCollectionResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCollectionResponse$inboundSchema; - /** @deprecated use `CreateCollectionResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCollectionResponse$outboundSchema; - /** @deprecated use `CreateCollectionResponse$Outbound` instead. */ - export type Outbound = CreateCollectionResponse$Outbound; -} - -export function createCollectionResponseToJSON( - createCollectionResponse: CreateCollectionResponse, -): string { - return JSON.stringify( - CreateCollectionResponse$outboundSchema.parse(createCollectionResponse), - ); -} - export function createCollectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createcustomhub.ts b/src/sdk/models/operations/createcustomhub.ts index 140aef5f..df6be747 100644 --- a/src/sdk/models/operations/createcustomhub.ts +++ b/src/sdk/models/operations/createcustomhub.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -138,153 +138,6 @@ export type CreateCustomHubResponse = { rawResponse: Response; }; -/** @internal */ -export const CreateCustomHubGlobals$inboundSchema: z.ZodType< - CreateCustomHubGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreateCustomHubGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreateCustomHubGlobals$outboundSchema: z.ZodType< - CreateCustomHubGlobals$Outbound, - z.ZodTypeDef, - CreateCustomHubGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomHubGlobals$ { - /** @deprecated use `CreateCustomHubGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateCustomHubGlobals$inboundSchema; - /** @deprecated use `CreateCustomHubGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateCustomHubGlobals$outboundSchema; - /** @deprecated use `CreateCustomHubGlobals$Outbound` instead. */ - export type Outbound = CreateCustomHubGlobals$Outbound; -} - -export function createCustomHubGlobalsToJSON( - createCustomHubGlobals: CreateCustomHubGlobals, -): string { - return JSON.stringify( - CreateCustomHubGlobals$outboundSchema.parse(createCustomHubGlobals), - ); -} - -export function createCustomHubGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCustomHubGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCustomHubGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreateCustomHubRequest$inboundSchema: z.ZodType< - CreateCustomHubRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - metadataItemId: z.number().int(), - promotedToRecommended: shared.BoolInt$inboundSchema.optional(), - promotedToOwnHome: shared.BoolInt$inboundSchema.optional(), - promotedToSharedHome: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreateCustomHubRequest$Outbound = { accepts: string; @@ -342,19 +195,6 @@ export const CreateCustomHubRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomHubRequest$ { - /** @deprecated use `CreateCustomHubRequest$inboundSchema` instead. */ - export const inboundSchema = CreateCustomHubRequest$inboundSchema; - /** @deprecated use `CreateCustomHubRequest$outboundSchema` instead. */ - export const outboundSchema = CreateCustomHubRequest$outboundSchema; - /** @deprecated use `CreateCustomHubRequest$Outbound` instead. */ - export type Outbound = CreateCustomHubRequest$Outbound; -} - export function createCustomHubRequestToJSON( createCustomHubRequest: CreateCustomHubRequest, ): string { @@ -363,16 +203,6 @@ export function createCustomHubRequestToJSON( ); } -export function createCustomHubRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCustomHubRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCustomHubRequest' from JSON`, - ); -} - /** @internal */ export const CreateCustomHubResponse$inboundSchema: z.ZodType< CreateCustomHubResponse, @@ -390,53 +220,6 @@ export const CreateCustomHubResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCustomHubResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CreateCustomHubResponse$outboundSchema: z.ZodType< - CreateCustomHubResponse$Outbound, - z.ZodTypeDef, - CreateCustomHubResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomHubResponse$ { - /** @deprecated use `CreateCustomHubResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomHubResponse$inboundSchema; - /** @deprecated use `CreateCustomHubResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomHubResponse$outboundSchema; - /** @deprecated use `CreateCustomHubResponse$Outbound` instead. */ - export type Outbound = CreateCustomHubResponse$Outbound; -} - -export function createCustomHubResponseToJSON( - createCustomHubResponse: CreateCustomHubResponse, -): string { - return JSON.stringify( - CreateCustomHubResponse$outboundSchema.parse(createCustomHubResponse), - ); -} - export function createCustomHubResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createdownloadqueue.ts b/src/sdk/models/operations/createdownloadqueue.ts index b58fdd53..03a3db01 100644 --- a/src/sdk/models/operations/createdownloadqueue.ts +++ b/src/sdk/models/operations/createdownloadqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -98,22 +98,6 @@ export const CreateDownloadQueueStatus$inboundSchema: z.ZodNativeEnum< typeof CreateDownloadQueueStatus > = z.nativeEnum(CreateDownloadQueueStatus); -/** @internal */ -export const CreateDownloadQueueStatus$outboundSchema: z.ZodNativeEnum< - typeof CreateDownloadQueueStatus -> = CreateDownloadQueueStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDownloadQueueStatus$ { - /** @deprecated use `CreateDownloadQueueStatus$inboundSchema` instead. */ - export const inboundSchema = CreateDownloadQueueStatus$inboundSchema; - /** @deprecated use `CreateDownloadQueueStatus$outboundSchema` instead. */ - export const outboundSchema = CreateDownloadQueueStatus$outboundSchema; -} - /** @internal */ export const CreateDownloadQueueDownloadQueue$inboundSchema: z.ZodType< CreateDownloadQueueDownloadQueue, @@ -125,47 +109,6 @@ export const CreateDownloadQueueDownloadQueue$inboundSchema: z.ZodType< status: CreateDownloadQueueStatus$inboundSchema.optional(), }); -/** @internal */ -export type CreateDownloadQueueDownloadQueue$Outbound = { - id?: number | undefined; - itemCount?: number | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const CreateDownloadQueueDownloadQueue$outboundSchema: z.ZodType< - CreateDownloadQueueDownloadQueue$Outbound, - z.ZodTypeDef, - CreateDownloadQueueDownloadQueue -> = z.object({ - id: z.number().int().optional(), - itemCount: z.number().int().optional(), - status: CreateDownloadQueueStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDownloadQueueDownloadQueue$ { - /** @deprecated use `CreateDownloadQueueDownloadQueue$inboundSchema` instead. */ - export const inboundSchema = CreateDownloadQueueDownloadQueue$inboundSchema; - /** @deprecated use `CreateDownloadQueueDownloadQueue$outboundSchema` instead. */ - export const outboundSchema = CreateDownloadQueueDownloadQueue$outboundSchema; - /** @deprecated use `CreateDownloadQueueDownloadQueue$Outbound` instead. */ - export type Outbound = CreateDownloadQueueDownloadQueue$Outbound; -} - -export function createDownloadQueueDownloadQueueToJSON( - createDownloadQueueDownloadQueue: CreateDownloadQueueDownloadQueue, -): string { - return JSON.stringify( - CreateDownloadQueueDownloadQueue$outboundSchema.parse( - createDownloadQueueDownloadQueue, - ), - ); -} - export function createDownloadQueueDownloadQueueFromJSON( jsonString: string, ): SafeParseResult { @@ -195,58 +138,6 @@ export const CreateDownloadQueueMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDownloadQueueMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - DownloadQueue?: Array | undefined; -}; - -/** @internal */ -export const CreateDownloadQueueMediaContainer$outboundSchema: z.ZodType< - CreateDownloadQueueMediaContainer$Outbound, - z.ZodTypeDef, - CreateDownloadQueueMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - downloadQueue: z.array( - z.lazy(() => CreateDownloadQueueDownloadQueue$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - downloadQueue: "DownloadQueue", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDownloadQueueMediaContainer$ { - /** @deprecated use `CreateDownloadQueueMediaContainer$inboundSchema` instead. */ - export const inboundSchema = CreateDownloadQueueMediaContainer$inboundSchema; - /** @deprecated use `CreateDownloadQueueMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - CreateDownloadQueueMediaContainer$outboundSchema; - /** @deprecated use `CreateDownloadQueueMediaContainer$Outbound` instead. */ - export type Outbound = CreateDownloadQueueMediaContainer$Outbound; -} - -export function createDownloadQueueMediaContainerToJSON( - createDownloadQueueMediaContainer: CreateDownloadQueueMediaContainer, -): string { - return JSON.stringify( - CreateDownloadQueueMediaContainer$outboundSchema.parse( - createDownloadQueueMediaContainer, - ), - ); -} - export function createDownloadQueueMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -271,48 +162,6 @@ export const CreateDownloadQueueResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDownloadQueueResponseBody$Outbound = { - MediaContainer?: CreateDownloadQueueMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const CreateDownloadQueueResponseBody$outboundSchema: z.ZodType< - CreateDownloadQueueResponseBody$Outbound, - z.ZodTypeDef, - CreateDownloadQueueResponseBody -> = z.object({ - mediaContainer: z.lazy(() => CreateDownloadQueueMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDownloadQueueResponseBody$ { - /** @deprecated use `CreateDownloadQueueResponseBody$inboundSchema` instead. */ - export const inboundSchema = CreateDownloadQueueResponseBody$inboundSchema; - /** @deprecated use `CreateDownloadQueueResponseBody$outboundSchema` instead. */ - export const outboundSchema = CreateDownloadQueueResponseBody$outboundSchema; - /** @deprecated use `CreateDownloadQueueResponseBody$Outbound` instead. */ - export type Outbound = CreateDownloadQueueResponseBody$Outbound; -} - -export function createDownloadQueueResponseBodyToJSON( - createDownloadQueueResponseBody: CreateDownloadQueueResponseBody, -): string { - return JSON.stringify( - CreateDownloadQueueResponseBody$outboundSchema.parse( - createDownloadQueueResponseBody, - ), - ); -} - export function createDownloadQueueResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -342,58 +191,6 @@ export const CreateDownloadQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDownloadQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: CreateDownloadQueueResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const CreateDownloadQueueResponse$outboundSchema: z.ZodType< - CreateDownloadQueueResponse$Outbound, - z.ZodTypeDef, - CreateDownloadQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => CreateDownloadQueueResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDownloadQueueResponse$ { - /** @deprecated use `CreateDownloadQueueResponse$inboundSchema` instead. */ - export const inboundSchema = CreateDownloadQueueResponse$inboundSchema; - /** @deprecated use `CreateDownloadQueueResponse$outboundSchema` instead. */ - export const outboundSchema = CreateDownloadQueueResponse$outboundSchema; - /** @deprecated use `CreateDownloadQueueResponse$Outbound` instead. */ - export type Outbound = CreateDownloadQueueResponse$Outbound; -} - -export function createDownloadQueueResponseToJSON( - createDownloadQueueResponse: CreateDownloadQueueResponse, -): string { - return JSON.stringify( - CreateDownloadQueueResponse$outboundSchema.parse( - createDownloadQueueResponse, - ), - ); -} - export function createDownloadQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createdvr.ts b/src/sdk/models/operations/createdvr.ts index 64243ba2..fab07140 100644 --- a/src/sdk/models/operations/createdvr.ts +++ b/src/sdk/models/operations/createdvr.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -137,151 +137,6 @@ export type CreateDVRResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const CreateDVRGlobals$inboundSchema: z.ZodType< - CreateDVRGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreateDVRGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreateDVRGlobals$outboundSchema: z.ZodType< - CreateDVRGlobals$Outbound, - z.ZodTypeDef, - CreateDVRGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDVRGlobals$ { - /** @deprecated use `CreateDVRGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateDVRGlobals$inboundSchema; - /** @deprecated use `CreateDVRGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateDVRGlobals$outboundSchema; - /** @deprecated use `CreateDVRGlobals$Outbound` instead. */ - export type Outbound = CreateDVRGlobals$Outbound; -} - -export function createDVRGlobalsToJSON( - createDVRGlobals: CreateDVRGlobals, -): string { - return JSON.stringify( - CreateDVRGlobals$outboundSchema.parse(createDVRGlobals), - ); -} - -export function createDVRGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateDVRGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateDVRGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreateDVRRequest$inboundSchema: z.ZodType< - CreateDVRRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - lineup: z.string().optional(), - deviceQueryParameter: z.array(z.string()).optional(), - language: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreateDVRRequest$Outbound = { accepts: string; @@ -335,19 +190,6 @@ export const CreateDVRRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDVRRequest$ { - /** @deprecated use `CreateDVRRequest$inboundSchema` instead. */ - export const inboundSchema = CreateDVRRequest$inboundSchema; - /** @deprecated use `CreateDVRRequest$outboundSchema` instead. */ - export const outboundSchema = CreateDVRRequest$outboundSchema; - /** @deprecated use `CreateDVRRequest$Outbound` instead. */ - export type Outbound = CreateDVRRequest$Outbound; -} - export function createDVRRequestToJSON( createDVRRequest: CreateDVRRequest, ): string { @@ -356,16 +198,6 @@ export function createDVRRequestToJSON( ); } -export function createDVRRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateDVRRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateDVRRequest' from JSON`, - ); -} - /** @internal */ export const CreateDVRResponse$inboundSchema: z.ZodType< CreateDVRResponse, @@ -377,7 +209,7 @@ export const CreateDVRResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), "dvrRequestHandler_slash-get-responses-200": shared .DvrRequestHandlerSlashGetResponses200$inboundSchema.optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -389,63 +221,6 @@ export const CreateDVRResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDVRResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "dvrRequestHandler_slash-get-responses-200"?: - | shared.DvrRequestHandlerSlashGetResponses200$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const CreateDVRResponse$outboundSchema: z.ZodType< - CreateDVRResponse$Outbound, - z.ZodTypeDef, - CreateDVRResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - dvrRequestHandlerSlashGetResponses200: shared - .DvrRequestHandlerSlashGetResponses200$outboundSchema.optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - dvrRequestHandlerSlashGetResponses200: - "dvrRequestHandler_slash-get-responses-200", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDVRResponse$ { - /** @deprecated use `CreateDVRResponse$inboundSchema` instead. */ - export const inboundSchema = CreateDVRResponse$inboundSchema; - /** @deprecated use `CreateDVRResponse$outboundSchema` instead. */ - export const outboundSchema = CreateDVRResponse$outboundSchema; - /** @deprecated use `CreateDVRResponse$Outbound` instead. */ - export type Outbound = CreateDVRResponse$Outbound; -} - -export function createDVRResponseToJSON( - createDVRResponse: CreateDVRResponse, -): string { - return JSON.stringify( - CreateDVRResponse$outboundSchema.parse(createDVRResponse), - ); -} - export function createDVRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createmarker.ts b/src/sdk/models/operations/createmarker.ts index d95fa66a..f717b956 100644 --- a/src/sdk/models/operations/createmarker.ts +++ b/src/sdk/models/operations/createmarker.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -164,7 +164,7 @@ export type CreateMarkerMediaContainer = { startTimeOffset?: number | undefined; title?: string | undefined; type?: CreateMarkerType | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -193,123 +193,6 @@ export type CreateMarkerResponse = { object?: CreateMarkerResponseBody | undefined; }; -/** @internal */ -export const CreateMarkerGlobals$inboundSchema: z.ZodType< - CreateMarkerGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreateMarkerGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreateMarkerGlobals$outboundSchema: z.ZodType< - CreateMarkerGlobals$Outbound, - z.ZodTypeDef, - CreateMarkerGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerGlobals$ { - /** @deprecated use `CreateMarkerGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerGlobals$inboundSchema; - /** @deprecated use `CreateMarkerGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerGlobals$outboundSchema; - /** @deprecated use `CreateMarkerGlobals$Outbound` instead. */ - export type Outbound = CreateMarkerGlobals$Outbound; -} - -export function createMarkerGlobalsToJSON( - createMarkerGlobals: CreateMarkerGlobals, -): string { - return JSON.stringify( - CreateMarkerGlobals$outboundSchema.parse(createMarkerGlobals), - ); -} - -export function createMarkerGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateMarkerGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateMarkerGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreateMarkerAttributes$inboundSchema: z.ZodType< - CreateMarkerAttributes, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type CreateMarkerAttributes$Outbound = {}; @@ -320,19 +203,6 @@ export const CreateMarkerAttributes$outboundSchema: z.ZodType< CreateMarkerAttributes > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerAttributes$ { - /** @deprecated use `CreateMarkerAttributes$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerAttributes$inboundSchema; - /** @deprecated use `CreateMarkerAttributes$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerAttributes$outboundSchema; - /** @deprecated use `CreateMarkerAttributes$Outbound` instead. */ - export type Outbound = CreateMarkerAttributes$Outbound; -} - export function createMarkerAttributesToJSON( createMarkerAttributes: CreateMarkerAttributes, ): string { @@ -341,53 +211,6 @@ export function createMarkerAttributesToJSON( ); } -export function createMarkerAttributesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateMarkerAttributes$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateMarkerAttributes' from JSON`, - ); -} - -/** @internal */ -export const CreateMarkerRequest$inboundSchema: z.ZodType< - CreateMarkerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - type: z.number().int(), - startTimeOffset: z.number().int(), - endTimeOffset: z.number().int().optional(), - attributes: z.lazy(() => CreateMarkerAttributes$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreateMarkerRequest$Outbound = { accepts: string; @@ -445,19 +268,6 @@ export const CreateMarkerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerRequest$ { - /** @deprecated use `CreateMarkerRequest$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerRequest$inboundSchema; - /** @deprecated use `CreateMarkerRequest$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerRequest$outboundSchema; - /** @deprecated use `CreateMarkerRequest$Outbound` instead. */ - export type Outbound = CreateMarkerRequest$Outbound; -} - export function createMarkerRequestToJSON( createMarkerRequest: CreateMarkerRequest, ): string { @@ -466,37 +276,11 @@ export function createMarkerRequestToJSON( ); } -export function createMarkerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateMarkerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateMarkerRequest' from JSON`, - ); -} - /** @internal */ export const CreateMarkerType$inboundSchema: z.ZodNativeEnum< typeof CreateMarkerType > = z.nativeEnum(CreateMarkerType); -/** @internal */ -export const CreateMarkerType$outboundSchema: z.ZodNativeEnum< - typeof CreateMarkerType -> = CreateMarkerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerType$ { - /** @deprecated use `CreateMarkerType$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerType$inboundSchema; - /** @deprecated use `CreateMarkerType$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerType$outboundSchema; -} - /** @internal */ export const CreateMarkerMediaContainer$inboundSchema: z.ZodType< CreateMarkerMediaContainer, @@ -519,68 +303,6 @@ export const CreateMarkerMediaContainer$inboundSchema: z.ZodType< true, ); -/** @internal */ -export type CreateMarkerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - color?: string | undefined; - endTimeOffset?: number | undefined; - id?: number | undefined; - startTimeOffset?: number | undefined; - title?: string | undefined; - type?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const CreateMarkerMediaContainer$outboundSchema: z.ZodType< - CreateMarkerMediaContainer$Outbound, - z.ZodTypeDef, - CreateMarkerMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - color: z.string().optional(), - endTimeOffset: z.number().int().optional(), - id: z.number().int().optional(), - startTimeOffset: z.number().int().optional(), - title: z.string().optional(), - type: CreateMarkerType$outboundSchema.optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerMediaContainer$ { - /** @deprecated use `CreateMarkerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerMediaContainer$inboundSchema; - /** @deprecated use `CreateMarkerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerMediaContainer$outboundSchema; - /** @deprecated use `CreateMarkerMediaContainer$Outbound` instead. */ - export type Outbound = CreateMarkerMediaContainer$Outbound; -} - -export function createMarkerMediaContainerToJSON( - createMarkerMediaContainer: CreateMarkerMediaContainer, -): string { - return JSON.stringify( - CreateMarkerMediaContainer$outboundSchema.parse(createMarkerMediaContainer), - ); -} - export function createMarkerMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -605,46 +327,6 @@ export const CreateMarkerResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateMarkerResponseBody$Outbound = { - MediaContainer?: CreateMarkerMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const CreateMarkerResponseBody$outboundSchema: z.ZodType< - CreateMarkerResponseBody$Outbound, - z.ZodTypeDef, - CreateMarkerResponseBody -> = z.object({ - mediaContainer: z.lazy(() => CreateMarkerMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerResponseBody$ { - /** @deprecated use `CreateMarkerResponseBody$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerResponseBody$inboundSchema; - /** @deprecated use `CreateMarkerResponseBody$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerResponseBody$outboundSchema; - /** @deprecated use `CreateMarkerResponseBody$Outbound` instead. */ - export type Outbound = CreateMarkerResponseBody$Outbound; -} - -export function createMarkerResponseBodyToJSON( - createMarkerResponseBody: CreateMarkerResponseBody, -): string { - return JSON.stringify( - CreateMarkerResponseBody$outboundSchema.parse(createMarkerResponseBody), - ); -} - export function createMarkerResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -673,55 +355,6 @@ export const CreateMarkerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateMarkerResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: CreateMarkerResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const CreateMarkerResponse$outboundSchema: z.ZodType< - CreateMarkerResponse$Outbound, - z.ZodTypeDef, - CreateMarkerResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => CreateMarkerResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMarkerResponse$ { - /** @deprecated use `CreateMarkerResponse$inboundSchema` instead. */ - export const inboundSchema = CreateMarkerResponse$inboundSchema; - /** @deprecated use `CreateMarkerResponse$outboundSchema` instead. */ - export const outboundSchema = CreateMarkerResponse$outboundSchema; - /** @deprecated use `CreateMarkerResponse$Outbound` instead. */ - export type Outbound = CreateMarkerResponse$Outbound; -} - -export function createMarkerResponseToJSON( - createMarkerResponse: CreateMarkerResponse, -): string { - return JSON.stringify( - CreateMarkerResponse$outboundSchema.parse(createMarkerResponse), - ); -} - export function createMarkerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createplaylist.ts b/src/sdk/models/operations/createplaylist.ts index 4e0f04ba..bb7c1758 100644 --- a/src/sdk/models/operations/createplaylist.ts +++ b/src/sdk/models/operations/createplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -132,150 +132,6 @@ export type CreatePlaylistResponse = { | undefined; }; -/** @internal */ -export const CreatePlaylistGlobals$inboundSchema: z.ZodType< - CreatePlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreatePlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreatePlaylistGlobals$outboundSchema: z.ZodType< - CreatePlaylistGlobals$Outbound, - z.ZodTypeDef, - CreatePlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlaylistGlobals$ { - /** @deprecated use `CreatePlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = CreatePlaylistGlobals$inboundSchema; - /** @deprecated use `CreatePlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = CreatePlaylistGlobals$outboundSchema; - /** @deprecated use `CreatePlaylistGlobals$Outbound` instead. */ - export type Outbound = CreatePlaylistGlobals$Outbound; -} - -export function createPlaylistGlobalsToJSON( - createPlaylistGlobals: CreatePlaylistGlobals, -): string { - return JSON.stringify( - CreatePlaylistGlobals$outboundSchema.parse(createPlaylistGlobals), - ); -} - -export function createPlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatePlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatePlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreatePlaylistRequest$inboundSchema: z.ZodType< - CreatePlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - uri: z.string().optional(), - playQueueID: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreatePlaylistRequest$Outbound = { accepts: string; @@ -327,19 +183,6 @@ export const CreatePlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlaylistRequest$ { - /** @deprecated use `CreatePlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = CreatePlaylistRequest$inboundSchema; - /** @deprecated use `CreatePlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = CreatePlaylistRequest$outboundSchema; - /** @deprecated use `CreatePlaylistRequest$Outbound` instead. */ - export type Outbound = CreatePlaylistRequest$Outbound; -} - export function createPlaylistRequestToJSON( createPlaylistRequest: CreatePlaylistRequest, ): string { @@ -348,16 +191,6 @@ export function createPlaylistRequestToJSON( ); } -export function createPlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatePlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatePlaylistRequest' from JSON`, - ); -} - /** @internal */ export const CreatePlaylistResponse$inboundSchema: z.ZodType< CreatePlaylistResponse, @@ -378,59 +211,6 @@ export const CreatePlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const CreatePlaylistResponse$outboundSchema: z.ZodType< - CreatePlaylistResponse$Outbound, - z.ZodTypeDef, - CreatePlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlaylistResponse$ { - /** @deprecated use `CreatePlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = CreatePlaylistResponse$inboundSchema; - /** @deprecated use `CreatePlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = CreatePlaylistResponse$outboundSchema; - /** @deprecated use `CreatePlaylistResponse$Outbound` instead. */ - export type Outbound = CreatePlaylistResponse$Outbound; -} - -export function createPlaylistResponseToJSON( - createPlaylistResponse: CreatePlaylistResponse, -): string { - return JSON.stringify( - CreatePlaylistResponse$outboundSchema.parse(createPlaylistResponse), - ); -} - export function createPlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createplayqueue.ts b/src/sdk/models/operations/createplayqueue.ts index 43be032f..de2ca171 100644 --- a/src/sdk/models/operations/createplayqueue.ts +++ b/src/sdk/models/operations/createplayqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -239,178 +239,10 @@ export type CreatePlayQueueResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const CreatePlayQueueGlobals$inboundSchema: z.ZodType< - CreatePlayQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreatePlayQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreatePlayQueueGlobals$outboundSchema: z.ZodType< - CreatePlayQueueGlobals$Outbound, - z.ZodTypeDef, - CreatePlayQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueGlobals$ { - /** @deprecated use `CreatePlayQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueGlobals$inboundSchema; - /** @deprecated use `CreatePlayQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueGlobals$outboundSchema; - /** @deprecated use `CreatePlayQueueGlobals$Outbound` instead. */ - export type Outbound = CreatePlayQueueGlobals$Outbound; -} - -export function createPlayQueueGlobalsToJSON( - createPlayQueueGlobals: CreatePlayQueueGlobals, -): string { - return JSON.stringify( - CreatePlayQueueGlobals$outboundSchema.parse(createPlayQueueGlobals), - ); -} - -export function createPlayQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatePlayQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatePlayQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const CreatePlayQueueType$inboundSchema: z.ZodNativeEnum< - typeof CreatePlayQueueType -> = z.nativeEnum(CreatePlayQueueType); - /** @internal */ export const CreatePlayQueueType$outboundSchema: z.ZodNativeEnum< typeof CreatePlayQueueType -> = CreatePlayQueueType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueType$ { - /** @deprecated use `CreatePlayQueueType$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueType$inboundSchema; - /** @deprecated use `CreatePlayQueueType$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueType$outboundSchema; -} - -/** @internal */ -export const CreatePlayQueueRequest$inboundSchema: z.ZodType< - CreatePlayQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - uri: z.string().optional(), - playlistID: z.number().int().optional(), - type: CreatePlayQueueType$inboundSchema, - key: z.string().optional(), - shuffle: shared.BoolInt$inboundSchema.optional(), - repeat: shared.BoolInt$inboundSchema.optional(), - continuous: shared.BoolInt$inboundSchema.optional(), - extrasPrefixCount: z.number().int().optional(), - recursive: shared.BoolInt$inboundSchema.optional(), - onDeck: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(CreatePlayQueueType); /** @internal */ export type CreatePlayQueueRequest$Outbound = { @@ -479,19 +311,6 @@ export const CreatePlayQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueRequest$ { - /** @deprecated use `CreatePlayQueueRequest$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueRequest$inboundSchema; - /** @deprecated use `CreatePlayQueueRequest$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueRequest$outboundSchema; - /** @deprecated use `CreatePlayQueueRequest$Outbound` instead. */ - export type Outbound = CreatePlayQueueRequest$Outbound; -} - export function createPlayQueueRequestToJSON( createPlayQueueRequest: CreatePlayQueueRequest, ): string { @@ -500,16 +319,6 @@ export function createPlayQueueRequestToJSON( ); } -export function createPlayQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatePlayQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatePlayQueueRequest' from JSON`, - ); -} - /** @internal */ export const CreatePlayQueueMediaContainer$inboundSchema: z.ZodType< CreatePlayQueueMediaContainer, @@ -531,67 +340,6 @@ export const CreatePlayQueueMediaContainer$inboundSchema: z.ZodType< playQueueVersion: z.number().int().optional(), }); -/** @internal */ -export type CreatePlayQueueMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - playQueueID?: number | undefined; - playQueueLastAddedItemID?: string | undefined; - playQueueSelectedItemID?: number | undefined; - playQueueSelectedItemOffset?: number | undefined; - playQueueSelectedMetadataItemID?: number | undefined; - playQueueShuffled?: boolean | undefined; - playQueueSourceURI?: string | undefined; - playQueueTotalCount?: number | undefined; - playQueueVersion?: number | undefined; -}; - -/** @internal */ -export const CreatePlayQueueMediaContainer$outboundSchema: z.ZodType< - CreatePlayQueueMediaContainer$Outbound, - z.ZodTypeDef, - CreatePlayQueueMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - playQueueID: z.number().int().optional(), - playQueueLastAddedItemID: z.string().optional(), - playQueueSelectedItemID: z.number().int().optional(), - playQueueSelectedItemOffset: z.number().int().optional(), - playQueueSelectedMetadataItemID: z.number().int().optional(), - playQueueShuffled: z.boolean().optional(), - playQueueSourceURI: z.string().optional(), - playQueueTotalCount: z.number().int().optional(), - playQueueVersion: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueMediaContainer$ { - /** @deprecated use `CreatePlayQueueMediaContainer$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueMediaContainer$inboundSchema; - /** @deprecated use `CreatePlayQueueMediaContainer$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueMediaContainer$outboundSchema; - /** @deprecated use `CreatePlayQueueMediaContainer$Outbound` instead. */ - export type Outbound = CreatePlayQueueMediaContainer$Outbound; -} - -export function createPlayQueueMediaContainerToJSON( - createPlayQueueMediaContainer: CreatePlayQueueMediaContainer, -): string { - return JSON.stringify( - CreatePlayQueueMediaContainer$outboundSchema.parse( - createPlayQueueMediaContainer, - ), - ); -} - export function createPlayQueueMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -616,48 +364,6 @@ export const CreatePlayQueueResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePlayQueueResponseBody$Outbound = { - MediaContainer?: CreatePlayQueueMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const CreatePlayQueueResponseBody$outboundSchema: z.ZodType< - CreatePlayQueueResponseBody$Outbound, - z.ZodTypeDef, - CreatePlayQueueResponseBody -> = z.object({ - mediaContainer: z.lazy(() => CreatePlayQueueMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueResponseBody$ { - /** @deprecated use `CreatePlayQueueResponseBody$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueResponseBody$inboundSchema; - /** @deprecated use `CreatePlayQueueResponseBody$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueResponseBody$outboundSchema; - /** @deprecated use `CreatePlayQueueResponseBody$Outbound` instead. */ - export type Outbound = CreatePlayQueueResponseBody$Outbound; -} - -export function createPlayQueueResponseBodyToJSON( - createPlayQueueResponseBody: CreatePlayQueueResponseBody, -): string { - return JSON.stringify( - CreatePlayQueueResponseBody$outboundSchema.parse( - createPlayQueueResponseBody, - ), - ); -} - export function createPlayQueueResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -678,7 +384,7 @@ export const CreatePlayQueueResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => CreatePlayQueueResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -688,58 +394,6 @@ export const CreatePlayQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePlayQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: CreatePlayQueueResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const CreatePlayQueueResponse$outboundSchema: z.ZodType< - CreatePlayQueueResponse$Outbound, - z.ZodTypeDef, - CreatePlayQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => CreatePlayQueueResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlayQueueResponse$ { - /** @deprecated use `CreatePlayQueueResponse$inboundSchema` instead. */ - export const inboundSchema = CreatePlayQueueResponse$inboundSchema; - /** @deprecated use `CreatePlayQueueResponse$outboundSchema` instead. */ - export const outboundSchema = CreatePlayQueueResponse$outboundSchema; - /** @deprecated use `CreatePlayQueueResponse$Outbound` instead. */ - export type Outbound = CreatePlayQueueResponse$Outbound; -} - -export function createPlayQueueResponseToJSON( - createPlayQueueResponse: CreatePlayQueueResponse, -): string { - return JSON.stringify( - CreatePlayQueueResponse$outboundSchema.parse(createPlayQueueResponse), - ); -} - export function createPlayQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createsubscription.ts b/src/sdk/models/operations/createsubscription.ts index 6824c366..b5040b26 100644 --- a/src/sdk/models/operations/createsubscription.ts +++ b/src/sdk/models/operations/createsubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -202,120 +202,6 @@ export type CreateSubscriptionResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const CreateSubscriptionGlobals$inboundSchema: z.ZodType< - CreateSubscriptionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type CreateSubscriptionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const CreateSubscriptionGlobals$outboundSchema: z.ZodType< - CreateSubscriptionGlobals$Outbound, - z.ZodTypeDef, - CreateSubscriptionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionGlobals$ { - /** @deprecated use `CreateSubscriptionGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionGlobals$inboundSchema; - /** @deprecated use `CreateSubscriptionGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionGlobals$outboundSchema; - /** @deprecated use `CreateSubscriptionGlobals$Outbound` instead. */ - export type Outbound = CreateSubscriptionGlobals$Outbound; -} - -export function createSubscriptionGlobalsToJSON( - createSubscriptionGlobals: CreateSubscriptionGlobals, -): string { - return JSON.stringify( - CreateSubscriptionGlobals$outboundSchema.parse(createSubscriptionGlobals), - ); -} - -export function createSubscriptionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateSubscriptionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateSubscriptionGlobals' from JSON`, - ); -} - -/** @internal */ -export const Hints$inboundSchema: z.ZodType = z - .object({}); - /** @internal */ export type Hints$Outbound = {}; @@ -326,40 +212,10 @@ export const Hints$outboundSchema: z.ZodType< Hints > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Hints$ { - /** @deprecated use `Hints$inboundSchema` instead. */ - export const inboundSchema = Hints$inboundSchema; - /** @deprecated use `Hints$outboundSchema` instead. */ - export const outboundSchema = Hints$outboundSchema; - /** @deprecated use `Hints$Outbound` instead. */ - export type Outbound = Hints$Outbound; -} - export function hintsToJSON(hints: Hints): string { return JSON.stringify(Hints$outboundSchema.parse(hints)); } -export function hintsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Hints$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Hints' from JSON`, - ); -} - -/** @internal */ -export const CreateSubscriptionPrefs$inboundSchema: z.ZodType< - CreateSubscriptionPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type CreateSubscriptionPrefs$Outbound = {}; @@ -370,19 +226,6 @@ export const CreateSubscriptionPrefs$outboundSchema: z.ZodType< CreateSubscriptionPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionPrefs$ { - /** @deprecated use `CreateSubscriptionPrefs$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionPrefs$inboundSchema; - /** @deprecated use `CreateSubscriptionPrefs$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionPrefs$outboundSchema; - /** @deprecated use `CreateSubscriptionPrefs$Outbound` instead. */ - export type Outbound = CreateSubscriptionPrefs$Outbound; -} - export function createSubscriptionPrefsToJSON( createSubscriptionPrefs: CreateSubscriptionPrefs, ): string { @@ -391,20 +234,6 @@ export function createSubscriptionPrefsToJSON( ); } -export function createSubscriptionPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateSubscriptionPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateSubscriptionPrefs' from JSON`, - ); -} - -/** @internal */ -export const Params$inboundSchema: z.ZodType = z - .object({}); - /** @internal */ export type Params$Outbound = {}; @@ -415,71 +244,10 @@ export const Params$outboundSchema: z.ZodType< Params > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Params$ { - /** @deprecated use `Params$inboundSchema` instead. */ - export const inboundSchema = Params$inboundSchema; - /** @deprecated use `Params$outboundSchema` instead. */ - export const outboundSchema = Params$outboundSchema; - /** @deprecated use `Params$Outbound` instead. */ - export type Outbound = Params$Outbound; -} - export function paramsToJSON(params: Params): string { return JSON.stringify(Params$outboundSchema.parse(params)); } -export function paramsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Params$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Params' from JSON`, - ); -} - -/** @internal */ -export const CreateSubscriptionRequest$inboundSchema: z.ZodType< - CreateSubscriptionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - targetLibrarySectionID: z.number().int().optional(), - targetSectionLocationID: z.number().int().optional(), - type: z.number().int().optional(), - hints: z.lazy(() => Hints$inboundSchema).optional(), - prefs: z.lazy(() => CreateSubscriptionPrefs$inboundSchema).optional(), - params: z.lazy(() => Params$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type CreateSubscriptionRequest$Outbound = { accepts: string; @@ -539,19 +307,6 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionRequest$ { - /** @deprecated use `CreateSubscriptionRequest$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionRequest$inboundSchema; - /** @deprecated use `CreateSubscriptionRequest$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionRequest$outboundSchema; - /** @deprecated use `CreateSubscriptionRequest$Outbound` instead. */ - export type Outbound = CreateSubscriptionRequest$Outbound; -} - export function createSubscriptionRequestToJSON( createSubscriptionRequest: CreateSubscriptionRequest, ): string { @@ -560,16 +315,6 @@ export function createSubscriptionRequestToJSON( ); } -export function createSubscriptionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateSubscriptionRequest' from JSON`, - ); -} - /** @internal */ export const CreateSubscriptionMediaContainer$inboundSchema: z.ZodType< CreateSubscriptionMediaContainer, @@ -587,56 +332,6 @@ export const CreateSubscriptionMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSubscriptionMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - MediaSubscription?: Array | undefined; -}; - -/** @internal */ -export const CreateSubscriptionMediaContainer$outboundSchema: z.ZodType< - CreateSubscriptionMediaContainer$Outbound, - z.ZodTypeDef, - CreateSubscriptionMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - mediaSubscription: z.array(shared.MediaSubscription$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaSubscription: "MediaSubscription", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionMediaContainer$ { - /** @deprecated use `CreateSubscriptionMediaContainer$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionMediaContainer$inboundSchema; - /** @deprecated use `CreateSubscriptionMediaContainer$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionMediaContainer$outboundSchema; - /** @deprecated use `CreateSubscriptionMediaContainer$Outbound` instead. */ - export type Outbound = CreateSubscriptionMediaContainer$Outbound; -} - -export function createSubscriptionMediaContainerToJSON( - createSubscriptionMediaContainer: CreateSubscriptionMediaContainer, -): string { - return JSON.stringify( - CreateSubscriptionMediaContainer$outboundSchema.parse( - createSubscriptionMediaContainer, - ), - ); -} - export function createSubscriptionMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -661,48 +356,6 @@ export const CreateSubscriptionResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSubscriptionResponseBody$Outbound = { - MediaContainer?: CreateSubscriptionMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const CreateSubscriptionResponseBody$outboundSchema: z.ZodType< - CreateSubscriptionResponseBody$Outbound, - z.ZodTypeDef, - CreateSubscriptionResponseBody -> = z.object({ - mediaContainer: z.lazy(() => CreateSubscriptionMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionResponseBody$ { - /** @deprecated use `CreateSubscriptionResponseBody$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionResponseBody$inboundSchema; - /** @deprecated use `CreateSubscriptionResponseBody$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionResponseBody$outboundSchema; - /** @deprecated use `CreateSubscriptionResponseBody$Outbound` instead. */ - export type Outbound = CreateSubscriptionResponseBody$Outbound; -} - -export function createSubscriptionResponseBodyToJSON( - createSubscriptionResponseBody: CreateSubscriptionResponseBody, -): string { - return JSON.stringify( - CreateSubscriptionResponseBody$outboundSchema.parse( - createSubscriptionResponseBody, - ), - ); -} - export function createSubscriptionResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -723,7 +376,7 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => CreateSubscriptionResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -733,59 +386,6 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSubscriptionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: CreateSubscriptionResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const CreateSubscriptionResponse$outboundSchema: z.ZodType< - CreateSubscriptionResponse$Outbound, - z.ZodTypeDef, - CreateSubscriptionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => CreateSubscriptionResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubscriptionResponse$ { - /** @deprecated use `CreateSubscriptionResponse$inboundSchema` instead. */ - export const inboundSchema = CreateSubscriptionResponse$inboundSchema; - /** @deprecated use `CreateSubscriptionResponse$outboundSchema` instead. */ - export const outboundSchema = CreateSubscriptionResponse$outboundSchema; - /** @deprecated use `CreateSubscriptionResponse$Outbound` instead. */ - export type Outbound = CreateSubscriptionResponse$Outbound; -} - -export function createSubscriptionResponseToJSON( - createSubscriptionResponse: CreateSubscriptionResponse, -): string { - return JSON.stringify( - CreateSubscriptionResponse$outboundSchema.parse(createSubscriptionResponse), - ); -} - export function createSubscriptionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletecaches.ts b/src/sdk/models/operations/deletecaches.ts index e2cac088..32f5269e 100644 --- a/src/sdk/models/operations/deletecaches.ts +++ b/src/sdk/models/operations/deletecaches.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const DeleteCachesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCachesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteCachesResponse$outboundSchema: z.ZodType< - DeleteCachesResponse$Outbound, - z.ZodTypeDef, - DeleteCachesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCachesResponse$ { - /** @deprecated use `DeleteCachesResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCachesResponse$inboundSchema; - /** @deprecated use `DeleteCachesResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCachesResponse$outboundSchema; - /** @deprecated use `DeleteCachesResponse$Outbound` instead. */ - export type Outbound = DeleteCachesResponse$Outbound; -} - -export function deleteCachesResponseToJSON( - deleteCachesResponse: DeleteCachesResponse, -): string { - return JSON.stringify( - DeleteCachesResponse$outboundSchema.parse(deleteCachesResponse), - ); -} - export function deleteCachesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletecollection.ts b/src/sdk/models/operations/deletecollection.ts index e158cd4d..75149c9c 100644 --- a/src/sdk/models/operations/deletecollection.ts +++ b/src/sdk/models/operations/deletecollection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type DeleteCollectionResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteCollectionGlobals$inboundSchema: z.ZodType< - DeleteCollectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteCollectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteCollectionGlobals$outboundSchema: z.ZodType< - DeleteCollectionGlobals$Outbound, - z.ZodTypeDef, - DeleteCollectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionGlobals$ { - /** @deprecated use `DeleteCollectionGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionGlobals$inboundSchema; - /** @deprecated use `DeleteCollectionGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionGlobals$outboundSchema; - /** @deprecated use `DeleteCollectionGlobals$Outbound` instead. */ - export type Outbound = DeleteCollectionGlobals$Outbound; -} - -export function deleteCollectionGlobalsToJSON( - deleteCollectionGlobals: DeleteCollectionGlobals, -): string { - return JSON.stringify( - DeleteCollectionGlobals$outboundSchema.parse(deleteCollectionGlobals), - ); -} - -export function deleteCollectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteCollectionRequest$inboundSchema: z.ZodType< - DeleteCollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - collectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteCollectionRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const DeleteCollectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionRequest$ { - /** @deprecated use `DeleteCollectionRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionRequest$inboundSchema; - /** @deprecated use `DeleteCollectionRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionRequest$outboundSchema; - /** @deprecated use `DeleteCollectionRequest$Outbound` instead. */ - export type Outbound = DeleteCollectionRequest$Outbound; -} - export function deleteCollectionRequestToJSON( deleteCollectionRequest: DeleteCollectionRequest, ): string { @@ -342,16 +185,6 @@ export function deleteCollectionRequestToJSON( ); } -export function deleteCollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionRequest' from JSON`, - ); -} - /** @internal */ export const DeleteCollectionResponse$inboundSchema: z.ZodType< DeleteCollectionResponse, @@ -369,53 +202,6 @@ export const DeleteCollectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCollectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteCollectionResponse$outboundSchema: z.ZodType< - DeleteCollectionResponse$Outbound, - z.ZodTypeDef, - DeleteCollectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionResponse$ { - /** @deprecated use `DeleteCollectionResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionResponse$inboundSchema; - /** @deprecated use `DeleteCollectionResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionResponse$outboundSchema; - /** @deprecated use `DeleteCollectionResponse$Outbound` instead. */ - export type Outbound = DeleteCollectionResponse$Outbound; -} - -export function deleteCollectionResponseToJSON( - deleteCollectionResponse: DeleteCollectionResponse, -): string { - return JSON.stringify( - DeleteCollectionResponse$outboundSchema.parse(deleteCollectionResponse), - ); -} - export function deleteCollectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletecollectionitem.ts b/src/sdk/models/operations/deletecollectionitem.ts index 1f3e42b0..9fdce9cf 100644 --- a/src/sdk/models/operations/deletecollectionitem.ts +++ b/src/sdk/models/operations/deletecollectionitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,152 +130,6 @@ export type DeleteCollectionItemResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const DeleteCollectionItemGlobals$inboundSchema: z.ZodType< - DeleteCollectionItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteCollectionItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteCollectionItemGlobals$outboundSchema: z.ZodType< - DeleteCollectionItemGlobals$Outbound, - z.ZodTypeDef, - DeleteCollectionItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionItemGlobals$ { - /** @deprecated use `DeleteCollectionItemGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionItemGlobals$inboundSchema; - /** @deprecated use `DeleteCollectionItemGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionItemGlobals$outboundSchema; - /** @deprecated use `DeleteCollectionItemGlobals$Outbound` instead. */ - export type Outbound = DeleteCollectionItemGlobals$Outbound; -} - -export function deleteCollectionItemGlobalsToJSON( - deleteCollectionItemGlobals: DeleteCollectionItemGlobals, -): string { - return JSON.stringify( - DeleteCollectionItemGlobals$outboundSchema.parse( - deleteCollectionItemGlobals, - ), - ); -} - -export function deleteCollectionItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteCollectionItemRequest$inboundSchema: z.ZodType< - DeleteCollectionItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - collectionId: z.number().int(), - itemId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteCollectionItemRequest$Outbound = { accepts: string; @@ -327,19 +181,6 @@ export const DeleteCollectionItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionItemRequest$ { - /** @deprecated use `DeleteCollectionItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionItemRequest$inboundSchema; - /** @deprecated use `DeleteCollectionItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionItemRequest$outboundSchema; - /** @deprecated use `DeleteCollectionItemRequest$Outbound` instead. */ - export type Outbound = DeleteCollectionItemRequest$Outbound; -} - export function deleteCollectionItemRequestToJSON( deleteCollectionItemRequest: DeleteCollectionItemRequest, ): string { @@ -350,16 +191,6 @@ export function deleteCollectionItemRequestToJSON( ); } -export function deleteCollectionItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCollectionItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCollectionItemRequest' from JSON`, - ); -} - /** @internal */ export const DeleteCollectionItemResponse$inboundSchema: z.ZodType< DeleteCollectionItemResponse, @@ -380,61 +211,6 @@ export const DeleteCollectionItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCollectionItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const DeleteCollectionItemResponse$outboundSchema: z.ZodType< - DeleteCollectionItemResponse$Outbound, - z.ZodTypeDef, - DeleteCollectionItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCollectionItemResponse$ { - /** @deprecated use `DeleteCollectionItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCollectionItemResponse$inboundSchema; - /** @deprecated use `DeleteCollectionItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCollectionItemResponse$outboundSchema; - /** @deprecated use `DeleteCollectionItemResponse$Outbound` instead. */ - export type Outbound = DeleteCollectionItemResponse$Outbound; -} - -export function deleteCollectionItemResponseToJSON( - deleteCollectionItemResponse: DeleteCollectionItemResponse, -): string { - return JSON.stringify( - DeleteCollectionItemResponse$outboundSchema.parse( - deleteCollectionItemResponse, - ), - ); -} - export function deleteCollectionItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletecustomhub.ts b/src/sdk/models/operations/deletecustomhub.ts index e7caca9c..e5c23d95 100644 --- a/src/sdk/models/operations/deletecustomhub.ts +++ b/src/sdk/models/operations/deletecustomhub.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type DeleteCustomHubResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteCustomHubGlobals$inboundSchema: z.ZodType< - DeleteCustomHubGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteCustomHubGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteCustomHubGlobals$outboundSchema: z.ZodType< - DeleteCustomHubGlobals$Outbound, - z.ZodTypeDef, - DeleteCustomHubGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomHubGlobals$ { - /** @deprecated use `DeleteCustomHubGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomHubGlobals$inboundSchema; - /** @deprecated use `DeleteCustomHubGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomHubGlobals$outboundSchema; - /** @deprecated use `DeleteCustomHubGlobals$Outbound` instead. */ - export type Outbound = DeleteCustomHubGlobals$Outbound; -} - -export function deleteCustomHubGlobalsToJSON( - deleteCustomHubGlobals: DeleteCustomHubGlobals, -): string { - return JSON.stringify( - DeleteCustomHubGlobals$outboundSchema.parse(deleteCustomHubGlobals), - ); -} - -export function deleteCustomHubGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCustomHubGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCustomHubGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteCustomHubRequest$inboundSchema: z.ZodType< - DeleteCustomHubRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - identifier: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteCustomHubRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const DeleteCustomHubRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomHubRequest$ { - /** @deprecated use `DeleteCustomHubRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomHubRequest$inboundSchema; - /** @deprecated use `DeleteCustomHubRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomHubRequest$outboundSchema; - /** @deprecated use `DeleteCustomHubRequest$Outbound` instead. */ - export type Outbound = DeleteCustomHubRequest$Outbound; -} - export function deleteCustomHubRequestToJSON( deleteCustomHubRequest: DeleteCustomHubRequest, ): string { @@ -342,16 +185,6 @@ export function deleteCustomHubRequestToJSON( ); } -export function deleteCustomHubRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteCustomHubRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteCustomHubRequest' from JSON`, - ); -} - /** @internal */ export const DeleteCustomHubResponse$inboundSchema: z.ZodType< DeleteCustomHubResponse, @@ -369,53 +202,6 @@ export const DeleteCustomHubResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCustomHubResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteCustomHubResponse$outboundSchema: z.ZodType< - DeleteCustomHubResponse$Outbound, - z.ZodTypeDef, - DeleteCustomHubResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomHubResponse$ { - /** @deprecated use `DeleteCustomHubResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomHubResponse$inboundSchema; - /** @deprecated use `DeleteCustomHubResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomHubResponse$outboundSchema; - /** @deprecated use `DeleteCustomHubResponse$Outbound` instead. */ - export type Outbound = DeleteCustomHubResponse$Outbound; -} - -export function deleteCustomHubResponseToJSON( - deleteCustomHubResponse: DeleteCustomHubResponse, -): string { - return JSON.stringify( - DeleteCustomHubResponse$outboundSchema.parse(deleteCustomHubResponse), - ); -} - export function deleteCustomHubResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletedvr.ts b/src/sdk/models/operations/deletedvr.ts index 244116a1..68228867 100644 --- a/src/sdk/models/operations/deletedvr.ts +++ b/src/sdk/models/operations/deletedvr.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type DeleteDVRResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteDVRGlobals$inboundSchema: z.ZodType< - DeleteDVRGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteDVRGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteDVRGlobals$outboundSchema: z.ZodType< - DeleteDVRGlobals$Outbound, - z.ZodTypeDef, - DeleteDVRGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDVRGlobals$ { - /** @deprecated use `DeleteDVRGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteDVRGlobals$inboundSchema; - /** @deprecated use `DeleteDVRGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteDVRGlobals$outboundSchema; - /** @deprecated use `DeleteDVRGlobals$Outbound` instead. */ - export type Outbound = DeleteDVRGlobals$Outbound; -} - -export function deleteDVRGlobalsToJSON( - deleteDVRGlobals: DeleteDVRGlobals, -): string { - return JSON.stringify( - DeleteDVRGlobals$outboundSchema.parse(deleteDVRGlobals), - ); -} - -export function deleteDVRGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteDVRGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteDVRGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteDVRRequest$inboundSchema: z.ZodType< - DeleteDVRRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteDVRRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const DeleteDVRRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDVRRequest$ { - /** @deprecated use `DeleteDVRRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteDVRRequest$inboundSchema; - /** @deprecated use `DeleteDVRRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteDVRRequest$outboundSchema; - /** @deprecated use `DeleteDVRRequest$Outbound` instead. */ - export type Outbound = DeleteDVRRequest$Outbound; -} - export function deleteDVRRequestToJSON( deleteDVRRequest: DeleteDVRRequest, ): string { @@ -335,16 +179,6 @@ export function deleteDVRRequestToJSON( ); } -export function deleteDVRRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteDVRRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteDVRRequest' from JSON`, - ); -} - /** @internal */ export const DeleteDVRResponse$inboundSchema: z.ZodType< DeleteDVRResponse, @@ -362,53 +196,6 @@ export const DeleteDVRResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteDVRResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteDVRResponse$outboundSchema: z.ZodType< - DeleteDVRResponse$Outbound, - z.ZodTypeDef, - DeleteDVRResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDVRResponse$ { - /** @deprecated use `DeleteDVRResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteDVRResponse$inboundSchema; - /** @deprecated use `DeleteDVRResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteDVRResponse$outboundSchema; - /** @deprecated use `DeleteDVRResponse$Outbound` instead. */ - export type Outbound = DeleteDVRResponse$Outbound; -} - -export function deleteDVRResponseToJSON( - deleteDVRResponse: DeleteDVRResponse, -): string { - return JSON.stringify( - DeleteDVRResponse$outboundSchema.parse(deleteDVRResponse), - ); -} - export function deleteDVRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletehistory.ts b/src/sdk/models/operations/deletehistory.ts index 61da2417..038389ae 100644 --- a/src/sdk/models/operations/deletehistory.ts +++ b/src/sdk/models/operations/deletehistory.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,149 +127,6 @@ export type DeleteHistoryResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const DeleteHistoryGlobals$inboundSchema: z.ZodType< - DeleteHistoryGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteHistoryGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteHistoryGlobals$outboundSchema: z.ZodType< - DeleteHistoryGlobals$Outbound, - z.ZodTypeDef, - DeleteHistoryGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHistoryGlobals$ { - /** @deprecated use `DeleteHistoryGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteHistoryGlobals$inboundSchema; - /** @deprecated use `DeleteHistoryGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteHistoryGlobals$outboundSchema; - /** @deprecated use `DeleteHistoryGlobals$Outbound` instead. */ - export type Outbound = DeleteHistoryGlobals$Outbound; -} - -export function deleteHistoryGlobalsToJSON( - deleteHistoryGlobals: DeleteHistoryGlobals, -): string { - return JSON.stringify( - DeleteHistoryGlobals$outboundSchema.parse(deleteHistoryGlobals), - ); -} - -export function deleteHistoryGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteHistoryGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteHistoryGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteHistoryRequest$inboundSchema: z.ZodType< - DeleteHistoryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - historyId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteHistoryRequest$Outbound = { accepts: string; @@ -319,19 +176,6 @@ export const DeleteHistoryRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHistoryRequest$ { - /** @deprecated use `DeleteHistoryRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteHistoryRequest$inboundSchema; - /** @deprecated use `DeleteHistoryRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteHistoryRequest$outboundSchema; - /** @deprecated use `DeleteHistoryRequest$Outbound` instead. */ - export type Outbound = DeleteHistoryRequest$Outbound; -} - export function deleteHistoryRequestToJSON( deleteHistoryRequest: DeleteHistoryRequest, ): string { @@ -340,16 +184,6 @@ export function deleteHistoryRequestToJSON( ); } -export function deleteHistoryRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteHistoryRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteHistoryRequest' from JSON`, - ); -} - /** @internal */ export const DeleteHistoryResponse$inboundSchema: z.ZodType< DeleteHistoryResponse, @@ -360,7 +194,7 @@ export const DeleteHistoryResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), MediaContainer: shared.MediaContainer$inboundSchema.optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -371,59 +205,6 @@ export const DeleteHistoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteHistoryResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainer?: shared.MediaContainer$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const DeleteHistoryResponse$outboundSchema: z.ZodType< - DeleteHistoryResponse$Outbound, - z.ZodTypeDef, - DeleteHistoryResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainer: shared.MediaContainer$outboundSchema.optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainer: "MediaContainer", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHistoryResponse$ { - /** @deprecated use `DeleteHistoryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteHistoryResponse$inboundSchema; - /** @deprecated use `DeleteHistoryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteHistoryResponse$outboundSchema; - /** @deprecated use `DeleteHistoryResponse$Outbound` instead. */ - export type Outbound = DeleteHistoryResponse$Outbound; -} - -export function deleteHistoryResponseToJSON( - deleteHistoryResponse: DeleteHistoryResponse, -): string { - return JSON.stringify( - DeleteHistoryResponse$outboundSchema.parse(deleteHistoryResponse), - ); -} - export function deleteHistoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteindexes.ts b/src/sdk/models/operations/deleteindexes.ts index 484e2b7b..f31ec1b7 100644 --- a/src/sdk/models/operations/deleteindexes.ts +++ b/src/sdk/models/operations/deleteindexes.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type DeleteIndexesResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteIndexesGlobals$inboundSchema: z.ZodType< - DeleteIndexesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteIndexesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteIndexesGlobals$outboundSchema: z.ZodType< - DeleteIndexesGlobals$Outbound, - z.ZodTypeDef, - DeleteIndexesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIndexesGlobals$ { - /** @deprecated use `DeleteIndexesGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteIndexesGlobals$inboundSchema; - /** @deprecated use `DeleteIndexesGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteIndexesGlobals$outboundSchema; - /** @deprecated use `DeleteIndexesGlobals$Outbound` instead. */ - export type Outbound = DeleteIndexesGlobals$Outbound; -} - -export function deleteIndexesGlobalsToJSON( - deleteIndexesGlobals: DeleteIndexesGlobals, -): string { - return JSON.stringify( - DeleteIndexesGlobals$outboundSchema.parse(deleteIndexesGlobals), - ); -} - -export function deleteIndexesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIndexesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIndexesGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteIndexesRequest$inboundSchema: z.ZodType< - DeleteIndexesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteIndexesRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const DeleteIndexesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIndexesRequest$ { - /** @deprecated use `DeleteIndexesRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteIndexesRequest$inboundSchema; - /** @deprecated use `DeleteIndexesRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteIndexesRequest$outboundSchema; - /** @deprecated use `DeleteIndexesRequest$Outbound` instead. */ - export type Outbound = DeleteIndexesRequest$Outbound; -} - export function deleteIndexesRequestToJSON( deleteIndexesRequest: DeleteIndexesRequest, ): string { @@ -335,16 +179,6 @@ export function deleteIndexesRequestToJSON( ); } -export function deleteIndexesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIndexesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIndexesRequest' from JSON`, - ); -} - /** @internal */ export const DeleteIndexesResponse$inboundSchema: z.ZodType< DeleteIndexesResponse, @@ -362,53 +196,6 @@ export const DeleteIndexesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteIndexesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteIndexesResponse$outboundSchema: z.ZodType< - DeleteIndexesResponse$Outbound, - z.ZodTypeDef, - DeleteIndexesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIndexesResponse$ { - /** @deprecated use `DeleteIndexesResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteIndexesResponse$inboundSchema; - /** @deprecated use `DeleteIndexesResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteIndexesResponse$outboundSchema; - /** @deprecated use `DeleteIndexesResponse$Outbound` instead. */ - export type Outbound = DeleteIndexesResponse$Outbound; -} - -export function deleteIndexesResponseToJSON( - deleteIndexesResponse: DeleteIndexesResponse, -): string { - return JSON.stringify( - DeleteIndexesResponse$outboundSchema.parse(deleteIndexesResponse), - ); -} - export function deleteIndexesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteintros.ts b/src/sdk/models/operations/deleteintros.ts index 38ca0201..2e0b4919 100644 --- a/src/sdk/models/operations/deleteintros.ts +++ b/src/sdk/models/operations/deleteintros.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type DeleteIntrosResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteIntrosGlobals$inboundSchema: z.ZodType< - DeleteIntrosGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteIntrosGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteIntrosGlobals$outboundSchema: z.ZodType< - DeleteIntrosGlobals$Outbound, - z.ZodTypeDef, - DeleteIntrosGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntrosGlobals$ { - /** @deprecated use `DeleteIntrosGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteIntrosGlobals$inboundSchema; - /** @deprecated use `DeleteIntrosGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteIntrosGlobals$outboundSchema; - /** @deprecated use `DeleteIntrosGlobals$Outbound` instead. */ - export type Outbound = DeleteIntrosGlobals$Outbound; -} - -export function deleteIntrosGlobalsToJSON( - deleteIntrosGlobals: DeleteIntrosGlobals, -): string { - return JSON.stringify( - DeleteIntrosGlobals$outboundSchema.parse(deleteIntrosGlobals), - ); -} - -export function deleteIntrosGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIntrosGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIntrosGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteIntrosRequest$inboundSchema: z.ZodType< - DeleteIntrosRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteIntrosRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const DeleteIntrosRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntrosRequest$ { - /** @deprecated use `DeleteIntrosRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteIntrosRequest$inboundSchema; - /** @deprecated use `DeleteIntrosRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteIntrosRequest$outboundSchema; - /** @deprecated use `DeleteIntrosRequest$Outbound` instead. */ - export type Outbound = DeleteIntrosRequest$Outbound; -} - export function deleteIntrosRequestToJSON( deleteIntrosRequest: DeleteIntrosRequest, ): string { @@ -335,16 +179,6 @@ export function deleteIntrosRequestToJSON( ); } -export function deleteIntrosRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteIntrosRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIntrosRequest' from JSON`, - ); -} - /** @internal */ export const DeleteIntrosResponse$inboundSchema: z.ZodType< DeleteIntrosResponse, @@ -362,53 +196,6 @@ export const DeleteIntrosResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteIntrosResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteIntrosResponse$outboundSchema: z.ZodType< - DeleteIntrosResponse$Outbound, - z.ZodTypeDef, - DeleteIntrosResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntrosResponse$ { - /** @deprecated use `DeleteIntrosResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteIntrosResponse$inboundSchema; - /** @deprecated use `DeleteIntrosResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteIntrosResponse$outboundSchema; - /** @deprecated use `DeleteIntrosResponse$Outbound` instead. */ - export type Outbound = DeleteIntrosResponse$Outbound; -} - -export function deleteIntrosResponseToJSON( - deleteIntrosResponse: DeleteIntrosResponse, -): string { - return JSON.stringify( - DeleteIntrosResponse$outboundSchema.parse(deleteIntrosResponse), - ); -} - export function deleteIntrosResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletelibrarysection.ts b/src/sdk/models/operations/deletelibrarysection.ts index d6457e2f..aa0fb306 100644 --- a/src/sdk/models/operations/deletelibrarysection.ts +++ b/src/sdk/models/operations/deletelibrarysection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,152 +126,6 @@ export type DeleteLibrarySectionResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteLibrarySectionGlobals$inboundSchema: z.ZodType< - DeleteLibrarySectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteLibrarySectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteLibrarySectionGlobals$outboundSchema: z.ZodType< - DeleteLibrarySectionGlobals$Outbound, - z.ZodTypeDef, - DeleteLibrarySectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLibrarySectionGlobals$ { - /** @deprecated use `DeleteLibrarySectionGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteLibrarySectionGlobals$inboundSchema; - /** @deprecated use `DeleteLibrarySectionGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteLibrarySectionGlobals$outboundSchema; - /** @deprecated use `DeleteLibrarySectionGlobals$Outbound` instead. */ - export type Outbound = DeleteLibrarySectionGlobals$Outbound; -} - -export function deleteLibrarySectionGlobalsToJSON( - deleteLibrarySectionGlobals: DeleteLibrarySectionGlobals, -): string { - return JSON.stringify( - DeleteLibrarySectionGlobals$outboundSchema.parse( - deleteLibrarySectionGlobals, - ), - ); -} - -export function deleteLibrarySectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteLibrarySectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteLibrarySectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteLibrarySectionRequest$inboundSchema: z.ZodType< - DeleteLibrarySectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.string(), - async: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteLibrarySectionRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const DeleteLibrarySectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLibrarySectionRequest$ { - /** @deprecated use `DeleteLibrarySectionRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteLibrarySectionRequest$inboundSchema; - /** @deprecated use `DeleteLibrarySectionRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteLibrarySectionRequest$outboundSchema; - /** @deprecated use `DeleteLibrarySectionRequest$Outbound` instead. */ - export type Outbound = DeleteLibrarySectionRequest$Outbound; -} - export function deleteLibrarySectionRequestToJSON( deleteLibrarySectionRequest: DeleteLibrarySectionRequest, ): string { @@ -346,16 +187,6 @@ export function deleteLibrarySectionRequestToJSON( ); } -export function deleteLibrarySectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteLibrarySectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteLibrarySectionRequest' from JSON`, - ); -} - /** @internal */ export const DeleteLibrarySectionResponse$inboundSchema: z.ZodType< DeleteLibrarySectionResponse, @@ -373,55 +204,6 @@ export const DeleteLibrarySectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLibrarySectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteLibrarySectionResponse$outboundSchema: z.ZodType< - DeleteLibrarySectionResponse$Outbound, - z.ZodTypeDef, - DeleteLibrarySectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLibrarySectionResponse$ { - /** @deprecated use `DeleteLibrarySectionResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteLibrarySectionResponse$inboundSchema; - /** @deprecated use `DeleteLibrarySectionResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteLibrarySectionResponse$outboundSchema; - /** @deprecated use `DeleteLibrarySectionResponse$Outbound` instead. */ - export type Outbound = DeleteLibrarySectionResponse$Outbound; -} - -export function deleteLibrarySectionResponseToJSON( - deleteLibrarySectionResponse: DeleteLibrarySectionResponse, -): string { - return JSON.stringify( - DeleteLibrarySectionResponse$outboundSchema.parse( - deleteLibrarySectionResponse, - ), - ); -} - export function deleteLibrarySectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletelineup.ts b/src/sdk/models/operations/deletelineup.ts index bfb2e42b..4d9971e8 100644 --- a/src/sdk/models/operations/deletelineup.ts +++ b/src/sdk/models/operations/deletelineup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,150 +179,6 @@ export type DeleteLineupResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const DeleteLineupGlobals$inboundSchema: z.ZodType< - DeleteLineupGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteLineupGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteLineupGlobals$outboundSchema: z.ZodType< - DeleteLineupGlobals$Outbound, - z.ZodTypeDef, - DeleteLineupGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupGlobals$ { - /** @deprecated use `DeleteLineupGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupGlobals$inboundSchema; - /** @deprecated use `DeleteLineupGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupGlobals$outboundSchema; - /** @deprecated use `DeleteLineupGlobals$Outbound` instead. */ - export type Outbound = DeleteLineupGlobals$Outbound; -} - -export function deleteLineupGlobalsToJSON( - deleteLineupGlobals: DeleteLineupGlobals, -): string { - return JSON.stringify( - DeleteLineupGlobals$outboundSchema.parse(deleteLineupGlobals), - ); -} - -export function deleteLineupGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteLineupGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteLineupGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteLineupRequest$inboundSchema: z.ZodType< - DeleteLineupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - lineup: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteLineupRequest$Outbound = { accepts: string; @@ -374,19 +230,6 @@ export const DeleteLineupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupRequest$ { - /** @deprecated use `DeleteLineupRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupRequest$inboundSchema; - /** @deprecated use `DeleteLineupRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupRequest$outboundSchema; - /** @deprecated use `DeleteLineupRequest$Outbound` instead. */ - export type Outbound = DeleteLineupRequest$Outbound; -} - export function deleteLineupRequestToJSON( deleteLineupRequest: DeleteLineupRequest, ): string { @@ -395,16 +238,6 @@ export function deleteLineupRequestToJSON( ); } -export function deleteLineupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteLineupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteLineupRequest' from JSON`, - ); -} - /** @internal */ export const DeleteLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< DeleteLineupMediaContainerMediaContainer, @@ -418,54 +251,6 @@ export const DeleteLineupMediaContainerMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type DeleteLineupMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const DeleteLineupMediaContainerMediaContainer$outboundSchema: z.ZodType< - DeleteLineupMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - DeleteLineupMediaContainerMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupMediaContainerMediaContainer$ { - /** @deprecated use `DeleteLineupMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - DeleteLineupMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `DeleteLineupMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - DeleteLineupMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `DeleteLineupMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = DeleteLineupMediaContainerMediaContainer$Outbound; -} - -export function deleteLineupMediaContainerMediaContainerToJSON( - deleteLineupMediaContainerMediaContainer: - DeleteLineupMediaContainerMediaContainer, -): string { - return JSON.stringify( - DeleteLineupMediaContainerMediaContainer$outboundSchema.parse( - deleteLineupMediaContainerMediaContainer, - ), - ); -} - export function deleteLineupMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -499,51 +284,6 @@ export const DeleteLineupDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLineupDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const DeleteLineupDVR$outboundSchema: z.ZodType< - DeleteLineupDVR$Outbound, - z.ZodTypeDef, - DeleteLineupDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupDVR$ { - /** @deprecated use `DeleteLineupDVR$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupDVR$inboundSchema; - /** @deprecated use `DeleteLineupDVR$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupDVR$outboundSchema; - /** @deprecated use `DeleteLineupDVR$Outbound` instead. */ - export type Outbound = DeleteLineupDVR$Outbound; -} - -export function deleteLineupDVRToJSON( - deleteLineupDVR: DeleteLineupDVR, -): string { - return JSON.stringify(DeleteLineupDVR$outboundSchema.parse(deleteLineupDVR)); -} - export function deleteLineupDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -571,52 +311,6 @@ export const DeleteLineupMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLineupMediaContainer$Outbound = { - MediaContainer?: - | DeleteLineupMediaContainerMediaContainer$Outbound - | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const DeleteLineupMediaContainer$outboundSchema: z.ZodType< - DeleteLineupMediaContainer$Outbound, - z.ZodTypeDef, - DeleteLineupMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - DeleteLineupMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => DeleteLineupDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupMediaContainer$ { - /** @deprecated use `DeleteLineupMediaContainer$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupMediaContainer$inboundSchema; - /** @deprecated use `DeleteLineupMediaContainer$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupMediaContainer$outboundSchema; - /** @deprecated use `DeleteLineupMediaContainer$Outbound` instead. */ - export type Outbound = DeleteLineupMediaContainer$Outbound; -} - -export function deleteLineupMediaContainerToJSON( - deleteLineupMediaContainer: DeleteLineupMediaContainer, -): string { - return JSON.stringify( - DeleteLineupMediaContainer$outboundSchema.parse(deleteLineupMediaContainer), - ); -} - export function deleteLineupMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -641,46 +335,6 @@ export const DeleteLineupResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLineupResponseBody$Outbound = { - MediaContainer?: DeleteLineupMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const DeleteLineupResponseBody$outboundSchema: z.ZodType< - DeleteLineupResponseBody$Outbound, - z.ZodTypeDef, - DeleteLineupResponseBody -> = z.object({ - mediaContainer: z.lazy(() => DeleteLineupMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupResponseBody$ { - /** @deprecated use `DeleteLineupResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupResponseBody$inboundSchema; - /** @deprecated use `DeleteLineupResponseBody$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupResponseBody$outboundSchema; - /** @deprecated use `DeleteLineupResponseBody$Outbound` instead. */ - export type Outbound = DeleteLineupResponseBody$Outbound; -} - -export function deleteLineupResponseBodyToJSON( - deleteLineupResponseBody: DeleteLineupResponseBody, -): string { - return JSON.stringify( - DeleteLineupResponseBody$outboundSchema.parse(deleteLineupResponseBody), - ); -} - export function deleteLineupResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -701,7 +355,7 @@ export const DeleteLineupResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => DeleteLineupResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -711,58 +365,6 @@ export const DeleteLineupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLineupResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: DeleteLineupResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const DeleteLineupResponse$outboundSchema: z.ZodType< - DeleteLineupResponse$Outbound, - z.ZodTypeDef, - DeleteLineupResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => DeleteLineupResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLineupResponse$ { - /** @deprecated use `DeleteLineupResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteLineupResponse$inboundSchema; - /** @deprecated use `DeleteLineupResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteLineupResponse$outboundSchema; - /** @deprecated use `DeleteLineupResponse$Outbound` instead. */ - export type Outbound = DeleteLineupResponse$Outbound; -} - -export function deleteLineupResponseToJSON( - deleteLineupResponse: DeleteLineupResponse, -): string { - return JSON.stringify( - DeleteLineupResponse$outboundSchema.parse(deleteLineupResponse), - ); -} - export function deleteLineupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletemarker.ts b/src/sdk/models/operations/deletemarker.ts index 2976e16a..8c0cc57b 100644 --- a/src/sdk/models/operations/deletemarker.ts +++ b/src/sdk/models/operations/deletemarker.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -120,150 +120,6 @@ export type DeleteMarkerResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteMarkerGlobals$inboundSchema: z.ZodType< - DeleteMarkerGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteMarkerGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteMarkerGlobals$outboundSchema: z.ZodType< - DeleteMarkerGlobals$Outbound, - z.ZodTypeDef, - DeleteMarkerGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMarkerGlobals$ { - /** @deprecated use `DeleteMarkerGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteMarkerGlobals$inboundSchema; - /** @deprecated use `DeleteMarkerGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteMarkerGlobals$outboundSchema; - /** @deprecated use `DeleteMarkerGlobals$Outbound` instead. */ - export type Outbound = DeleteMarkerGlobals$Outbound; -} - -export function deleteMarkerGlobalsToJSON( - deleteMarkerGlobals: DeleteMarkerGlobals, -): string { - return JSON.stringify( - DeleteMarkerGlobals$outboundSchema.parse(deleteMarkerGlobals), - ); -} - -export function deleteMarkerGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMarkerGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMarkerGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteMarkerRequest$inboundSchema: z.ZodType< - DeleteMarkerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - marker: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteMarkerRequest$Outbound = { accepts: string; @@ -315,19 +171,6 @@ export const DeleteMarkerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMarkerRequest$ { - /** @deprecated use `DeleteMarkerRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteMarkerRequest$inboundSchema; - /** @deprecated use `DeleteMarkerRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteMarkerRequest$outboundSchema; - /** @deprecated use `DeleteMarkerRequest$Outbound` instead. */ - export type Outbound = DeleteMarkerRequest$Outbound; -} - export function deleteMarkerRequestToJSON( deleteMarkerRequest: DeleteMarkerRequest, ): string { @@ -336,16 +179,6 @@ export function deleteMarkerRequestToJSON( ); } -export function deleteMarkerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMarkerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMarkerRequest' from JSON`, - ); -} - /** @internal */ export const DeleteMarkerResponse$inboundSchema: z.ZodType< DeleteMarkerResponse, @@ -363,53 +196,6 @@ export const DeleteMarkerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteMarkerResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteMarkerResponse$outboundSchema: z.ZodType< - DeleteMarkerResponse$Outbound, - z.ZodTypeDef, - DeleteMarkerResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMarkerResponse$ { - /** @deprecated use `DeleteMarkerResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteMarkerResponse$inboundSchema; - /** @deprecated use `DeleteMarkerResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteMarkerResponse$outboundSchema; - /** @deprecated use `DeleteMarkerResponse$Outbound` instead. */ - export type Outbound = DeleteMarkerResponse$Outbound; -} - -export function deleteMarkerResponseToJSON( - deleteMarkerResponse: DeleteMarkerResponse, -): string { - return JSON.stringify( - DeleteMarkerResponse$outboundSchema.parse(deleteMarkerResponse), - ); -} - export function deleteMarkerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletemediaitem.ts b/src/sdk/models/operations/deletemediaitem.ts index ebfaf72e..880c6d21 100644 --- a/src/sdk/models/operations/deletemediaitem.ts +++ b/src/sdk/models/operations/deletemediaitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -124,151 +124,6 @@ export type DeleteMediaItemResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteMediaItemGlobals$inboundSchema: z.ZodType< - DeleteMediaItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteMediaItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteMediaItemGlobals$outboundSchema: z.ZodType< - DeleteMediaItemGlobals$Outbound, - z.ZodTypeDef, - DeleteMediaItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaItemGlobals$ { - /** @deprecated use `DeleteMediaItemGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaItemGlobals$inboundSchema; - /** @deprecated use `DeleteMediaItemGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaItemGlobals$outboundSchema; - /** @deprecated use `DeleteMediaItemGlobals$Outbound` instead. */ - export type Outbound = DeleteMediaItemGlobals$Outbound; -} - -export function deleteMediaItemGlobalsToJSON( - deleteMediaItemGlobals: DeleteMediaItemGlobals, -): string { - return JSON.stringify( - DeleteMediaItemGlobals$outboundSchema.parse(deleteMediaItemGlobals), - ); -} - -export function deleteMediaItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteMediaItemRequest$inboundSchema: z.ZodType< - DeleteMediaItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - mediaItem: z.string(), - proxy: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteMediaItemRequest$Outbound = { accepts: string; @@ -322,19 +177,6 @@ export const DeleteMediaItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaItemRequest$ { - /** @deprecated use `DeleteMediaItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaItemRequest$inboundSchema; - /** @deprecated use `DeleteMediaItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaItemRequest$outboundSchema; - /** @deprecated use `DeleteMediaItemRequest$Outbound` instead. */ - export type Outbound = DeleteMediaItemRequest$Outbound; -} - export function deleteMediaItemRequestToJSON( deleteMediaItemRequest: DeleteMediaItemRequest, ): string { @@ -343,16 +185,6 @@ export function deleteMediaItemRequestToJSON( ); } -export function deleteMediaItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaItemRequest' from JSON`, - ); -} - /** @internal */ export const DeleteMediaItemResponse$inboundSchema: z.ZodType< DeleteMediaItemResponse, @@ -370,53 +202,6 @@ export const DeleteMediaItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteMediaItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteMediaItemResponse$outboundSchema: z.ZodType< - DeleteMediaItemResponse$Outbound, - z.ZodTypeDef, - DeleteMediaItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaItemResponse$ { - /** @deprecated use `DeleteMediaItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaItemResponse$inboundSchema; - /** @deprecated use `DeleteMediaItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaItemResponse$outboundSchema; - /** @deprecated use `DeleteMediaItemResponse$Outbound` instead. */ - export type Outbound = DeleteMediaItemResponse$Outbound; -} - -export function deleteMediaItemResponseToJSON( - deleteMediaItemResponse: DeleteMediaItemResponse, -): string { - return JSON.stringify( - DeleteMediaItemResponse$outboundSchema.parse(deleteMediaItemResponse), - ); -} - export function deleteMediaItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletemediaprovider.ts b/src/sdk/models/operations/deletemediaprovider.ts index 70fc1e01..c22bda78 100644 --- a/src/sdk/models/operations/deletemediaprovider.ts +++ b/src/sdk/models/operations/deletemediaprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type DeleteMediaProviderResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteMediaProviderGlobals$inboundSchema: z.ZodType< - DeleteMediaProviderGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteMediaProviderGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteMediaProviderGlobals$outboundSchema: z.ZodType< - DeleteMediaProviderGlobals$Outbound, - z.ZodTypeDef, - DeleteMediaProviderGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaProviderGlobals$ { - /** @deprecated use `DeleteMediaProviderGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaProviderGlobals$inboundSchema; - /** @deprecated use `DeleteMediaProviderGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaProviderGlobals$outboundSchema; - /** @deprecated use `DeleteMediaProviderGlobals$Outbound` instead. */ - export type Outbound = DeleteMediaProviderGlobals$Outbound; -} - -export function deleteMediaProviderGlobalsToJSON( - deleteMediaProviderGlobals: DeleteMediaProviderGlobals, -): string { - return JSON.stringify( - DeleteMediaProviderGlobals$outboundSchema.parse(deleteMediaProviderGlobals), - ); -} - -export function deleteMediaProviderGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaProviderGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaProviderGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteMediaProviderRequest$inboundSchema: z.ZodType< - DeleteMediaProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - provider: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteMediaProviderRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const DeleteMediaProviderRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaProviderRequest$ { - /** @deprecated use `DeleteMediaProviderRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaProviderRequest$inboundSchema; - /** @deprecated use `DeleteMediaProviderRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaProviderRequest$outboundSchema; - /** @deprecated use `DeleteMediaProviderRequest$Outbound` instead. */ - export type Outbound = DeleteMediaProviderRequest$Outbound; -} - export function deleteMediaProviderRequestToJSON( deleteMediaProviderRequest: DeleteMediaProviderRequest, ): string { @@ -335,16 +179,6 @@ export function deleteMediaProviderRequestToJSON( ); } -export function deleteMediaProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMediaProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMediaProviderRequest' from JSON`, - ); -} - /** @internal */ export const DeleteMediaProviderResponse$inboundSchema: z.ZodType< DeleteMediaProviderResponse, @@ -362,55 +196,6 @@ export const DeleteMediaProviderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteMediaProviderResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteMediaProviderResponse$outboundSchema: z.ZodType< - DeleteMediaProviderResponse$Outbound, - z.ZodTypeDef, - DeleteMediaProviderResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMediaProviderResponse$ { - /** @deprecated use `DeleteMediaProviderResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteMediaProviderResponse$inboundSchema; - /** @deprecated use `DeleteMediaProviderResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteMediaProviderResponse$outboundSchema; - /** @deprecated use `DeleteMediaProviderResponse$Outbound` instead. */ - export type Outbound = DeleteMediaProviderResponse$Outbound; -} - -export function deleteMediaProviderResponseToJSON( - deleteMediaProviderResponse: DeleteMediaProviderResponse, -): string { - return JSON.stringify( - DeleteMediaProviderResponse$outboundSchema.parse( - deleteMediaProviderResponse, - ), - ); -} - export function deleteMediaProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletemetadataitem.ts b/src/sdk/models/operations/deletemetadataitem.ts index 8651e910..a09e8713 100644 --- a/src/sdk/models/operations/deletemetadataitem.ts +++ b/src/sdk/models/operations/deletemetadataitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -123,150 +123,6 @@ export type DeleteMetadataItemResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteMetadataItemGlobals$inboundSchema: z.ZodType< - DeleteMetadataItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteMetadataItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteMetadataItemGlobals$outboundSchema: z.ZodType< - DeleteMetadataItemGlobals$Outbound, - z.ZodTypeDef, - DeleteMetadataItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMetadataItemGlobals$ { - /** @deprecated use `DeleteMetadataItemGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteMetadataItemGlobals$inboundSchema; - /** @deprecated use `DeleteMetadataItemGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteMetadataItemGlobals$outboundSchema; - /** @deprecated use `DeleteMetadataItemGlobals$Outbound` instead. */ - export type Outbound = DeleteMetadataItemGlobals$Outbound; -} - -export function deleteMetadataItemGlobalsToJSON( - deleteMetadataItemGlobals: DeleteMetadataItemGlobals, -): string { - return JSON.stringify( - DeleteMetadataItemGlobals$outboundSchema.parse(deleteMetadataItemGlobals), - ); -} - -export function deleteMetadataItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMetadataItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMetadataItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteMetadataItemRequest$inboundSchema: z.ZodType< - DeleteMetadataItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - proxy: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteMetadataItemRequest$Outbound = { accepts: string; @@ -318,19 +174,6 @@ export const DeleteMetadataItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMetadataItemRequest$ { - /** @deprecated use `DeleteMetadataItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteMetadataItemRequest$inboundSchema; - /** @deprecated use `DeleteMetadataItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteMetadataItemRequest$outboundSchema; - /** @deprecated use `DeleteMetadataItemRequest$Outbound` instead. */ - export type Outbound = DeleteMetadataItemRequest$Outbound; -} - export function deleteMetadataItemRequestToJSON( deleteMetadataItemRequest: DeleteMetadataItemRequest, ): string { @@ -339,16 +182,6 @@ export function deleteMetadataItemRequestToJSON( ); } -export function deleteMetadataItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteMetadataItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteMetadataItemRequest' from JSON`, - ); -} - /** @internal */ export const DeleteMetadataItemResponse$inboundSchema: z.ZodType< DeleteMetadataItemResponse, @@ -366,53 +199,6 @@ export const DeleteMetadataItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteMetadataItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteMetadataItemResponse$outboundSchema: z.ZodType< - DeleteMetadataItemResponse$Outbound, - z.ZodTypeDef, - DeleteMetadataItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMetadataItemResponse$ { - /** @deprecated use `DeleteMetadataItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteMetadataItemResponse$inboundSchema; - /** @deprecated use `DeleteMetadataItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteMetadataItemResponse$outboundSchema; - /** @deprecated use `DeleteMetadataItemResponse$Outbound` instead. */ - export type Outbound = DeleteMetadataItemResponse$Outbound; -} - -export function deleteMetadataItemResponseToJSON( - deleteMetadataItemResponse: DeleteMetadataItemResponse, -): string { - return JSON.stringify( - DeleteMetadataItemResponse$outboundSchema.parse(deleteMetadataItemResponse), - ); -} - export function deleteMetadataItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteplaylist.ts b/src/sdk/models/operations/deleteplaylist.ts index 683dafba..f3a119e2 100644 --- a/src/sdk/models/operations/deleteplaylist.ts +++ b/src/sdk/models/operations/deleteplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type DeletePlaylistResponse = { rawResponse: Response; }; -/** @internal */ -export const DeletePlaylistGlobals$inboundSchema: z.ZodType< - DeletePlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeletePlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeletePlaylistGlobals$outboundSchema: z.ZodType< - DeletePlaylistGlobals$Outbound, - z.ZodTypeDef, - DeletePlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistGlobals$ { - /** @deprecated use `DeletePlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistGlobals$inboundSchema; - /** @deprecated use `DeletePlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistGlobals$outboundSchema; - /** @deprecated use `DeletePlaylistGlobals$Outbound` instead. */ - export type Outbound = DeletePlaylistGlobals$Outbound; -} - -export function deletePlaylistGlobalsToJSON( - deletePlaylistGlobals: DeletePlaylistGlobals, -): string { - return JSON.stringify( - DeletePlaylistGlobals$outboundSchema.parse(deletePlaylistGlobals), - ); -} - -export function deletePlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeletePlaylistRequest$inboundSchema: z.ZodType< - DeletePlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeletePlaylistRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const DeletePlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistRequest$ { - /** @deprecated use `DeletePlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistRequest$inboundSchema; - /** @deprecated use `DeletePlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistRequest$outboundSchema; - /** @deprecated use `DeletePlaylistRequest$Outbound` instead. */ - export type Outbound = DeletePlaylistRequest$Outbound; -} - export function deletePlaylistRequestToJSON( deletePlaylistRequest: DeletePlaylistRequest, ): string { @@ -335,16 +179,6 @@ export function deletePlaylistRequestToJSON( ); } -export function deletePlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistRequest' from JSON`, - ); -} - /** @internal */ export const DeletePlaylistResponse$inboundSchema: z.ZodType< DeletePlaylistResponse, @@ -362,53 +196,6 @@ export const DeletePlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeletePlaylistResponse$outboundSchema: z.ZodType< - DeletePlaylistResponse$Outbound, - z.ZodTypeDef, - DeletePlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistResponse$ { - /** @deprecated use `DeletePlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistResponse$inboundSchema; - /** @deprecated use `DeletePlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistResponse$outboundSchema; - /** @deprecated use `DeletePlaylistResponse$Outbound` instead. */ - export type Outbound = DeletePlaylistResponse$Outbound; -} - -export function deletePlaylistResponseToJSON( - deletePlaylistResponse: DeletePlaylistResponse, -): string { - return JSON.stringify( - DeletePlaylistResponse$outboundSchema.parse(deletePlaylistResponse), - ); -} - export function deletePlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteplaylistitem.ts b/src/sdk/models/operations/deleteplaylistitem.ts index 28adf43e..a8d9fb18 100644 --- a/src/sdk/models/operations/deleteplaylistitem.ts +++ b/src/sdk/models/operations/deleteplaylistitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -132,150 +132,6 @@ export type DeletePlaylistItemResponse = { | undefined; }; -/** @internal */ -export const DeletePlaylistItemGlobals$inboundSchema: z.ZodType< - DeletePlaylistItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeletePlaylistItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeletePlaylistItemGlobals$outboundSchema: z.ZodType< - DeletePlaylistItemGlobals$Outbound, - z.ZodTypeDef, - DeletePlaylistItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistItemGlobals$ { - /** @deprecated use `DeletePlaylistItemGlobals$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistItemGlobals$inboundSchema; - /** @deprecated use `DeletePlaylistItemGlobals$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistItemGlobals$outboundSchema; - /** @deprecated use `DeletePlaylistItemGlobals$Outbound` instead. */ - export type Outbound = DeletePlaylistItemGlobals$Outbound; -} - -export function deletePlaylistItemGlobalsToJSON( - deletePlaylistItemGlobals: DeletePlaylistItemGlobals, -): string { - return JSON.stringify( - DeletePlaylistItemGlobals$outboundSchema.parse(deletePlaylistItemGlobals), - ); -} - -export function deletePlaylistItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeletePlaylistItemRequest$inboundSchema: z.ZodType< - DeletePlaylistItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeletePlaylistItemRequest$Outbound = { accepts: string; @@ -327,19 +183,6 @@ export const DeletePlaylistItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistItemRequest$ { - /** @deprecated use `DeletePlaylistItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistItemRequest$inboundSchema; - /** @deprecated use `DeletePlaylistItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistItemRequest$outboundSchema; - /** @deprecated use `DeletePlaylistItemRequest$Outbound` instead. */ - export type Outbound = DeletePlaylistItemRequest$Outbound; -} - export function deletePlaylistItemRequestToJSON( deletePlaylistItemRequest: DeletePlaylistItemRequest, ): string { @@ -348,16 +191,6 @@ export function deletePlaylistItemRequestToJSON( ); } -export function deletePlaylistItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlaylistItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlaylistItemRequest' from JSON`, - ); -} - /** @internal */ export const DeletePlaylistItemResponse$inboundSchema: z.ZodType< DeletePlaylistItemResponse, @@ -378,59 +211,6 @@ export const DeletePlaylistItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePlaylistItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const DeletePlaylistItemResponse$outboundSchema: z.ZodType< - DeletePlaylistItemResponse$Outbound, - z.ZodTypeDef, - DeletePlaylistItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistItemResponse$ { - /** @deprecated use `DeletePlaylistItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistItemResponse$inboundSchema; - /** @deprecated use `DeletePlaylistItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistItemResponse$outboundSchema; - /** @deprecated use `DeletePlaylistItemResponse$Outbound` instead. */ - export type Outbound = DeletePlaylistItemResponse$Outbound; -} - -export function deletePlaylistItemResponseToJSON( - deletePlaylistItemResponse: DeletePlaylistItemResponse, -): string { - return JSON.stringify( - DeletePlaylistItemResponse$outboundSchema.parse(deletePlaylistItemResponse), - ); -} - export function deletePlaylistItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteplayqueueitem.ts b/src/sdk/models/operations/deleteplayqueueitem.ts index 5278b5d3..87316c9e 100644 --- a/src/sdk/models/operations/deleteplayqueueitem.ts +++ b/src/sdk/models/operations/deleteplayqueueitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -132,150 +132,6 @@ export type DeletePlayQueueItemResponse = { | undefined; }; -/** @internal */ -export const DeletePlayQueueItemGlobals$inboundSchema: z.ZodType< - DeletePlayQueueItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeletePlayQueueItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeletePlayQueueItemGlobals$outboundSchema: z.ZodType< - DeletePlayQueueItemGlobals$Outbound, - z.ZodTypeDef, - DeletePlayQueueItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlayQueueItemGlobals$ { - /** @deprecated use `DeletePlayQueueItemGlobals$inboundSchema` instead. */ - export const inboundSchema = DeletePlayQueueItemGlobals$inboundSchema; - /** @deprecated use `DeletePlayQueueItemGlobals$outboundSchema` instead. */ - export const outboundSchema = DeletePlayQueueItemGlobals$outboundSchema; - /** @deprecated use `DeletePlayQueueItemGlobals$Outbound` instead. */ - export type Outbound = DeletePlayQueueItemGlobals$Outbound; -} - -export function deletePlayQueueItemGlobalsToJSON( - deletePlayQueueItemGlobals: DeletePlayQueueItemGlobals, -): string { - return JSON.stringify( - DeletePlayQueueItemGlobals$outboundSchema.parse(deletePlayQueueItemGlobals), - ); -} - -export function deletePlayQueueItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlayQueueItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlayQueueItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeletePlayQueueItemRequest$inboundSchema: z.ZodType< - DeletePlayQueueItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), - playQueueItemId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeletePlayQueueItemRequest$Outbound = { accepts: string; @@ -327,19 +183,6 @@ export const DeletePlayQueueItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlayQueueItemRequest$ { - /** @deprecated use `DeletePlayQueueItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeletePlayQueueItemRequest$inboundSchema; - /** @deprecated use `DeletePlayQueueItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeletePlayQueueItemRequest$outboundSchema; - /** @deprecated use `DeletePlayQueueItemRequest$Outbound` instead. */ - export type Outbound = DeletePlayQueueItemRequest$Outbound; -} - export function deletePlayQueueItemRequestToJSON( deletePlayQueueItemRequest: DeletePlayQueueItemRequest, ): string { @@ -348,16 +191,6 @@ export function deletePlayQueueItemRequestToJSON( ); } -export function deletePlayQueueItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletePlayQueueItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletePlayQueueItemRequest' from JSON`, - ); -} - /** @internal */ export const DeletePlayQueueItemResponse$inboundSchema: z.ZodType< DeletePlayQueueItemResponse, @@ -378,61 +211,6 @@ export const DeletePlayQueueItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePlayQueueItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const DeletePlayQueueItemResponse$outboundSchema: z.ZodType< - DeletePlayQueueItemResponse$Outbound, - z.ZodTypeDef, - DeletePlayQueueItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlayQueueItemResponse$ { - /** @deprecated use `DeletePlayQueueItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePlayQueueItemResponse$inboundSchema; - /** @deprecated use `DeletePlayQueueItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePlayQueueItemResponse$outboundSchema; - /** @deprecated use `DeletePlayQueueItemResponse$Outbound` instead. */ - export type Outbound = DeletePlayQueueItemResponse$Outbound; -} - -export function deletePlayQueueItemResponseToJSON( - deletePlayQueueItemResponse: DeletePlayQueueItemResponse, -): string { - return JSON.stringify( - DeletePlayQueueItemResponse$outboundSchema.parse( - deletePlayQueueItemResponse, - ), - ); -} - export function deletePlayQueueItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletestream.ts b/src/sdk/models/operations/deletestream.ts index 98edd451..2fc564aa 100644 --- a/src/sdk/models/operations/deletestream.ts +++ b/src/sdk/models/operations/deletestream.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type DeleteStreamResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteStreamGlobals$inboundSchema: z.ZodType< - DeleteStreamGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteStreamGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteStreamGlobals$outboundSchema: z.ZodType< - DeleteStreamGlobals$Outbound, - z.ZodTypeDef, - DeleteStreamGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteStreamGlobals$ { - /** @deprecated use `DeleteStreamGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteStreamGlobals$inboundSchema; - /** @deprecated use `DeleteStreamGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteStreamGlobals$outboundSchema; - /** @deprecated use `DeleteStreamGlobals$Outbound` instead. */ - export type Outbound = DeleteStreamGlobals$Outbound; -} - -export function deleteStreamGlobalsToJSON( - deleteStreamGlobals: DeleteStreamGlobals, -): string { - return JSON.stringify( - DeleteStreamGlobals$outboundSchema.parse(deleteStreamGlobals), - ); -} - -export function deleteStreamGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteStreamGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteStreamGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteStreamRequest$inboundSchema: z.ZodType< - DeleteStreamRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - streamId: z.number().int(), - ext: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteStreamRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const DeleteStreamRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteStreamRequest$ { - /** @deprecated use `DeleteStreamRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteStreamRequest$inboundSchema; - /** @deprecated use `DeleteStreamRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteStreamRequest$outboundSchema; - /** @deprecated use `DeleteStreamRequest$Outbound` instead. */ - export type Outbound = DeleteStreamRequest$Outbound; -} - export function deleteStreamRequestToJSON( deleteStreamRequest: DeleteStreamRequest, ): string { @@ -342,16 +185,6 @@ export function deleteStreamRequestToJSON( ); } -export function deleteStreamRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteStreamRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteStreamRequest' from JSON`, - ); -} - /** @internal */ export const DeleteStreamResponse$inboundSchema: z.ZodType< DeleteStreamResponse, @@ -369,53 +202,6 @@ export const DeleteStreamResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteStreamResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteStreamResponse$outboundSchema: z.ZodType< - DeleteStreamResponse$Outbound, - z.ZodTypeDef, - DeleteStreamResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteStreamResponse$ { - /** @deprecated use `DeleteStreamResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteStreamResponse$inboundSchema; - /** @deprecated use `DeleteStreamResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteStreamResponse$outboundSchema; - /** @deprecated use `DeleteStreamResponse$Outbound` instead. */ - export type Outbound = DeleteStreamResponse$Outbound; -} - -export function deleteStreamResponseToJSON( - deleteStreamResponse: DeleteStreamResponse, -): string { - return JSON.stringify( - DeleteStreamResponse$outboundSchema.parse(deleteStreamResponse), - ); -} - export function deleteStreamResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletesubscription.ts b/src/sdk/models/operations/deletesubscription.ts index d71bd4c3..274b5cff 100644 --- a/src/sdk/models/operations/deletesubscription.ts +++ b/src/sdk/models/operations/deletesubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -119,149 +119,6 @@ export type DeleteSubscriptionResponse = { rawResponse: Response; }; -/** @internal */ -export const DeleteSubscriptionGlobals$inboundSchema: z.ZodType< - DeleteSubscriptionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DeleteSubscriptionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DeleteSubscriptionGlobals$outboundSchema: z.ZodType< - DeleteSubscriptionGlobals$Outbound, - z.ZodTypeDef, - DeleteSubscriptionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSubscriptionGlobals$ { - /** @deprecated use `DeleteSubscriptionGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteSubscriptionGlobals$inboundSchema; - /** @deprecated use `DeleteSubscriptionGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteSubscriptionGlobals$outboundSchema; - /** @deprecated use `DeleteSubscriptionGlobals$Outbound` instead. */ - export type Outbound = DeleteSubscriptionGlobals$Outbound; -} - -export function deleteSubscriptionGlobalsToJSON( - deleteSubscriptionGlobals: DeleteSubscriptionGlobals, -): string { - return JSON.stringify( - DeleteSubscriptionGlobals$outboundSchema.parse(deleteSubscriptionGlobals), - ); -} - -export function deleteSubscriptionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteSubscriptionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteSubscriptionGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteSubscriptionRequest$inboundSchema: z.ZodType< - DeleteSubscriptionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - subscriptionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DeleteSubscriptionRequest$Outbound = { accepts: string; @@ -311,19 +168,6 @@ export const DeleteSubscriptionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSubscriptionRequest$ { - /** @deprecated use `DeleteSubscriptionRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteSubscriptionRequest$inboundSchema; - /** @deprecated use `DeleteSubscriptionRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteSubscriptionRequest$outboundSchema; - /** @deprecated use `DeleteSubscriptionRequest$Outbound` instead. */ - export type Outbound = DeleteSubscriptionRequest$Outbound; -} - export function deleteSubscriptionRequestToJSON( deleteSubscriptionRequest: DeleteSubscriptionRequest, ): string { @@ -332,16 +176,6 @@ export function deleteSubscriptionRequestToJSON( ); } -export function deleteSubscriptionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteSubscriptionRequest' from JSON`, - ); -} - /** @internal */ export const DeleteSubscriptionResponse$inboundSchema: z.ZodType< DeleteSubscriptionResponse, @@ -359,53 +193,6 @@ export const DeleteSubscriptionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteSubscriptionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteSubscriptionResponse$outboundSchema: z.ZodType< - DeleteSubscriptionResponse$Outbound, - z.ZodTypeDef, - DeleteSubscriptionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSubscriptionResponse$ { - /** @deprecated use `DeleteSubscriptionResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteSubscriptionResponse$inboundSchema; - /** @deprecated use `DeleteSubscriptionResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteSubscriptionResponse$outboundSchema; - /** @deprecated use `DeleteSubscriptionResponse$Outbound` instead. */ - export type Outbound = DeleteSubscriptionResponse$Outbound; -} - -export function deleteSubscriptionResponseToJSON( - deleteSubscriptionResponse: DeleteSubscriptionResponse, -): string { - return JSON.stringify( - DeleteSubscriptionResponse$outboundSchema.parse(deleteSubscriptionResponse), - ); -} - export function deleteSubscriptionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/detectads.ts b/src/sdk/models/operations/detectads.ts index 8c829da1..94afb077 100644 --- a/src/sdk/models/operations/detectads.ts +++ b/src/sdk/models/operations/detectads.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -119,149 +119,6 @@ export type DetectAdsResponse = { rawResponse: Response; }; -/** @internal */ -export const DetectAdsGlobals$inboundSchema: z.ZodType< - DetectAdsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DetectAdsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DetectAdsGlobals$outboundSchema: z.ZodType< - DetectAdsGlobals$Outbound, - z.ZodTypeDef, - DetectAdsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectAdsGlobals$ { - /** @deprecated use `DetectAdsGlobals$inboundSchema` instead. */ - export const inboundSchema = DetectAdsGlobals$inboundSchema; - /** @deprecated use `DetectAdsGlobals$outboundSchema` instead. */ - export const outboundSchema = DetectAdsGlobals$outboundSchema; - /** @deprecated use `DetectAdsGlobals$Outbound` instead. */ - export type Outbound = DetectAdsGlobals$Outbound; -} - -export function detectAdsGlobalsToJSON( - detectAdsGlobals: DetectAdsGlobals, -): string { - return JSON.stringify( - DetectAdsGlobals$outboundSchema.parse(detectAdsGlobals), - ); -} - -export function detectAdsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectAdsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectAdsGlobals' from JSON`, - ); -} - -/** @internal */ -export const DetectAdsRequest$inboundSchema: z.ZodType< - DetectAdsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DetectAdsRequest$Outbound = { accepts: string; @@ -311,19 +168,6 @@ export const DetectAdsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectAdsRequest$ { - /** @deprecated use `DetectAdsRequest$inboundSchema` instead. */ - export const inboundSchema = DetectAdsRequest$inboundSchema; - /** @deprecated use `DetectAdsRequest$outboundSchema` instead. */ - export const outboundSchema = DetectAdsRequest$outboundSchema; - /** @deprecated use `DetectAdsRequest$Outbound` instead. */ - export type Outbound = DetectAdsRequest$Outbound; -} - export function detectAdsRequestToJSON( detectAdsRequest: DetectAdsRequest, ): string { @@ -332,16 +176,6 @@ export function detectAdsRequestToJSON( ); } -export function detectAdsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectAdsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectAdsRequest' from JSON`, - ); -} - /** @internal */ export const DetectAdsResponse$inboundSchema: z.ZodType< DetectAdsResponse, @@ -359,53 +193,6 @@ export const DetectAdsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DetectAdsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DetectAdsResponse$outboundSchema: z.ZodType< - DetectAdsResponse$Outbound, - z.ZodTypeDef, - DetectAdsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectAdsResponse$ { - /** @deprecated use `DetectAdsResponse$inboundSchema` instead. */ - export const inboundSchema = DetectAdsResponse$inboundSchema; - /** @deprecated use `DetectAdsResponse$outboundSchema` instead. */ - export const outboundSchema = DetectAdsResponse$outboundSchema; - /** @deprecated use `DetectAdsResponse$Outbound` instead. */ - export type Outbound = DetectAdsResponse$Outbound; -} - -export function detectAdsResponseToJSON( - detectAdsResponse: DetectAdsResponse, -): string { - return JSON.stringify( - DetectAdsResponse$outboundSchema.parse(detectAdsResponse), - ); -} - export function detectAdsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/detectcredits.ts b/src/sdk/models/operations/detectcredits.ts index da40407b..86eaa95d 100644 --- a/src/sdk/models/operations/detectcredits.ts +++ b/src/sdk/models/operations/detectcredits.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -121,151 +121,6 @@ export type DetectCreditsResponse = { rawResponse: Response; }; -/** @internal */ -export const DetectCreditsGlobals$inboundSchema: z.ZodType< - DetectCreditsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DetectCreditsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DetectCreditsGlobals$outboundSchema: z.ZodType< - DetectCreditsGlobals$Outbound, - z.ZodTypeDef, - DetectCreditsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectCreditsGlobals$ { - /** @deprecated use `DetectCreditsGlobals$inboundSchema` instead. */ - export const inboundSchema = DetectCreditsGlobals$inboundSchema; - /** @deprecated use `DetectCreditsGlobals$outboundSchema` instead. */ - export const outboundSchema = DetectCreditsGlobals$outboundSchema; - /** @deprecated use `DetectCreditsGlobals$Outbound` instead. */ - export type Outbound = DetectCreditsGlobals$Outbound; -} - -export function detectCreditsGlobalsToJSON( - detectCreditsGlobals: DetectCreditsGlobals, -): string { - return JSON.stringify( - DetectCreditsGlobals$outboundSchema.parse(detectCreditsGlobals), - ); -} - -export function detectCreditsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectCreditsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectCreditsGlobals' from JSON`, - ); -} - -/** @internal */ -export const DetectCreditsRequest$inboundSchema: z.ZodType< - DetectCreditsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - force: shared.BoolInt$inboundSchema.optional(), - manual: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DetectCreditsRequest$Outbound = { accepts: string; @@ -319,19 +174,6 @@ export const DetectCreditsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectCreditsRequest$ { - /** @deprecated use `DetectCreditsRequest$inboundSchema` instead. */ - export const inboundSchema = DetectCreditsRequest$inboundSchema; - /** @deprecated use `DetectCreditsRequest$outboundSchema` instead. */ - export const outboundSchema = DetectCreditsRequest$outboundSchema; - /** @deprecated use `DetectCreditsRequest$Outbound` instead. */ - export type Outbound = DetectCreditsRequest$Outbound; -} - export function detectCreditsRequestToJSON( detectCreditsRequest: DetectCreditsRequest, ): string { @@ -340,16 +182,6 @@ export function detectCreditsRequestToJSON( ); } -export function detectCreditsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectCreditsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectCreditsRequest' from JSON`, - ); -} - /** @internal */ export const DetectCreditsResponse$inboundSchema: z.ZodType< DetectCreditsResponse, @@ -367,53 +199,6 @@ export const DetectCreditsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DetectCreditsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DetectCreditsResponse$outboundSchema: z.ZodType< - DetectCreditsResponse$Outbound, - z.ZodTypeDef, - DetectCreditsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectCreditsResponse$ { - /** @deprecated use `DetectCreditsResponse$inboundSchema` instead. */ - export const inboundSchema = DetectCreditsResponse$inboundSchema; - /** @deprecated use `DetectCreditsResponse$outboundSchema` instead. */ - export const outboundSchema = DetectCreditsResponse$outboundSchema; - /** @deprecated use `DetectCreditsResponse$Outbound` instead. */ - export type Outbound = DetectCreditsResponse$Outbound; -} - -export function detectCreditsResponseToJSON( - detectCreditsResponse: DetectCreditsResponse, -): string { - return JSON.stringify( - DetectCreditsResponse$outboundSchema.parse(detectCreditsResponse), - ); -} - export function detectCreditsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/detectintros.ts b/src/sdk/models/operations/detectintros.ts index 2c5f6bab..372e7bfe 100644 --- a/src/sdk/models/operations/detectintros.ts +++ b/src/sdk/models/operations/detectintros.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,151 +127,6 @@ export type DetectIntrosResponse = { rawResponse: Response; }; -/** @internal */ -export const DetectIntrosGlobals$inboundSchema: z.ZodType< - DetectIntrosGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DetectIntrosGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DetectIntrosGlobals$outboundSchema: z.ZodType< - DetectIntrosGlobals$Outbound, - z.ZodTypeDef, - DetectIntrosGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectIntrosGlobals$ { - /** @deprecated use `DetectIntrosGlobals$inboundSchema` instead. */ - export const inboundSchema = DetectIntrosGlobals$inboundSchema; - /** @deprecated use `DetectIntrosGlobals$outboundSchema` instead. */ - export const outboundSchema = DetectIntrosGlobals$outboundSchema; - /** @deprecated use `DetectIntrosGlobals$Outbound` instead. */ - export type Outbound = DetectIntrosGlobals$Outbound; -} - -export function detectIntrosGlobalsToJSON( - detectIntrosGlobals: DetectIntrosGlobals, -): string { - return JSON.stringify( - DetectIntrosGlobals$outboundSchema.parse(detectIntrosGlobals), - ); -} - -export function detectIntrosGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectIntrosGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectIntrosGlobals' from JSON`, - ); -} - -/** @internal */ -export const DetectIntrosRequest$inboundSchema: z.ZodType< - DetectIntrosRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - force: shared.BoolInt$inboundSchema.optional(), - threshold: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DetectIntrosRequest$Outbound = { accepts: string; @@ -325,19 +180,6 @@ export const DetectIntrosRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectIntrosRequest$ { - /** @deprecated use `DetectIntrosRequest$inboundSchema` instead. */ - export const inboundSchema = DetectIntrosRequest$inboundSchema; - /** @deprecated use `DetectIntrosRequest$outboundSchema` instead. */ - export const outboundSchema = DetectIntrosRequest$outboundSchema; - /** @deprecated use `DetectIntrosRequest$Outbound` instead. */ - export type Outbound = DetectIntrosRequest$Outbound; -} - export function detectIntrosRequestToJSON( detectIntrosRequest: DetectIntrosRequest, ): string { @@ -346,16 +188,6 @@ export function detectIntrosRequestToJSON( ); } -export function detectIntrosRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectIntrosRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectIntrosRequest' from JSON`, - ); -} - /** @internal */ export const DetectIntrosResponse$inboundSchema: z.ZodType< DetectIntrosResponse, @@ -373,53 +205,6 @@ export const DetectIntrosResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DetectIntrosResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DetectIntrosResponse$outboundSchema: z.ZodType< - DetectIntrosResponse$Outbound, - z.ZodTypeDef, - DetectIntrosResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectIntrosResponse$ { - /** @deprecated use `DetectIntrosResponse$inboundSchema` instead. */ - export const inboundSchema = DetectIntrosResponse$inboundSchema; - /** @deprecated use `DetectIntrosResponse$outboundSchema` instead. */ - export const outboundSchema = DetectIntrosResponse$outboundSchema; - /** @deprecated use `DetectIntrosResponse$Outbound` instead. */ - export type Outbound = DetectIntrosResponse$Outbound; -} - -export function detectIntrosResponseToJSON( - detectIntrosResponse: DetectIntrosResponse, -): string { - return JSON.stringify( - DetectIntrosResponse$outboundSchema.parse(detectIntrosResponse), - ); -} - export function detectIntrosResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/detectvoiceactivity.ts b/src/sdk/models/operations/detectvoiceactivity.ts index ce5278ea..08249221 100644 --- a/src/sdk/models/operations/detectvoiceactivity.ts +++ b/src/sdk/models/operations/detectvoiceactivity.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,151 +127,6 @@ export type DetectVoiceActivityResponse = { rawResponse: Response; }; -/** @internal */ -export const DetectVoiceActivityGlobals$inboundSchema: z.ZodType< - DetectVoiceActivityGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type DetectVoiceActivityGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const DetectVoiceActivityGlobals$outboundSchema: z.ZodType< - DetectVoiceActivityGlobals$Outbound, - z.ZodTypeDef, - DetectVoiceActivityGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectVoiceActivityGlobals$ { - /** @deprecated use `DetectVoiceActivityGlobals$inboundSchema` instead. */ - export const inboundSchema = DetectVoiceActivityGlobals$inboundSchema; - /** @deprecated use `DetectVoiceActivityGlobals$outboundSchema` instead. */ - export const outboundSchema = DetectVoiceActivityGlobals$outboundSchema; - /** @deprecated use `DetectVoiceActivityGlobals$Outbound` instead. */ - export type Outbound = DetectVoiceActivityGlobals$Outbound; -} - -export function detectVoiceActivityGlobalsToJSON( - detectVoiceActivityGlobals: DetectVoiceActivityGlobals, -): string { - return JSON.stringify( - DetectVoiceActivityGlobals$outboundSchema.parse(detectVoiceActivityGlobals), - ); -} - -export function detectVoiceActivityGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectVoiceActivityGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectVoiceActivityGlobals' from JSON`, - ); -} - -/** @internal */ -export const DetectVoiceActivityRequest$inboundSchema: z.ZodType< - DetectVoiceActivityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - force: shared.BoolInt$inboundSchema.optional(), - manual: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type DetectVoiceActivityRequest$Outbound = { accepts: string; @@ -325,19 +180,6 @@ export const DetectVoiceActivityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectVoiceActivityRequest$ { - /** @deprecated use `DetectVoiceActivityRequest$inboundSchema` instead. */ - export const inboundSchema = DetectVoiceActivityRequest$inboundSchema; - /** @deprecated use `DetectVoiceActivityRequest$outboundSchema` instead. */ - export const outboundSchema = DetectVoiceActivityRequest$outboundSchema; - /** @deprecated use `DetectVoiceActivityRequest$Outbound` instead. */ - export type Outbound = DetectVoiceActivityRequest$Outbound; -} - export function detectVoiceActivityRequestToJSON( detectVoiceActivityRequest: DetectVoiceActivityRequest, ): string { @@ -346,16 +188,6 @@ export function detectVoiceActivityRequestToJSON( ); } -export function detectVoiceActivityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DetectVoiceActivityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DetectVoiceActivityRequest' from JSON`, - ); -} - /** @internal */ export const DetectVoiceActivityResponse$inboundSchema: z.ZodType< DetectVoiceActivityResponse, @@ -373,55 +205,6 @@ export const DetectVoiceActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DetectVoiceActivityResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DetectVoiceActivityResponse$outboundSchema: z.ZodType< - DetectVoiceActivityResponse$Outbound, - z.ZodTypeDef, - DetectVoiceActivityResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DetectVoiceActivityResponse$ { - /** @deprecated use `DetectVoiceActivityResponse$inboundSchema` instead. */ - export const inboundSchema = DetectVoiceActivityResponse$inboundSchema; - /** @deprecated use `DetectVoiceActivityResponse$outboundSchema` instead. */ - export const outboundSchema = DetectVoiceActivityResponse$outboundSchema; - /** @deprecated use `DetectVoiceActivityResponse$Outbound` instead. */ - export type Outbound = DetectVoiceActivityResponse$Outbound; -} - -export function detectVoiceActivityResponseToJSON( - detectVoiceActivityResponse: DetectVoiceActivityResponse, -): string { - return JSON.stringify( - DetectVoiceActivityResponse$outboundSchema.parse( - detectVoiceActivityResponse, - ), - ); -} - export function detectVoiceActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/discoverdevices.ts b/src/sdk/models/operations/discoverdevices.ts index 82e07967..ee5cf3ae 100644 --- a/src/sdk/models/operations/discoverdevices.ts +++ b/src/sdk/models/operations/discoverdevices.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,59 +48,6 @@ export const DiscoverDevicesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DiscoverDevicesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; -}; - -/** @internal */ -export const DiscoverDevicesResponse$outboundSchema: z.ZodType< - DiscoverDevicesResponse$Outbound, - z.ZodTypeDef, - DiscoverDevicesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DiscoverDevicesResponse$ { - /** @deprecated use `DiscoverDevicesResponse$inboundSchema` instead. */ - export const inboundSchema = DiscoverDevicesResponse$inboundSchema; - /** @deprecated use `DiscoverDevicesResponse$outboundSchema` instead. */ - export const outboundSchema = DiscoverDevicesResponse$outboundSchema; - /** @deprecated use `DiscoverDevicesResponse$Outbound` instead. */ - export type Outbound = DiscoverDevicesResponse$Outbound; -} - -export function discoverDevicesResponseToJSON( - discoverDevicesResponse: DiscoverDevicesResponse, -): string { - return JSON.stringify( - DiscoverDevicesResponse$outboundSchema.parse(discoverDevicesResponse), - ); -} - export function discoverDevicesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/editmarker.ts b/src/sdk/models/operations/editmarker.ts index 69f0e902..82cb639b 100644 --- a/src/sdk/models/operations/editmarker.ts +++ b/src/sdk/models/operations/editmarker.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -148,123 +148,6 @@ export type EditMarkerResponse = { postResponses200?: shared.PostResponses200 | undefined; }; -/** @internal */ -export const EditMarkerGlobals$inboundSchema: z.ZodType< - EditMarkerGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EditMarkerGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EditMarkerGlobals$outboundSchema: z.ZodType< - EditMarkerGlobals$Outbound, - z.ZodTypeDef, - EditMarkerGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMarkerGlobals$ { - /** @deprecated use `EditMarkerGlobals$inboundSchema` instead. */ - export const inboundSchema = EditMarkerGlobals$inboundSchema; - /** @deprecated use `EditMarkerGlobals$outboundSchema` instead. */ - export const outboundSchema = EditMarkerGlobals$outboundSchema; - /** @deprecated use `EditMarkerGlobals$Outbound` instead. */ - export type Outbound = EditMarkerGlobals$Outbound; -} - -export function editMarkerGlobalsToJSON( - editMarkerGlobals: EditMarkerGlobals, -): string { - return JSON.stringify( - EditMarkerGlobals$outboundSchema.parse(editMarkerGlobals), - ); -} - -export function editMarkerGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMarkerGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMarkerGlobals' from JSON`, - ); -} - -/** @internal */ -export const EditMarkerAttributes$inboundSchema: z.ZodType< - EditMarkerAttributes, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type EditMarkerAttributes$Outbound = {}; @@ -275,19 +158,6 @@ export const EditMarkerAttributes$outboundSchema: z.ZodType< EditMarkerAttributes > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMarkerAttributes$ { - /** @deprecated use `EditMarkerAttributes$inboundSchema` instead. */ - export const inboundSchema = EditMarkerAttributes$inboundSchema; - /** @deprecated use `EditMarkerAttributes$outboundSchema` instead. */ - export const outboundSchema = EditMarkerAttributes$outboundSchema; - /** @deprecated use `EditMarkerAttributes$Outbound` instead. */ - export type Outbound = EditMarkerAttributes$Outbound; -} - export function editMarkerAttributesToJSON( editMarkerAttributes: EditMarkerAttributes, ): string { @@ -296,54 +166,6 @@ export function editMarkerAttributesToJSON( ); } -export function editMarkerAttributesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMarkerAttributes$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMarkerAttributes' from JSON`, - ); -} - -/** @internal */ -export const EditMarkerRequest$inboundSchema: z.ZodType< - EditMarkerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - marker: z.string(), - type: z.number().int(), - startTimeOffset: z.number().int(), - endTimeOffset: z.number().int().optional(), - attributes: z.lazy(() => EditMarkerAttributes$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EditMarkerRequest$Outbound = { accepts: string; @@ -403,19 +225,6 @@ export const EditMarkerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMarkerRequest$ { - /** @deprecated use `EditMarkerRequest$inboundSchema` instead. */ - export const inboundSchema = EditMarkerRequest$inboundSchema; - /** @deprecated use `EditMarkerRequest$outboundSchema` instead. */ - export const outboundSchema = EditMarkerRequest$outboundSchema; - /** @deprecated use `EditMarkerRequest$Outbound` instead. */ - export type Outbound = EditMarkerRequest$Outbound; -} - export function editMarkerRequestToJSON( editMarkerRequest: EditMarkerRequest, ): string { @@ -424,16 +233,6 @@ export function editMarkerRequestToJSON( ); } -export function editMarkerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMarkerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMarkerRequest' from JSON`, - ); -} - /** @internal */ export const EditMarkerResponse$inboundSchema: z.ZodType< EditMarkerResponse, @@ -453,56 +252,6 @@ export const EditMarkerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EditMarkerResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "post-responses-200"?: shared.PostResponses200$Outbound | undefined; -}; - -/** @internal */ -export const EditMarkerResponse$outboundSchema: z.ZodType< - EditMarkerResponse$Outbound, - z.ZodTypeDef, - EditMarkerResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - postResponses200: shared.PostResponses200$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - postResponses200: "post-responses-200", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMarkerResponse$ { - /** @deprecated use `EditMarkerResponse$inboundSchema` instead. */ - export const inboundSchema = EditMarkerResponse$inboundSchema; - /** @deprecated use `EditMarkerResponse$outboundSchema` instead. */ - export const outboundSchema = EditMarkerResponse$outboundSchema; - /** @deprecated use `EditMarkerResponse$Outbound` instead. */ - export type Outbound = EditMarkerResponse$Outbound; -} - -export function editMarkerResponseToJSON( - editMarkerResponse: EditMarkerResponse, -): string { - return JSON.stringify( - EditMarkerResponse$outboundSchema.parse(editMarkerResponse), - ); -} - export function editMarkerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/editmetadataitem.ts b/src/sdk/models/operations/editmetadataitem.ts index cd5186ae..f7349e22 100644 --- a/src/sdk/models/operations/editmetadataitem.ts +++ b/src/sdk/models/operations/editmetadataitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,123 +128,6 @@ export type EditMetadataItemResponse = { rawResponse: Response; }; -/** @internal */ -export const EditMetadataItemGlobals$inboundSchema: z.ZodType< - EditMetadataItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EditMetadataItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EditMetadataItemGlobals$outboundSchema: z.ZodType< - EditMetadataItemGlobals$Outbound, - z.ZodTypeDef, - EditMetadataItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMetadataItemGlobals$ { - /** @deprecated use `EditMetadataItemGlobals$inboundSchema` instead. */ - export const inboundSchema = EditMetadataItemGlobals$inboundSchema; - /** @deprecated use `EditMetadataItemGlobals$outboundSchema` instead. */ - export const outboundSchema = EditMetadataItemGlobals$outboundSchema; - /** @deprecated use `EditMetadataItemGlobals$Outbound` instead. */ - export type Outbound = EditMetadataItemGlobals$Outbound; -} - -export function editMetadataItemGlobalsToJSON( - editMetadataItemGlobals: EditMetadataItemGlobals, -): string { - return JSON.stringify( - EditMetadataItemGlobals$outboundSchema.parse(editMetadataItemGlobals), - ); -} - -export function editMetadataItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMetadataItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMetadataItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const EditMetadataItemArgs$inboundSchema: z.ZodType< - EditMetadataItemArgs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type EditMetadataItemArgs$Outbound = {}; @@ -255,19 +138,6 @@ export const EditMetadataItemArgs$outboundSchema: z.ZodType< EditMetadataItemArgs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMetadataItemArgs$ { - /** @deprecated use `EditMetadataItemArgs$inboundSchema` instead. */ - export const inboundSchema = EditMetadataItemArgs$inboundSchema; - /** @deprecated use `EditMetadataItemArgs$outboundSchema` instead. */ - export const outboundSchema = EditMetadataItemArgs$outboundSchema; - /** @deprecated use `EditMetadataItemArgs$Outbound` instead. */ - export type Outbound = EditMetadataItemArgs$Outbound; -} - export function editMetadataItemArgsToJSON( editMetadataItemArgs: EditMetadataItemArgs, ): string { @@ -276,50 +146,6 @@ export function editMetadataItemArgsToJSON( ); } -export function editMetadataItemArgsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMetadataItemArgs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMetadataItemArgs' from JSON`, - ); -} - -/** @internal */ -export const EditMetadataItemRequest$inboundSchema: z.ZodType< - EditMetadataItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.array(z.string()), - args: z.lazy(() => EditMetadataItemArgs$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EditMetadataItemRequest$Outbound = { accepts: string; @@ -371,19 +197,6 @@ export const EditMetadataItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMetadataItemRequest$ { - /** @deprecated use `EditMetadataItemRequest$inboundSchema` instead. */ - export const inboundSchema = EditMetadataItemRequest$inboundSchema; - /** @deprecated use `EditMetadataItemRequest$outboundSchema` instead. */ - export const outboundSchema = EditMetadataItemRequest$outboundSchema; - /** @deprecated use `EditMetadataItemRequest$Outbound` instead. */ - export type Outbound = EditMetadataItemRequest$Outbound; -} - export function editMetadataItemRequestToJSON( editMetadataItemRequest: EditMetadataItemRequest, ): string { @@ -392,16 +205,6 @@ export function editMetadataItemRequestToJSON( ); } -export function editMetadataItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditMetadataItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditMetadataItemRequest' from JSON`, - ); -} - /** @internal */ export const EditMetadataItemResponse$inboundSchema: z.ZodType< EditMetadataItemResponse, @@ -419,53 +222,6 @@ export const EditMetadataItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EditMetadataItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const EditMetadataItemResponse$outboundSchema: z.ZodType< - EditMetadataItemResponse$Outbound, - z.ZodTypeDef, - EditMetadataItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditMetadataItemResponse$ { - /** @deprecated use `EditMetadataItemResponse$inboundSchema` instead. */ - export const inboundSchema = EditMetadataItemResponse$inboundSchema; - /** @deprecated use `EditMetadataItemResponse$outboundSchema` instead. */ - export const outboundSchema = EditMetadataItemResponse$outboundSchema; - /** @deprecated use `EditMetadataItemResponse$Outbound` instead. */ - export type Outbound = EditMetadataItemResponse$Outbound; -} - -export function editMetadataItemResponseToJSON( - editMetadataItemResponse: EditMetadataItemResponse, -): string { - return JSON.stringify( - EditMetadataItemResponse$outboundSchema.parse(editMetadataItemResponse), - ); -} - export function editMetadataItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/editsection.ts b/src/sdk/models/operations/editsection.ts index b4431e55..e86b1b61 100644 --- a/src/sdk/models/operations/editsection.ts +++ b/src/sdk/models/operations/editsection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -155,123 +155,6 @@ export type EditSectionResponse = { rawResponse: Response; }; -/** @internal */ -export const EditSectionGlobals$inboundSchema: z.ZodType< - EditSectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EditSectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EditSectionGlobals$outboundSchema: z.ZodType< - EditSectionGlobals$Outbound, - z.ZodTypeDef, - EditSectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSectionGlobals$ { - /** @deprecated use `EditSectionGlobals$inboundSchema` instead. */ - export const inboundSchema = EditSectionGlobals$inboundSchema; - /** @deprecated use `EditSectionGlobals$outboundSchema` instead. */ - export const outboundSchema = EditSectionGlobals$outboundSchema; - /** @deprecated use `EditSectionGlobals$Outbound` instead. */ - export type Outbound = EditSectionGlobals$Outbound; -} - -export function editSectionGlobalsToJSON( - editSectionGlobals: EditSectionGlobals, -): string { - return JSON.stringify( - EditSectionGlobals$outboundSchema.parse(editSectionGlobals), - ); -} - -export function editSectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditSectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const EditSectionPrefs$inboundSchema: z.ZodType< - EditSectionPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type EditSectionPrefs$Outbound = {}; @@ -282,19 +165,6 @@ export const EditSectionPrefs$outboundSchema: z.ZodType< EditSectionPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSectionPrefs$ { - /** @deprecated use `EditSectionPrefs$inboundSchema` instead. */ - export const inboundSchema = EditSectionPrefs$inboundSchema; - /** @deprecated use `EditSectionPrefs$outboundSchema` instead. */ - export const outboundSchema = EditSectionPrefs$outboundSchema; - /** @deprecated use `EditSectionPrefs$Outbound` instead. */ - export type Outbound = EditSectionPrefs$Outbound; -} - export function editSectionPrefsToJSON( editSectionPrefs: EditSectionPrefs, ): string { @@ -303,56 +173,6 @@ export function editSectionPrefsToJSON( ); } -export function editSectionPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditSectionPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSectionPrefs' from JSON`, - ); -} - -/** @internal */ -export const EditSectionRequest$inboundSchema: z.ZodType< - EditSectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.string(), - name: z.string().optional(), - scanner: z.string().optional(), - agent: z.string(), - metadataAgentProviderGroupId: z.string().optional(), - language: z.string().optional(), - locations: z.array(z.string()).optional(), - prefs: z.lazy(() => EditSectionPrefs$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EditSectionRequest$Outbound = { accepts: string; @@ -416,19 +236,6 @@ export const EditSectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSectionRequest$ { - /** @deprecated use `EditSectionRequest$inboundSchema` instead. */ - export const inboundSchema = EditSectionRequest$inboundSchema; - /** @deprecated use `EditSectionRequest$outboundSchema` instead. */ - export const outboundSchema = EditSectionRequest$outboundSchema; - /** @deprecated use `EditSectionRequest$Outbound` instead. */ - export type Outbound = EditSectionRequest$Outbound; -} - export function editSectionRequestToJSON( editSectionRequest: EditSectionRequest, ): string { @@ -437,16 +244,6 @@ export function editSectionRequestToJSON( ); } -export function editSectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditSectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSectionRequest' from JSON`, - ); -} - /** @internal */ export const EditSectionResponse$inboundSchema: z.ZodType< EditSectionResponse, @@ -464,53 +261,6 @@ export const EditSectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EditSectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const EditSectionResponse$outboundSchema: z.ZodType< - EditSectionResponse$Outbound, - z.ZodTypeDef, - EditSectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSectionResponse$ { - /** @deprecated use `EditSectionResponse$inboundSchema` instead. */ - export const inboundSchema = EditSectionResponse$inboundSchema; - /** @deprecated use `EditSectionResponse$outboundSchema` instead. */ - export const outboundSchema = EditSectionResponse$outboundSchema; - /** @deprecated use `EditSectionResponse$Outbound` instead. */ - export type Outbound = EditSectionResponse$Outbound; -} - -export function editSectionResponseToJSON( - editSectionResponse: EditSectionResponse, -): string { - return JSON.stringify( - EditSectionResponse$outboundSchema.parse(editSectionResponse), - ); -} - export function editSectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/editsubscriptionpreferences.ts b/src/sdk/models/operations/editsubscriptionpreferences.ts index 75f263dc..7f1d2f57 100644 --- a/src/sdk/models/operations/editsubscriptionpreferences.ts +++ b/src/sdk/models/operations/editsubscriptionpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,127 +128,6 @@ export type EditSubscriptionPreferencesResponse = { | undefined; }; -/** @internal */ -export const EditSubscriptionPreferencesGlobals$inboundSchema: z.ZodType< - EditSubscriptionPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EditSubscriptionPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EditSubscriptionPreferencesGlobals$outboundSchema: z.ZodType< - EditSubscriptionPreferencesGlobals$Outbound, - z.ZodTypeDef, - EditSubscriptionPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSubscriptionPreferencesGlobals$ { - /** @deprecated use `EditSubscriptionPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = EditSubscriptionPreferencesGlobals$inboundSchema; - /** @deprecated use `EditSubscriptionPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = - EditSubscriptionPreferencesGlobals$outboundSchema; - /** @deprecated use `EditSubscriptionPreferencesGlobals$Outbound` instead. */ - export type Outbound = EditSubscriptionPreferencesGlobals$Outbound; -} - -export function editSubscriptionPreferencesGlobalsToJSON( - editSubscriptionPreferencesGlobals: EditSubscriptionPreferencesGlobals, -): string { - return JSON.stringify( - EditSubscriptionPreferencesGlobals$outboundSchema.parse( - editSubscriptionPreferencesGlobals, - ), - ); -} - -export function editSubscriptionPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EditSubscriptionPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSubscriptionPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const EditSubscriptionPreferencesPrefs$inboundSchema: z.ZodType< - EditSubscriptionPreferencesPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type EditSubscriptionPreferencesPrefs$Outbound = {}; @@ -259,19 +138,6 @@ export const EditSubscriptionPreferencesPrefs$outboundSchema: z.ZodType< EditSubscriptionPreferencesPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSubscriptionPreferencesPrefs$ { - /** @deprecated use `EditSubscriptionPreferencesPrefs$inboundSchema` instead. */ - export const inboundSchema = EditSubscriptionPreferencesPrefs$inboundSchema; - /** @deprecated use `EditSubscriptionPreferencesPrefs$outboundSchema` instead. */ - export const outboundSchema = EditSubscriptionPreferencesPrefs$outboundSchema; - /** @deprecated use `EditSubscriptionPreferencesPrefs$Outbound` instead. */ - export type Outbound = EditSubscriptionPreferencesPrefs$Outbound; -} - export function editSubscriptionPreferencesPrefsToJSON( editSubscriptionPreferencesPrefs: EditSubscriptionPreferencesPrefs, ): string { @@ -282,51 +148,6 @@ export function editSubscriptionPreferencesPrefsToJSON( ); } -export function editSubscriptionPreferencesPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditSubscriptionPreferencesPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSubscriptionPreferencesPrefs' from JSON`, - ); -} - -/** @internal */ -export const EditSubscriptionPreferencesRequest$inboundSchema: z.ZodType< - EditSubscriptionPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - subscriptionId: z.number().int(), - prefs: z.lazy(() => EditSubscriptionPreferencesPrefs$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EditSubscriptionPreferencesRequest$Outbound = { accepts: string; @@ -379,20 +200,6 @@ export const EditSubscriptionPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSubscriptionPreferencesRequest$ { - /** @deprecated use `EditSubscriptionPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = EditSubscriptionPreferencesRequest$inboundSchema; - /** @deprecated use `EditSubscriptionPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = - EditSubscriptionPreferencesRequest$outboundSchema; - /** @deprecated use `EditSubscriptionPreferencesRequest$Outbound` instead. */ - export type Outbound = EditSubscriptionPreferencesRequest$Outbound; -} - export function editSubscriptionPreferencesRequestToJSON( editSubscriptionPreferencesRequest: EditSubscriptionPreferencesRequest, ): string { @@ -403,17 +210,6 @@ export function editSubscriptionPreferencesRequestToJSON( ); } -export function editSubscriptionPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EditSubscriptionPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditSubscriptionPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const EditSubscriptionPreferencesResponse$inboundSchema: z.ZodType< EditSubscriptionPreferencesResponse, @@ -434,63 +230,6 @@ export const EditSubscriptionPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EditSubscriptionPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription$Outbound - | undefined; -}; - -/** @internal */ -export const EditSubscriptionPreferencesResponse$outboundSchema: z.ZodType< - EditSubscriptionPreferencesResponse$Outbound, - z.ZodTypeDef, - EditSubscriptionPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSubscription: shared - .MediaContainerWithSubscription$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSubscription: "MediaContainerWithSubscription", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditSubscriptionPreferencesResponse$ { - /** @deprecated use `EditSubscriptionPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = - EditSubscriptionPreferencesResponse$inboundSchema; - /** @deprecated use `EditSubscriptionPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = - EditSubscriptionPreferencesResponse$outboundSchema; - /** @deprecated use `EditSubscriptionPreferencesResponse$Outbound` instead. */ - export type Outbound = EditSubscriptionPreferencesResponse$Outbound; -} - -export function editSubscriptionPreferencesResponseToJSON( - editSubscriptionPreferencesResponse: EditSubscriptionPreferencesResponse, -): string { - return JSON.stringify( - EditSubscriptionPreferencesResponse$outboundSchema.parse( - editSubscriptionPreferencesResponse, - ), - ); -} - export function editSubscriptionPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/emptytrash.ts b/src/sdk/models/operations/emptytrash.ts index 10bce7cb..7bc84327 100644 --- a/src/sdk/models/operations/emptytrash.ts +++ b/src/sdk/models/operations/emptytrash.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type EmptyTrashResponse = { rawResponse: Response; }; -/** @internal */ -export const EmptyTrashGlobals$inboundSchema: z.ZodType< - EmptyTrashGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EmptyTrashGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EmptyTrashGlobals$outboundSchema: z.ZodType< - EmptyTrashGlobals$Outbound, - z.ZodTypeDef, - EmptyTrashGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmptyTrashGlobals$ { - /** @deprecated use `EmptyTrashGlobals$inboundSchema` instead. */ - export const inboundSchema = EmptyTrashGlobals$inboundSchema; - /** @deprecated use `EmptyTrashGlobals$outboundSchema` instead. */ - export const outboundSchema = EmptyTrashGlobals$outboundSchema; - /** @deprecated use `EmptyTrashGlobals$Outbound` instead. */ - export type Outbound = EmptyTrashGlobals$Outbound; -} - -export function emptyTrashGlobalsToJSON( - emptyTrashGlobals: EmptyTrashGlobals, -): string { - return JSON.stringify( - EmptyTrashGlobals$outboundSchema.parse(emptyTrashGlobals), - ); -} - -export function emptyTrashGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmptyTrashGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmptyTrashGlobals' from JSON`, - ); -} - -/** @internal */ -export const EmptyTrashRequest$inboundSchema: z.ZodType< - EmptyTrashRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EmptyTrashRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const EmptyTrashRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmptyTrashRequest$ { - /** @deprecated use `EmptyTrashRequest$inboundSchema` instead. */ - export const inboundSchema = EmptyTrashRequest$inboundSchema; - /** @deprecated use `EmptyTrashRequest$outboundSchema` instead. */ - export const outboundSchema = EmptyTrashRequest$outboundSchema; - /** @deprecated use `EmptyTrashRequest$Outbound` instead. */ - export type Outbound = EmptyTrashRequest$Outbound; -} - export function emptyTrashRequestToJSON( emptyTrashRequest: EmptyTrashRequest, ): string { @@ -335,16 +179,6 @@ export function emptyTrashRequestToJSON( ); } -export function emptyTrashRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmptyTrashRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmptyTrashRequest' from JSON`, - ); -} - /** @internal */ export const EmptyTrashResponse$inboundSchema: z.ZodType< EmptyTrashResponse, @@ -362,53 +196,6 @@ export const EmptyTrashResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EmptyTrashResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const EmptyTrashResponse$outboundSchema: z.ZodType< - EmptyTrashResponse$Outbound, - z.ZodTypeDef, - EmptyTrashResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmptyTrashResponse$ { - /** @deprecated use `EmptyTrashResponse$inboundSchema` instead. */ - export const inboundSchema = EmptyTrashResponse$inboundSchema; - /** @deprecated use `EmptyTrashResponse$outboundSchema` instead. */ - export const outboundSchema = EmptyTrashResponse$outboundSchema; - /** @deprecated use `EmptyTrashResponse$Outbound` instead. */ - export type Outbound = EmptyTrashResponse$Outbound; -} - -export function emptyTrashResponseToJSON( - emptyTrashResponse: EmptyTrashResponse, -): string { - return JSON.stringify( - EmptyTrashResponse$outboundSchema.parse(emptyTrashResponse), - ); -} - export function emptyTrashResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/enablepapertrail.ts b/src/sdk/models/operations/enablepapertrail.ts index 9c1d2a0e..93c82cb1 100644 --- a/src/sdk/models/operations/enablepapertrail.ts +++ b/src/sdk/models/operations/enablepapertrail.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type EnablePapertrailResponse = { rawResponse: Response; }; -/** @internal */ -export const EnablePapertrailGlobals$inboundSchema: z.ZodType< - EnablePapertrailGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type EnablePapertrailGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const EnablePapertrailGlobals$outboundSchema: z.ZodType< - EnablePapertrailGlobals$Outbound, - z.ZodTypeDef, - EnablePapertrailGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnablePapertrailGlobals$ { - /** @deprecated use `EnablePapertrailGlobals$inboundSchema` instead. */ - export const inboundSchema = EnablePapertrailGlobals$inboundSchema; - /** @deprecated use `EnablePapertrailGlobals$outboundSchema` instead. */ - export const outboundSchema = EnablePapertrailGlobals$outboundSchema; - /** @deprecated use `EnablePapertrailGlobals$Outbound` instead. */ - export type Outbound = EnablePapertrailGlobals$Outbound; -} - -export function enablePapertrailGlobalsToJSON( - enablePapertrailGlobals: EnablePapertrailGlobals, -): string { - return JSON.stringify( - EnablePapertrailGlobals$outboundSchema.parse(enablePapertrailGlobals), - ); -} - -export function enablePapertrailGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnablePapertrailGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnablePapertrailGlobals' from JSON`, - ); -} - -/** @internal */ -export const EnablePapertrailRequest$inboundSchema: z.ZodType< - EnablePapertrailRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - minutes: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type EnablePapertrailRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const EnablePapertrailRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnablePapertrailRequest$ { - /** @deprecated use `EnablePapertrailRequest$inboundSchema` instead. */ - export const inboundSchema = EnablePapertrailRequest$inboundSchema; - /** @deprecated use `EnablePapertrailRequest$outboundSchema` instead. */ - export const outboundSchema = EnablePapertrailRequest$outboundSchema; - /** @deprecated use `EnablePapertrailRequest$Outbound` instead. */ - export type Outbound = EnablePapertrailRequest$Outbound; -} - export function enablePapertrailRequestToJSON( enablePapertrailRequest: EnablePapertrailRequest, ): string { @@ -335,16 +179,6 @@ export function enablePapertrailRequestToJSON( ); } -export function enablePapertrailRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnablePapertrailRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnablePapertrailRequest' from JSON`, - ); -} - /** @internal */ export const EnablePapertrailResponse$inboundSchema: z.ZodType< EnablePapertrailResponse, @@ -362,53 +196,6 @@ export const EnablePapertrailResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EnablePapertrailResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const EnablePapertrailResponse$outboundSchema: z.ZodType< - EnablePapertrailResponse$Outbound, - z.ZodTypeDef, - EnablePapertrailResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnablePapertrailResponse$ { - /** @deprecated use `EnablePapertrailResponse$inboundSchema` instead. */ - export const inboundSchema = EnablePapertrailResponse$inboundSchema; - /** @deprecated use `EnablePapertrailResponse$outboundSchema` instead. */ - export const outboundSchema = EnablePapertrailResponse$outboundSchema; - /** @deprecated use `EnablePapertrailResponse$Outbound` instead. */ - export type Outbound = EnablePapertrailResponse$Outbound; -} - -export function enablePapertrailResponseToJSON( - enablePapertrailResponse: EnablePapertrailResponse, -): string { - return JSON.stringify( - EnablePapertrailResponse$outboundSchema.parse(enablePapertrailResponse), - ); -} - export function enablePapertrailResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/generatethumbs.ts b/src/sdk/models/operations/generatethumbs.ts index b93ea319..ff8a0d11 100644 --- a/src/sdk/models/operations/generatethumbs.ts +++ b/src/sdk/models/operations/generatethumbs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -120,150 +120,6 @@ export type GenerateThumbsResponse = { rawResponse: Response; }; -/** @internal */ -export const GenerateThumbsGlobals$inboundSchema: z.ZodType< - GenerateThumbsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GenerateThumbsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GenerateThumbsGlobals$outboundSchema: z.ZodType< - GenerateThumbsGlobals$Outbound, - z.ZodTypeDef, - GenerateThumbsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GenerateThumbsGlobals$ { - /** @deprecated use `GenerateThumbsGlobals$inboundSchema` instead. */ - export const inboundSchema = GenerateThumbsGlobals$inboundSchema; - /** @deprecated use `GenerateThumbsGlobals$outboundSchema` instead. */ - export const outboundSchema = GenerateThumbsGlobals$outboundSchema; - /** @deprecated use `GenerateThumbsGlobals$Outbound` instead. */ - export type Outbound = GenerateThumbsGlobals$Outbound; -} - -export function generateThumbsGlobalsToJSON( - generateThumbsGlobals: GenerateThumbsGlobals, -): string { - return JSON.stringify( - GenerateThumbsGlobals$outboundSchema.parse(generateThumbsGlobals), - ); -} - -export function generateThumbsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GenerateThumbsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GenerateThumbsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GenerateThumbsRequest$inboundSchema: z.ZodType< - GenerateThumbsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - force: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GenerateThumbsRequest$Outbound = { accepts: string; @@ -315,19 +171,6 @@ export const GenerateThumbsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GenerateThumbsRequest$ { - /** @deprecated use `GenerateThumbsRequest$inboundSchema` instead. */ - export const inboundSchema = GenerateThumbsRequest$inboundSchema; - /** @deprecated use `GenerateThumbsRequest$outboundSchema` instead. */ - export const outboundSchema = GenerateThumbsRequest$outboundSchema; - /** @deprecated use `GenerateThumbsRequest$Outbound` instead. */ - export type Outbound = GenerateThumbsRequest$Outbound; -} - export function generateThumbsRequestToJSON( generateThumbsRequest: GenerateThumbsRequest, ): string { @@ -336,16 +179,6 @@ export function generateThumbsRequestToJSON( ); } -export function generateThumbsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GenerateThumbsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GenerateThumbsRequest' from JSON`, - ); -} - /** @internal */ export const GenerateThumbsResponse$inboundSchema: z.ZodType< GenerateThumbsResponse, @@ -363,53 +196,6 @@ export const GenerateThumbsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GenerateThumbsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GenerateThumbsResponse$outboundSchema: z.ZodType< - GenerateThumbsResponse$Outbound, - z.ZodTypeDef, - GenerateThumbsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GenerateThumbsResponse$ { - /** @deprecated use `GenerateThumbsResponse$inboundSchema` instead. */ - export const inboundSchema = GenerateThumbsResponse$inboundSchema; - /** @deprecated use `GenerateThumbsResponse$outboundSchema` instead. */ - export const outboundSchema = GenerateThumbsResponse$outboundSchema; - /** @deprecated use `GenerateThumbsResponse$Outbound` instead. */ - export type Outbound = GenerateThumbsResponse$Outbound; -} - -export function generateThumbsResponseToJSON( - generateThumbsResponse: GenerateThumbsResponse, -): string { - return JSON.stringify( - GenerateThumbsResponse$outboundSchema.parse(generateThumbsResponse), - ); -} - export function generateThumbsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getalbums.ts b/src/sdk/models/operations/getalbums.ts index 99fa2b13..645551ca 100644 --- a/src/sdk/models/operations/getalbums.ts +++ b/src/sdk/models/operations/getalbums.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetAlbumsResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const GetAlbumsGlobals$inboundSchema: z.ZodType< - GetAlbumsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAlbumsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAlbumsGlobals$outboundSchema: z.ZodType< - GetAlbumsGlobals$Outbound, - z.ZodTypeDef, - GetAlbumsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAlbumsGlobals$ { - /** @deprecated use `GetAlbumsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAlbumsGlobals$inboundSchema; - /** @deprecated use `GetAlbumsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAlbumsGlobals$outboundSchema; - /** @deprecated use `GetAlbumsGlobals$Outbound` instead. */ - export type Outbound = GetAlbumsGlobals$Outbound; -} - -export function getAlbumsGlobalsToJSON( - getAlbumsGlobals: GetAlbumsGlobals, -): string { - return JSON.stringify( - GetAlbumsGlobals$outboundSchema.parse(getAlbumsGlobals), - ); -} - -export function getAlbumsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAlbumsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAlbumsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAlbumsRequest$inboundSchema: z.ZodType< - GetAlbumsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAlbumsRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetAlbumsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAlbumsRequest$ { - /** @deprecated use `GetAlbumsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAlbumsRequest$inboundSchema; - /** @deprecated use `GetAlbumsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAlbumsRequest$outboundSchema; - /** @deprecated use `GetAlbumsRequest$Outbound` instead. */ - export type Outbound = GetAlbumsRequest$Outbound; -} - export function getAlbumsRequestToJSON( getAlbumsRequest: GetAlbumsRequest, ): string { @@ -339,16 +183,6 @@ export function getAlbumsRequestToJSON( ); } -export function getAlbumsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAlbumsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAlbumsRequest' from JSON`, - ); -} - /** @internal */ export const GetAlbumsResponse$inboundSchema: z.ZodType< GetAlbumsResponse, @@ -369,59 +203,6 @@ export const GetAlbumsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAlbumsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetAlbumsResponse$outboundSchema: z.ZodType< - GetAlbumsResponse$Outbound, - z.ZodTypeDef, - GetAlbumsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAlbumsResponse$ { - /** @deprecated use `GetAlbumsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAlbumsResponse$inboundSchema; - /** @deprecated use `GetAlbumsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAlbumsResponse$outboundSchema; - /** @deprecated use `GetAlbumsResponse$Outbound` instead. */ - export type Outbound = GetAlbumsResponse$Outbound; -} - -export function getAlbumsResponseToJSON( - getAlbumsResponse: GetAlbumsResponse, -): string { - return JSON.stringify( - GetAlbumsResponse$outboundSchema.parse(getAlbumsResponse), - ); -} - export function getAlbumsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getallhubs.ts b/src/sdk/models/operations/getallhubs.ts index 5a94fc10..a40958a8 100644 --- a/src/sdk/models/operations/getallhubs.ts +++ b/src/sdk/models/operations/getallhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -167,151 +167,6 @@ export type GetAllHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetAllHubsGlobals$inboundSchema: z.ZodType< - GetAllHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAllHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAllHubsGlobals$outboundSchema: z.ZodType< - GetAllHubsGlobals$Outbound, - z.ZodTypeDef, - GetAllHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllHubsGlobals$ { - /** @deprecated use `GetAllHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAllHubsGlobals$inboundSchema; - /** @deprecated use `GetAllHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAllHubsGlobals$outboundSchema; - /** @deprecated use `GetAllHubsGlobals$Outbound` instead. */ - export type Outbound = GetAllHubsGlobals$Outbound; -} - -export function getAllHubsGlobalsToJSON( - getAllHubsGlobals: GetAllHubsGlobals, -): string { - return JSON.stringify( - GetAllHubsGlobals$outboundSchema.parse(getAllHubsGlobals), - ); -} - -export function getAllHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAllHubsRequest$inboundSchema: z.ZodType< - GetAllHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - count: z.number().int().optional(), - onlyTransient: shared.BoolInt$inboundSchema.optional(), - identifier: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAllHubsRequest$Outbound = { accepts: string; @@ -365,19 +220,6 @@ export const GetAllHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllHubsRequest$ { - /** @deprecated use `GetAllHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllHubsRequest$inboundSchema; - /** @deprecated use `GetAllHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllHubsRequest$outboundSchema; - /** @deprecated use `GetAllHubsRequest$Outbound` instead. */ - export type Outbound = GetAllHubsRequest$Outbound; -} - export function getAllHubsRequestToJSON( getAllHubsRequest: GetAllHubsRequest, ): string { @@ -386,16 +228,6 @@ export function getAllHubsRequestToJSON( ); } -export function getAllHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetAllHubsMediaContainer$inboundSchema: z.ZodType< GetAllHubsMediaContainer, @@ -413,53 +245,6 @@ export const GetAllHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetAllHubsMediaContainer$outboundSchema: z.ZodType< - GetAllHubsMediaContainer$Outbound, - z.ZodTypeDef, - GetAllHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllHubsMediaContainer$ { - /** @deprecated use `GetAllHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetAllHubsMediaContainer$inboundSchema; - /** @deprecated use `GetAllHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetAllHubsMediaContainer$outboundSchema; - /** @deprecated use `GetAllHubsMediaContainer$Outbound` instead. */ - export type Outbound = GetAllHubsMediaContainer$Outbound; -} - -export function getAllHubsMediaContainerToJSON( - getAllHubsMediaContainer: GetAllHubsMediaContainer, -): string { - return JSON.stringify( - GetAllHubsMediaContainer$outboundSchema.parse(getAllHubsMediaContainer), - ); -} - export function getAllHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -484,46 +269,6 @@ export const GetAllHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllHubsResponseBody$Outbound = { - MediaContainer?: GetAllHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetAllHubsResponseBody$outboundSchema: z.ZodType< - GetAllHubsResponseBody$Outbound, - z.ZodTypeDef, - GetAllHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetAllHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllHubsResponseBody$ { - /** @deprecated use `GetAllHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetAllHubsResponseBody$inboundSchema; - /** @deprecated use `GetAllHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetAllHubsResponseBody$outboundSchema; - /** @deprecated use `GetAllHubsResponseBody$Outbound` instead. */ - export type Outbound = GetAllHubsResponseBody$Outbound; -} - -export function getAllHubsResponseBodyToJSON( - getAllHubsResponseBody: GetAllHubsResponseBody, -): string { - return JSON.stringify( - GetAllHubsResponseBody$outboundSchema.parse(getAllHubsResponseBody), - ); -} - export function getAllHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -544,7 +289,7 @@ export const GetAllHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetAllHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -554,58 +299,6 @@ export const GetAllHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetAllHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetAllHubsResponse$outboundSchema: z.ZodType< - GetAllHubsResponse$Outbound, - z.ZodTypeDef, - GetAllHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetAllHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllHubsResponse$ { - /** @deprecated use `GetAllHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllHubsResponse$inboundSchema; - /** @deprecated use `GetAllHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllHubsResponse$outboundSchema; - /** @deprecated use `GetAllHubsResponse$Outbound` instead. */ - export type Outbound = GetAllHubsResponse$Outbound; -} - -export function getAllHubsResponseToJSON( - getAllHubsResponse: GetAllHubsResponse, -): string { - return JSON.stringify( - GetAllHubsResponse$outboundSchema.parse(getAllHubsResponse), - ); -} - export function getAllHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getallitemleaves.ts b/src/sdk/models/operations/getallitemleaves.ts index dd706ac2..4d605c4b 100644 --- a/src/sdk/models/operations/getallitemleaves.ts +++ b/src/sdk/models/operations/getallitemleaves.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -124,149 +124,6 @@ export type GetAllItemLeavesResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetAllItemLeavesGlobals$inboundSchema: z.ZodType< - GetAllItemLeavesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAllItemLeavesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAllItemLeavesGlobals$outboundSchema: z.ZodType< - GetAllItemLeavesGlobals$Outbound, - z.ZodTypeDef, - GetAllItemLeavesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllItemLeavesGlobals$ { - /** @deprecated use `GetAllItemLeavesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAllItemLeavesGlobals$inboundSchema; - /** @deprecated use `GetAllItemLeavesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAllItemLeavesGlobals$outboundSchema; - /** @deprecated use `GetAllItemLeavesGlobals$Outbound` instead. */ - export type Outbound = GetAllItemLeavesGlobals$Outbound; -} - -export function getAllItemLeavesGlobalsToJSON( - getAllItemLeavesGlobals: GetAllItemLeavesGlobals, -): string { - return JSON.stringify( - GetAllItemLeavesGlobals$outboundSchema.parse(getAllItemLeavesGlobals), - ); -} - -export function getAllItemLeavesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllItemLeavesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllItemLeavesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAllItemLeavesRequest$inboundSchema: z.ZodType< - GetAllItemLeavesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAllItemLeavesRequest$Outbound = { accepts: string; @@ -316,19 +173,6 @@ export const GetAllItemLeavesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllItemLeavesRequest$ { - /** @deprecated use `GetAllItemLeavesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllItemLeavesRequest$inboundSchema; - /** @deprecated use `GetAllItemLeavesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllItemLeavesRequest$outboundSchema; - /** @deprecated use `GetAllItemLeavesRequest$Outbound` instead. */ - export type Outbound = GetAllItemLeavesRequest$Outbound; -} - export function getAllItemLeavesRequestToJSON( getAllItemLeavesRequest: GetAllItemLeavesRequest, ): string { @@ -337,16 +181,6 @@ export function getAllItemLeavesRequestToJSON( ); } -export function getAllItemLeavesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllItemLeavesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllItemLeavesRequest' from JSON`, - ); -} - /** @internal */ export const GetAllItemLeavesResponse$inboundSchema: z.ZodType< GetAllItemLeavesResponse, @@ -358,7 +192,7 @@ export const GetAllItemLeavesResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -369,62 +203,6 @@ export const GetAllItemLeavesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllItemLeavesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetAllItemLeavesResponse$outboundSchema: z.ZodType< - GetAllItemLeavesResponse$Outbound, - z.ZodTypeDef, - GetAllItemLeavesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllItemLeavesResponse$ { - /** @deprecated use `GetAllItemLeavesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllItemLeavesResponse$inboundSchema; - /** @deprecated use `GetAllItemLeavesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllItemLeavesResponse$outboundSchema; - /** @deprecated use `GetAllItemLeavesResponse$Outbound` instead. */ - export type Outbound = GetAllItemLeavesResponse$Outbound; -} - -export function getAllItemLeavesResponseToJSON( - getAllItemLeavesResponse: GetAllItemLeavesResponse, -): string { - return JSON.stringify( - GetAllItemLeavesResponse$outboundSchema.parse(getAllItemLeavesResponse), - ); -} - export function getAllItemLeavesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getalllanguages.ts b/src/sdk/models/operations/getalllanguages.ts index adacb900..cec9e245 100644 --- a/src/sdk/models/operations/getalllanguages.ts +++ b/src/sdk/models/operations/getalllanguages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -78,39 +78,6 @@ export const Language$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type Language$Outbound = { - code?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const Language$outboundSchema: z.ZodType< - Language$Outbound, - z.ZodTypeDef, - Language -> = z.object({ - code: z.string().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Language$ { - /** @deprecated use `Language$inboundSchema` instead. */ - export const inboundSchema = Language$inboundSchema; - /** @deprecated use `Language$outboundSchema` instead. */ - export const outboundSchema = Language$outboundSchema; - /** @deprecated use `Language$Outbound` instead. */ - export type Outbound = Language$Outbound; -} - -export function languageToJSON(language: Language): string { - return JSON.stringify(Language$outboundSchema.parse(language)); -} - export function languageFromJSON( jsonString: string, ): SafeParseResult { @@ -138,55 +105,6 @@ export const GetAllLanguagesMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllLanguagesMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Language?: Array | undefined; -}; - -/** @internal */ -export const GetAllLanguagesMediaContainer$outboundSchema: z.ZodType< - GetAllLanguagesMediaContainer$Outbound, - z.ZodTypeDef, - GetAllLanguagesMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - language: z.array(z.lazy(() => Language$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - language: "Language", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLanguagesMediaContainer$ { - /** @deprecated use `GetAllLanguagesMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetAllLanguagesMediaContainer$inboundSchema; - /** @deprecated use `GetAllLanguagesMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetAllLanguagesMediaContainer$outboundSchema; - /** @deprecated use `GetAllLanguagesMediaContainer$Outbound` instead. */ - export type Outbound = GetAllLanguagesMediaContainer$Outbound; -} - -export function getAllLanguagesMediaContainerToJSON( - getAllLanguagesMediaContainer: GetAllLanguagesMediaContainer, -): string { - return JSON.stringify( - GetAllLanguagesMediaContainer$outboundSchema.parse( - getAllLanguagesMediaContainer, - ), - ); -} - export function getAllLanguagesMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -211,48 +129,6 @@ export const GetAllLanguagesResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllLanguagesResponseBody$Outbound = { - MediaContainer?: GetAllLanguagesMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetAllLanguagesResponseBody$outboundSchema: z.ZodType< - GetAllLanguagesResponseBody$Outbound, - z.ZodTypeDef, - GetAllLanguagesResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetAllLanguagesMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLanguagesResponseBody$ { - /** @deprecated use `GetAllLanguagesResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetAllLanguagesResponseBody$inboundSchema; - /** @deprecated use `GetAllLanguagesResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetAllLanguagesResponseBody$outboundSchema; - /** @deprecated use `GetAllLanguagesResponseBody$Outbound` instead. */ - export type Outbound = GetAllLanguagesResponseBody$Outbound; -} - -export function getAllLanguagesResponseBodyToJSON( - getAllLanguagesResponseBody: GetAllLanguagesResponseBody, -): string { - return JSON.stringify( - GetAllLanguagesResponseBody$outboundSchema.parse( - getAllLanguagesResponseBody, - ), - ); -} - export function getAllLanguagesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -273,7 +149,7 @@ export const GetAllLanguagesResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetAllLanguagesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -283,58 +159,6 @@ export const GetAllLanguagesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllLanguagesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetAllLanguagesResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetAllLanguagesResponse$outboundSchema: z.ZodType< - GetAllLanguagesResponse$Outbound, - z.ZodTypeDef, - GetAllLanguagesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetAllLanguagesResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLanguagesResponse$ { - /** @deprecated use `GetAllLanguagesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllLanguagesResponse$inboundSchema; - /** @deprecated use `GetAllLanguagesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllLanguagesResponse$outboundSchema; - /** @deprecated use `GetAllLanguagesResponse$Outbound` instead. */ - export type Outbound = GetAllLanguagesResponse$Outbound; -} - -export function getAllLanguagesResponseToJSON( - getAllLanguagesResponse: GetAllLanguagesResponse, -): string { - return JSON.stringify( - GetAllLanguagesResponse$outboundSchema.parse(getAllLanguagesResponse), - ); -} - export function getAllLanguagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getallleaves.ts b/src/sdk/models/operations/getallleaves.ts index 4489e377..3bcb14ff 100644 --- a/src/sdk/models/operations/getallleaves.ts +++ b/src/sdk/models/operations/getallleaves.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetAllLeavesResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const GetAllLeavesGlobals$inboundSchema: z.ZodType< - GetAllLeavesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAllLeavesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAllLeavesGlobals$outboundSchema: z.ZodType< - GetAllLeavesGlobals$Outbound, - z.ZodTypeDef, - GetAllLeavesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLeavesGlobals$ { - /** @deprecated use `GetAllLeavesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAllLeavesGlobals$inboundSchema; - /** @deprecated use `GetAllLeavesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAllLeavesGlobals$outboundSchema; - /** @deprecated use `GetAllLeavesGlobals$Outbound` instead. */ - export type Outbound = GetAllLeavesGlobals$Outbound; -} - -export function getAllLeavesGlobalsToJSON( - getAllLeavesGlobals: GetAllLeavesGlobals, -): string { - return JSON.stringify( - GetAllLeavesGlobals$outboundSchema.parse(getAllLeavesGlobals), - ); -} - -export function getAllLeavesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllLeavesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllLeavesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAllLeavesRequest$inboundSchema: z.ZodType< - GetAllLeavesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAllLeavesRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetAllLeavesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLeavesRequest$ { - /** @deprecated use `GetAllLeavesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllLeavesRequest$inboundSchema; - /** @deprecated use `GetAllLeavesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllLeavesRequest$outboundSchema; - /** @deprecated use `GetAllLeavesRequest$Outbound` instead. */ - export type Outbound = GetAllLeavesRequest$Outbound; -} - export function getAllLeavesRequestToJSON( getAllLeavesRequest: GetAllLeavesRequest, ): string { @@ -339,16 +183,6 @@ export function getAllLeavesRequestToJSON( ); } -export function getAllLeavesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllLeavesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllLeavesRequest' from JSON`, - ); -} - /** @internal */ export const GetAllLeavesResponse$inboundSchema: z.ZodType< GetAllLeavesResponse, @@ -369,59 +203,6 @@ export const GetAllLeavesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllLeavesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetAllLeavesResponse$outboundSchema: z.ZodType< - GetAllLeavesResponse$Outbound, - z.ZodTypeDef, - GetAllLeavesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLeavesResponse$ { - /** @deprecated use `GetAllLeavesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllLeavesResponse$inboundSchema; - /** @deprecated use `GetAllLeavesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllLeavesResponse$outboundSchema; - /** @deprecated use `GetAllLeavesResponse$Outbound` instead. */ - export type Outbound = GetAllLeavesResponse$Outbound; -} - -export function getAllLeavesResponseToJSON( - getAllLeavesResponse: GetAllLeavesResponse, -): string { - return JSON.stringify( - GetAllLeavesResponse$outboundSchema.parse(getAllLeavesResponse), - ); -} - export function getAllLeavesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getallpreferences.ts b/src/sdk/models/operations/getallpreferences.ts index dcb2e80d..93cfdc85 100644 --- a/src/sdk/models/operations/getallpreferences.ts +++ b/src/sdk/models/operations/getallpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,59 +48,6 @@ export const GetAllPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSettings?: - | shared.MediaContainerWithSettings$Outbound - | undefined; -}; - -/** @internal */ -export const GetAllPreferencesResponse$outboundSchema: z.ZodType< - GetAllPreferencesResponse$Outbound, - z.ZodTypeDef, - GetAllPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSettings: shared.MediaContainerWithSettings$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSettings: "MediaContainerWithSettings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllPreferencesResponse$ { - /** @deprecated use `GetAllPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllPreferencesResponse$inboundSchema; - /** @deprecated use `GetAllPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllPreferencesResponse$outboundSchema; - /** @deprecated use `GetAllPreferencesResponse$Outbound` instead. */ - export type Outbound = GetAllPreferencesResponse$Outbound; -} - -export function getAllPreferencesResponseToJSON( - getAllPreferencesResponse: GetAllPreferencesResponse, -): string { - return JSON.stringify( - GetAllPreferencesResponse$outboundSchema.parse(getAllPreferencesResponse), - ); -} - export function getAllPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getallsubscriptions.ts b/src/sdk/models/operations/getallsubscriptions.ts index 481207b0..05f49d66 100644 --- a/src/sdk/models/operations/getallsubscriptions.ts +++ b/src/sdk/models/operations/getallsubscriptions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,150 +133,6 @@ export type GetAllSubscriptionsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetAllSubscriptionsGlobals$inboundSchema: z.ZodType< - GetAllSubscriptionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAllSubscriptionsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAllSubscriptionsGlobals$outboundSchema: z.ZodType< - GetAllSubscriptionsGlobals$Outbound, - z.ZodTypeDef, - GetAllSubscriptionsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllSubscriptionsGlobals$ { - /** @deprecated use `GetAllSubscriptionsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAllSubscriptionsGlobals$inboundSchema; - /** @deprecated use `GetAllSubscriptionsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAllSubscriptionsGlobals$outboundSchema; - /** @deprecated use `GetAllSubscriptionsGlobals$Outbound` instead. */ - export type Outbound = GetAllSubscriptionsGlobals$Outbound; -} - -export function getAllSubscriptionsGlobalsToJSON( - getAllSubscriptionsGlobals: GetAllSubscriptionsGlobals, -): string { - return JSON.stringify( - GetAllSubscriptionsGlobals$outboundSchema.parse(getAllSubscriptionsGlobals), - ); -} - -export function getAllSubscriptionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllSubscriptionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllSubscriptionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAllSubscriptionsRequest$inboundSchema: z.ZodType< - GetAllSubscriptionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - includeGrabs: shared.BoolInt$inboundSchema.optional(), - includeStorage: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAllSubscriptionsRequest$Outbound = { accepts: string; @@ -328,19 +184,6 @@ export const GetAllSubscriptionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllSubscriptionsRequest$ { - /** @deprecated use `GetAllSubscriptionsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllSubscriptionsRequest$inboundSchema; - /** @deprecated use `GetAllSubscriptionsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllSubscriptionsRequest$outboundSchema; - /** @deprecated use `GetAllSubscriptionsRequest$Outbound` instead. */ - export type Outbound = GetAllSubscriptionsRequest$Outbound; -} - export function getAllSubscriptionsRequestToJSON( getAllSubscriptionsRequest: GetAllSubscriptionsRequest, ): string { @@ -349,16 +192,6 @@ export function getAllSubscriptionsRequestToJSON( ); } -export function getAllSubscriptionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAllSubscriptionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAllSubscriptionsRequest' from JSON`, - ); -} - /** @internal */ export const GetAllSubscriptionsResponse$inboundSchema: z.ZodType< GetAllSubscriptionsResponse, @@ -370,7 +203,7 @@ export const GetAllSubscriptionsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithSubscription: shared .MediaContainerWithSubscription$inboundSchema.optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -381,64 +214,6 @@ export const GetAllSubscriptionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAllSubscriptionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetAllSubscriptionsResponse$outboundSchema: z.ZodType< - GetAllSubscriptionsResponse$Outbound, - z.ZodTypeDef, - GetAllSubscriptionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSubscription: shared - .MediaContainerWithSubscription$outboundSchema.optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSubscription: "MediaContainerWithSubscription", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllSubscriptionsResponse$ { - /** @deprecated use `GetAllSubscriptionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllSubscriptionsResponse$inboundSchema; - /** @deprecated use `GetAllSubscriptionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllSubscriptionsResponse$outboundSchema; - /** @deprecated use `GetAllSubscriptionsResponse$Outbound` instead. */ - export type Outbound = GetAllSubscriptionsResponse$Outbound; -} - -export function getAllSubscriptionsResponseToJSON( - getAllSubscriptionsResponse: GetAllSubscriptionsResponse, -): string { - return JSON.stringify( - GetAllSubscriptionsResponse$outboundSchema.parse( - getAllSubscriptionsResponse, - ), - ); -} - export function getAllSubscriptionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getarts.ts b/src/sdk/models/operations/getarts.ts index 171078b5..ab34fb4f 100644 --- a/src/sdk/models/operations/getarts.ts +++ b/src/sdk/models/operations/getarts.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,145 +126,6 @@ export type GetArtsResponse = { mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; }; -/** @internal */ -export const GetArtsGlobals$inboundSchema: z.ZodType< - GetArtsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetArtsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetArtsGlobals$outboundSchema: z.ZodType< - GetArtsGlobals$Outbound, - z.ZodTypeDef, - GetArtsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetArtsGlobals$ { - /** @deprecated use `GetArtsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetArtsGlobals$inboundSchema; - /** @deprecated use `GetArtsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetArtsGlobals$outboundSchema; - /** @deprecated use `GetArtsGlobals$Outbound` instead. */ - export type Outbound = GetArtsGlobals$Outbound; -} - -export function getArtsGlobalsToJSON(getArtsGlobals: GetArtsGlobals): string { - return JSON.stringify(GetArtsGlobals$outboundSchema.parse(getArtsGlobals)); -} - -export function getArtsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetArtsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetArtsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetArtsRequest$inboundSchema: z.ZodType< - GetArtsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetArtsRequest$Outbound = { accepts: string; @@ -314,33 +175,10 @@ export const GetArtsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetArtsRequest$ { - /** @deprecated use `GetArtsRequest$inboundSchema` instead. */ - export const inboundSchema = GetArtsRequest$inboundSchema; - /** @deprecated use `GetArtsRequest$outboundSchema` instead. */ - export const outboundSchema = GetArtsRequest$outboundSchema; - /** @deprecated use `GetArtsRequest$Outbound` instead. */ - export type Outbound = GetArtsRequest$Outbound; -} - export function getArtsRequestToJSON(getArtsRequest: GetArtsRequest): string { return JSON.stringify(GetArtsRequest$outboundSchema.parse(getArtsRequest)); } -export function getArtsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetArtsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetArtsRequest' from JSON`, - ); -} - /** @internal */ export const GetArtsResponse$inboundSchema: z.ZodType< GetArtsResponse, @@ -361,57 +199,6 @@ export const GetArtsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetArtsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithArtwork?: - | shared.MediaContainerWithArtwork$Outbound - | undefined; -}; - -/** @internal */ -export const GetArtsResponse$outboundSchema: z.ZodType< - GetArtsResponse$Outbound, - z.ZodTypeDef, - GetArtsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithArtwork: shared.MediaContainerWithArtwork$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithArtwork: "MediaContainerWithArtwork", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetArtsResponse$ { - /** @deprecated use `GetArtsResponse$inboundSchema` instead. */ - export const inboundSchema = GetArtsResponse$inboundSchema; - /** @deprecated use `GetArtsResponse$outboundSchema` instead. */ - export const outboundSchema = GetArtsResponse$outboundSchema; - /** @deprecated use `GetArtsResponse$Outbound` instead. */ - export type Outbound = GetArtsResponse$Outbound; -} - -export function getArtsResponseToJSON( - getArtsResponse: GetArtsResponse, -): string { - return JSON.stringify(GetArtsResponse$outboundSchema.parse(getArtsResponse)); -} - export function getArtsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getaugmentationstatus.ts b/src/sdk/models/operations/getaugmentationstatus.ts index 4a31ea70..7c7a276f 100644 --- a/src/sdk/models/operations/getaugmentationstatus.ts +++ b/src/sdk/models/operations/getaugmentationstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,152 +126,6 @@ export type GetAugmentationStatusResponse = { rawResponse: Response; }; -/** @internal */ -export const GetAugmentationStatusGlobals$inboundSchema: z.ZodType< - GetAugmentationStatusGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAugmentationStatusGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAugmentationStatusGlobals$outboundSchema: z.ZodType< - GetAugmentationStatusGlobals$Outbound, - z.ZodTypeDef, - GetAugmentationStatusGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAugmentationStatusGlobals$ { - /** @deprecated use `GetAugmentationStatusGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAugmentationStatusGlobals$inboundSchema; - /** @deprecated use `GetAugmentationStatusGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAugmentationStatusGlobals$outboundSchema; - /** @deprecated use `GetAugmentationStatusGlobals$Outbound` instead. */ - export type Outbound = GetAugmentationStatusGlobals$Outbound; -} - -export function getAugmentationStatusGlobalsToJSON( - getAugmentationStatusGlobals: GetAugmentationStatusGlobals, -): string { - return JSON.stringify( - GetAugmentationStatusGlobals$outboundSchema.parse( - getAugmentationStatusGlobals, - ), - ); -} - -export function getAugmentationStatusGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAugmentationStatusGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAugmentationStatusGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAugmentationStatusRequest$inboundSchema: z.ZodType< - GetAugmentationStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - augmentationId: z.string(), - wait: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAugmentationStatusRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const GetAugmentationStatusRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAugmentationStatusRequest$ { - /** @deprecated use `GetAugmentationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = GetAugmentationStatusRequest$inboundSchema; - /** @deprecated use `GetAugmentationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = GetAugmentationStatusRequest$outboundSchema; - /** @deprecated use `GetAugmentationStatusRequest$Outbound` instead. */ - export type Outbound = GetAugmentationStatusRequest$Outbound; -} - export function getAugmentationStatusRequestToJSON( getAugmentationStatusRequest: GetAugmentationStatusRequest, ): string { @@ -346,16 +187,6 @@ export function getAugmentationStatusRequestToJSON( ); } -export function getAugmentationStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAugmentationStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAugmentationStatusRequest' from JSON`, - ); -} - /** @internal */ export const GetAugmentationStatusResponse$inboundSchema: z.ZodType< GetAugmentationStatusResponse, @@ -373,55 +204,6 @@ export const GetAugmentationStatusResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAugmentationStatusResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetAugmentationStatusResponse$outboundSchema: z.ZodType< - GetAugmentationStatusResponse$Outbound, - z.ZodTypeDef, - GetAugmentationStatusResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAugmentationStatusResponse$ { - /** @deprecated use `GetAugmentationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = GetAugmentationStatusResponse$inboundSchema; - /** @deprecated use `GetAugmentationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = GetAugmentationStatusResponse$outboundSchema; - /** @deprecated use `GetAugmentationStatusResponse$Outbound` instead. */ - export type Outbound = GetAugmentationStatusResponse$Outbound; -} - -export function getAugmentationStatusResponseToJSON( - getAugmentationStatusResponse: GetAugmentationStatusResponse, -): string { - return JSON.stringify( - GetAugmentationStatusResponse$outboundSchema.parse( - getAugmentationStatusResponse, - ), - ); -} - export function getAugmentationStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getavailablegrabbers.ts b/src/sdk/models/operations/getavailablegrabbers.ts index 117a055a..8fb25b84 100644 --- a/src/sdk/models/operations/getavailablegrabbers.ts +++ b/src/sdk/models/operations/getavailablegrabbers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -165,151 +165,6 @@ export type GetAvailableGrabbersResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetAvailableGrabbersGlobals$inboundSchema: z.ZodType< - GetAvailableGrabbersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAvailableGrabbersGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAvailableGrabbersGlobals$outboundSchema: z.ZodType< - GetAvailableGrabbersGlobals$Outbound, - z.ZodTypeDef, - GetAvailableGrabbersGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableGrabbersGlobals$ { - /** @deprecated use `GetAvailableGrabbersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAvailableGrabbersGlobals$inboundSchema; - /** @deprecated use `GetAvailableGrabbersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAvailableGrabbersGlobals$outboundSchema; - /** @deprecated use `GetAvailableGrabbersGlobals$Outbound` instead. */ - export type Outbound = GetAvailableGrabbersGlobals$Outbound; -} - -export function getAvailableGrabbersGlobalsToJSON( - getAvailableGrabbersGlobals: GetAvailableGrabbersGlobals, -): string { - return JSON.stringify( - GetAvailableGrabbersGlobals$outboundSchema.parse( - getAvailableGrabbersGlobals, - ), - ); -} - -export function getAvailableGrabbersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAvailableGrabbersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAvailableGrabbersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAvailableGrabbersRequest$inboundSchema: z.ZodType< - GetAvailableGrabbersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - protocol: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAvailableGrabbersRequest$Outbound = { accepts: string; @@ -359,19 +214,6 @@ export const GetAvailableGrabbersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableGrabbersRequest$ { - /** @deprecated use `GetAvailableGrabbersRequest$inboundSchema` instead. */ - export const inboundSchema = GetAvailableGrabbersRequest$inboundSchema; - /** @deprecated use `GetAvailableGrabbersRequest$outboundSchema` instead. */ - export const outboundSchema = GetAvailableGrabbersRequest$outboundSchema; - /** @deprecated use `GetAvailableGrabbersRequest$Outbound` instead. */ - export type Outbound = GetAvailableGrabbersRequest$Outbound; -} - export function getAvailableGrabbersRequestToJSON( getAvailableGrabbersRequest: GetAvailableGrabbersRequest, ): string { @@ -382,16 +224,6 @@ export function getAvailableGrabbersRequestToJSON( ); } -export function getAvailableGrabbersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAvailableGrabbersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAvailableGrabbersRequest' from JSON`, - ); -} - /** @internal */ export const MediaGrabber$inboundSchema: z.ZodType< MediaGrabber, @@ -403,41 +235,6 @@ export const MediaGrabber$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type MediaGrabber$Outbound = { - identifier?: string | undefined; - protocol?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const MediaGrabber$outboundSchema: z.ZodType< - MediaGrabber$Outbound, - z.ZodTypeDef, - MediaGrabber -> = z.object({ - identifier: z.string().optional(), - protocol: z.string().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaGrabber$ { - /** @deprecated use `MediaGrabber$inboundSchema` instead. */ - export const inboundSchema = MediaGrabber$inboundSchema; - /** @deprecated use `MediaGrabber$outboundSchema` instead. */ - export const outboundSchema = MediaGrabber$outboundSchema; - /** @deprecated use `MediaGrabber$Outbound` instead. */ - export type Outbound = MediaGrabber$Outbound; -} - -export function mediaGrabberToJSON(mediaGrabber: MediaGrabber): string { - return JSON.stringify(MediaGrabber$outboundSchema.parse(mediaGrabber)); -} - export function mediaGrabberFromJSON( jsonString: string, ): SafeParseResult { @@ -465,56 +262,6 @@ export const GetAvailableGrabbersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableGrabbersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - MediaGrabber?: Array | undefined; -}; - -/** @internal */ -export const GetAvailableGrabbersMediaContainer$outboundSchema: z.ZodType< - GetAvailableGrabbersMediaContainer$Outbound, - z.ZodTypeDef, - GetAvailableGrabbersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - mediaGrabber: z.array(z.lazy(() => MediaGrabber$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaGrabber: "MediaGrabber", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableGrabbersMediaContainer$ { - /** @deprecated use `GetAvailableGrabbersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetAvailableGrabbersMediaContainer$inboundSchema; - /** @deprecated use `GetAvailableGrabbersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetAvailableGrabbersMediaContainer$outboundSchema; - /** @deprecated use `GetAvailableGrabbersMediaContainer$Outbound` instead. */ - export type Outbound = GetAvailableGrabbersMediaContainer$Outbound; -} - -export function getAvailableGrabbersMediaContainerToJSON( - getAvailableGrabbersMediaContainer: GetAvailableGrabbersMediaContainer, -): string { - return JSON.stringify( - GetAvailableGrabbersMediaContainer$outboundSchema.parse( - getAvailableGrabbersMediaContainer, - ), - ); -} - export function getAvailableGrabbersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -540,49 +287,6 @@ export const GetAvailableGrabbersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableGrabbersResponseBody$Outbound = { - MediaContainer?: GetAvailableGrabbersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetAvailableGrabbersResponseBody$outboundSchema: z.ZodType< - GetAvailableGrabbersResponseBody$Outbound, - z.ZodTypeDef, - GetAvailableGrabbersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetAvailableGrabbersMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableGrabbersResponseBody$ { - /** @deprecated use `GetAvailableGrabbersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetAvailableGrabbersResponseBody$inboundSchema; - /** @deprecated use `GetAvailableGrabbersResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetAvailableGrabbersResponseBody$outboundSchema; - /** @deprecated use `GetAvailableGrabbersResponseBody$Outbound` instead. */ - export type Outbound = GetAvailableGrabbersResponseBody$Outbound; -} - -export function getAvailableGrabbersResponseBodyToJSON( - getAvailableGrabbersResponseBody: GetAvailableGrabbersResponseBody, -): string { - return JSON.stringify( - GetAvailableGrabbersResponseBody$outboundSchema.parse( - getAvailableGrabbersResponseBody, - ), - ); -} - export function getAvailableGrabbersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -604,7 +308,7 @@ export const GetAvailableGrabbersResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), object: z.lazy(() => GetAvailableGrabbersResponseBody$inboundSchema) .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -614,61 +318,6 @@ export const GetAvailableGrabbersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableGrabbersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetAvailableGrabbersResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetAvailableGrabbersResponse$outboundSchema: z.ZodType< - GetAvailableGrabbersResponse$Outbound, - z.ZodTypeDef, - GetAvailableGrabbersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetAvailableGrabbersResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableGrabbersResponse$ { - /** @deprecated use `GetAvailableGrabbersResponse$inboundSchema` instead. */ - export const inboundSchema = GetAvailableGrabbersResponse$inboundSchema; - /** @deprecated use `GetAvailableGrabbersResponse$outboundSchema` instead. */ - export const outboundSchema = GetAvailableGrabbersResponse$outboundSchema; - /** @deprecated use `GetAvailableGrabbersResponse$Outbound` instead. */ - export type Outbound = GetAvailableGrabbersResponse$Outbound; -} - -export function getAvailableGrabbersResponseToJSON( - getAvailableGrabbersResponse: GetAvailableGrabbersResponse, -): string { - return JSON.stringify( - GetAvailableGrabbersResponse$outboundSchema.parse( - getAvailableGrabbersResponse, - ), - ); -} - export function getAvailableGrabbersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getavailablesorts.ts b/src/sdk/models/operations/getavailablesorts.ts index b5d8a7a5..49b56abc 100644 --- a/src/sdk/models/operations/getavailablesorts.ts +++ b/src/sdk/models/operations/getavailablesorts.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -158,149 +158,6 @@ export type GetAvailableSortsResponse = { object?: GetAvailableSortsResponseBody | undefined; }; -/** @internal */ -export const GetAvailableSortsGlobals$inboundSchema: z.ZodType< - GetAvailableSortsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetAvailableSortsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetAvailableSortsGlobals$outboundSchema: z.ZodType< - GetAvailableSortsGlobals$Outbound, - z.ZodTypeDef, - GetAvailableSortsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableSortsGlobals$ { - /** @deprecated use `GetAvailableSortsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAvailableSortsGlobals$inboundSchema; - /** @deprecated use `GetAvailableSortsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAvailableSortsGlobals$outboundSchema; - /** @deprecated use `GetAvailableSortsGlobals$Outbound` instead. */ - export type Outbound = GetAvailableSortsGlobals$Outbound; -} - -export function getAvailableSortsGlobalsToJSON( - getAvailableSortsGlobals: GetAvailableSortsGlobals, -): string { - return JSON.stringify( - GetAvailableSortsGlobals$outboundSchema.parse(getAvailableSortsGlobals), - ); -} - -export function getAvailableSortsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAvailableSortsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAvailableSortsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAvailableSortsRequest$inboundSchema: z.ZodType< - GetAvailableSortsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetAvailableSortsRequest$Outbound = { accepts: string; @@ -350,19 +207,6 @@ export const GetAvailableSortsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableSortsRequest$ { - /** @deprecated use `GetAvailableSortsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAvailableSortsRequest$inboundSchema; - /** @deprecated use `GetAvailableSortsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAvailableSortsRequest$outboundSchema; - /** @deprecated use `GetAvailableSortsRequest$Outbound` instead. */ - export type Outbound = GetAvailableSortsRequest$Outbound; -} - export function getAvailableSortsRequestToJSON( getAvailableSortsRequest: GetAvailableSortsRequest, ): string { @@ -371,16 +215,6 @@ export function getAvailableSortsRequestToJSON( ); } -export function getAvailableSortsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAvailableSortsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAvailableSortsRequest' from JSON`, - ); -} - /** @internal */ export const GetAvailableSortsMediaContainer$inboundSchema: z.ZodType< GetAvailableSortsMediaContainer, @@ -398,55 +232,6 @@ export const GetAvailableSortsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableSortsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetAvailableSortsMediaContainer$outboundSchema: z.ZodType< - GetAvailableSortsMediaContainer$Outbound, - z.ZodTypeDef, - GetAvailableSortsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(shared.Sort$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableSortsMediaContainer$ { - /** @deprecated use `GetAvailableSortsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetAvailableSortsMediaContainer$inboundSchema; - /** @deprecated use `GetAvailableSortsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetAvailableSortsMediaContainer$outboundSchema; - /** @deprecated use `GetAvailableSortsMediaContainer$Outbound` instead. */ - export type Outbound = GetAvailableSortsMediaContainer$Outbound; -} - -export function getAvailableSortsMediaContainerToJSON( - getAvailableSortsMediaContainer: GetAvailableSortsMediaContainer, -): string { - return JSON.stringify( - GetAvailableSortsMediaContainer$outboundSchema.parse( - getAvailableSortsMediaContainer, - ), - ); -} - export function getAvailableSortsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -471,48 +256,6 @@ export const GetAvailableSortsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableSortsResponseBody$Outbound = { - MediaContainer?: GetAvailableSortsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetAvailableSortsResponseBody$outboundSchema: z.ZodType< - GetAvailableSortsResponseBody$Outbound, - z.ZodTypeDef, - GetAvailableSortsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetAvailableSortsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableSortsResponseBody$ { - /** @deprecated use `GetAvailableSortsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetAvailableSortsResponseBody$inboundSchema; - /** @deprecated use `GetAvailableSortsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetAvailableSortsResponseBody$outboundSchema; - /** @deprecated use `GetAvailableSortsResponseBody$Outbound` instead. */ - export type Outbound = GetAvailableSortsResponseBody$Outbound; -} - -export function getAvailableSortsResponseBodyToJSON( - getAvailableSortsResponseBody: GetAvailableSortsResponseBody, -): string { - return JSON.stringify( - GetAvailableSortsResponseBody$outboundSchema.parse( - getAvailableSortsResponseBody, - ), - ); -} - export function getAvailableSortsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -541,55 +284,6 @@ export const GetAvailableSortsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAvailableSortsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetAvailableSortsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetAvailableSortsResponse$outboundSchema: z.ZodType< - GetAvailableSortsResponse$Outbound, - z.ZodTypeDef, - GetAvailableSortsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetAvailableSortsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableSortsResponse$ { - /** @deprecated use `GetAvailableSortsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAvailableSortsResponse$inboundSchema; - /** @deprecated use `GetAvailableSortsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAvailableSortsResponse$outboundSchema; - /** @deprecated use `GetAvailableSortsResponse$Outbound` instead. */ - export type Outbound = GetAvailableSortsResponse$Outbound; -} - -export function getAvailableSortsResponseToJSON( - getAvailableSortsResponse: GetAvailableSortsResponse, -): string { - return JSON.stringify( - GetAvailableSortsResponse$outboundSchema.parse(getAvailableSortsResponse), - ); -} - export function getAvailableSortsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getbackgroundtasks.ts b/src/sdk/models/operations/getbackgroundtasks.ts index bde02eef..0c6eed1d 100644 --- a/src/sdk/models/operations/getbackgroundtasks.ts +++ b/src/sdk/models/operations/getbackgroundtasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -94,22 +94,6 @@ export const GetBackgroundTasksType$inboundSchema: z.ZodNativeEnum< typeof GetBackgroundTasksType > = z.nativeEnum(GetBackgroundTasksType); -/** @internal */ -export const GetBackgroundTasksType$outboundSchema: z.ZodNativeEnum< - typeof GetBackgroundTasksType -> = GetBackgroundTasksType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBackgroundTasksType$ { - /** @deprecated use `GetBackgroundTasksType$inboundSchema` instead. */ - export const inboundSchema = GetBackgroundTasksType$inboundSchema; - /** @deprecated use `GetBackgroundTasksType$outboundSchema` instead. */ - export const outboundSchema = GetBackgroundTasksType$outboundSchema; -} - /** @internal */ export const TranscodeJob$inboundSchema: z.ZodType< TranscodeJob, @@ -129,57 +113,6 @@ export const TranscodeJob$inboundSchema: z.ZodType< type: GetBackgroundTasksType$inboundSchema.optional(), }); -/** @internal */ -export type TranscodeJob$Outbound = { - generatorID?: number | undefined; - key?: string | undefined; - progress?: number | undefined; - ratingKey?: string | undefined; - remaining?: number | undefined; - size?: number | undefined; - speed?: number | undefined; - targetTagID?: number | undefined; - thumb?: string | undefined; - title?: string | undefined; - type?: string | undefined; -}; - -/** @internal */ -export const TranscodeJob$outboundSchema: z.ZodType< - TranscodeJob$Outbound, - z.ZodTypeDef, - TranscodeJob -> = z.object({ - generatorID: z.number().int().optional(), - key: z.string().optional(), - progress: z.number().optional(), - ratingKey: z.string().optional(), - remaining: z.number().int().optional(), - size: z.number().int().optional(), - speed: z.number().optional(), - targetTagID: z.number().int().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: GetBackgroundTasksType$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeJob$ { - /** @deprecated use `TranscodeJob$inboundSchema` instead. */ - export const inboundSchema = TranscodeJob$inboundSchema; - /** @deprecated use `TranscodeJob$outboundSchema` instead. */ - export const outboundSchema = TranscodeJob$outboundSchema; - /** @deprecated use `TranscodeJob$Outbound` instead. */ - export type Outbound = TranscodeJob$Outbound; -} - -export function transcodeJobToJSON(transcodeJob: TranscodeJob): string { - return JSON.stringify(TranscodeJob$outboundSchema.parse(transcodeJob)); -} - export function transcodeJobFromJSON( jsonString: string, ): SafeParseResult { @@ -207,55 +140,6 @@ export const GetBackgroundTasksMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBackgroundTasksMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - TranscodeJob?: Array | undefined; -}; - -/** @internal */ -export const GetBackgroundTasksMediaContainer$outboundSchema: z.ZodType< - GetBackgroundTasksMediaContainer$Outbound, - z.ZodTypeDef, - GetBackgroundTasksMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - transcodeJob: z.array(z.lazy(() => TranscodeJob$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - transcodeJob: "TranscodeJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBackgroundTasksMediaContainer$ { - /** @deprecated use `GetBackgroundTasksMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetBackgroundTasksMediaContainer$inboundSchema; - /** @deprecated use `GetBackgroundTasksMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetBackgroundTasksMediaContainer$outboundSchema; - /** @deprecated use `GetBackgroundTasksMediaContainer$Outbound` instead. */ - export type Outbound = GetBackgroundTasksMediaContainer$Outbound; -} - -export function getBackgroundTasksMediaContainerToJSON( - getBackgroundTasksMediaContainer: GetBackgroundTasksMediaContainer, -): string { - return JSON.stringify( - GetBackgroundTasksMediaContainer$outboundSchema.parse( - getBackgroundTasksMediaContainer, - ), - ); -} - export function getBackgroundTasksMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -280,48 +164,6 @@ export const GetBackgroundTasksResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBackgroundTasksResponseBody$Outbound = { - MediaContainer?: GetBackgroundTasksMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetBackgroundTasksResponseBody$outboundSchema: z.ZodType< - GetBackgroundTasksResponseBody$Outbound, - z.ZodTypeDef, - GetBackgroundTasksResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetBackgroundTasksMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBackgroundTasksResponseBody$ { - /** @deprecated use `GetBackgroundTasksResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetBackgroundTasksResponseBody$inboundSchema; - /** @deprecated use `GetBackgroundTasksResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetBackgroundTasksResponseBody$outboundSchema; - /** @deprecated use `GetBackgroundTasksResponseBody$Outbound` instead. */ - export type Outbound = GetBackgroundTasksResponseBody$Outbound; -} - -export function getBackgroundTasksResponseBodyToJSON( - getBackgroundTasksResponseBody: GetBackgroundTasksResponseBody, -): string { - return JSON.stringify( - GetBackgroundTasksResponseBody$outboundSchema.parse( - getBackgroundTasksResponseBody, - ), - ); -} - export function getBackgroundTasksResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -350,56 +192,6 @@ export const GetBackgroundTasksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBackgroundTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetBackgroundTasksResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetBackgroundTasksResponse$outboundSchema: z.ZodType< - GetBackgroundTasksResponse$Outbound, - z.ZodTypeDef, - GetBackgroundTasksResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetBackgroundTasksResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBackgroundTasksResponse$ { - /** @deprecated use `GetBackgroundTasksResponse$inboundSchema` instead. */ - export const inboundSchema = GetBackgroundTasksResponse$inboundSchema; - /** @deprecated use `GetBackgroundTasksResponse$outboundSchema` instead. */ - export const outboundSchema = GetBackgroundTasksResponse$outboundSchema; - /** @deprecated use `GetBackgroundTasksResponse$Outbound` instead. */ - export type Outbound = GetBackgroundTasksResponse$Outbound; -} - -export function getBackgroundTasksResponseToJSON( - getBackgroundTasksResponse: GetBackgroundTasksResponse, -): string { - return JSON.stringify( - GetBackgroundTasksResponse$outboundSchema.parse(getBackgroundTasksResponse), - ); -} - export function getBackgroundTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcategories.ts b/src/sdk/models/operations/getcategories.ts index 6ee182f1..32c72a7e 100644 --- a/src/sdk/models/operations/getcategories.ts +++ b/src/sdk/models/operations/getcategories.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetCategoriesResponse = { mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; }; -/** @internal */ -export const GetCategoriesGlobals$inboundSchema: z.ZodType< - GetCategoriesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCategoriesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCategoriesGlobals$outboundSchema: z.ZodType< - GetCategoriesGlobals$Outbound, - z.ZodTypeDef, - GetCategoriesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCategoriesGlobals$ { - /** @deprecated use `GetCategoriesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCategoriesGlobals$inboundSchema; - /** @deprecated use `GetCategoriesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCategoriesGlobals$outboundSchema; - /** @deprecated use `GetCategoriesGlobals$Outbound` instead. */ - export type Outbound = GetCategoriesGlobals$Outbound; -} - -export function getCategoriesGlobalsToJSON( - getCategoriesGlobals: GetCategoriesGlobals, -): string { - return JSON.stringify( - GetCategoriesGlobals$outboundSchema.parse(getCategoriesGlobals), - ); -} - -export function getCategoriesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCategoriesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCategoriesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCategoriesRequest$inboundSchema: z.ZodType< - GetCategoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCategoriesRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetCategoriesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCategoriesRequest$ { - /** @deprecated use `GetCategoriesRequest$inboundSchema` instead. */ - export const inboundSchema = GetCategoriesRequest$inboundSchema; - /** @deprecated use `GetCategoriesRequest$outboundSchema` instead. */ - export const outboundSchema = GetCategoriesRequest$outboundSchema; - /** @deprecated use `GetCategoriesRequest$Outbound` instead. */ - export type Outbound = GetCategoriesRequest$Outbound; -} - export function getCategoriesRequestToJSON( getCategoriesRequest: GetCategoriesRequest, ): string { @@ -339,16 +183,6 @@ export function getCategoriesRequestToJSON( ); } -export function getCategoriesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCategoriesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCategoriesRequest' from JSON`, - ); -} - /** @internal */ export const GetCategoriesResponse$inboundSchema: z.ZodType< GetCategoriesResponse, @@ -369,59 +203,6 @@ export const GetCategoriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCategoriesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithArtwork?: - | shared.MediaContainerWithArtwork$Outbound - | undefined; -}; - -/** @internal */ -export const GetCategoriesResponse$outboundSchema: z.ZodType< - GetCategoriesResponse$Outbound, - z.ZodTypeDef, - GetCategoriesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithArtwork: shared.MediaContainerWithArtwork$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithArtwork: "MediaContainerWithArtwork", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCategoriesResponse$ { - /** @deprecated use `GetCategoriesResponse$inboundSchema` instead. */ - export const inboundSchema = GetCategoriesResponse$inboundSchema; - /** @deprecated use `GetCategoriesResponse$outboundSchema` instead. */ - export const outboundSchema = GetCategoriesResponse$outboundSchema; - /** @deprecated use `GetCategoriesResponse$Outbound` instead. */ - export type Outbound = GetCategoriesResponse$Outbound; -} - -export function getCategoriesResponseToJSON( - getCategoriesResponse: GetCategoriesResponse, -): string { - return JSON.stringify( - GetCategoriesResponse$outboundSchema.parse(getCategoriesResponse), - ); -} - export function getCategoriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getchannels.ts b/src/sdk/models/operations/getchannels.ts index 9f39827f..32d7f2f9 100644 --- a/src/sdk/models/operations/getchannels.ts +++ b/src/sdk/models/operations/getchannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -159,149 +159,6 @@ export type GetChannelsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetChannelsGlobals$inboundSchema: z.ZodType< - GetChannelsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetChannelsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetChannelsGlobals$outboundSchema: z.ZodType< - GetChannelsGlobals$Outbound, - z.ZodTypeDef, - GetChannelsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChannelsGlobals$ { - /** @deprecated use `GetChannelsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetChannelsGlobals$inboundSchema; - /** @deprecated use `GetChannelsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetChannelsGlobals$outboundSchema; - /** @deprecated use `GetChannelsGlobals$Outbound` instead. */ - export type Outbound = GetChannelsGlobals$Outbound; -} - -export function getChannelsGlobalsToJSON( - getChannelsGlobals: GetChannelsGlobals, -): string { - return JSON.stringify( - GetChannelsGlobals$outboundSchema.parse(getChannelsGlobals), - ); -} - -export function getChannelsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChannelsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChannelsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetChannelsRequest$inboundSchema: z.ZodType< - GetChannelsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - lineup: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetChannelsRequest$Outbound = { accepts: string; @@ -351,19 +208,6 @@ export const GetChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChannelsRequest$ { - /** @deprecated use `GetChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetChannelsRequest$inboundSchema; - /** @deprecated use `GetChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = GetChannelsRequest$outboundSchema; - /** @deprecated use `GetChannelsRequest$Outbound` instead. */ - export type Outbound = GetChannelsRequest$Outbound; -} - export function getChannelsRequestToJSON( getChannelsRequest: GetChannelsRequest, ): string { @@ -372,16 +216,6 @@ export function getChannelsRequestToJSON( ); } -export function getChannelsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChannelsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChannelsRequest' from JSON`, - ); -} - /** @internal */ export const GetChannelsMediaContainer$inboundSchema: z.ZodType< GetChannelsMediaContainer, @@ -399,53 +233,6 @@ export const GetChannelsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetChannelsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Channel?: Array | undefined; -}; - -/** @internal */ -export const GetChannelsMediaContainer$outboundSchema: z.ZodType< - GetChannelsMediaContainer$Outbound, - z.ZodTypeDef, - GetChannelsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - channel: z.array(shared.Channel$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - channel: "Channel", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChannelsMediaContainer$ { - /** @deprecated use `GetChannelsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetChannelsMediaContainer$inboundSchema; - /** @deprecated use `GetChannelsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetChannelsMediaContainer$outboundSchema; - /** @deprecated use `GetChannelsMediaContainer$Outbound` instead. */ - export type Outbound = GetChannelsMediaContainer$Outbound; -} - -export function getChannelsMediaContainerToJSON( - getChannelsMediaContainer: GetChannelsMediaContainer, -): string { - return JSON.stringify( - GetChannelsMediaContainer$outboundSchema.parse(getChannelsMediaContainer), - ); -} - export function getChannelsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -470,46 +257,6 @@ export const GetChannelsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetChannelsResponseBody$Outbound = { - MediaContainer?: GetChannelsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetChannelsResponseBody$outboundSchema: z.ZodType< - GetChannelsResponseBody$Outbound, - z.ZodTypeDef, - GetChannelsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetChannelsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChannelsResponseBody$ { - /** @deprecated use `GetChannelsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetChannelsResponseBody$inboundSchema; - /** @deprecated use `GetChannelsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetChannelsResponseBody$outboundSchema; - /** @deprecated use `GetChannelsResponseBody$Outbound` instead. */ - export type Outbound = GetChannelsResponseBody$Outbound; -} - -export function getChannelsResponseBodyToJSON( - getChannelsResponseBody: GetChannelsResponseBody, -): string { - return JSON.stringify( - GetChannelsResponseBody$outboundSchema.parse(getChannelsResponseBody), - ); -} - export function getChannelsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -530,7 +277,7 @@ export const GetChannelsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetChannelsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -540,58 +287,6 @@ export const GetChannelsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetChannelsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetChannelsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetChannelsResponse$outboundSchema: z.ZodType< - GetChannelsResponse$Outbound, - z.ZodTypeDef, - GetChannelsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetChannelsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChannelsResponse$ { - /** @deprecated use `GetChannelsResponse$inboundSchema` instead. */ - export const inboundSchema = GetChannelsResponse$inboundSchema; - /** @deprecated use `GetChannelsResponse$outboundSchema` instead. */ - export const outboundSchema = GetChannelsResponse$outboundSchema; - /** @deprecated use `GetChannelsResponse$Outbound` instead. */ - export type Outbound = GetChannelsResponse$Outbound; -} - -export function getChannelsResponseToJSON( - getChannelsResponse: GetChannelsResponse, -): string { - return JSON.stringify( - GetChannelsResponse$outboundSchema.parse(getChannelsResponse), - ); -} - export function getChannelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getchapterimage.ts b/src/sdk/models/operations/getchapterimage.ts index 43a16444..bb5705e5 100644 --- a/src/sdk/models/operations/getchapterimage.ts +++ b/src/sdk/models/operations/getchapterimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,150 +130,6 @@ export type GetChapterImageResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetChapterImageGlobals$inboundSchema: z.ZodType< - GetChapterImageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetChapterImageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetChapterImageGlobals$outboundSchema: z.ZodType< - GetChapterImageGlobals$Outbound, - z.ZodTypeDef, - GetChapterImageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChapterImageGlobals$ { - /** @deprecated use `GetChapterImageGlobals$inboundSchema` instead. */ - export const inboundSchema = GetChapterImageGlobals$inboundSchema; - /** @deprecated use `GetChapterImageGlobals$outboundSchema` instead. */ - export const outboundSchema = GetChapterImageGlobals$outboundSchema; - /** @deprecated use `GetChapterImageGlobals$Outbound` instead. */ - export type Outbound = GetChapterImageGlobals$Outbound; -} - -export function getChapterImageGlobalsToJSON( - getChapterImageGlobals: GetChapterImageGlobals, -): string { - return JSON.stringify( - GetChapterImageGlobals$outboundSchema.parse(getChapterImageGlobals), - ); -} - -export function getChapterImageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChapterImageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChapterImageGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetChapterImageRequest$inboundSchema: z.ZodType< - GetChapterImageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - mediaId: z.number().int(), - chapter: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetChapterImageRequest$Outbound = { accepts: string; @@ -325,19 +181,6 @@ export const GetChapterImageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChapterImageRequest$ { - /** @deprecated use `GetChapterImageRequest$inboundSchema` instead. */ - export const inboundSchema = GetChapterImageRequest$inboundSchema; - /** @deprecated use `GetChapterImageRequest$outboundSchema` instead. */ - export const outboundSchema = GetChapterImageRequest$outboundSchema; - /** @deprecated use `GetChapterImageRequest$Outbound` instead. */ - export type Outbound = GetChapterImageRequest$Outbound; -} - export function getChapterImageRequestToJSON( getChapterImageRequest: GetChapterImageRequest, ): string { @@ -346,16 +189,6 @@ export function getChapterImageRequestToJSON( ); } -export function getChapterImageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChapterImageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChapterImageRequest' from JSON`, - ); -} - /** @internal */ export const GetChapterImageResponse$inboundSchema: z.ZodType< GetChapterImageResponse, @@ -375,56 +208,6 @@ export const GetChapterImageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetChapterImageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetChapterImageResponse$outboundSchema: z.ZodType< - GetChapterImageResponse$Outbound, - z.ZodTypeDef, - GetChapterImageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChapterImageResponse$ { - /** @deprecated use `GetChapterImageResponse$inboundSchema` instead. */ - export const inboundSchema = GetChapterImageResponse$inboundSchema; - /** @deprecated use `GetChapterImageResponse$outboundSchema` instead. */ - export const outboundSchema = GetChapterImageResponse$outboundSchema; - /** @deprecated use `GetChapterImageResponse$Outbound` instead. */ - export type Outbound = GetChapterImageResponse$Outbound; -} - -export function getChapterImageResponseToJSON( - getChapterImageResponse: GetChapterImageResponse, -): string { - return JSON.stringify( - GetChapterImageResponse$outboundSchema.parse(getChapterImageResponse), - ); -} - export function getChapterImageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcluster.ts b/src/sdk/models/operations/getcluster.ts index 43496c2c..af7f3539 100644 --- a/src/sdk/models/operations/getcluster.ts +++ b/src/sdk/models/operations/getcluster.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetClusterResponse = { mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; }; -/** @internal */ -export const GetClusterGlobals$inboundSchema: z.ZodType< - GetClusterGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetClusterGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetClusterGlobals$outboundSchema: z.ZodType< - GetClusterGlobals$Outbound, - z.ZodTypeDef, - GetClusterGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetClusterGlobals$ { - /** @deprecated use `GetClusterGlobals$inboundSchema` instead. */ - export const inboundSchema = GetClusterGlobals$inboundSchema; - /** @deprecated use `GetClusterGlobals$outboundSchema` instead. */ - export const outboundSchema = GetClusterGlobals$outboundSchema; - /** @deprecated use `GetClusterGlobals$Outbound` instead. */ - export type Outbound = GetClusterGlobals$Outbound; -} - -export function getClusterGlobalsToJSON( - getClusterGlobals: GetClusterGlobals, -): string { - return JSON.stringify( - GetClusterGlobals$outboundSchema.parse(getClusterGlobals), - ); -} - -export function getClusterGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetClusterGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetClusterGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetClusterRequest$inboundSchema: z.ZodType< - GetClusterRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetClusterRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetClusterRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetClusterRequest$ { - /** @deprecated use `GetClusterRequest$inboundSchema` instead. */ - export const inboundSchema = GetClusterRequest$inboundSchema; - /** @deprecated use `GetClusterRequest$outboundSchema` instead. */ - export const outboundSchema = GetClusterRequest$outboundSchema; - /** @deprecated use `GetClusterRequest$Outbound` instead. */ - export type Outbound = GetClusterRequest$Outbound; -} - export function getClusterRequestToJSON( getClusterRequest: GetClusterRequest, ): string { @@ -339,16 +183,6 @@ export function getClusterRequestToJSON( ); } -export function getClusterRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetClusterRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetClusterRequest' from JSON`, - ); -} - /** @internal */ export const GetClusterResponse$inboundSchema: z.ZodType< GetClusterResponse, @@ -369,59 +203,6 @@ export const GetClusterResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetClusterResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithArtwork?: - | shared.MediaContainerWithArtwork$Outbound - | undefined; -}; - -/** @internal */ -export const GetClusterResponse$outboundSchema: z.ZodType< - GetClusterResponse$Outbound, - z.ZodTypeDef, - GetClusterResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithArtwork: shared.MediaContainerWithArtwork$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithArtwork: "MediaContainerWithArtwork", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetClusterResponse$ { - /** @deprecated use `GetClusterResponse$inboundSchema` instead. */ - export const inboundSchema = GetClusterResponse$inboundSchema; - /** @deprecated use `GetClusterResponse$outboundSchema` instead. */ - export const outboundSchema = GetClusterResponse$outboundSchema; - /** @deprecated use `GetClusterResponse$Outbound` instead. */ - export type Outbound = GetClusterResponse$Outbound; -} - -export function getClusterResponseToJSON( - getClusterResponse: GetClusterResponse, -): string { - return JSON.stringify( - GetClusterResponse$outboundSchema.parse(getClusterResponse), - ); -} - export function getClusterResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcollectionimage.ts b/src/sdk/models/operations/getcollectionimage.ts index 85f50b6c..6183f9e5 100644 --- a/src/sdk/models/operations/getcollectionimage.ts +++ b/src/sdk/models/operations/getcollectionimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,151 +131,6 @@ export type GetCollectionImageResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetCollectionImageGlobals$inboundSchema: z.ZodType< - GetCollectionImageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCollectionImageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCollectionImageGlobals$outboundSchema: z.ZodType< - GetCollectionImageGlobals$Outbound, - z.ZodTypeDef, - GetCollectionImageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionImageGlobals$ { - /** @deprecated use `GetCollectionImageGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCollectionImageGlobals$inboundSchema; - /** @deprecated use `GetCollectionImageGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCollectionImageGlobals$outboundSchema; - /** @deprecated use `GetCollectionImageGlobals$Outbound` instead. */ - export type Outbound = GetCollectionImageGlobals$Outbound; -} - -export function getCollectionImageGlobalsToJSON( - getCollectionImageGlobals: GetCollectionImageGlobals, -): string { - return JSON.stringify( - GetCollectionImageGlobals$outboundSchema.parse(getCollectionImageGlobals), - ); -} - -export function getCollectionImageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionImageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionImageGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCollectionImageRequest$inboundSchema: z.ZodType< - GetCollectionImageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - collectionId: z.number().int(), - updatedAt: z.number().int(), - composite: shared.Composite$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCollectionImageRequest$Outbound = { accepts: string; @@ -329,19 +184,6 @@ export const GetCollectionImageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionImageRequest$ { - /** @deprecated use `GetCollectionImageRequest$inboundSchema` instead. */ - export const inboundSchema = GetCollectionImageRequest$inboundSchema; - /** @deprecated use `GetCollectionImageRequest$outboundSchema` instead. */ - export const outboundSchema = GetCollectionImageRequest$outboundSchema; - /** @deprecated use `GetCollectionImageRequest$Outbound` instead. */ - export type Outbound = GetCollectionImageRequest$Outbound; -} - export function getCollectionImageRequestToJSON( getCollectionImageRequest: GetCollectionImageRequest, ): string { @@ -350,16 +192,6 @@ export function getCollectionImageRequestToJSON( ); } -export function getCollectionImageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionImageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionImageRequest' from JSON`, - ); -} - /** @internal */ export const GetCollectionImageResponse$inboundSchema: z.ZodType< GetCollectionImageResponse, @@ -379,56 +211,6 @@ export const GetCollectionImageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionImageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetCollectionImageResponse$outboundSchema: z.ZodType< - GetCollectionImageResponse$Outbound, - z.ZodTypeDef, - GetCollectionImageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionImageResponse$ { - /** @deprecated use `GetCollectionImageResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionImageResponse$inboundSchema; - /** @deprecated use `GetCollectionImageResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionImageResponse$outboundSchema; - /** @deprecated use `GetCollectionImageResponse$Outbound` instead. */ - export type Outbound = GetCollectionImageResponse$Outbound; -} - -export function getCollectionImageResponseToJSON( - getCollectionImageResponse: GetCollectionImageResponse, -): string { - return JSON.stringify( - GetCollectionImageResponse$outboundSchema.parse(getCollectionImageResponse), - ); -} - export function getCollectionImageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcollectionitems.ts b/src/sdk/models/operations/getcollectionitems.ts index 32120d30..f16bf12d 100644 --- a/src/sdk/models/operations/getcollectionitems.ts +++ b/src/sdk/models/operations/getcollectionitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetCollectionItemsResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const GetCollectionItemsGlobals$inboundSchema: z.ZodType< - GetCollectionItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCollectionItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCollectionItemsGlobals$outboundSchema: z.ZodType< - GetCollectionItemsGlobals$Outbound, - z.ZodTypeDef, - GetCollectionItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionItemsGlobals$ { - /** @deprecated use `GetCollectionItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCollectionItemsGlobals$inboundSchema; - /** @deprecated use `GetCollectionItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCollectionItemsGlobals$outboundSchema; - /** @deprecated use `GetCollectionItemsGlobals$Outbound` instead. */ - export type Outbound = GetCollectionItemsGlobals$Outbound; -} - -export function getCollectionItemsGlobalsToJSON( - getCollectionItemsGlobals: GetCollectionItemsGlobals, -): string { - return JSON.stringify( - GetCollectionItemsGlobals$outboundSchema.parse(getCollectionItemsGlobals), - ); -} - -export function getCollectionItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCollectionItemsRequest$inboundSchema: z.ZodType< - GetCollectionItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - collectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCollectionItemsRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetCollectionItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionItemsRequest$ { - /** @deprecated use `GetCollectionItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetCollectionItemsRequest$inboundSchema; - /** @deprecated use `GetCollectionItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetCollectionItemsRequest$outboundSchema; - /** @deprecated use `GetCollectionItemsRequest$Outbound` instead. */ - export type Outbound = GetCollectionItemsRequest$Outbound; -} - export function getCollectionItemsRequestToJSON( getCollectionItemsRequest: GetCollectionItemsRequest, ): string { @@ -339,16 +183,6 @@ export function getCollectionItemsRequestToJSON( ); } -export function getCollectionItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetCollectionItemsResponse$inboundSchema: z.ZodType< GetCollectionItemsResponse, @@ -369,59 +203,6 @@ export const GetCollectionItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetCollectionItemsResponse$outboundSchema: z.ZodType< - GetCollectionItemsResponse$Outbound, - z.ZodTypeDef, - GetCollectionItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionItemsResponse$ { - /** @deprecated use `GetCollectionItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionItemsResponse$inboundSchema; - /** @deprecated use `GetCollectionItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionItemsResponse$outboundSchema; - /** @deprecated use `GetCollectionItemsResponse$Outbound` instead. */ - export type Outbound = GetCollectionItemsResponse$Outbound; -} - -export function getCollectionItemsResponseToJSON( - getCollectionItemsResponse: GetCollectionItemsResponse, -): string { - return JSON.stringify( - GetCollectionItemsResponse$outboundSchema.parse(getCollectionItemsResponse), - ); -} - export function getCollectionItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcollections.ts b/src/sdk/models/operations/getcollections.ts index 8fb171b8..76500760 100644 --- a/src/sdk/models/operations/getcollections.ts +++ b/src/sdk/models/operations/getcollections.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,150 +131,6 @@ export type GetCollectionsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetCollectionsGlobals$inboundSchema: z.ZodType< - GetCollectionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCollectionsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCollectionsGlobals$outboundSchema: z.ZodType< - GetCollectionsGlobals$Outbound, - z.ZodTypeDef, - GetCollectionsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionsGlobals$ { - /** @deprecated use `GetCollectionsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCollectionsGlobals$inboundSchema; - /** @deprecated use `GetCollectionsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCollectionsGlobals$outboundSchema; - /** @deprecated use `GetCollectionsGlobals$Outbound` instead. */ - export type Outbound = GetCollectionsGlobals$Outbound; -} - -export function getCollectionsGlobalsToJSON( - getCollectionsGlobals: GetCollectionsGlobals, -): string { - return JSON.stringify( - GetCollectionsGlobals$outboundSchema.parse(getCollectionsGlobals), - ); -} - -export function getCollectionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCollectionsRequest$inboundSchema: z.ZodType< - GetCollectionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCollectionsRequest$Outbound = { accepts: string; @@ -326,19 +182,6 @@ export const GetCollectionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionsRequest$ { - /** @deprecated use `GetCollectionsRequest$inboundSchema` instead. */ - export const inboundSchema = GetCollectionsRequest$inboundSchema; - /** @deprecated use `GetCollectionsRequest$outboundSchema` instead. */ - export const outboundSchema = GetCollectionsRequest$outboundSchema; - /** @deprecated use `GetCollectionsRequest$Outbound` instead. */ - export type Outbound = GetCollectionsRequest$Outbound; -} - export function getCollectionsRequestToJSON( getCollectionsRequest: GetCollectionsRequest, ): string { @@ -347,16 +190,6 @@ export function getCollectionsRequestToJSON( ); } -export function getCollectionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCollectionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCollectionsRequest' from JSON`, - ); -} - /** @internal */ export const GetCollectionsResponse$inboundSchema: z.ZodType< GetCollectionsResponse, @@ -368,7 +201,7 @@ export const GetCollectionsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -379,62 +212,6 @@ export const GetCollectionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetCollectionsResponse$outboundSchema: z.ZodType< - GetCollectionsResponse$Outbound, - z.ZodTypeDef, - GetCollectionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionsResponse$ { - /** @deprecated use `GetCollectionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionsResponse$inboundSchema; - /** @deprecated use `GetCollectionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionsResponse$outboundSchema; - /** @deprecated use `GetCollectionsResponse$Outbound` instead. */ - export type Outbound = GetCollectionsResponse$Outbound; -} - -export function getCollectionsResponseToJSON( - getCollectionsResponse: GetCollectionsResponse, -): string { - return JSON.stringify( - GetCollectionsResponse$outboundSchema.parse(getCollectionsResponse), - ); -} - export function getCollectionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcolors.ts b/src/sdk/models/operations/getcolors.ts index 3f956fdf..c85ab020 100644 --- a/src/sdk/models/operations/getcolors.ts +++ b/src/sdk/models/operations/getcolors.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -177,149 +177,6 @@ export type GetColorsResponse = { object?: GetColorsResponseBody | undefined; }; -/** @internal */ -export const GetColorsGlobals$inboundSchema: z.ZodType< - GetColorsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetColorsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetColorsGlobals$outboundSchema: z.ZodType< - GetColorsGlobals$Outbound, - z.ZodTypeDef, - GetColorsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetColorsGlobals$ { - /** @deprecated use `GetColorsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetColorsGlobals$inboundSchema; - /** @deprecated use `GetColorsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetColorsGlobals$outboundSchema; - /** @deprecated use `GetColorsGlobals$Outbound` instead. */ - export type Outbound = GetColorsGlobals$Outbound; -} - -export function getColorsGlobalsToJSON( - getColorsGlobals: GetColorsGlobals, -): string { - return JSON.stringify( - GetColorsGlobals$outboundSchema.parse(getColorsGlobals), - ); -} - -export function getColorsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetColorsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetColorsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetColorsRequest$inboundSchema: z.ZodType< - GetColorsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - url: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetColorsRequest$Outbound = { accepts: string; @@ -369,19 +226,6 @@ export const GetColorsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetColorsRequest$ { - /** @deprecated use `GetColorsRequest$inboundSchema` instead. */ - export const inboundSchema = GetColorsRequest$inboundSchema; - /** @deprecated use `GetColorsRequest$outboundSchema` instead. */ - export const outboundSchema = GetColorsRequest$outboundSchema; - /** @deprecated use `GetColorsRequest$Outbound` instead. */ - export type Outbound = GetColorsRequest$Outbound; -} - export function getColorsRequestToJSON( getColorsRequest: GetColorsRequest, ): string { @@ -390,16 +234,6 @@ export function getColorsRequestToJSON( ); } -export function getColorsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetColorsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetColorsRequest' from JSON`, - ); -} - /** @internal */ export const UltraBlurColor$inboundSchema: z.ZodType< UltraBlurColor, @@ -412,43 +246,6 @@ export const UltraBlurColor$inboundSchema: z.ZodType< topRight: z.string().optional(), }); -/** @internal */ -export type UltraBlurColor$Outbound = { - bottomLeft?: string | undefined; - bottomRight?: string | undefined; - topLeft?: string | undefined; - topRight?: string | undefined; -}; - -/** @internal */ -export const UltraBlurColor$outboundSchema: z.ZodType< - UltraBlurColor$Outbound, - z.ZodTypeDef, - UltraBlurColor -> = z.object({ - bottomLeft: z.string().optional(), - bottomRight: z.string().optional(), - topLeft: z.string().optional(), - topRight: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UltraBlurColor$ { - /** @deprecated use `UltraBlurColor$inboundSchema` instead. */ - export const inboundSchema = UltraBlurColor$inboundSchema; - /** @deprecated use `UltraBlurColor$outboundSchema` instead. */ - export const outboundSchema = UltraBlurColor$outboundSchema; - /** @deprecated use `UltraBlurColor$Outbound` instead. */ - export type Outbound = UltraBlurColor$Outbound; -} - -export function ultraBlurColorToJSON(ultraBlurColor: UltraBlurColor): string { - return JSON.stringify(UltraBlurColor$outboundSchema.parse(ultraBlurColor)); -} - export function ultraBlurColorFromJSON( jsonString: string, ): SafeParseResult { @@ -477,54 +274,6 @@ export const GetColorsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetColorsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - UltraBlurColors?: Array | undefined; -}; - -/** @internal */ -export const GetColorsMediaContainer$outboundSchema: z.ZodType< - GetColorsMediaContainer$Outbound, - z.ZodTypeDef, - GetColorsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - ultraBlurColors: z.array(z.lazy(() => UltraBlurColor$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - ultraBlurColors: "UltraBlurColors", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetColorsMediaContainer$ { - /** @deprecated use `GetColorsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetColorsMediaContainer$inboundSchema; - /** @deprecated use `GetColorsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetColorsMediaContainer$outboundSchema; - /** @deprecated use `GetColorsMediaContainer$Outbound` instead. */ - export type Outbound = GetColorsMediaContainer$Outbound; -} - -export function getColorsMediaContainerToJSON( - getColorsMediaContainer: GetColorsMediaContainer, -): string { - return JSON.stringify( - GetColorsMediaContainer$outboundSchema.parse(getColorsMediaContainer), - ); -} - export function getColorsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -549,46 +298,6 @@ export const GetColorsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetColorsResponseBody$Outbound = { - MediaContainer?: GetColorsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetColorsResponseBody$outboundSchema: z.ZodType< - GetColorsResponseBody$Outbound, - z.ZodTypeDef, - GetColorsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetColorsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetColorsResponseBody$ { - /** @deprecated use `GetColorsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetColorsResponseBody$inboundSchema; - /** @deprecated use `GetColorsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetColorsResponseBody$outboundSchema; - /** @deprecated use `GetColorsResponseBody$Outbound` instead. */ - export type Outbound = GetColorsResponseBody$Outbound; -} - -export function getColorsResponseBodyToJSON( - getColorsResponseBody: GetColorsResponseBody, -): string { - return JSON.stringify( - GetColorsResponseBody$outboundSchema.parse(getColorsResponseBody), - ); -} - export function getColorsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -617,55 +326,6 @@ export const GetColorsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetColorsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetColorsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetColorsResponse$outboundSchema: z.ZodType< - GetColorsResponse$Outbound, - z.ZodTypeDef, - GetColorsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetColorsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetColorsResponse$ { - /** @deprecated use `GetColorsResponse$inboundSchema` instead. */ - export const inboundSchema = GetColorsResponse$inboundSchema; - /** @deprecated use `GetColorsResponse$outboundSchema` instead. */ - export const outboundSchema = GetColorsResponse$outboundSchema; - /** @deprecated use `GetColorsResponse$Outbound` instead. */ - export type Outbound = GetColorsResponse$Outbound; -} - -export function getColorsResponseToJSON( - getColorsResponse: GetColorsResponse, -): string { - return JSON.stringify( - GetColorsResponse$outboundSchema.parse(getColorsResponse), - ); -} - export function getColorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcommon.ts b/src/sdk/models/operations/getcommon.ts index 651cbc76..fe88d55e 100644 --- a/src/sdk/models/operations/getcommon.ts +++ b/src/sdk/models/operations/getcommon.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,151 +135,6 @@ export type GetCommonResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetCommonGlobals$inboundSchema: z.ZodType< - GetCommonGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCommonGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCommonGlobals$outboundSchema: z.ZodType< - GetCommonGlobals$Outbound, - z.ZodTypeDef, - GetCommonGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCommonGlobals$ { - /** @deprecated use `GetCommonGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCommonGlobals$inboundSchema; - /** @deprecated use `GetCommonGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCommonGlobals$outboundSchema; - /** @deprecated use `GetCommonGlobals$Outbound` instead. */ - export type Outbound = GetCommonGlobals$Outbound; -} - -export function getCommonGlobalsToJSON( - getCommonGlobals: GetCommonGlobals, -): string { - return JSON.stringify( - GetCommonGlobals$outboundSchema.parse(getCommonGlobals), - ); -} - -export function getCommonGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCommonGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCommonGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCommonRequest$inboundSchema: z.ZodType< - GetCommonRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCommonRequest$Outbound = { accepts: string; @@ -333,19 +188,6 @@ export const GetCommonRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCommonRequest$ { - /** @deprecated use `GetCommonRequest$inboundSchema` instead. */ - export const inboundSchema = GetCommonRequest$inboundSchema; - /** @deprecated use `GetCommonRequest$outboundSchema` instead. */ - export const outboundSchema = GetCommonRequest$outboundSchema; - /** @deprecated use `GetCommonRequest$Outbound` instead. */ - export type Outbound = GetCommonRequest$Outbound; -} - export function getCommonRequestToJSON( getCommonRequest: GetCommonRequest, ): string { @@ -354,16 +196,6 @@ export function getCommonRequestToJSON( ); } -export function getCommonRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCommonRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCommonRequest' from JSON`, - ); -} - /** @internal */ export const GetCommonResponse$inboundSchema: z.ZodType< GetCommonResponse, @@ -375,7 +207,7 @@ export const GetCommonResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,62 +218,6 @@ export const GetCommonResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCommonResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetCommonResponse$outboundSchema: z.ZodType< - GetCommonResponse$Outbound, - z.ZodTypeDef, - GetCommonResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCommonResponse$ { - /** @deprecated use `GetCommonResponse$inboundSchema` instead. */ - export const inboundSchema = GetCommonResponse$inboundSchema; - /** @deprecated use `GetCommonResponse$outboundSchema` instead. */ - export const outboundSchema = GetCommonResponse$outboundSchema; - /** @deprecated use `GetCommonResponse$Outbound` instead. */ - export type Outbound = GetCommonResponse$Outbound; -} - -export function getCommonResponseToJSON( - getCommonResponse: GetCommonResponse, -): string { - return JSON.stringify( - GetCommonResponse$outboundSchema.parse(getCommonResponse), - ); -} - export function getCommonResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcontinuewatching.ts b/src/sdk/models/operations/getcontinuewatching.ts index 2deb148b..587b4811 100644 --- a/src/sdk/models/operations/getcontinuewatching.ts +++ b/src/sdk/models/operations/getcontinuewatching.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -159,149 +159,6 @@ export type GetContinueWatchingResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetContinueWatchingGlobals$inboundSchema: z.ZodType< - GetContinueWatchingGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetContinueWatchingGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetContinueWatchingGlobals$outboundSchema: z.ZodType< - GetContinueWatchingGlobals$Outbound, - z.ZodTypeDef, - GetContinueWatchingGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContinueWatchingGlobals$ { - /** @deprecated use `GetContinueWatchingGlobals$inboundSchema` instead. */ - export const inboundSchema = GetContinueWatchingGlobals$inboundSchema; - /** @deprecated use `GetContinueWatchingGlobals$outboundSchema` instead. */ - export const outboundSchema = GetContinueWatchingGlobals$outboundSchema; - /** @deprecated use `GetContinueWatchingGlobals$Outbound` instead. */ - export type Outbound = GetContinueWatchingGlobals$Outbound; -} - -export function getContinueWatchingGlobalsToJSON( - getContinueWatchingGlobals: GetContinueWatchingGlobals, -): string { - return JSON.stringify( - GetContinueWatchingGlobals$outboundSchema.parse(getContinueWatchingGlobals), - ); -} - -export function getContinueWatchingGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetContinueWatchingGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetContinueWatchingGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetContinueWatchingRequest$inboundSchema: z.ZodType< - GetContinueWatchingRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - count: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetContinueWatchingRequest$Outbound = { accepts: string; @@ -351,19 +208,6 @@ export const GetContinueWatchingRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContinueWatchingRequest$ { - /** @deprecated use `GetContinueWatchingRequest$inboundSchema` instead. */ - export const inboundSchema = GetContinueWatchingRequest$inboundSchema; - /** @deprecated use `GetContinueWatchingRequest$outboundSchema` instead. */ - export const outboundSchema = GetContinueWatchingRequest$outboundSchema; - /** @deprecated use `GetContinueWatchingRequest$Outbound` instead. */ - export type Outbound = GetContinueWatchingRequest$Outbound; -} - export function getContinueWatchingRequestToJSON( getContinueWatchingRequest: GetContinueWatchingRequest, ): string { @@ -372,16 +216,6 @@ export function getContinueWatchingRequestToJSON( ); } -export function getContinueWatchingRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetContinueWatchingRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetContinueWatchingRequest' from JSON`, - ); -} - /** @internal */ export const GetContinueWatchingMediaContainer$inboundSchema: z.ZodType< GetContinueWatchingMediaContainer, @@ -399,56 +233,6 @@ export const GetContinueWatchingMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetContinueWatchingMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetContinueWatchingMediaContainer$outboundSchema: z.ZodType< - GetContinueWatchingMediaContainer$Outbound, - z.ZodTypeDef, - GetContinueWatchingMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContinueWatchingMediaContainer$ { - /** @deprecated use `GetContinueWatchingMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetContinueWatchingMediaContainer$inboundSchema; - /** @deprecated use `GetContinueWatchingMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetContinueWatchingMediaContainer$outboundSchema; - /** @deprecated use `GetContinueWatchingMediaContainer$Outbound` instead. */ - export type Outbound = GetContinueWatchingMediaContainer$Outbound; -} - -export function getContinueWatchingMediaContainerToJSON( - getContinueWatchingMediaContainer: GetContinueWatchingMediaContainer, -): string { - return JSON.stringify( - GetContinueWatchingMediaContainer$outboundSchema.parse( - getContinueWatchingMediaContainer, - ), - ); -} - export function getContinueWatchingMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -473,48 +257,6 @@ export const GetContinueWatchingResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetContinueWatchingResponseBody$Outbound = { - MediaContainer?: GetContinueWatchingMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetContinueWatchingResponseBody$outboundSchema: z.ZodType< - GetContinueWatchingResponseBody$Outbound, - z.ZodTypeDef, - GetContinueWatchingResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetContinueWatchingMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContinueWatchingResponseBody$ { - /** @deprecated use `GetContinueWatchingResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetContinueWatchingResponseBody$inboundSchema; - /** @deprecated use `GetContinueWatchingResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetContinueWatchingResponseBody$outboundSchema; - /** @deprecated use `GetContinueWatchingResponseBody$Outbound` instead. */ - export type Outbound = GetContinueWatchingResponseBody$Outbound; -} - -export function getContinueWatchingResponseBodyToJSON( - getContinueWatchingResponseBody: GetContinueWatchingResponseBody, -): string { - return JSON.stringify( - GetContinueWatchingResponseBody$outboundSchema.parse( - getContinueWatchingResponseBody, - ), - ); -} - export function getContinueWatchingResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -536,7 +278,7 @@ export const GetContinueWatchingResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), object: z.lazy(() => GetContinueWatchingResponseBody$inboundSchema) .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -546,61 +288,6 @@ export const GetContinueWatchingResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetContinueWatchingResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetContinueWatchingResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetContinueWatchingResponse$outboundSchema: z.ZodType< - GetContinueWatchingResponse$Outbound, - z.ZodTypeDef, - GetContinueWatchingResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetContinueWatchingResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContinueWatchingResponse$ { - /** @deprecated use `GetContinueWatchingResponse$inboundSchema` instead. */ - export const inboundSchema = GetContinueWatchingResponse$inboundSchema; - /** @deprecated use `GetContinueWatchingResponse$outboundSchema` instead. */ - export const outboundSchema = GetContinueWatchingResponse$outboundSchema; - /** @deprecated use `GetContinueWatchingResponse$Outbound` instead. */ - export type Outbound = GetContinueWatchingResponse$Outbound; -} - -export function getContinueWatchingResponseToJSON( - getContinueWatchingResponse: GetContinueWatchingResponse, -): string { - return JSON.stringify( - GetContinueWatchingResponse$outboundSchema.parse( - getContinueWatchingResponse, - ), - ); -} - export function getContinueWatchingResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcountries.ts b/src/sdk/models/operations/getcountries.ts index b0e2ef99..e89a3148 100644 --- a/src/sdk/models/operations/getcountries.ts +++ b/src/sdk/models/operations/getcountries.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -104,21 +104,6 @@ export type GetCountriesResponse = { export const Flavor$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Flavor); -/** @internal */ -export const Flavor$outboundSchema: z.ZodNativeEnum = - Flavor$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Flavor$ { - /** @deprecated use `Flavor$inboundSchema` instead. */ - export const inboundSchema = Flavor$inboundSchema; - /** @deprecated use `Flavor$outboundSchema` instead. */ - export const outboundSchema = Flavor$outboundSchema; -} - /** @internal */ export const GetCountriesCountry$inboundSchema: z.ZodType< GetCountriesCountry, @@ -135,55 +120,6 @@ export const GetCountriesCountry$inboundSchema: z.ZodType< type: z.string().optional(), }); -/** @internal */ -export type GetCountriesCountry$Outbound = { - code?: string | undefined; - example?: string | undefined; - flavor?: number | undefined; - key?: string | undefined; - language?: string | undefined; - languageTitle?: string | undefined; - title?: string | undefined; - type?: string | undefined; -}; - -/** @internal */ -export const GetCountriesCountry$outboundSchema: z.ZodType< - GetCountriesCountry$Outbound, - z.ZodTypeDef, - GetCountriesCountry -> = z.object({ - code: z.string().optional(), - example: z.string().optional(), - flavor: Flavor$outboundSchema.optional(), - key: z.string().optional(), - language: z.string().optional(), - languageTitle: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesCountry$ { - /** @deprecated use `GetCountriesCountry$inboundSchema` instead. */ - export const inboundSchema = GetCountriesCountry$inboundSchema; - /** @deprecated use `GetCountriesCountry$outboundSchema` instead. */ - export const outboundSchema = GetCountriesCountry$outboundSchema; - /** @deprecated use `GetCountriesCountry$Outbound` instead. */ - export type Outbound = GetCountriesCountry$Outbound; -} - -export function getCountriesCountryToJSON( - getCountriesCountry: GetCountriesCountry, -): string { - return JSON.stringify( - GetCountriesCountry$outboundSchema.parse(getCountriesCountry), - ); -} - export function getCountriesCountryFromJSON( jsonString: string, ): SafeParseResult { @@ -211,53 +147,6 @@ export const GetCountriesMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountriesMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Country?: Array | undefined; -}; - -/** @internal */ -export const GetCountriesMediaContainer$outboundSchema: z.ZodType< - GetCountriesMediaContainer$Outbound, - z.ZodTypeDef, - GetCountriesMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - country: z.array(z.lazy(() => GetCountriesCountry$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - country: "Country", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesMediaContainer$ { - /** @deprecated use `GetCountriesMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetCountriesMediaContainer$inboundSchema; - /** @deprecated use `GetCountriesMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetCountriesMediaContainer$outboundSchema; - /** @deprecated use `GetCountriesMediaContainer$Outbound` instead. */ - export type Outbound = GetCountriesMediaContainer$Outbound; -} - -export function getCountriesMediaContainerToJSON( - getCountriesMediaContainer: GetCountriesMediaContainer, -): string { - return JSON.stringify( - GetCountriesMediaContainer$outboundSchema.parse(getCountriesMediaContainer), - ); -} - export function getCountriesMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -282,46 +171,6 @@ export const GetCountriesResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountriesResponseBody$Outbound = { - MediaContainer?: GetCountriesMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetCountriesResponseBody$outboundSchema: z.ZodType< - GetCountriesResponseBody$Outbound, - z.ZodTypeDef, - GetCountriesResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetCountriesMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesResponseBody$ { - /** @deprecated use `GetCountriesResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetCountriesResponseBody$inboundSchema; - /** @deprecated use `GetCountriesResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetCountriesResponseBody$outboundSchema; - /** @deprecated use `GetCountriesResponseBody$Outbound` instead. */ - export type Outbound = GetCountriesResponseBody$Outbound; -} - -export function getCountriesResponseBodyToJSON( - getCountriesResponseBody: GetCountriesResponseBody, -): string { - return JSON.stringify( - GetCountriesResponseBody$outboundSchema.parse(getCountriesResponseBody), - ); -} - export function getCountriesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -342,7 +191,7 @@ export const GetCountriesResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetCountriesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -352,58 +201,6 @@ export const GetCountriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountriesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetCountriesResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetCountriesResponse$outboundSchema: z.ZodType< - GetCountriesResponse$Outbound, - z.ZodTypeDef, - GetCountriesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetCountriesResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesResponse$ { - /** @deprecated use `GetCountriesResponse$inboundSchema` instead. */ - export const inboundSchema = GetCountriesResponse$inboundSchema; - /** @deprecated use `GetCountriesResponse$outboundSchema` instead. */ - export const outboundSchema = GetCountriesResponse$outboundSchema; - /** @deprecated use `GetCountriesResponse$Outbound` instead. */ - export type Outbound = GetCountriesResponse$Outbound; -} - -export function getCountriesResponseToJSON( - getCountriesResponse: GetCountriesResponse, -): string { - return JSON.stringify( - GetCountriesResponse$outboundSchema.parse(getCountriesResponse), - ); -} - export function getCountriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcountrieslineups.ts b/src/sdk/models/operations/getcountrieslineups.ts index 3d16ea4a..59082d56 100644 --- a/src/sdk/models/operations/getcountrieslineups.ts +++ b/src/sdk/models/operations/getcountrieslineups.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -134,151 +134,6 @@ export type GetCountriesLineupsResponse = { mediaContainerWithLineup?: shared.MediaContainerWithLineup | undefined; }; -/** @internal */ -export const GetCountriesLineupsGlobals$inboundSchema: z.ZodType< - GetCountriesLineupsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCountriesLineupsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCountriesLineupsGlobals$outboundSchema: z.ZodType< - GetCountriesLineupsGlobals$Outbound, - z.ZodTypeDef, - GetCountriesLineupsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesLineupsGlobals$ { - /** @deprecated use `GetCountriesLineupsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCountriesLineupsGlobals$inboundSchema; - /** @deprecated use `GetCountriesLineupsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCountriesLineupsGlobals$outboundSchema; - /** @deprecated use `GetCountriesLineupsGlobals$Outbound` instead. */ - export type Outbound = GetCountriesLineupsGlobals$Outbound; -} - -export function getCountriesLineupsGlobalsToJSON( - getCountriesLineupsGlobals: GetCountriesLineupsGlobals, -): string { - return JSON.stringify( - GetCountriesLineupsGlobals$outboundSchema.parse(getCountriesLineupsGlobals), - ); -} - -export function getCountriesLineupsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCountriesLineupsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCountriesLineupsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCountriesLineupsRequest$inboundSchema: z.ZodType< - GetCountriesLineupsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - country: z.string(), - epgId: z.string(), - postalCode: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCountriesLineupsRequest$Outbound = { accepts: string; @@ -332,19 +187,6 @@ export const GetCountriesLineupsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesLineupsRequest$ { - /** @deprecated use `GetCountriesLineupsRequest$inboundSchema` instead. */ - export const inboundSchema = GetCountriesLineupsRequest$inboundSchema; - /** @deprecated use `GetCountriesLineupsRequest$outboundSchema` instead. */ - export const outboundSchema = GetCountriesLineupsRequest$outboundSchema; - /** @deprecated use `GetCountriesLineupsRequest$Outbound` instead. */ - export type Outbound = GetCountriesLineupsRequest$Outbound; -} - export function getCountriesLineupsRequestToJSON( getCountriesLineupsRequest: GetCountriesLineupsRequest, ): string { @@ -353,16 +195,6 @@ export function getCountriesLineupsRequestToJSON( ); } -export function getCountriesLineupsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCountriesLineupsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCountriesLineupsRequest' from JSON`, - ); -} - /** @internal */ export const GetCountriesLineupsResponse$inboundSchema: z.ZodType< GetCountriesLineupsResponse, @@ -383,61 +215,6 @@ export const GetCountriesLineupsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountriesLineupsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithLineup?: - | shared.MediaContainerWithLineup$Outbound - | undefined; -}; - -/** @internal */ -export const GetCountriesLineupsResponse$outboundSchema: z.ZodType< - GetCountriesLineupsResponse$Outbound, - z.ZodTypeDef, - GetCountriesLineupsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithLineup: shared.MediaContainerWithLineup$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithLineup: "MediaContainerWithLineup", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountriesLineupsResponse$ { - /** @deprecated use `GetCountriesLineupsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCountriesLineupsResponse$inboundSchema; - /** @deprecated use `GetCountriesLineupsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCountriesLineupsResponse$outboundSchema; - /** @deprecated use `GetCountriesLineupsResponse$Outbound` instead. */ - export type Outbound = GetCountriesLineupsResponse$Outbound; -} - -export function getCountriesLineupsResponseToJSON( - getCountriesLineupsResponse: GetCountriesLineupsResponse, -): string { - return JSON.stringify( - GetCountriesLineupsResponse$outboundSchema.parse( - getCountriesLineupsResponse, - ), - ); -} - export function getCountriesLineupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcountryregions.ts b/src/sdk/models/operations/getcountryregions.ts index 15278a4c..b1e9db6f 100644 --- a/src/sdk/models/operations/getcountryregions.ts +++ b/src/sdk/models/operations/getcountryregions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -170,150 +170,6 @@ export type GetCountryRegionsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetCountryRegionsGlobals$inboundSchema: z.ZodType< - GetCountryRegionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetCountryRegionsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetCountryRegionsGlobals$outboundSchema: z.ZodType< - GetCountryRegionsGlobals$Outbound, - z.ZodTypeDef, - GetCountryRegionsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsGlobals$ { - /** @deprecated use `GetCountryRegionsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsGlobals$inboundSchema; - /** @deprecated use `GetCountryRegionsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsGlobals$outboundSchema; - /** @deprecated use `GetCountryRegionsGlobals$Outbound` instead. */ - export type Outbound = GetCountryRegionsGlobals$Outbound; -} - -export function getCountryRegionsGlobalsToJSON( - getCountryRegionsGlobals: GetCountryRegionsGlobals, -): string { - return JSON.stringify( - GetCountryRegionsGlobals$outboundSchema.parse(getCountryRegionsGlobals), - ); -} - -export function getCountryRegionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCountryRegionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCountryRegionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetCountryRegionsRequest$inboundSchema: z.ZodType< - GetCountryRegionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - country: z.string(), - epgId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetCountryRegionsRequest$Outbound = { accepts: string; @@ -365,19 +221,6 @@ export const GetCountryRegionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsRequest$ { - /** @deprecated use `GetCountryRegionsRequest$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsRequest$inboundSchema; - /** @deprecated use `GetCountryRegionsRequest$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsRequest$outboundSchema; - /** @deprecated use `GetCountryRegionsRequest$Outbound` instead. */ - export type Outbound = GetCountryRegionsRequest$Outbound; -} - export function getCountryRegionsRequestToJSON( getCountryRegionsRequest: GetCountryRegionsRequest, ): string { @@ -386,16 +229,6 @@ export function getCountryRegionsRequestToJSON( ); } -export function getCountryRegionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetCountryRegionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetCountryRegionsRequest' from JSON`, - ); -} - /** @internal */ export const GetCountryRegionsCountry$inboundSchema: z.ZodType< GetCountryRegionsCountry, @@ -408,47 +241,6 @@ export const GetCountryRegionsCountry$inboundSchema: z.ZodType< type: z.string().optional(), }); -/** @internal */ -export type GetCountryRegionsCountry$Outbound = { - key?: string | undefined; - national?: boolean | undefined; - title?: string | undefined; - type?: string | undefined; -}; - -/** @internal */ -export const GetCountryRegionsCountry$outboundSchema: z.ZodType< - GetCountryRegionsCountry$Outbound, - z.ZodTypeDef, - GetCountryRegionsCountry -> = z.object({ - key: z.string().optional(), - national: z.boolean().optional(), - title: z.string().optional(), - type: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsCountry$ { - /** @deprecated use `GetCountryRegionsCountry$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsCountry$inboundSchema; - /** @deprecated use `GetCountryRegionsCountry$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsCountry$outboundSchema; - /** @deprecated use `GetCountryRegionsCountry$Outbound` instead. */ - export type Outbound = GetCountryRegionsCountry$Outbound; -} - -export function getCountryRegionsCountryToJSON( - getCountryRegionsCountry: GetCountryRegionsCountry, -): string { - return JSON.stringify( - GetCountryRegionsCountry$outboundSchema.parse(getCountryRegionsCountry), - ); -} - export function getCountryRegionsCountryFromJSON( jsonString: string, ): SafeParseResult { @@ -477,56 +269,6 @@ export const GetCountryRegionsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountryRegionsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Country?: Array | undefined; -}; - -/** @internal */ -export const GetCountryRegionsMediaContainer$outboundSchema: z.ZodType< - GetCountryRegionsMediaContainer$Outbound, - z.ZodTypeDef, - GetCountryRegionsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - country: z.array(z.lazy(() => GetCountryRegionsCountry$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - country: "Country", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsMediaContainer$ { - /** @deprecated use `GetCountryRegionsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsMediaContainer$inboundSchema; - /** @deprecated use `GetCountryRegionsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsMediaContainer$outboundSchema; - /** @deprecated use `GetCountryRegionsMediaContainer$Outbound` instead. */ - export type Outbound = GetCountryRegionsMediaContainer$Outbound; -} - -export function getCountryRegionsMediaContainerToJSON( - getCountryRegionsMediaContainer: GetCountryRegionsMediaContainer, -): string { - return JSON.stringify( - GetCountryRegionsMediaContainer$outboundSchema.parse( - getCountryRegionsMediaContainer, - ), - ); -} - export function getCountryRegionsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -551,48 +293,6 @@ export const GetCountryRegionsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountryRegionsResponseBody$Outbound = { - MediaContainer?: GetCountryRegionsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetCountryRegionsResponseBody$outboundSchema: z.ZodType< - GetCountryRegionsResponseBody$Outbound, - z.ZodTypeDef, - GetCountryRegionsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetCountryRegionsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsResponseBody$ { - /** @deprecated use `GetCountryRegionsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsResponseBody$inboundSchema; - /** @deprecated use `GetCountryRegionsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsResponseBody$outboundSchema; - /** @deprecated use `GetCountryRegionsResponseBody$Outbound` instead. */ - export type Outbound = GetCountryRegionsResponseBody$Outbound; -} - -export function getCountryRegionsResponseBodyToJSON( - getCountryRegionsResponseBody: GetCountryRegionsResponseBody, -): string { - return JSON.stringify( - GetCountryRegionsResponseBody$outboundSchema.parse( - getCountryRegionsResponseBody, - ), - ); -} - export function getCountryRegionsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -613,7 +313,7 @@ export const GetCountryRegionsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetCountryRegionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -623,58 +323,6 @@ export const GetCountryRegionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCountryRegionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetCountryRegionsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetCountryRegionsResponse$outboundSchema: z.ZodType< - GetCountryRegionsResponse$Outbound, - z.ZodTypeDef, - GetCountryRegionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetCountryRegionsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCountryRegionsResponse$ { - /** @deprecated use `GetCountryRegionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCountryRegionsResponse$inboundSchema; - /** @deprecated use `GetCountryRegionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCountryRegionsResponse$outboundSchema; - /** @deprecated use `GetCountryRegionsResponse$Outbound` instead. */ - export type Outbound = GetCountryRegionsResponse$Outbound; -} - -export function getCountryRegionsResponseToJSON( - getCountryRegionsResponse: GetCountryRegionsResponse, -): string { - return JSON.stringify( - GetCountryRegionsResponse$outboundSchema.parse(getCountryRegionsResponse), - ); -} - export function getCountryRegionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdevicedetails.ts b/src/sdk/models/operations/getdevicedetails.ts index df1a19b9..7c223d03 100644 --- a/src/sdk/models/operations/getdevicedetails.ts +++ b/src/sdk/models/operations/getdevicedetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetDeviceDetailsResponse = { mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; }; -/** @internal */ -export const GetDeviceDetailsGlobals$inboundSchema: z.ZodType< - GetDeviceDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDeviceDetailsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDeviceDetailsGlobals$outboundSchema: z.ZodType< - GetDeviceDetailsGlobals$Outbound, - z.ZodTypeDef, - GetDeviceDetailsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDeviceDetailsGlobals$ { - /** @deprecated use `GetDeviceDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDeviceDetailsGlobals$inboundSchema; - /** @deprecated use `GetDeviceDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDeviceDetailsGlobals$outboundSchema; - /** @deprecated use `GetDeviceDetailsGlobals$Outbound` instead. */ - export type Outbound = GetDeviceDetailsGlobals$Outbound; -} - -export function getDeviceDetailsGlobalsToJSON( - getDeviceDetailsGlobals: GetDeviceDetailsGlobals, -): string { - return JSON.stringify( - GetDeviceDetailsGlobals$outboundSchema.parse(getDeviceDetailsGlobals), - ); -} - -export function getDeviceDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDeviceDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDeviceDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDeviceDetailsRequest$inboundSchema: z.ZodType< - GetDeviceDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDeviceDetailsRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetDeviceDetailsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDeviceDetailsRequest$ { - /** @deprecated use `GetDeviceDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetDeviceDetailsRequest$inboundSchema; - /** @deprecated use `GetDeviceDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetDeviceDetailsRequest$outboundSchema; - /** @deprecated use `GetDeviceDetailsRequest$Outbound` instead. */ - export type Outbound = GetDeviceDetailsRequest$Outbound; -} - export function getDeviceDetailsRequestToJSON( getDeviceDetailsRequest: GetDeviceDetailsRequest, ): string { @@ -339,16 +183,6 @@ export function getDeviceDetailsRequestToJSON( ); } -export function getDeviceDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDeviceDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDeviceDetailsRequest' from JSON`, - ); -} - /** @internal */ export const GetDeviceDetailsResponse$inboundSchema: z.ZodType< GetDeviceDetailsResponse, @@ -369,59 +203,6 @@ export const GetDeviceDetailsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDeviceDetailsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; -}; - -/** @internal */ -export const GetDeviceDetailsResponse$outboundSchema: z.ZodType< - GetDeviceDetailsResponse$Outbound, - z.ZodTypeDef, - GetDeviceDetailsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDeviceDetailsResponse$ { - /** @deprecated use `GetDeviceDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = GetDeviceDetailsResponse$inboundSchema; - /** @deprecated use `GetDeviceDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = GetDeviceDetailsResponse$outboundSchema; - /** @deprecated use `GetDeviceDetailsResponse$Outbound` instead. */ - export type Outbound = GetDeviceDetailsResponse$Outbound; -} - -export function getDeviceDetailsResponseToJSON( - getDeviceDetailsResponse: GetDeviceDetailsResponse, -): string { - return JSON.stringify( - GetDeviceDetailsResponse$outboundSchema.parse(getDeviceDetailsResponse), - ); -} - export function getDeviceDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdeviceschannels.ts b/src/sdk/models/operations/getdeviceschannels.ts index 1b3b8958..c832092f 100644 --- a/src/sdk/models/operations/getdeviceschannels.ts +++ b/src/sdk/models/operations/getdeviceschannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -173,149 +173,6 @@ export type GetDevicesChannelsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetDevicesChannelsGlobals$inboundSchema: z.ZodType< - GetDevicesChannelsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDevicesChannelsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDevicesChannelsGlobals$outboundSchema: z.ZodType< - GetDevicesChannelsGlobals$Outbound, - z.ZodTypeDef, - GetDevicesChannelsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesChannelsGlobals$ { - /** @deprecated use `GetDevicesChannelsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDevicesChannelsGlobals$inboundSchema; - /** @deprecated use `GetDevicesChannelsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDevicesChannelsGlobals$outboundSchema; - /** @deprecated use `GetDevicesChannelsGlobals$Outbound` instead. */ - export type Outbound = GetDevicesChannelsGlobals$Outbound; -} - -export function getDevicesChannelsGlobalsToJSON( - getDevicesChannelsGlobals: GetDevicesChannelsGlobals, -): string { - return JSON.stringify( - GetDevicesChannelsGlobals$outboundSchema.parse(getDevicesChannelsGlobals), - ); -} - -export function getDevicesChannelsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDevicesChannelsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDevicesChannelsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDevicesChannelsRequest$inboundSchema: z.ZodType< - GetDevicesChannelsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDevicesChannelsRequest$Outbound = { accepts: string; @@ -365,19 +222,6 @@ export const GetDevicesChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesChannelsRequest$ { - /** @deprecated use `GetDevicesChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetDevicesChannelsRequest$inboundSchema; - /** @deprecated use `GetDevicesChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = GetDevicesChannelsRequest$outboundSchema; - /** @deprecated use `GetDevicesChannelsRequest$Outbound` instead. */ - export type Outbound = GetDevicesChannelsRequest$Outbound; -} - export function getDevicesChannelsRequestToJSON( getDevicesChannelsRequest: GetDevicesChannelsRequest, ): string { @@ -386,16 +230,6 @@ export function getDevicesChannelsRequestToJSON( ); } -export function getDevicesChannelsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDevicesChannelsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDevicesChannelsRequest' from JSON`, - ); -} - /** @internal */ export const DeviceChannel$inboundSchema: z.ZodType< DeviceChannel, @@ -412,51 +246,6 @@ export const DeviceChannel$inboundSchema: z.ZodType< signalStrength: z.number().int().optional(), }); -/** @internal */ -export type DeviceChannel$Outbound = { - drm?: boolean | undefined; - favorite?: boolean | undefined; - hd?: boolean | undefined; - identifier?: string | undefined; - key?: string | undefined; - name?: string | undefined; - signalQuality?: number | undefined; - signalStrength?: number | undefined; -}; - -/** @internal */ -export const DeviceChannel$outboundSchema: z.ZodType< - DeviceChannel$Outbound, - z.ZodTypeDef, - DeviceChannel -> = z.object({ - drm: z.boolean().optional(), - favorite: z.boolean().optional(), - hd: z.boolean().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - name: z.string().optional(), - signalQuality: z.number().int().optional(), - signalStrength: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeviceChannel$ { - /** @deprecated use `DeviceChannel$inboundSchema` instead. */ - export const inboundSchema = DeviceChannel$inboundSchema; - /** @deprecated use `DeviceChannel$outboundSchema` instead. */ - export const outboundSchema = DeviceChannel$outboundSchema; - /** @deprecated use `DeviceChannel$Outbound` instead. */ - export type Outbound = DeviceChannel$Outbound; -} - -export function deviceChannelToJSON(deviceChannel: DeviceChannel): string { - return JSON.stringify(DeviceChannel$outboundSchema.parse(deviceChannel)); -} - export function deviceChannelFromJSON( jsonString: string, ): SafeParseResult { @@ -484,55 +273,6 @@ export const GetDevicesChannelsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDevicesChannelsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - DeviceChannel?: Array | undefined; -}; - -/** @internal */ -export const GetDevicesChannelsMediaContainer$outboundSchema: z.ZodType< - GetDevicesChannelsMediaContainer$Outbound, - z.ZodTypeDef, - GetDevicesChannelsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - deviceChannel: z.array(z.lazy(() => DeviceChannel$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - deviceChannel: "DeviceChannel", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesChannelsMediaContainer$ { - /** @deprecated use `GetDevicesChannelsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetDevicesChannelsMediaContainer$inboundSchema; - /** @deprecated use `GetDevicesChannelsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetDevicesChannelsMediaContainer$outboundSchema; - /** @deprecated use `GetDevicesChannelsMediaContainer$Outbound` instead. */ - export type Outbound = GetDevicesChannelsMediaContainer$Outbound; -} - -export function getDevicesChannelsMediaContainerToJSON( - getDevicesChannelsMediaContainer: GetDevicesChannelsMediaContainer, -): string { - return JSON.stringify( - GetDevicesChannelsMediaContainer$outboundSchema.parse( - getDevicesChannelsMediaContainer, - ), - ); -} - export function getDevicesChannelsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -557,48 +297,6 @@ export const GetDevicesChannelsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDevicesChannelsResponseBody$Outbound = { - MediaContainer?: GetDevicesChannelsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetDevicesChannelsResponseBody$outboundSchema: z.ZodType< - GetDevicesChannelsResponseBody$Outbound, - z.ZodTypeDef, - GetDevicesChannelsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetDevicesChannelsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesChannelsResponseBody$ { - /** @deprecated use `GetDevicesChannelsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetDevicesChannelsResponseBody$inboundSchema; - /** @deprecated use `GetDevicesChannelsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetDevicesChannelsResponseBody$outboundSchema; - /** @deprecated use `GetDevicesChannelsResponseBody$Outbound` instead. */ - export type Outbound = GetDevicesChannelsResponseBody$Outbound; -} - -export function getDevicesChannelsResponseBodyToJSON( - getDevicesChannelsResponseBody: GetDevicesChannelsResponseBody, -): string { - return JSON.stringify( - GetDevicesChannelsResponseBody$outboundSchema.parse( - getDevicesChannelsResponseBody, - ), - ); -} - export function getDevicesChannelsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -619,7 +317,7 @@ export const GetDevicesChannelsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetDevicesChannelsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -629,59 +327,6 @@ export const GetDevicesChannelsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDevicesChannelsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetDevicesChannelsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetDevicesChannelsResponse$outboundSchema: z.ZodType< - GetDevicesChannelsResponse$Outbound, - z.ZodTypeDef, - GetDevicesChannelsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetDevicesChannelsResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesChannelsResponse$ { - /** @deprecated use `GetDevicesChannelsResponse$inboundSchema` instead. */ - export const inboundSchema = GetDevicesChannelsResponse$inboundSchema; - /** @deprecated use `GetDevicesChannelsResponse$outboundSchema` instead. */ - export const outboundSchema = GetDevicesChannelsResponse$outboundSchema; - /** @deprecated use `GetDevicesChannelsResponse$Outbound` instead. */ - export type Outbound = GetDevicesChannelsResponse$Outbound; -} - -export function getDevicesChannelsResponseToJSON( - getDevicesChannelsResponse: GetDevicesChannelsResponse, -): string { - return JSON.stringify( - GetDevicesChannelsResponse$outboundSchema.parse(getDevicesChannelsResponse), - ); -} - export function getDevicesChannelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdownloadqueue.ts b/src/sdk/models/operations/getdownloadqueue.ts index c615a0bc..9e02423b 100644 --- a/src/sdk/models/operations/getdownloadqueue.ts +++ b/src/sdk/models/operations/getdownloadqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -192,149 +192,6 @@ export type GetDownloadQueueResponse = { object?: GetDownloadQueueResponseBody | undefined; }; -/** @internal */ -export const GetDownloadQueueGlobals$inboundSchema: z.ZodType< - GetDownloadQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDownloadQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDownloadQueueGlobals$outboundSchema: z.ZodType< - GetDownloadQueueGlobals$Outbound, - z.ZodTypeDef, - GetDownloadQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueGlobals$ { - /** @deprecated use `GetDownloadQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueGlobals$inboundSchema; - /** @deprecated use `GetDownloadQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueGlobals$outboundSchema; - /** @deprecated use `GetDownloadQueueGlobals$Outbound` instead. */ - export type Outbound = GetDownloadQueueGlobals$Outbound; -} - -export function getDownloadQueueGlobalsToJSON( - getDownloadQueueGlobals: GetDownloadQueueGlobals, -): string { - return JSON.stringify( - GetDownloadQueueGlobals$outboundSchema.parse(getDownloadQueueGlobals), - ); -} - -export function getDownloadQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDownloadQueueRequest$inboundSchema: z.ZodType< - GetDownloadQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDownloadQueueRequest$Outbound = { accepts: string; @@ -384,19 +241,6 @@ export const GetDownloadQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueRequest$ { - /** @deprecated use `GetDownloadQueueRequest$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueRequest$inboundSchema; - /** @deprecated use `GetDownloadQueueRequest$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueRequest$outboundSchema; - /** @deprecated use `GetDownloadQueueRequest$Outbound` instead. */ - export type Outbound = GetDownloadQueueRequest$Outbound; -} - export function getDownloadQueueRequestToJSON( getDownloadQueueRequest: GetDownloadQueueRequest, ): string { @@ -405,37 +249,11 @@ export function getDownloadQueueRequestToJSON( ); } -export function getDownloadQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueRequest' from JSON`, - ); -} - /** @internal */ export const GetDownloadQueueStatus$inboundSchema: z.ZodNativeEnum< typeof GetDownloadQueueStatus > = z.nativeEnum(GetDownloadQueueStatus); -/** @internal */ -export const GetDownloadQueueStatus$outboundSchema: z.ZodNativeEnum< - typeof GetDownloadQueueStatus -> = GetDownloadQueueStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueStatus$ { - /** @deprecated use `GetDownloadQueueStatus$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueStatus$inboundSchema; - /** @deprecated use `GetDownloadQueueStatus$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueStatus$outboundSchema; -} - /** @internal */ export const GetDownloadQueueDownloadQueue$inboundSchema: z.ZodType< GetDownloadQueueDownloadQueue, @@ -447,47 +265,6 @@ export const GetDownloadQueueDownloadQueue$inboundSchema: z.ZodType< status: GetDownloadQueueStatus$inboundSchema.optional(), }); -/** @internal */ -export type GetDownloadQueueDownloadQueue$Outbound = { - id?: number | undefined; - itemCount?: number | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const GetDownloadQueueDownloadQueue$outboundSchema: z.ZodType< - GetDownloadQueueDownloadQueue$Outbound, - z.ZodTypeDef, - GetDownloadQueueDownloadQueue -> = z.object({ - id: z.number().int().optional(), - itemCount: z.number().int().optional(), - status: GetDownloadQueueStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueDownloadQueue$ { - /** @deprecated use `GetDownloadQueueDownloadQueue$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueDownloadQueue$inboundSchema; - /** @deprecated use `GetDownloadQueueDownloadQueue$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueDownloadQueue$outboundSchema; - /** @deprecated use `GetDownloadQueueDownloadQueue$Outbound` instead. */ - export type Outbound = GetDownloadQueueDownloadQueue$Outbound; -} - -export function getDownloadQueueDownloadQueueToJSON( - getDownloadQueueDownloadQueue: GetDownloadQueueDownloadQueue, -): string { - return JSON.stringify( - GetDownloadQueueDownloadQueue$outboundSchema.parse( - getDownloadQueueDownloadQueue, - ), - ); -} - export function getDownloadQueueDownloadQueueFromJSON( jsonString: string, ): SafeParseResult { @@ -517,57 +294,6 @@ export const GetDownloadQueueMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - DownloadQueue?: Array | undefined; -}; - -/** @internal */ -export const GetDownloadQueueMediaContainer$outboundSchema: z.ZodType< - GetDownloadQueueMediaContainer$Outbound, - z.ZodTypeDef, - GetDownloadQueueMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - downloadQueue: z.array( - z.lazy(() => GetDownloadQueueDownloadQueue$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - downloadQueue: "DownloadQueue", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueMediaContainer$ { - /** @deprecated use `GetDownloadQueueMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueMediaContainer$inboundSchema; - /** @deprecated use `GetDownloadQueueMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueMediaContainer$outboundSchema; - /** @deprecated use `GetDownloadQueueMediaContainer$Outbound` instead. */ - export type Outbound = GetDownloadQueueMediaContainer$Outbound; -} - -export function getDownloadQueueMediaContainerToJSON( - getDownloadQueueMediaContainer: GetDownloadQueueMediaContainer, -): string { - return JSON.stringify( - GetDownloadQueueMediaContainer$outboundSchema.parse( - getDownloadQueueMediaContainer, - ), - ); -} - export function getDownloadQueueMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -592,48 +318,6 @@ export const GetDownloadQueueResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueResponseBody$Outbound = { - MediaContainer?: GetDownloadQueueMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetDownloadQueueResponseBody$outboundSchema: z.ZodType< - GetDownloadQueueResponseBody$Outbound, - z.ZodTypeDef, - GetDownloadQueueResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetDownloadQueueMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueResponseBody$ { - /** @deprecated use `GetDownloadQueueResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueResponseBody$inboundSchema; - /** @deprecated use `GetDownloadQueueResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueResponseBody$outboundSchema; - /** @deprecated use `GetDownloadQueueResponseBody$Outbound` instead. */ - export type Outbound = GetDownloadQueueResponseBody$Outbound; -} - -export function getDownloadQueueResponseBodyToJSON( - getDownloadQueueResponseBody: GetDownloadQueueResponseBody, -): string { - return JSON.stringify( - GetDownloadQueueResponseBody$outboundSchema.parse( - getDownloadQueueResponseBody, - ), - ); -} - export function getDownloadQueueResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -662,55 +346,6 @@ export const GetDownloadQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetDownloadQueueResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetDownloadQueueResponse$outboundSchema: z.ZodType< - GetDownloadQueueResponse$Outbound, - z.ZodTypeDef, - GetDownloadQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetDownloadQueueResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueResponse$ { - /** @deprecated use `GetDownloadQueueResponse$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueResponse$inboundSchema; - /** @deprecated use `GetDownloadQueueResponse$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueResponse$outboundSchema; - /** @deprecated use `GetDownloadQueueResponse$Outbound` instead. */ - export type Outbound = GetDownloadQueueResponse$Outbound; -} - -export function getDownloadQueueResponseToJSON( - getDownloadQueueResponse: GetDownloadQueueResponse, -): string { - return JSON.stringify( - GetDownloadQueueResponse$outboundSchema.parse(getDownloadQueueResponse), - ); -} - export function getDownloadQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdownloadqueueitems.ts b/src/sdk/models/operations/getdownloadqueueitems.ts index b3b95b64..151af202 100644 --- a/src/sdk/models/operations/getdownloadqueueitems.ts +++ b/src/sdk/models/operations/getdownloadqueueitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -239,152 +239,6 @@ export type GetDownloadQueueItemsResponse = { object?: GetDownloadQueueItemsResponseBody | undefined; }; -/** @internal */ -export const GetDownloadQueueItemsGlobals$inboundSchema: z.ZodType< - GetDownloadQueueItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDownloadQueueItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsGlobals$outboundSchema: z.ZodType< - GetDownloadQueueItemsGlobals$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsGlobals$ { - /** @deprecated use `GetDownloadQueueItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsGlobals$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueItemsGlobals$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsGlobals$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsGlobals$Outbound; -} - -export function getDownloadQueueItemsGlobalsToJSON( - getDownloadQueueItemsGlobals: GetDownloadQueueItemsGlobals, -): string { - return JSON.stringify( - GetDownloadQueueItemsGlobals$outboundSchema.parse( - getDownloadQueueItemsGlobals, - ), - ); -} - -export function getDownloadQueueItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDownloadQueueItemsRequest$inboundSchema: z.ZodType< - GetDownloadQueueItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -436,19 +290,6 @@ export const GetDownloadQueueItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsRequest$ { - /** @deprecated use `GetDownloadQueueItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsRequest$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueItemsRequest$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsRequest$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsRequest$Outbound; -} - export function getDownloadQueueItemsRequestToJSON( getDownloadQueueItemsRequest: GetDownloadQueueItemsRequest, ): string { @@ -459,16 +300,6 @@ export function getDownloadQueueItemsRequestToJSON( ); } -export function getDownloadQueueItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< GetDownloadQueueItemsDecisionResult, @@ -486,61 +317,6 @@ export const GetDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< transcodeDecisionText: z.string().optional(), }); -/** @internal */ -export type GetDownloadQueueItemsDecisionResult$Outbound = { - availableBandwidth?: number | undefined; - directPlayDecisionCode?: number | undefined; - directPlayDecisionText?: string | undefined; - generalDecisionCode?: number | undefined; - generalDecisionText?: string | undefined; - mdeDecisionCode?: number | undefined; - mdeDecisionText?: string | undefined; - transcodeDecisionCode?: number | undefined; - transcodeDecisionText?: string | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsDecisionResult$outboundSchema: z.ZodType< - GetDownloadQueueItemsDecisionResult$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsDecisionResult -> = z.object({ - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsDecisionResult$ { - /** @deprecated use `GetDownloadQueueItemsDecisionResult$inboundSchema` instead. */ - export const inboundSchema = - GetDownloadQueueItemsDecisionResult$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsDecisionResult$outboundSchema` instead. */ - export const outboundSchema = - GetDownloadQueueItemsDecisionResult$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsDecisionResult$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsDecisionResult$Outbound; -} - -export function getDownloadQueueItemsDecisionResultToJSON( - getDownloadQueueItemsDecisionResult: GetDownloadQueueItemsDecisionResult, -): string { - return JSON.stringify( - GetDownloadQueueItemsDecisionResult$outboundSchema.parse( - getDownloadQueueItemsDecisionResult, - ), - ); -} - export function getDownloadQueueItemsDecisionResultFromJSON( jsonString: string, ): SafeParseResult { @@ -557,22 +333,6 @@ export const GetDownloadQueueItemsStatus$inboundSchema: z.ZodNativeEnum< typeof GetDownloadQueueItemsStatus > = z.nativeEnum(GetDownloadQueueItemsStatus); -/** @internal */ -export const GetDownloadQueueItemsStatus$outboundSchema: z.ZodNativeEnum< - typeof GetDownloadQueueItemsStatus -> = GetDownloadQueueItemsStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsStatus$ { - /** @deprecated use `GetDownloadQueueItemsStatus$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsStatus$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsStatus$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueItemsStatus$outboundSchema; -} - /** @internal */ export const GetDownloadQueueItemsTranscode$inboundSchema: z.ZodType< GetDownloadQueueItemsTranscode, @@ -580,39 +340,6 @@ export const GetDownloadQueueItemsTranscode$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type GetDownloadQueueItemsTranscode$Outbound = {}; - -/** @internal */ -export const GetDownloadQueueItemsTranscode$outboundSchema: z.ZodType< - GetDownloadQueueItemsTranscode$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsTranscode -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsTranscode$ { - /** @deprecated use `GetDownloadQueueItemsTranscode$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsTranscode$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsTranscode$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueItemsTranscode$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsTranscode$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsTranscode$Outbound; -} - -export function getDownloadQueueItemsTranscodeToJSON( - getDownloadQueueItemsTranscode: GetDownloadQueueItemsTranscode, -): string { - return JSON.stringify( - GetDownloadQueueItemsTranscode$outboundSchema.parse( - getDownloadQueueItemsTranscode, - ), - ); -} - export function getDownloadQueueItemsTranscodeFromJSON( jsonString: string, ): SafeParseResult { @@ -647,68 +374,6 @@ export const GetDownloadQueueItemsDownloadQueueItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueItemsDownloadQueueItem$Outbound = { - DecisionResult?: GetDownloadQueueItemsDecisionResult$Outbound | undefined; - error?: string | undefined; - id?: number | undefined; - key?: string | undefined; - queueId?: number | undefined; - status?: string | undefined; - transcode?: GetDownloadQueueItemsTranscode$Outbound | undefined; - TranscodeSession?: shared.TranscodeSession$Outbound | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsDownloadQueueItem$outboundSchema: z.ZodType< - GetDownloadQueueItemsDownloadQueueItem$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsDownloadQueueItem -> = z.object({ - decisionResult: z.lazy(() => - GetDownloadQueueItemsDecisionResult$outboundSchema - ).optional(), - error: z.string().optional(), - id: z.number().int().optional(), - key: z.string().optional(), - queueId: z.number().int().optional(), - status: GetDownloadQueueItemsStatus$outboundSchema.optional(), - transcode: z.lazy(() => GetDownloadQueueItemsTranscode$outboundSchema) - .optional(), - transcodeSession: shared.TranscodeSession$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - decisionResult: "DecisionResult", - transcodeSession: "TranscodeSession", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsDownloadQueueItem$ { - /** @deprecated use `GetDownloadQueueItemsDownloadQueueItem$inboundSchema` instead. */ - export const inboundSchema = - GetDownloadQueueItemsDownloadQueueItem$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsDownloadQueueItem$outboundSchema` instead. */ - export const outboundSchema = - GetDownloadQueueItemsDownloadQueueItem$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsDownloadQueueItem$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsDownloadQueueItem$Outbound; -} - -export function getDownloadQueueItemsDownloadQueueItemToJSON( - getDownloadQueueItemsDownloadQueueItem: - GetDownloadQueueItemsDownloadQueueItem, -): string { - return JSON.stringify( - GetDownloadQueueItemsDownloadQueueItem$outboundSchema.parse( - getDownloadQueueItemsDownloadQueueItem, - ), - ); -} - export function getDownloadQueueItemsDownloadQueueItemFromJSON( jsonString: string, ): SafeParseResult { @@ -739,61 +404,6 @@ export const GetDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueItemsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - DownloadQueueItem?: - | Array - | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsMediaContainer$outboundSchema: z.ZodType< - GetDownloadQueueItemsMediaContainer$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - downloadQueueItem: z.array( - z.lazy(() => GetDownloadQueueItemsDownloadQueueItem$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - downloadQueueItem: "DownloadQueueItem", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsMediaContainer$ { - /** @deprecated use `GetDownloadQueueItemsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - GetDownloadQueueItemsMediaContainer$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetDownloadQueueItemsMediaContainer$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsMediaContainer$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsMediaContainer$Outbound; -} - -export function getDownloadQueueItemsMediaContainerToJSON( - getDownloadQueueItemsMediaContainer: GetDownloadQueueItemsMediaContainer, -): string { - return JSON.stringify( - GetDownloadQueueItemsMediaContainer$outboundSchema.parse( - getDownloadQueueItemsMediaContainer, - ), - ); -} - export function getDownloadQueueItemsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -820,50 +430,6 @@ export const GetDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueItemsResponseBody$Outbound = { - MediaContainer?: GetDownloadQueueItemsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsResponseBody$outboundSchema: z.ZodType< - GetDownloadQueueItemsResponseBody$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetDownloadQueueItemsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsResponseBody$ { - /** @deprecated use `GetDownloadQueueItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsResponseBody$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetDownloadQueueItemsResponseBody$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsResponseBody$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsResponseBody$Outbound; -} - -export function getDownloadQueueItemsResponseBodyToJSON( - getDownloadQueueItemsResponseBody: GetDownloadQueueItemsResponseBody, -): string { - return JSON.stringify( - GetDownloadQueueItemsResponseBody$outboundSchema.parse( - getDownloadQueueItemsResponseBody, - ), - ); -} - export function getDownloadQueueItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -893,58 +459,6 @@ export const GetDownloadQueueItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetDownloadQueueItemsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetDownloadQueueItemsResponse$outboundSchema: z.ZodType< - GetDownloadQueueItemsResponse$Outbound, - z.ZodTypeDef, - GetDownloadQueueItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetDownloadQueueItemsResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueItemsResponse$ { - /** @deprecated use `GetDownloadQueueItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueItemsResponse$inboundSchema; - /** @deprecated use `GetDownloadQueueItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueItemsResponse$outboundSchema; - /** @deprecated use `GetDownloadQueueItemsResponse$Outbound` instead. */ - export type Outbound = GetDownloadQueueItemsResponse$Outbound; -} - -export function getDownloadQueueItemsResponseToJSON( - getDownloadQueueItemsResponse: GetDownloadQueueItemsResponse, -): string { - return JSON.stringify( - GetDownloadQueueItemsResponse$outboundSchema.parse( - getDownloadQueueItemsResponse, - ), - ); -} - export function getDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdownloadqueuemedia.ts b/src/sdk/models/operations/getdownloadqueuemedia.ts index 429698bb..99c61149 100644 --- a/src/sdk/models/operations/getdownloadqueuemedia.ts +++ b/src/sdk/models/operations/getdownloadqueuemedia.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,152 +127,6 @@ export type GetDownloadQueueMediaResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetDownloadQueueMediaGlobals$inboundSchema: z.ZodType< - GetDownloadQueueMediaGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDownloadQueueMediaGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDownloadQueueMediaGlobals$outboundSchema: z.ZodType< - GetDownloadQueueMediaGlobals$Outbound, - z.ZodTypeDef, - GetDownloadQueueMediaGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueMediaGlobals$ { - /** @deprecated use `GetDownloadQueueMediaGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueMediaGlobals$inboundSchema; - /** @deprecated use `GetDownloadQueueMediaGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueMediaGlobals$outboundSchema; - /** @deprecated use `GetDownloadQueueMediaGlobals$Outbound` instead. */ - export type Outbound = GetDownloadQueueMediaGlobals$Outbound; -} - -export function getDownloadQueueMediaGlobalsToJSON( - getDownloadQueueMediaGlobals: GetDownloadQueueMediaGlobals, -): string { - return JSON.stringify( - GetDownloadQueueMediaGlobals$outboundSchema.parse( - getDownloadQueueMediaGlobals, - ), - ); -} - -export function getDownloadQueueMediaGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueMediaGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueMediaGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDownloadQueueMediaRequest$inboundSchema: z.ZodType< - GetDownloadQueueMediaRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDownloadQueueMediaRequest$Outbound = { accepts: string; @@ -324,19 +178,6 @@ export const GetDownloadQueueMediaRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueMediaRequest$ { - /** @deprecated use `GetDownloadQueueMediaRequest$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueMediaRequest$inboundSchema; - /** @deprecated use `GetDownloadQueueMediaRequest$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueMediaRequest$outboundSchema; - /** @deprecated use `GetDownloadQueueMediaRequest$Outbound` instead. */ - export type Outbound = GetDownloadQueueMediaRequest$Outbound; -} - export function getDownloadQueueMediaRequestToJSON( getDownloadQueueMediaRequest: GetDownloadQueueMediaRequest, ): string { @@ -347,16 +188,6 @@ export function getDownloadQueueMediaRequestToJSON( ); } -export function getDownloadQueueMediaRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDownloadQueueMediaRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDownloadQueueMediaRequest' from JSON`, - ); -} - /** @internal */ export const GetDownloadQueueMediaResponse$inboundSchema: z.ZodType< GetDownloadQueueMediaResponse, @@ -366,7 +197,7 @@ export const GetDownloadQueueMediaResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -376,58 +207,6 @@ export const GetDownloadQueueMediaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDownloadQueueMediaResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetDownloadQueueMediaResponse$outboundSchema: z.ZodType< - GetDownloadQueueMediaResponse$Outbound, - z.ZodTypeDef, - GetDownloadQueueMediaResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDownloadQueueMediaResponse$ { - /** @deprecated use `GetDownloadQueueMediaResponse$inboundSchema` instead. */ - export const inboundSchema = GetDownloadQueueMediaResponse$inboundSchema; - /** @deprecated use `GetDownloadQueueMediaResponse$outboundSchema` instead. */ - export const outboundSchema = GetDownloadQueueMediaResponse$outboundSchema; - /** @deprecated use `GetDownloadQueueMediaResponse$Outbound` instead. */ - export type Outbound = GetDownloadQueueMediaResponse$Outbound; -} - -export function getDownloadQueueMediaResponseToJSON( - getDownloadQueueMediaResponse: GetDownloadQueueMediaResponse, -): string { - return JSON.stringify( - GetDownloadQueueMediaResponse$outboundSchema.parse( - getDownloadQueueMediaResponse, - ), - ); -} - export function getDownloadQueueMediaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getdvr.ts b/src/sdk/models/operations/getdvr.ts index 7a8d4f69..f48431b9 100644 --- a/src/sdk/models/operations/getdvr.ts +++ b/src/sdk/models/operations/getdvr.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -175,145 +175,6 @@ export type GetDVRResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetDVRGlobals$inboundSchema: z.ZodType< - GetDVRGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetDVRGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetDVRGlobals$outboundSchema: z.ZodType< - GetDVRGlobals$Outbound, - z.ZodTypeDef, - GetDVRGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRGlobals$ { - /** @deprecated use `GetDVRGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDVRGlobals$inboundSchema; - /** @deprecated use `GetDVRGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDVRGlobals$outboundSchema; - /** @deprecated use `GetDVRGlobals$Outbound` instead. */ - export type Outbound = GetDVRGlobals$Outbound; -} - -export function getDVRGlobalsToJSON(getDVRGlobals: GetDVRGlobals): string { - return JSON.stringify(GetDVRGlobals$outboundSchema.parse(getDVRGlobals)); -} - -export function getDVRGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDVRGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDVRGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDVRRequest$inboundSchema: z.ZodType< - GetDVRRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetDVRRequest$Outbound = { accepts: string; @@ -363,33 +224,10 @@ export const GetDVRRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRRequest$ { - /** @deprecated use `GetDVRRequest$inboundSchema` instead. */ - export const inboundSchema = GetDVRRequest$inboundSchema; - /** @deprecated use `GetDVRRequest$outboundSchema` instead. */ - export const outboundSchema = GetDVRRequest$outboundSchema; - /** @deprecated use `GetDVRRequest$Outbound` instead. */ - export type Outbound = GetDVRRequest$Outbound; -} - export function getDVRRequestToJSON(getDVRRequest: GetDVRRequest): string { return JSON.stringify(GetDVRRequest$outboundSchema.parse(getDVRRequest)); } -export function getDVRRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDVRRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDVRRequest' from JSON`, - ); -} - /** @internal */ export const GetDVRMediaContainerMediaContainer$inboundSchema: z.ZodType< GetDVRMediaContainerMediaContainer, @@ -403,52 +241,6 @@ export const GetDVRMediaContainerMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type GetDVRMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetDVRMediaContainerMediaContainer$outboundSchema: z.ZodType< - GetDVRMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - GetDVRMediaContainerMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRMediaContainerMediaContainer$ { - /** @deprecated use `GetDVRMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetDVRMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `GetDVRMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetDVRMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `GetDVRMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = GetDVRMediaContainerMediaContainer$Outbound; -} - -export function getDVRMediaContainerMediaContainerToJSON( - getDVRMediaContainerMediaContainer: GetDVRMediaContainerMediaContainer, -): string { - return JSON.stringify( - GetDVRMediaContainerMediaContainer$outboundSchema.parse( - getDVRMediaContainerMediaContainer, - ), - ); -} - export function getDVRMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -477,49 +269,6 @@ export const GetDVRDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDVRDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const GetDVRDVR$outboundSchema: z.ZodType< - GetDVRDVR$Outbound, - z.ZodTypeDef, - GetDVRDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRDVR$ { - /** @deprecated use `GetDVRDVR$inboundSchema` instead. */ - export const inboundSchema = GetDVRDVR$inboundSchema; - /** @deprecated use `GetDVRDVR$outboundSchema` instead. */ - export const outboundSchema = GetDVRDVR$outboundSchema; - /** @deprecated use `GetDVRDVR$Outbound` instead. */ - export type Outbound = GetDVRDVR$Outbound; -} - -export function getDVRDVRToJSON(getDVRDVR: GetDVRDVR): string { - return JSON.stringify(GetDVRDVR$outboundSchema.parse(getDVRDVR)); -} - export function getDVRDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -546,50 +295,6 @@ export const GetDVRMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDVRMediaContainer$Outbound = { - MediaContainer?: GetDVRMediaContainerMediaContainer$Outbound | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const GetDVRMediaContainer$outboundSchema: z.ZodType< - GetDVRMediaContainer$Outbound, - z.ZodTypeDef, - GetDVRMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - GetDVRMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => GetDVRDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRMediaContainer$ { - /** @deprecated use `GetDVRMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetDVRMediaContainer$inboundSchema; - /** @deprecated use `GetDVRMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetDVRMediaContainer$outboundSchema; - /** @deprecated use `GetDVRMediaContainer$Outbound` instead. */ - export type Outbound = GetDVRMediaContainer$Outbound; -} - -export function getDVRMediaContainerToJSON( - getDVRMediaContainer: GetDVRMediaContainer, -): string { - return JSON.stringify( - GetDVRMediaContainer$outboundSchema.parse(getDVRMediaContainer), - ); -} - export function getDVRMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -613,45 +318,6 @@ export const GetDVRResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDVRResponseBody$Outbound = { - MediaContainer?: GetDVRMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetDVRResponseBody$outboundSchema: z.ZodType< - GetDVRResponseBody$Outbound, - z.ZodTypeDef, - GetDVRResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetDVRMediaContainer$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRResponseBody$ { - /** @deprecated use `GetDVRResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetDVRResponseBody$inboundSchema; - /** @deprecated use `GetDVRResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetDVRResponseBody$outboundSchema; - /** @deprecated use `GetDVRResponseBody$Outbound` instead. */ - export type Outbound = GetDVRResponseBody$Outbound; -} - -export function getDVRResponseBodyToJSON( - getDVRResponseBody: GetDVRResponseBody, -): string { - return JSON.stringify( - GetDVRResponseBody$outboundSchema.parse(getDVRResponseBody), - ); -} - export function getDVRResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -672,7 +338,7 @@ export const GetDVRResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetDVRResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -682,54 +348,6 @@ export const GetDVRResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDVRResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetDVRResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetDVRResponse$outboundSchema: z.ZodType< - GetDVRResponse$Outbound, - z.ZodTypeDef, - GetDVRResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetDVRResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDVRResponse$ { - /** @deprecated use `GetDVRResponse$inboundSchema` instead. */ - export const inboundSchema = GetDVRResponse$inboundSchema; - /** @deprecated use `GetDVRResponse$outboundSchema` instead. */ - export const outboundSchema = GetDVRResponse$outboundSchema; - /** @deprecated use `GetDVRResponse$Outbound` instead. */ - export type Outbound = GetDVRResponse$Outbound; -} - -export function getDVRResponseToJSON(getDVRResponse: GetDVRResponse): string { - return JSON.stringify(GetDVRResponse$outboundSchema.parse(getDVRResponse)); -} - export function getDVRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getextras.ts b/src/sdk/models/operations/getextras.ts index 083102de..f0db0f11 100644 --- a/src/sdk/models/operations/getextras.ts +++ b/src/sdk/models/operations/getextras.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -124,149 +124,6 @@ export type GetExtrasResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetExtrasGlobals$inboundSchema: z.ZodType< - GetExtrasGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetExtrasGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetExtrasGlobals$outboundSchema: z.ZodType< - GetExtrasGlobals$Outbound, - z.ZodTypeDef, - GetExtrasGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExtrasGlobals$ { - /** @deprecated use `GetExtrasGlobals$inboundSchema` instead. */ - export const inboundSchema = GetExtrasGlobals$inboundSchema; - /** @deprecated use `GetExtrasGlobals$outboundSchema` instead. */ - export const outboundSchema = GetExtrasGlobals$outboundSchema; - /** @deprecated use `GetExtrasGlobals$Outbound` instead. */ - export type Outbound = GetExtrasGlobals$Outbound; -} - -export function getExtrasGlobalsToJSON( - getExtrasGlobals: GetExtrasGlobals, -): string { - return JSON.stringify( - GetExtrasGlobals$outboundSchema.parse(getExtrasGlobals), - ); -} - -export function getExtrasGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetExtrasGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetExtrasGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetExtrasRequest$inboundSchema: z.ZodType< - GetExtrasRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetExtrasRequest$Outbound = { accepts: string; @@ -316,19 +173,6 @@ export const GetExtrasRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExtrasRequest$ { - /** @deprecated use `GetExtrasRequest$inboundSchema` instead. */ - export const inboundSchema = GetExtrasRequest$inboundSchema; - /** @deprecated use `GetExtrasRequest$outboundSchema` instead. */ - export const outboundSchema = GetExtrasRequest$outboundSchema; - /** @deprecated use `GetExtrasRequest$Outbound` instead. */ - export type Outbound = GetExtrasRequest$Outbound; -} - export function getExtrasRequestToJSON( getExtrasRequest: GetExtrasRequest, ): string { @@ -337,16 +181,6 @@ export function getExtrasRequestToJSON( ); } -export function getExtrasRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetExtrasRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetExtrasRequest' from JSON`, - ); -} - /** @internal */ export const GetExtrasResponse$inboundSchema: z.ZodType< GetExtrasResponse, @@ -358,7 +192,7 @@ export const GetExtrasResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -369,62 +203,6 @@ export const GetExtrasResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetExtrasResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetExtrasResponse$outboundSchema: z.ZodType< - GetExtrasResponse$Outbound, - z.ZodTypeDef, - GetExtrasResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExtrasResponse$ { - /** @deprecated use `GetExtrasResponse$inboundSchema` instead. */ - export const inboundSchema = GetExtrasResponse$inboundSchema; - /** @deprecated use `GetExtrasResponse$outboundSchema` instead. */ - export const outboundSchema = GetExtrasResponse$outboundSchema; - /** @deprecated use `GetExtrasResponse$Outbound` instead. */ - export type Outbound = GetExtrasResponse$Outbound; -} - -export function getExtrasResponseToJSON( - getExtrasResponse: GetExtrasResponse, -): string { - return JSON.stringify( - GetExtrasResponse$outboundSchema.parse(getExtrasResponse), - ); -} - export function getExtrasResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getfile.ts b/src/sdk/models/operations/getfile.ts index bb4de30d..df74915c 100644 --- a/src/sdk/models/operations/getfile.ts +++ b/src/sdk/models/operations/getfile.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,146 +131,6 @@ export type GetFileResponse = { twoHundredImageJpegResponseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetFileGlobals$inboundSchema: z.ZodType< - GetFileGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetFileGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetFileGlobals$outboundSchema: z.ZodType< - GetFileGlobals$Outbound, - z.ZodTypeDef, - GetFileGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFileGlobals$ { - /** @deprecated use `GetFileGlobals$inboundSchema` instead. */ - export const inboundSchema = GetFileGlobals$inboundSchema; - /** @deprecated use `GetFileGlobals$outboundSchema` instead. */ - export const outboundSchema = GetFileGlobals$outboundSchema; - /** @deprecated use `GetFileGlobals$Outbound` instead. */ - export type Outbound = GetFileGlobals$Outbound; -} - -export function getFileGlobalsToJSON(getFileGlobals: GetFileGlobals): string { - return JSON.stringify(GetFileGlobals$outboundSchema.parse(getFileGlobals)); -} - -export function getFileGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFileGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFileGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetFileRequest$inboundSchema: z.ZodType< - GetFileRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - url: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetFileRequest$Outbound = { accepts: string; @@ -322,33 +182,10 @@ export const GetFileRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFileRequest$ { - /** @deprecated use `GetFileRequest$inboundSchema` instead. */ - export const inboundSchema = GetFileRequest$inboundSchema; - /** @deprecated use `GetFileRequest$outboundSchema` instead. */ - export const outboundSchema = GetFileRequest$outboundSchema; - /** @deprecated use `GetFileRequest$Outbound` instead. */ - export type Outbound = GetFileRequest$Outbound; -} - export function getFileRequestToJSON(getFileRequest: GetFileRequest): string { return JSON.stringify(GetFileRequest$outboundSchema.parse(getFileRequest)); } -export function getFileRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFileRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFileRequest' from JSON`, - ); -} - /** @internal */ export const GetFileResponse$inboundSchema: z.ZodType< GetFileResponse, @@ -372,59 +209,6 @@ export const GetFileResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFileResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "200_audio/mpeg3_response-stream"?: ReadableStream | undefined; - "200_image/jpeg_response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetFileResponse$outboundSchema: z.ZodType< - GetFileResponse$Outbound, - z.ZodTypeDef, - GetFileResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - twoHundredAudioMpeg3ResponseStream: z.instanceof(ReadableStream) - .optional(), - twoHundredImageJpegResponseStream: z.instanceof(ReadableStream) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - twoHundredAudioMpeg3ResponseStream: "200_audio/mpeg3_response-stream", - twoHundredImageJpegResponseStream: "200_image/jpeg_response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFileResponse$ { - /** @deprecated use `GetFileResponse$inboundSchema` instead. */ - export const inboundSchema = GetFileResponse$inboundSchema; - /** @deprecated use `GetFileResponse$outboundSchema` instead. */ - export const outboundSchema = GetFileResponse$outboundSchema; - /** @deprecated use `GetFileResponse$Outbound` instead. */ - export type Outbound = GetFileResponse$Outbound; -} - -export function getFileResponseToJSON( - getFileResponse: GetFileResponse, -): string { - return JSON.stringify(GetFileResponse$outboundSchema.parse(getFileResponse)); -} - export function getFileResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getfirstcharacters.ts b/src/sdk/models/operations/getfirstcharacters.ts index 04d2d667..ccf34712 100644 --- a/src/sdk/models/operations/getfirstcharacters.ts +++ b/src/sdk/models/operations/getfirstcharacters.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,152 +179,6 @@ export type GetFirstCharactersResponse = { object?: GetFirstCharactersResponseBody | undefined; }; -/** @internal */ -export const GetFirstCharactersGlobals$inboundSchema: z.ZodType< - GetFirstCharactersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetFirstCharactersGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetFirstCharactersGlobals$outboundSchema: z.ZodType< - GetFirstCharactersGlobals$Outbound, - z.ZodTypeDef, - GetFirstCharactersGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersGlobals$ { - /** @deprecated use `GetFirstCharactersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersGlobals$inboundSchema; - /** @deprecated use `GetFirstCharactersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersGlobals$outboundSchema; - /** @deprecated use `GetFirstCharactersGlobals$Outbound` instead. */ - export type Outbound = GetFirstCharactersGlobals$Outbound; -} - -export function getFirstCharactersGlobalsToJSON( - getFirstCharactersGlobals: GetFirstCharactersGlobals, -): string { - return JSON.stringify( - GetFirstCharactersGlobals$outboundSchema.parse(getFirstCharactersGlobals), - ); -} - -export function getFirstCharactersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFirstCharactersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFirstCharactersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetFirstCharactersRequest$inboundSchema: z.ZodType< - GetFirstCharactersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), - sort: z.number().int().optional(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetFirstCharactersRequest$Outbound = { accepts: string; @@ -380,19 +234,6 @@ export const GetFirstCharactersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersRequest$ { - /** @deprecated use `GetFirstCharactersRequest$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersRequest$inboundSchema; - /** @deprecated use `GetFirstCharactersRequest$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersRequest$outboundSchema; - /** @deprecated use `GetFirstCharactersRequest$Outbound` instead. */ - export type Outbound = GetFirstCharactersRequest$Outbound; -} - export function getFirstCharactersRequestToJSON( getFirstCharactersRequest: GetFirstCharactersRequest, ): string { @@ -401,16 +242,6 @@ export function getFirstCharactersRequestToJSON( ); } -export function getFirstCharactersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFirstCharactersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFirstCharactersRequest' from JSON`, - ); -} - /** @internal */ export const GetFirstCharactersDirectory$inboundSchema: z.ZodType< GetFirstCharactersDirectory, @@ -422,47 +253,6 @@ export const GetFirstCharactersDirectory$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type GetFirstCharactersDirectory$Outbound = { - key?: string | undefined; - size?: number | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const GetFirstCharactersDirectory$outboundSchema: z.ZodType< - GetFirstCharactersDirectory$Outbound, - z.ZodTypeDef, - GetFirstCharactersDirectory -> = z.object({ - key: z.string().optional(), - size: z.number().int().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersDirectory$ { - /** @deprecated use `GetFirstCharactersDirectory$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersDirectory$inboundSchema; - /** @deprecated use `GetFirstCharactersDirectory$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersDirectory$outboundSchema; - /** @deprecated use `GetFirstCharactersDirectory$Outbound` instead. */ - export type Outbound = GetFirstCharactersDirectory$Outbound; -} - -export function getFirstCharactersDirectoryToJSON( - getFirstCharactersDirectory: GetFirstCharactersDirectory, -): string { - return JSON.stringify( - GetFirstCharactersDirectory$outboundSchema.parse( - getFirstCharactersDirectory, - ), - ); -} - export function getFirstCharactersDirectoryFromJSON( jsonString: string, ): SafeParseResult { @@ -491,56 +281,6 @@ export const GetFirstCharactersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFirstCharactersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetFirstCharactersMediaContainer$outboundSchema: z.ZodType< - GetFirstCharactersMediaContainer$Outbound, - z.ZodTypeDef, - GetFirstCharactersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(z.lazy(() => GetFirstCharactersDirectory$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersMediaContainer$ { - /** @deprecated use `GetFirstCharactersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersMediaContainer$inboundSchema; - /** @deprecated use `GetFirstCharactersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersMediaContainer$outboundSchema; - /** @deprecated use `GetFirstCharactersMediaContainer$Outbound` instead. */ - export type Outbound = GetFirstCharactersMediaContainer$Outbound; -} - -export function getFirstCharactersMediaContainerToJSON( - getFirstCharactersMediaContainer: GetFirstCharactersMediaContainer, -): string { - return JSON.stringify( - GetFirstCharactersMediaContainer$outboundSchema.parse( - getFirstCharactersMediaContainer, - ), - ); -} - export function getFirstCharactersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -565,48 +305,6 @@ export const GetFirstCharactersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFirstCharactersResponseBody$Outbound = { - MediaContainer?: GetFirstCharactersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetFirstCharactersResponseBody$outboundSchema: z.ZodType< - GetFirstCharactersResponseBody$Outbound, - z.ZodTypeDef, - GetFirstCharactersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetFirstCharactersMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersResponseBody$ { - /** @deprecated use `GetFirstCharactersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersResponseBody$inboundSchema; - /** @deprecated use `GetFirstCharactersResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersResponseBody$outboundSchema; - /** @deprecated use `GetFirstCharactersResponseBody$Outbound` instead. */ - export type Outbound = GetFirstCharactersResponseBody$Outbound; -} - -export function getFirstCharactersResponseBodyToJSON( - getFirstCharactersResponseBody: GetFirstCharactersResponseBody, -): string { - return JSON.stringify( - GetFirstCharactersResponseBody$outboundSchema.parse( - getFirstCharactersResponseBody, - ), - ); -} - export function getFirstCharactersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -635,56 +333,6 @@ export const GetFirstCharactersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFirstCharactersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetFirstCharactersResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetFirstCharactersResponse$outboundSchema: z.ZodType< - GetFirstCharactersResponse$Outbound, - z.ZodTypeDef, - GetFirstCharactersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetFirstCharactersResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFirstCharactersResponse$ { - /** @deprecated use `GetFirstCharactersResponse$inboundSchema` instead. */ - export const inboundSchema = GetFirstCharactersResponse$inboundSchema; - /** @deprecated use `GetFirstCharactersResponse$outboundSchema` instead. */ - export const outboundSchema = GetFirstCharactersResponse$outboundSchema; - /** @deprecated use `GetFirstCharactersResponse$Outbound` instead. */ - export type Outbound = GetFirstCharactersResponse$Outbound; -} - -export function getFirstCharactersResponseToJSON( - getFirstCharactersResponse: GetFirstCharactersResponse, -): string { - return JSON.stringify( - GetFirstCharactersResponse$outboundSchema.parse(getFirstCharactersResponse), - ); -} - export function getFirstCharactersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getfolders.ts b/src/sdk/models/operations/getfolders.ts index 5f8f292b..424c6dfe 100644 --- a/src/sdk/models/operations/getfolders.ts +++ b/src/sdk/models/operations/getfolders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -164,149 +164,6 @@ export type GetFoldersResponse = { object?: GetFoldersResponseBody | undefined; }; -/** @internal */ -export const GetFoldersGlobals$inboundSchema: z.ZodType< - GetFoldersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetFoldersGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetFoldersGlobals$outboundSchema: z.ZodType< - GetFoldersGlobals$Outbound, - z.ZodTypeDef, - GetFoldersGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersGlobals$ { - /** @deprecated use `GetFoldersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetFoldersGlobals$inboundSchema; - /** @deprecated use `GetFoldersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetFoldersGlobals$outboundSchema; - /** @deprecated use `GetFoldersGlobals$Outbound` instead. */ - export type Outbound = GetFoldersGlobals$Outbound; -} - -export function getFoldersGlobalsToJSON( - getFoldersGlobals: GetFoldersGlobals, -): string { - return JSON.stringify( - GetFoldersGlobals$outboundSchema.parse(getFoldersGlobals), - ); -} - -export function getFoldersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFoldersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFoldersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetFoldersRequest$inboundSchema: z.ZodType< - GetFoldersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetFoldersRequest$Outbound = { accepts: string; @@ -356,19 +213,6 @@ export const GetFoldersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersRequest$ { - /** @deprecated use `GetFoldersRequest$inboundSchema` instead. */ - export const inboundSchema = GetFoldersRequest$inboundSchema; - /** @deprecated use `GetFoldersRequest$outboundSchema` instead. */ - export const outboundSchema = GetFoldersRequest$outboundSchema; - /** @deprecated use `GetFoldersRequest$Outbound` instead. */ - export type Outbound = GetFoldersRequest$Outbound; -} - export function getFoldersRequestToJSON( getFoldersRequest: GetFoldersRequest, ): string { @@ -377,16 +221,6 @@ export function getFoldersRequestToJSON( ); } -export function getFoldersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetFoldersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetFoldersRequest' from JSON`, - ); -} - /** @internal */ export const GetFoldersDirectory$inboundSchema: z.ZodType< GetFoldersDirectory, @@ -398,45 +232,6 @@ export const GetFoldersDirectory$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type GetFoldersDirectory$Outbound = { - fastKey?: string | undefined; - key?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const GetFoldersDirectory$outboundSchema: z.ZodType< - GetFoldersDirectory$Outbound, - z.ZodTypeDef, - GetFoldersDirectory -> = z.object({ - fastKey: z.string().optional(), - key: z.string().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersDirectory$ { - /** @deprecated use `GetFoldersDirectory$inboundSchema` instead. */ - export const inboundSchema = GetFoldersDirectory$inboundSchema; - /** @deprecated use `GetFoldersDirectory$outboundSchema` instead. */ - export const outboundSchema = GetFoldersDirectory$outboundSchema; - /** @deprecated use `GetFoldersDirectory$Outbound` instead. */ - export type Outbound = GetFoldersDirectory$Outbound; -} - -export function getFoldersDirectoryToJSON( - getFoldersDirectory: GetFoldersDirectory, -): string { - return JSON.stringify( - GetFoldersDirectory$outboundSchema.parse(getFoldersDirectory), - ); -} - export function getFoldersDirectoryFromJSON( jsonString: string, ): SafeParseResult { @@ -465,54 +260,6 @@ export const GetFoldersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFoldersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetFoldersMediaContainer$outboundSchema: z.ZodType< - GetFoldersMediaContainer$Outbound, - z.ZodTypeDef, - GetFoldersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(z.lazy(() => GetFoldersDirectory$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersMediaContainer$ { - /** @deprecated use `GetFoldersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetFoldersMediaContainer$inboundSchema; - /** @deprecated use `GetFoldersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetFoldersMediaContainer$outboundSchema; - /** @deprecated use `GetFoldersMediaContainer$Outbound` instead. */ - export type Outbound = GetFoldersMediaContainer$Outbound; -} - -export function getFoldersMediaContainerToJSON( - getFoldersMediaContainer: GetFoldersMediaContainer, -): string { - return JSON.stringify( - GetFoldersMediaContainer$outboundSchema.parse(getFoldersMediaContainer), - ); -} - export function getFoldersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -537,46 +284,6 @@ export const GetFoldersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFoldersResponseBody$Outbound = { - MediaContainer?: GetFoldersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetFoldersResponseBody$outboundSchema: z.ZodType< - GetFoldersResponseBody$Outbound, - z.ZodTypeDef, - GetFoldersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetFoldersMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersResponseBody$ { - /** @deprecated use `GetFoldersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetFoldersResponseBody$inboundSchema; - /** @deprecated use `GetFoldersResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetFoldersResponseBody$outboundSchema; - /** @deprecated use `GetFoldersResponseBody$Outbound` instead. */ - export type Outbound = GetFoldersResponseBody$Outbound; -} - -export function getFoldersResponseBodyToJSON( - getFoldersResponseBody: GetFoldersResponseBody, -): string { - return JSON.stringify( - GetFoldersResponseBody$outboundSchema.parse(getFoldersResponseBody), - ); -} - export function getFoldersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -605,55 +312,6 @@ export const GetFoldersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFoldersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetFoldersResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetFoldersResponse$outboundSchema: z.ZodType< - GetFoldersResponse$Outbound, - z.ZodTypeDef, - GetFoldersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetFoldersResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFoldersResponse$ { - /** @deprecated use `GetFoldersResponse$inboundSchema` instead. */ - export const inboundSchema = GetFoldersResponse$inboundSchema; - /** @deprecated use `GetFoldersResponse$outboundSchema` instead. */ - export const outboundSchema = GetFoldersResponse$outboundSchema; - /** @deprecated use `GetFoldersResponse$Outbound` instead. */ - export type Outbound = GetFoldersResponse$Outbound; -} - -export function getFoldersResponseToJSON( - getFoldersResponse: GetFoldersResponse, -): string { - return JSON.stringify( - GetFoldersResponse$outboundSchema.parse(getFoldersResponse), - ); -} - export function getFoldersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gethistoryitem.ts b/src/sdk/models/operations/gethistoryitem.ts index 0d9ce7cd..d31d4863 100644 --- a/src/sdk/models/operations/gethistoryitem.ts +++ b/src/sdk/models/operations/gethistoryitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,149 +127,6 @@ export type GetHistoryItemResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetHistoryItemGlobals$inboundSchema: z.ZodType< - GetHistoryItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetHistoryItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetHistoryItemGlobals$outboundSchema: z.ZodType< - GetHistoryItemGlobals$Outbound, - z.ZodTypeDef, - GetHistoryItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHistoryItemGlobals$ { - /** @deprecated use `GetHistoryItemGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHistoryItemGlobals$inboundSchema; - /** @deprecated use `GetHistoryItemGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHistoryItemGlobals$outboundSchema; - /** @deprecated use `GetHistoryItemGlobals$Outbound` instead. */ - export type Outbound = GetHistoryItemGlobals$Outbound; -} - -export function getHistoryItemGlobalsToJSON( - getHistoryItemGlobals: GetHistoryItemGlobals, -): string { - return JSON.stringify( - GetHistoryItemGlobals$outboundSchema.parse(getHistoryItemGlobals), - ); -} - -export function getHistoryItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHistoryItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHistoryItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHistoryItemRequest$inboundSchema: z.ZodType< - GetHistoryItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - historyId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetHistoryItemRequest$Outbound = { accepts: string; @@ -319,19 +176,6 @@ export const GetHistoryItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHistoryItemRequest$ { - /** @deprecated use `GetHistoryItemRequest$inboundSchema` instead. */ - export const inboundSchema = GetHistoryItemRequest$inboundSchema; - /** @deprecated use `GetHistoryItemRequest$outboundSchema` instead. */ - export const outboundSchema = GetHistoryItemRequest$outboundSchema; - /** @deprecated use `GetHistoryItemRequest$Outbound` instead. */ - export type Outbound = GetHistoryItemRequest$Outbound; -} - export function getHistoryItemRequestToJSON( getHistoryItemRequest: GetHistoryItemRequest, ): string { @@ -340,16 +184,6 @@ export function getHistoryItemRequestToJSON( ); } -export function getHistoryItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHistoryItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHistoryItemRequest' from JSON`, - ); -} - /** @internal */ export const GetHistoryItemResponse$inboundSchema: z.ZodType< GetHistoryItemResponse, @@ -361,7 +195,7 @@ export const GetHistoryItemResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), "historyAll-get-responses-200": shared.HistoryAllGetResponses200$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -372,62 +206,6 @@ export const GetHistoryItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHistoryItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "historyAll-get-responses-200"?: - | shared.HistoryAllGetResponses200$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetHistoryItemResponse$outboundSchema: z.ZodType< - GetHistoryItemResponse$Outbound, - z.ZodTypeDef, - GetHistoryItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - historyAllGetResponses200: shared.HistoryAllGetResponses200$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - historyAllGetResponses200: "historyAll-get-responses-200", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHistoryItemResponse$ { - /** @deprecated use `GetHistoryItemResponse$inboundSchema` instead. */ - export const inboundSchema = GetHistoryItemResponse$inboundSchema; - /** @deprecated use `GetHistoryItemResponse$outboundSchema` instead. */ - export const outboundSchema = GetHistoryItemResponse$outboundSchema; - /** @deprecated use `GetHistoryItemResponse$Outbound` instead. */ - export type Outbound = GetHistoryItemResponse$Outbound; -} - -export function getHistoryItemResponseToJSON( - getHistoryItemResponse: GetHistoryItemResponse, -): string { - return JSON.stringify( - GetHistoryItemResponse$outboundSchema.parse(getHistoryItemResponse), - ); -} - export function getHistoryItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gethubitems.ts b/src/sdk/models/operations/gethubitems.ts index ad057a09..40830e70 100644 --- a/src/sdk/models/operations/gethubitems.ts +++ b/src/sdk/models/operations/gethubitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -145,150 +145,6 @@ export type GetHubItemsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetHubItemsGlobals$inboundSchema: z.ZodType< - GetHubItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetHubItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetHubItemsGlobals$outboundSchema: z.ZodType< - GetHubItemsGlobals$Outbound, - z.ZodTypeDef, - GetHubItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHubItemsGlobals$ { - /** @deprecated use `GetHubItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHubItemsGlobals$inboundSchema; - /** @deprecated use `GetHubItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHubItemsGlobals$outboundSchema; - /** @deprecated use `GetHubItemsGlobals$Outbound` instead. */ - export type Outbound = GetHubItemsGlobals$Outbound; -} - -export function getHubItemsGlobalsToJSON( - getHubItemsGlobals: GetHubItemsGlobals, -): string { - return JSON.stringify( - GetHubItemsGlobals$outboundSchema.parse(getHubItemsGlobals), - ); -} - -export function getHubItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHubItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHubItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHubItemsRequest$inboundSchema: z.ZodType< - GetHubItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - count: z.number().int().optional(), - identifier: z.array(z.string()), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetHubItemsRequest$Outbound = { accepts: string; @@ -340,19 +196,6 @@ export const GetHubItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHubItemsRequest$ { - /** @deprecated use `GetHubItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHubItemsRequest$inboundSchema; - /** @deprecated use `GetHubItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHubItemsRequest$outboundSchema; - /** @deprecated use `GetHubItemsRequest$Outbound` instead. */ - export type Outbound = GetHubItemsRequest$Outbound; -} - export function getHubItemsRequestToJSON( getHubItemsRequest: GetHubItemsRequest, ): string { @@ -361,16 +204,6 @@ export function getHubItemsRequestToJSON( ); } -export function getHubItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHubItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHubItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetHubItemsResponseBody$inboundSchema: z.ZodType< GetHubItemsResponseBody, @@ -384,45 +217,6 @@ export const GetHubItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHubItemsResponseBody$Outbound = { - MediaContainer?: shared.MediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetHubItemsResponseBody$outboundSchema: z.ZodType< - GetHubItemsResponseBody$Outbound, - z.ZodTypeDef, - GetHubItemsResponseBody -> = z.object({ - mediaContainer: shared.MediaContainer$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHubItemsResponseBody$ { - /** @deprecated use `GetHubItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetHubItemsResponseBody$inboundSchema; - /** @deprecated use `GetHubItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetHubItemsResponseBody$outboundSchema; - /** @deprecated use `GetHubItemsResponseBody$Outbound` instead. */ - export type Outbound = GetHubItemsResponseBody$Outbound; -} - -export function getHubItemsResponseBodyToJSON( - getHubItemsResponseBody: GetHubItemsResponseBody, -): string { - return JSON.stringify( - GetHubItemsResponseBody$outboundSchema.parse(getHubItemsResponseBody), - ); -} - export function getHubItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -443,7 +237,7 @@ export const GetHubItemsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetHubItemsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -453,58 +247,6 @@ export const GetHubItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHubItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetHubItemsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetHubItemsResponse$outboundSchema: z.ZodType< - GetHubItemsResponse$Outbound, - z.ZodTypeDef, - GetHubItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetHubItemsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHubItemsResponse$ { - /** @deprecated use `GetHubItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHubItemsResponse$inboundSchema; - /** @deprecated use `GetHubItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetHubItemsResponse$outboundSchema; - /** @deprecated use `GetHubItemsResponse$Outbound` instead. */ - export type Outbound = GetHubItemsResponse$Outbound; -} - -export function getHubItemsResponseToJSON( - getHubItemsResponse: GetHubItemsResponse, -): string { - return JSON.stringify( - GetHubItemsResponse$outboundSchema.parse(getHubItemsResponse), - ); -} - export function getHubItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getidentity.ts b/src/sdk/models/operations/getidentity.ts index f7c53207..41c86602 100644 --- a/src/sdk/models/operations/getidentity.ts +++ b/src/sdk/models/operations/getidentity.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -62,47 +62,6 @@ export const GetIdentityMediaContainer$inboundSchema: z.ZodType< version: z.string().optional(), }); -/** @internal */ -export type GetIdentityMediaContainer$Outbound = { - claimed?: boolean | undefined; - machineIdentifier?: string | undefined; - size?: number | undefined; - version?: string | undefined; -}; - -/** @internal */ -export const GetIdentityMediaContainer$outboundSchema: z.ZodType< - GetIdentityMediaContainer$Outbound, - z.ZodTypeDef, - GetIdentityMediaContainer -> = z.object({ - claimed: z.boolean().optional(), - machineIdentifier: z.string().optional(), - size: z.number().int().optional(), - version: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIdentityMediaContainer$ { - /** @deprecated use `GetIdentityMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetIdentityMediaContainer$inboundSchema; - /** @deprecated use `GetIdentityMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetIdentityMediaContainer$outboundSchema; - /** @deprecated use `GetIdentityMediaContainer$Outbound` instead. */ - export type Outbound = GetIdentityMediaContainer$Outbound; -} - -export function getIdentityMediaContainerToJSON( - getIdentityMediaContainer: GetIdentityMediaContainer, -): string { - return JSON.stringify( - GetIdentityMediaContainer$outboundSchema.parse(getIdentityMediaContainer), - ); -} - export function getIdentityMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -127,46 +86,6 @@ export const GetIdentityResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetIdentityResponseBody$Outbound = { - MediaContainer?: GetIdentityMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetIdentityResponseBody$outboundSchema: z.ZodType< - GetIdentityResponseBody$Outbound, - z.ZodTypeDef, - GetIdentityResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetIdentityMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIdentityResponseBody$ { - /** @deprecated use `GetIdentityResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetIdentityResponseBody$inboundSchema; - /** @deprecated use `GetIdentityResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetIdentityResponseBody$outboundSchema; - /** @deprecated use `GetIdentityResponseBody$Outbound` instead. */ - export type Outbound = GetIdentityResponseBody$Outbound; -} - -export function getIdentityResponseBodyToJSON( - getIdentityResponseBody: GetIdentityResponseBody, -): string { - return JSON.stringify( - GetIdentityResponseBody$outboundSchema.parse(getIdentityResponseBody), - ); -} - export function getIdentityResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -195,55 +114,6 @@ export const GetIdentityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetIdentityResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetIdentityResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetIdentityResponse$outboundSchema: z.ZodType< - GetIdentityResponse$Outbound, - z.ZodTypeDef, - GetIdentityResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetIdentityResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIdentityResponse$ { - /** @deprecated use `GetIdentityResponse$inboundSchema` instead. */ - export const inboundSchema = GetIdentityResponse$inboundSchema; - /** @deprecated use `GetIdentityResponse$outboundSchema` instead. */ - export const outboundSchema = GetIdentityResponse$outboundSchema; - /** @deprecated use `GetIdentityResponse$Outbound` instead. */ - export type Outbound = GetIdentityResponse$Outbound; -} - -export function getIdentityResponseToJSON( - getIdentityResponse: GetIdentityResponse, -): string { - return JSON.stringify( - GetIdentityResponse$outboundSchema.parse(getIdentityResponse), - ); -} - export function getIdentityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getimage.ts b/src/sdk/models/operations/getimage.ts index 62296fe7..c69e2e45 100644 --- a/src/sdk/models/operations/getimage.ts +++ b/src/sdk/models/operations/getimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -150,153 +150,6 @@ export type GetImageResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetImageGlobals$inboundSchema: z.ZodType< - GetImageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetImageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetImageGlobals$outboundSchema: z.ZodType< - GetImageGlobals$Outbound, - z.ZodTypeDef, - GetImageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageGlobals$ { - /** @deprecated use `GetImageGlobals$inboundSchema` instead. */ - export const inboundSchema = GetImageGlobals$inboundSchema; - /** @deprecated use `GetImageGlobals$outboundSchema` instead. */ - export const outboundSchema = GetImageGlobals$outboundSchema; - /** @deprecated use `GetImageGlobals$Outbound` instead. */ - export type Outbound = GetImageGlobals$Outbound; -} - -export function getImageGlobalsToJSON( - getImageGlobals: GetImageGlobals, -): string { - return JSON.stringify(GetImageGlobals$outboundSchema.parse(getImageGlobals)); -} - -export function getImageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetImageRequest$inboundSchema: z.ZodType< - GetImageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - topLeft: z.string().optional(), - topRight: z.string().optional(), - bottomRight: z.string().optional(), - bottomLeft: z.string().optional(), - width: z.number().int().optional(), - height: z.number().int().optional(), - noise: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetImageRequest$Outbound = { accepts: string; @@ -358,35 +211,12 @@ export const GetImageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageRequest$ { - /** @deprecated use `GetImageRequest$inboundSchema` instead. */ - export const inboundSchema = GetImageRequest$inboundSchema; - /** @deprecated use `GetImageRequest$outboundSchema` instead. */ - export const outboundSchema = GetImageRequest$outboundSchema; - /** @deprecated use `GetImageRequest$Outbound` instead. */ - export type Outbound = GetImageRequest$Outbound; -} - export function getImageRequestToJSON( getImageRequest: GetImageRequest, ): string { return JSON.stringify(GetImageRequest$outboundSchema.parse(getImageRequest)); } -export function getImageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageRequest' from JSON`, - ); -} - /** @internal */ export const GetImageResponse$inboundSchema: z.ZodType< GetImageResponse, @@ -406,56 +236,6 @@ export const GetImageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetImageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetImageResponse$outboundSchema: z.ZodType< - GetImageResponse$Outbound, - z.ZodTypeDef, - GetImageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageResponse$ { - /** @deprecated use `GetImageResponse$inboundSchema` instead. */ - export const inboundSchema = GetImageResponse$inboundSchema; - /** @deprecated use `GetImageResponse$outboundSchema` instead. */ - export const outboundSchema = GetImageResponse$outboundSchema; - /** @deprecated use `GetImageResponse$Outbound` instead. */ - export type Outbound = GetImageResponse$Outbound; -} - -export function getImageResponseToJSON( - getImageResponse: GetImageResponse, -): string { - return JSON.stringify( - GetImageResponse$outboundSchema.parse(getImageResponse), - ); -} - export function getImageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getimagefrombif.ts b/src/sdk/models/operations/getimagefrombif.ts index 73e54d61..c13f9f4d 100644 --- a/src/sdk/models/operations/getimagefrombif.ts +++ b/src/sdk/models/operations/getimagefrombif.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -141,171 +141,10 @@ export type GetImageFromBifResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetImageFromBifGlobals$inboundSchema: z.ZodType< - GetImageFromBifGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetImageFromBifGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetImageFromBifGlobals$outboundSchema: z.ZodType< - GetImageFromBifGlobals$Outbound, - z.ZodTypeDef, - GetImageFromBifGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageFromBifGlobals$ { - /** @deprecated use `GetImageFromBifGlobals$inboundSchema` instead. */ - export const inboundSchema = GetImageFromBifGlobals$inboundSchema; - /** @deprecated use `GetImageFromBifGlobals$outboundSchema` instead. */ - export const outboundSchema = GetImageFromBifGlobals$outboundSchema; - /** @deprecated use `GetImageFromBifGlobals$Outbound` instead. */ - export type Outbound = GetImageFromBifGlobals$Outbound; -} - -export function getImageFromBifGlobalsToJSON( - getImageFromBifGlobals: GetImageFromBifGlobals, -): string { - return JSON.stringify( - GetImageFromBifGlobals$outboundSchema.parse(getImageFromBifGlobals), - ); -} - -export function getImageFromBifGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageFromBifGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageFromBifGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetImageFromBifIndex$inboundSchema: z.ZodNativeEnum< - typeof GetImageFromBifIndex -> = z.nativeEnum(GetImageFromBifIndex); - /** @internal */ export const GetImageFromBifIndex$outboundSchema: z.ZodNativeEnum< typeof GetImageFromBifIndex -> = GetImageFromBifIndex$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageFromBifIndex$ { - /** @deprecated use `GetImageFromBifIndex$inboundSchema` instead. */ - export const inboundSchema = GetImageFromBifIndex$inboundSchema; - /** @deprecated use `GetImageFromBifIndex$outboundSchema` instead. */ - export const outboundSchema = GetImageFromBifIndex$outboundSchema; -} - -/** @internal */ -export const GetImageFromBifRequest$inboundSchema: z.ZodType< - GetImageFromBifRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - partId: z.number().int(), - index: GetImageFromBifIndex$inboundSchema, - offset: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(GetImageFromBifIndex); /** @internal */ export type GetImageFromBifRequest$Outbound = { @@ -360,19 +199,6 @@ export const GetImageFromBifRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageFromBifRequest$ { - /** @deprecated use `GetImageFromBifRequest$inboundSchema` instead. */ - export const inboundSchema = GetImageFromBifRequest$inboundSchema; - /** @deprecated use `GetImageFromBifRequest$outboundSchema` instead. */ - export const outboundSchema = GetImageFromBifRequest$outboundSchema; - /** @deprecated use `GetImageFromBifRequest$Outbound` instead. */ - export type Outbound = GetImageFromBifRequest$Outbound; -} - export function getImageFromBifRequestToJSON( getImageFromBifRequest: GetImageFromBifRequest, ): string { @@ -381,16 +207,6 @@ export function getImageFromBifRequestToJSON( ); } -export function getImageFromBifRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetImageFromBifRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetImageFromBifRequest' from JSON`, - ); -} - /** @internal */ export const GetImageFromBifResponse$inboundSchema: z.ZodType< GetImageFromBifResponse, @@ -410,56 +226,6 @@ export const GetImageFromBifResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetImageFromBifResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetImageFromBifResponse$outboundSchema: z.ZodType< - GetImageFromBifResponse$Outbound, - z.ZodTypeDef, - GetImageFromBifResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetImageFromBifResponse$ { - /** @deprecated use `GetImageFromBifResponse$inboundSchema` instead. */ - export const inboundSchema = GetImageFromBifResponse$inboundSchema; - /** @deprecated use `GetImageFromBifResponse$outboundSchema` instead. */ - export const outboundSchema = GetImageFromBifResponse$outboundSchema; - /** @deprecated use `GetImageFromBifResponse$Outbound` instead. */ - export type Outbound = GetImageFromBifResponse$Outbound; -} - -export function getImageFromBifResponseToJSON( - getImageFromBifResponse: GetImageFromBifResponse, -): string { - return JSON.stringify( - GetImageFromBifResponse$outboundSchema.parse(getImageFromBifResponse), - ); -} - export function getImageFromBifResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getitemartwork.ts b/src/sdk/models/operations/getitemartwork.ts index 58227063..3821fab5 100644 --- a/src/sdk/models/operations/getitemartwork.ts +++ b/src/sdk/models/operations/getitemartwork.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -141,171 +141,10 @@ export type GetItemArtworkResponse = { twoHundredImageJpegResponseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetItemArtworkGlobals$inboundSchema: z.ZodType< - GetItemArtworkGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetItemArtworkGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetItemArtworkGlobals$outboundSchema: z.ZodType< - GetItemArtworkGlobals$Outbound, - z.ZodTypeDef, - GetItemArtworkGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemArtworkGlobals$ { - /** @deprecated use `GetItemArtworkGlobals$inboundSchema` instead. */ - export const inboundSchema = GetItemArtworkGlobals$inboundSchema; - /** @deprecated use `GetItemArtworkGlobals$outboundSchema` instead. */ - export const outboundSchema = GetItemArtworkGlobals$outboundSchema; - /** @deprecated use `GetItemArtworkGlobals$Outbound` instead. */ - export type Outbound = GetItemArtworkGlobals$Outbound; -} - -export function getItemArtworkGlobalsToJSON( - getItemArtworkGlobals: GetItemArtworkGlobals, -): string { - return JSON.stringify( - GetItemArtworkGlobals$outboundSchema.parse(getItemArtworkGlobals), - ); -} - -export function getItemArtworkGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemArtworkGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemArtworkGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetItemArtworkElement$inboundSchema: z.ZodNativeEnum< - typeof GetItemArtworkElement -> = z.nativeEnum(GetItemArtworkElement); - /** @internal */ export const GetItemArtworkElement$outboundSchema: z.ZodNativeEnum< typeof GetItemArtworkElement -> = GetItemArtworkElement$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemArtworkElement$ { - /** @deprecated use `GetItemArtworkElement$inboundSchema` instead. */ - export const inboundSchema = GetItemArtworkElement$inboundSchema; - /** @deprecated use `GetItemArtworkElement$outboundSchema` instead. */ - export const outboundSchema = GetItemArtworkElement$outboundSchema; -} - -/** @internal */ -export const GetItemArtworkRequest$inboundSchema: z.ZodType< - GetItemArtworkRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - element: GetItemArtworkElement$inboundSchema, - timestamp: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(GetItemArtworkElement); /** @internal */ export type GetItemArtworkRequest$Outbound = { @@ -360,19 +199,6 @@ export const GetItemArtworkRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemArtworkRequest$ { - /** @deprecated use `GetItemArtworkRequest$inboundSchema` instead. */ - export const inboundSchema = GetItemArtworkRequest$inboundSchema; - /** @deprecated use `GetItemArtworkRequest$outboundSchema` instead. */ - export const outboundSchema = GetItemArtworkRequest$outboundSchema; - /** @deprecated use `GetItemArtworkRequest$Outbound` instead. */ - export type Outbound = GetItemArtworkRequest$Outbound; -} - export function getItemArtworkRequestToJSON( getItemArtworkRequest: GetItemArtworkRequest, ): string { @@ -381,16 +207,6 @@ export function getItemArtworkRequestToJSON( ); } -export function getItemArtworkRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemArtworkRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemArtworkRequest' from JSON`, - ); -} - /** @internal */ export const GetItemArtworkResponse$inboundSchema: z.ZodType< GetItemArtworkResponse, @@ -414,61 +230,6 @@ export const GetItemArtworkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetItemArtworkResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "200_audio/mpeg3_response-stream"?: ReadableStream | undefined; - "200_image/jpeg_response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetItemArtworkResponse$outboundSchema: z.ZodType< - GetItemArtworkResponse$Outbound, - z.ZodTypeDef, - GetItemArtworkResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - twoHundredAudioMpeg3ResponseStream: z.instanceof(ReadableStream) - .optional(), - twoHundredImageJpegResponseStream: z.instanceof(ReadableStream) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - twoHundredAudioMpeg3ResponseStream: "200_audio/mpeg3_response-stream", - twoHundredImageJpegResponseStream: "200_image/jpeg_response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemArtworkResponse$ { - /** @deprecated use `GetItemArtworkResponse$inboundSchema` instead. */ - export const inboundSchema = GetItemArtworkResponse$inboundSchema; - /** @deprecated use `GetItemArtworkResponse$outboundSchema` instead. */ - export const outboundSchema = GetItemArtworkResponse$outboundSchema; - /** @deprecated use `GetItemArtworkResponse$Outbound` instead. */ - export type Outbound = GetItemArtworkResponse$Outbound; -} - -export function getItemArtworkResponseToJSON( - getItemArtworkResponse: GetItemArtworkResponse, -): string { - return JSON.stringify( - GetItemArtworkResponse$outboundSchema.parse(getItemArtworkResponse), - ); -} - export function getItemArtworkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getitemdecision.ts b/src/sdk/models/operations/getitemdecision.ts index 4098624c..11e32579 100644 --- a/src/sdk/models/operations/getitemdecision.ts +++ b/src/sdk/models/operations/getitemdecision.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,150 +130,6 @@ export type GetItemDecisionResponse = { mediaContainerWithDecision?: shared.MediaContainerWithDecision | undefined; }; -/** @internal */ -export const GetItemDecisionGlobals$inboundSchema: z.ZodType< - GetItemDecisionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetItemDecisionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetItemDecisionGlobals$outboundSchema: z.ZodType< - GetItemDecisionGlobals$Outbound, - z.ZodTypeDef, - GetItemDecisionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemDecisionGlobals$ { - /** @deprecated use `GetItemDecisionGlobals$inboundSchema` instead. */ - export const inboundSchema = GetItemDecisionGlobals$inboundSchema; - /** @deprecated use `GetItemDecisionGlobals$outboundSchema` instead. */ - export const outboundSchema = GetItemDecisionGlobals$outboundSchema; - /** @deprecated use `GetItemDecisionGlobals$Outbound` instead. */ - export type Outbound = GetItemDecisionGlobals$Outbound; -} - -export function getItemDecisionGlobalsToJSON( - getItemDecisionGlobals: GetItemDecisionGlobals, -): string { - return JSON.stringify( - GetItemDecisionGlobals$outboundSchema.parse(getItemDecisionGlobals), - ); -} - -export function getItemDecisionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemDecisionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemDecisionGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetItemDecisionRequest$inboundSchema: z.ZodType< - GetItemDecisionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetItemDecisionRequest$Outbound = { accepts: string; @@ -325,19 +181,6 @@ export const GetItemDecisionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemDecisionRequest$ { - /** @deprecated use `GetItemDecisionRequest$inboundSchema` instead. */ - export const inboundSchema = GetItemDecisionRequest$inboundSchema; - /** @deprecated use `GetItemDecisionRequest$outboundSchema` instead. */ - export const outboundSchema = GetItemDecisionRequest$outboundSchema; - /** @deprecated use `GetItemDecisionRequest$Outbound` instead. */ - export type Outbound = GetItemDecisionRequest$Outbound; -} - export function getItemDecisionRequestToJSON( getItemDecisionRequest: GetItemDecisionRequest, ): string { @@ -346,16 +189,6 @@ export function getItemDecisionRequestToJSON( ); } -export function getItemDecisionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemDecisionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemDecisionRequest' from JSON`, - ); -} - /** @internal */ export const GetItemDecisionResponse$inboundSchema: z.ZodType< GetItemDecisionResponse, @@ -376,59 +209,6 @@ export const GetItemDecisionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetItemDecisionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDecision?: - | shared.MediaContainerWithDecision$Outbound - | undefined; -}; - -/** @internal */ -export const GetItemDecisionResponse$outboundSchema: z.ZodType< - GetItemDecisionResponse$Outbound, - z.ZodTypeDef, - GetItemDecisionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDecision: shared.MediaContainerWithDecision$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDecision: "MediaContainerWithDecision", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemDecisionResponse$ { - /** @deprecated use `GetItemDecisionResponse$inboundSchema` instead. */ - export const inboundSchema = GetItemDecisionResponse$inboundSchema; - /** @deprecated use `GetItemDecisionResponse$outboundSchema` instead. */ - export const outboundSchema = GetItemDecisionResponse$outboundSchema; - /** @deprecated use `GetItemDecisionResponse$Outbound` instead. */ - export type Outbound = GetItemDecisionResponse$Outbound; -} - -export function getItemDecisionResponseToJSON( - getItemDecisionResponse: GetItemDecisionResponse, -): string { - return JSON.stringify( - GetItemDecisionResponse$outboundSchema.parse(getItemDecisionResponse), - ); -} - export function getItemDecisionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getitemtree.ts b/src/sdk/models/operations/getitemtree.ts index 804d9f23..5262ea76 100644 --- a/src/sdk/models/operations/getitemtree.ts +++ b/src/sdk/models/operations/getitemtree.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -125,149 +125,6 @@ export type GetItemTreeResponse = { | undefined; }; -/** @internal */ -export const GetItemTreeGlobals$inboundSchema: z.ZodType< - GetItemTreeGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetItemTreeGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetItemTreeGlobals$outboundSchema: z.ZodType< - GetItemTreeGlobals$Outbound, - z.ZodTypeDef, - GetItemTreeGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemTreeGlobals$ { - /** @deprecated use `GetItemTreeGlobals$inboundSchema` instead. */ - export const inboundSchema = GetItemTreeGlobals$inboundSchema; - /** @deprecated use `GetItemTreeGlobals$outboundSchema` instead. */ - export const outboundSchema = GetItemTreeGlobals$outboundSchema; - /** @deprecated use `GetItemTreeGlobals$Outbound` instead. */ - export type Outbound = GetItemTreeGlobals$Outbound; -} - -export function getItemTreeGlobalsToJSON( - getItemTreeGlobals: GetItemTreeGlobals, -): string { - return JSON.stringify( - GetItemTreeGlobals$outboundSchema.parse(getItemTreeGlobals), - ); -} - -export function getItemTreeGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemTreeGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemTreeGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetItemTreeRequest$inboundSchema: z.ZodType< - GetItemTreeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetItemTreeRequest$Outbound = { accepts: string; @@ -317,19 +174,6 @@ export const GetItemTreeRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemTreeRequest$ { - /** @deprecated use `GetItemTreeRequest$inboundSchema` instead. */ - export const inboundSchema = GetItemTreeRequest$inboundSchema; - /** @deprecated use `GetItemTreeRequest$outboundSchema` instead. */ - export const outboundSchema = GetItemTreeRequest$outboundSchema; - /** @deprecated use `GetItemTreeRequest$Outbound` instead. */ - export type Outbound = GetItemTreeRequest$Outbound; -} - export function getItemTreeRequestToJSON( getItemTreeRequest: GetItemTreeRequest, ): string { @@ -338,16 +182,6 @@ export function getItemTreeRequestToJSON( ); } -export function getItemTreeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetItemTreeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetItemTreeRequest' from JSON`, - ); -} - /** @internal */ export const GetItemTreeResponse$inboundSchema: z.ZodType< GetItemTreeResponse, @@ -368,59 +202,6 @@ export const GetItemTreeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetItemTreeResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithNestedMetadata?: - | shared.MediaContainerWithNestedMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetItemTreeResponse$outboundSchema: z.ZodType< - GetItemTreeResponse$Outbound, - z.ZodTypeDef, - GetItemTreeResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithNestedMetadata: shared - .MediaContainerWithNestedMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithNestedMetadata: "MediaContainerWithNestedMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetItemTreeResponse$ { - /** @deprecated use `GetItemTreeResponse$inboundSchema` instead. */ - export const inboundSchema = GetItemTreeResponse$inboundSchema; - /** @deprecated use `GetItemTreeResponse$outboundSchema` instead. */ - export const outboundSchema = GetItemTreeResponse$outboundSchema; - /** @deprecated use `GetItemTreeResponse$Outbound` instead. */ - export type Outbound = GetItemTreeResponse$Outbound; -} - -export function getItemTreeResponseToJSON( - getItemTreeResponse: GetItemTreeResponse, -): string { - return JSON.stringify( - GetItemTreeResponse$outboundSchema.parse(getItemTreeResponse), - ); -} - export function getItemTreeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlibrarydetails.ts b/src/sdk/models/operations/getlibrarydetails.ts index 38ef3a51..85001d82 100644 --- a/src/sdk/models/operations/getlibrarydetails.ts +++ b/src/sdk/models/operations/getlibrarydetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -162,150 +162,6 @@ export type GetLibraryDetailsResponse = { object?: GetLibraryDetailsResponseBody | undefined; }; -/** @internal */ -export const GetLibraryDetailsGlobals$inboundSchema: z.ZodType< - GetLibraryDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLibraryDetailsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLibraryDetailsGlobals$outboundSchema: z.ZodType< - GetLibraryDetailsGlobals$Outbound, - z.ZodTypeDef, - GetLibraryDetailsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsGlobals$ { - /** @deprecated use `GetLibraryDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsGlobals$inboundSchema; - /** @deprecated use `GetLibraryDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsGlobals$outboundSchema; - /** @deprecated use `GetLibraryDetailsGlobals$Outbound` instead. */ - export type Outbound = GetLibraryDetailsGlobals$Outbound; -} - -export function getLibraryDetailsGlobalsToJSON( - getLibraryDetailsGlobals: GetLibraryDetailsGlobals, -): string { - return JSON.stringify( - GetLibraryDetailsGlobals$outboundSchema.parse(getLibraryDetailsGlobals), - ); -} - -export function getLibraryDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLibraryDetailsRequest$inboundSchema: z.ZodType< - GetLibraryDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.string(), - includeDetails: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLibraryDetailsRequest$Outbound = { accepts: string; @@ -357,19 +213,6 @@ export const GetLibraryDetailsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsRequest$ { - /** @deprecated use `GetLibraryDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsRequest$inboundSchema; - /** @deprecated use `GetLibraryDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsRequest$outboundSchema; - /** @deprecated use `GetLibraryDetailsRequest$Outbound` instead. */ - export type Outbound = GetLibraryDetailsRequest$Outbound; -} - export function getLibraryDetailsRequestToJSON( getLibraryDetailsRequest: GetLibraryDetailsRequest, ): string { @@ -378,16 +221,6 @@ export function getLibraryDetailsRequestToJSON( ); } -export function getLibraryDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryDetailsRequest' from JSON`, - ); -} - /** @internal */ export const GetLibraryDetailsMediaContainer$inboundSchema: z.ZodType< GetLibraryDetailsMediaContainer, @@ -414,73 +247,6 @@ export const GetLibraryDetailsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLibraryDetailsMediaContainer$Outbound = { - content?: string | undefined; - allowSync?: boolean | undefined; - art?: string | undefined; - Directory?: Array | undefined; - identifier?: string | undefined; - librarySectionID?: number | undefined; - mediaTagPrefix?: string | undefined; - mediaTagVersion?: number | undefined; - size?: number | undefined; - sortAsc?: boolean | undefined; - thumb?: string | undefined; - title1?: string | undefined; - viewGroup?: string | undefined; - viewMode?: number | undefined; -}; - -/** @internal */ -export const GetLibraryDetailsMediaContainer$outboundSchema: z.ZodType< - GetLibraryDetailsMediaContainer$Outbound, - z.ZodTypeDef, - GetLibraryDetailsMediaContainer -> = z.object({ - content: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - directory: z.array(shared.Metadata$outboundSchema).optional(), - identifier: z.string().optional(), - librarySectionID: z.number().int().optional(), - mediaTagPrefix: z.string().optional(), - mediaTagVersion: z.number().int().optional(), - size: z.number().int().optional(), - sortAsc: z.boolean().optional(), - thumb: z.string().optional(), - title1: z.string().optional(), - viewGroup: z.string().optional(), - viewMode: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsMediaContainer$ { - /** @deprecated use `GetLibraryDetailsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsMediaContainer$inboundSchema; - /** @deprecated use `GetLibraryDetailsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsMediaContainer$outboundSchema; - /** @deprecated use `GetLibraryDetailsMediaContainer$Outbound` instead. */ - export type Outbound = GetLibraryDetailsMediaContainer$Outbound; -} - -export function getLibraryDetailsMediaContainerToJSON( - getLibraryDetailsMediaContainer: GetLibraryDetailsMediaContainer, -): string { - return JSON.stringify( - GetLibraryDetailsMediaContainer$outboundSchema.parse( - getLibraryDetailsMediaContainer, - ), - ); -} - export function getLibraryDetailsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -505,48 +271,6 @@ export const GetLibraryDetailsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLibraryDetailsResponseBody$Outbound = { - MediaContainer?: GetLibraryDetailsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetLibraryDetailsResponseBody$outboundSchema: z.ZodType< - GetLibraryDetailsResponseBody$Outbound, - z.ZodTypeDef, - GetLibraryDetailsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetLibraryDetailsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsResponseBody$ { - /** @deprecated use `GetLibraryDetailsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsResponseBody$inboundSchema; - /** @deprecated use `GetLibraryDetailsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsResponseBody$outboundSchema; - /** @deprecated use `GetLibraryDetailsResponseBody$Outbound` instead. */ - export type Outbound = GetLibraryDetailsResponseBody$Outbound; -} - -export function getLibraryDetailsResponseBodyToJSON( - getLibraryDetailsResponseBody: GetLibraryDetailsResponseBody, -): string { - return JSON.stringify( - GetLibraryDetailsResponseBody$outboundSchema.parse( - getLibraryDetailsResponseBody, - ), - ); -} - export function getLibraryDetailsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -575,55 +299,6 @@ export const GetLibraryDetailsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLibraryDetailsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetLibraryDetailsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetLibraryDetailsResponse$outboundSchema: z.ZodType< - GetLibraryDetailsResponse$Outbound, - z.ZodTypeDef, - GetLibraryDetailsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetLibraryDetailsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsResponse$ { - /** @deprecated use `GetLibraryDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsResponse$inboundSchema; - /** @deprecated use `GetLibraryDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsResponse$outboundSchema; - /** @deprecated use `GetLibraryDetailsResponse$Outbound` instead. */ - export type Outbound = GetLibraryDetailsResponse$Outbound; -} - -export function getLibraryDetailsResponseToJSON( - getLibraryDetailsResponse: GetLibraryDetailsResponse, -): string { - return JSON.stringify( - GetLibraryDetailsResponse$outboundSchema.parse(getLibraryDetailsResponse), - ); -} - export function getLibraryDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlibraryitems.ts b/src/sdk/models/operations/getlibraryitems.ts index 7ac28e30..7abbdf0f 100644 --- a/src/sdk/models/operations/getlibraryitems.ts +++ b/src/sdk/models/operations/getlibraryitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,149 +127,6 @@ export type GetLibraryItemsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetLibraryItemsGlobals$inboundSchema: z.ZodType< - GetLibraryItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLibraryItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLibraryItemsGlobals$outboundSchema: z.ZodType< - GetLibraryItemsGlobals$Outbound, - z.ZodTypeDef, - GetLibraryItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryItemsGlobals$ { - /** @deprecated use `GetLibraryItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLibraryItemsGlobals$inboundSchema; - /** @deprecated use `GetLibraryItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLibraryItemsGlobals$outboundSchema; - /** @deprecated use `GetLibraryItemsGlobals$Outbound` instead. */ - export type Outbound = GetLibraryItemsGlobals$Outbound; -} - -export function getLibraryItemsGlobalsToJSON( - getLibraryItemsGlobals: GetLibraryItemsGlobals, -): string { - return JSON.stringify( - GetLibraryItemsGlobals$outboundSchema.parse(getLibraryItemsGlobals), - ); -} - -export function getLibraryItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLibraryItemsRequest$inboundSchema: z.ZodType< - GetLibraryItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLibraryItemsRequest$Outbound = { accepts: string; @@ -319,19 +176,6 @@ export const GetLibraryItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryItemsRequest$ { - /** @deprecated use `GetLibraryItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetLibraryItemsRequest$inboundSchema; - /** @deprecated use `GetLibraryItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetLibraryItemsRequest$outboundSchema; - /** @deprecated use `GetLibraryItemsRequest$Outbound` instead. */ - export type Outbound = GetLibraryItemsRequest$Outbound; -} - export function getLibraryItemsRequestToJSON( getLibraryItemsRequest: GetLibraryItemsRequest, ): string { @@ -340,16 +184,6 @@ export function getLibraryItemsRequestToJSON( ); } -export function getLibraryItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetLibraryItemsResponse$inboundSchema: z.ZodType< GetLibraryItemsResponse, @@ -361,7 +195,7 @@ export const GetLibraryItemsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -372,62 +206,6 @@ export const GetLibraryItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLibraryItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetLibraryItemsResponse$outboundSchema: z.ZodType< - GetLibraryItemsResponse$Outbound, - z.ZodTypeDef, - GetLibraryItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryItemsResponse$ { - /** @deprecated use `GetLibraryItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLibraryItemsResponse$inboundSchema; - /** @deprecated use `GetLibraryItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLibraryItemsResponse$outboundSchema; - /** @deprecated use `GetLibraryItemsResponse$Outbound` instead. */ - export type Outbound = GetLibraryItemsResponse$Outbound; -} - -export function getLibraryItemsResponseToJSON( - getLibraryItemsResponse: GetLibraryItemsResponse, -): string { - return JSON.stringify( - GetLibraryItemsResponse$outboundSchema.parse(getLibraryItemsResponse), - ); -} - export function getLibraryItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlibrarymatches.ts b/src/sdk/models/operations/getlibrarymatches.ts index 677bf290..7ab67bee 100644 --- a/src/sdk/models/operations/getlibrarymatches.ts +++ b/src/sdk/models/operations/getlibrarymatches.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -170,162 +170,6 @@ export type GetLibraryMatchesResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetLibraryMatchesGlobals$inboundSchema: z.ZodType< - GetLibraryMatchesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLibraryMatchesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLibraryMatchesGlobals$outboundSchema: z.ZodType< - GetLibraryMatchesGlobals$Outbound, - z.ZodTypeDef, - GetLibraryMatchesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryMatchesGlobals$ { - /** @deprecated use `GetLibraryMatchesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLibraryMatchesGlobals$inboundSchema; - /** @deprecated use `GetLibraryMatchesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLibraryMatchesGlobals$outboundSchema; - /** @deprecated use `GetLibraryMatchesGlobals$Outbound` instead. */ - export type Outbound = GetLibraryMatchesGlobals$Outbound; -} - -export function getLibraryMatchesGlobalsToJSON( - getLibraryMatchesGlobals: GetLibraryMatchesGlobals, -): string { - return JSON.stringify( - GetLibraryMatchesGlobals$outboundSchema.parse(getLibraryMatchesGlobals), - ); -} - -export function getLibraryMatchesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryMatchesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryMatchesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLibraryMatchesRequest$inboundSchema: z.ZodType< - GetLibraryMatchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - type: z.number().int().optional(), - includeFullMetadata: shared.BoolInt$inboundSchema.optional(), - includeAncestorMetadata: shared.BoolInt$inboundSchema.optional(), - includeAlternateMetadataSources: shared.BoolInt$inboundSchema.optional(), - guid: z.string().optional(), - title: z.string().optional(), - year: z.number().int().optional(), - path: z.string().optional(), - grandparentTitle: z.string().optional(), - grandparentYear: z.number().int().optional(), - parentIndex: z.number().int().optional(), - index: z.number().int().optional(), - originallyAvailableAt: z.string().optional(), - parentTitle: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLibraryMatchesRequest$Outbound = { accepts: string; @@ -401,19 +245,6 @@ export const GetLibraryMatchesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryMatchesRequest$ { - /** @deprecated use `GetLibraryMatchesRequest$inboundSchema` instead. */ - export const inboundSchema = GetLibraryMatchesRequest$inboundSchema; - /** @deprecated use `GetLibraryMatchesRequest$outboundSchema` instead. */ - export const outboundSchema = GetLibraryMatchesRequest$outboundSchema; - /** @deprecated use `GetLibraryMatchesRequest$Outbound` instead. */ - export type Outbound = GetLibraryMatchesRequest$Outbound; -} - export function getLibraryMatchesRequestToJSON( getLibraryMatchesRequest: GetLibraryMatchesRequest, ): string { @@ -422,16 +253,6 @@ export function getLibraryMatchesRequestToJSON( ); } -export function getLibraryMatchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLibraryMatchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLibraryMatchesRequest' from JSON`, - ); -} - /** @internal */ export const GetLibraryMatchesResponse$inboundSchema: z.ZodType< GetLibraryMatchesResponse, @@ -443,7 +264,7 @@ export const GetLibraryMatchesResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -454,62 +275,6 @@ export const GetLibraryMatchesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLibraryMatchesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetLibraryMatchesResponse$outboundSchema: z.ZodType< - GetLibraryMatchesResponse$Outbound, - z.ZodTypeDef, - GetLibraryMatchesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryMatchesResponse$ { - /** @deprecated use `GetLibraryMatchesResponse$inboundSchema` instead. */ - export const inboundSchema = GetLibraryMatchesResponse$inboundSchema; - /** @deprecated use `GetLibraryMatchesResponse$outboundSchema` instead. */ - export const outboundSchema = GetLibraryMatchesResponse$outboundSchema; - /** @deprecated use `GetLibraryMatchesResponse$Outbound` instead. */ - export type Outbound = GetLibraryMatchesResponse$Outbound; -} - -export function getLibraryMatchesResponseToJSON( - getLibraryMatchesResponse: GetLibraryMatchesResponse, -): string { - return JSON.stringify( - GetLibraryMatchesResponse$outboundSchema.parse(getLibraryMatchesResponse), - ); -} - export function getLibraryMatchesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlineup.ts b/src/sdk/models/operations/getlineup.ts index 4a64fc43..93683d28 100644 --- a/src/sdk/models/operations/getlineup.ts +++ b/src/sdk/models/operations/getlineup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,150 +127,6 @@ export type GetLineupResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetLineupGlobals$inboundSchema: z.ZodType< - GetLineupGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLineupGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLineupGlobals$outboundSchema: z.ZodType< - GetLineupGlobals$Outbound, - z.ZodTypeDef, - GetLineupGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupGlobals$ { - /** @deprecated use `GetLineupGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLineupGlobals$inboundSchema; - /** @deprecated use `GetLineupGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLineupGlobals$outboundSchema; - /** @deprecated use `GetLineupGlobals$Outbound` instead. */ - export type Outbound = GetLineupGlobals$Outbound; -} - -export function getLineupGlobalsToJSON( - getLineupGlobals: GetLineupGlobals, -): string { - return JSON.stringify( - GetLineupGlobals$outboundSchema.parse(getLineupGlobals), - ); -} - -export function getLineupGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLineupGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLineupGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLineupRequest$inboundSchema: z.ZodType< - GetLineupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceQueryParameter: z.string(), - lineupGroup: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLineupRequest$Outbound = { accepts: string; @@ -322,19 +178,6 @@ export const GetLineupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupRequest$ { - /** @deprecated use `GetLineupRequest$inboundSchema` instead. */ - export const inboundSchema = GetLineupRequest$inboundSchema; - /** @deprecated use `GetLineupRequest$outboundSchema` instead. */ - export const outboundSchema = GetLineupRequest$outboundSchema; - /** @deprecated use `GetLineupRequest$Outbound` instead. */ - export type Outbound = GetLineupRequest$Outbound; -} - export function getLineupRequestToJSON( getLineupRequest: GetLineupRequest, ): string { @@ -343,16 +186,6 @@ export function getLineupRequestToJSON( ); } -export function getLineupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLineupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLineupRequest' from JSON`, - ); -} - /** @internal */ export const GetLineupResponse$inboundSchema: z.ZodType< GetLineupResponse, @@ -362,7 +195,7 @@ export const GetLineupResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -372,56 +205,6 @@ export const GetLineupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLineupResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetLineupResponse$outboundSchema: z.ZodType< - GetLineupResponse$Outbound, - z.ZodTypeDef, - GetLineupResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupResponse$ { - /** @deprecated use `GetLineupResponse$inboundSchema` instead. */ - export const inboundSchema = GetLineupResponse$inboundSchema; - /** @deprecated use `GetLineupResponse$outboundSchema` instead. */ - export const outboundSchema = GetLineupResponse$outboundSchema; - /** @deprecated use `GetLineupResponse$Outbound` instead. */ - export type Outbound = GetLineupResponse$Outbound; -} - -export function getLineupResponseToJSON( - getLineupResponse: GetLineupResponse, -): string { - return JSON.stringify( - GetLineupResponse$outboundSchema.parse(getLineupResponse), - ); -} - export function getLineupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlineupchannels.ts b/src/sdk/models/operations/getlineupchannels.ts index a61fb98a..983d2b62 100644 --- a/src/sdk/models/operations/getlineupchannels.ts +++ b/src/sdk/models/operations/getlineupchannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -202,149 +202,6 @@ export type GetLineupChannelsResponse = { object?: GetLineupChannelsResponseBody | undefined; }; -/** @internal */ -export const GetLineupChannelsGlobals$inboundSchema: z.ZodType< - GetLineupChannelsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLineupChannelsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLineupChannelsGlobals$outboundSchema: z.ZodType< - GetLineupChannelsGlobals$Outbound, - z.ZodTypeDef, - GetLineupChannelsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupChannelsGlobals$ { - /** @deprecated use `GetLineupChannelsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLineupChannelsGlobals$inboundSchema; - /** @deprecated use `GetLineupChannelsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLineupChannelsGlobals$outboundSchema; - /** @deprecated use `GetLineupChannelsGlobals$Outbound` instead. */ - export type Outbound = GetLineupChannelsGlobals$Outbound; -} - -export function getLineupChannelsGlobalsToJSON( - getLineupChannelsGlobals: GetLineupChannelsGlobals, -): string { - return JSON.stringify( - GetLineupChannelsGlobals$outboundSchema.parse(getLineupChannelsGlobals), - ); -} - -export function getLineupChannelsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLineupChannelsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLineupChannelsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLineupChannelsRequest$inboundSchema: z.ZodType< - GetLineupChannelsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - lineup: z.array(z.string()), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLineupChannelsRequest$Outbound = { accepts: string; @@ -394,19 +251,6 @@ export const GetLineupChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupChannelsRequest$ { - /** @deprecated use `GetLineupChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetLineupChannelsRequest$inboundSchema; - /** @deprecated use `GetLineupChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = GetLineupChannelsRequest$outboundSchema; - /** @deprecated use `GetLineupChannelsRequest$Outbound` instead. */ - export type Outbound = GetLineupChannelsRequest$Outbound; -} - export function getLineupChannelsRequestToJSON( getLineupChannelsRequest: GetLineupChannelsRequest, ): string { @@ -415,35 +259,10 @@ export function getLineupChannelsRequestToJSON( ); } -export function getLineupChannelsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLineupChannelsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLineupChannelsRequest' from JSON`, - ); -} - /** @internal */ export const LineupType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(LineupType); -/** @internal */ -export const LineupType$outboundSchema: z.ZodNativeEnum = - LineupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LineupType$ { - /** @deprecated use `LineupType$inboundSchema` instead. */ - export const inboundSchema = LineupType$inboundSchema; - /** @deprecated use `LineupType$outboundSchema` instead. */ - export const outboundSchema = LineupType$outboundSchema; -} - /** @internal */ export const Lineup$inboundSchema: z.ZodType = z .object({ @@ -459,51 +278,6 @@ export const Lineup$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Lineup$Outbound = { - title?: string | undefined; - type?: string | undefined; - lineupType?: number | undefined; - location?: string | undefined; - uuid?: string | undefined; - Channel?: Array | undefined; -}; - -/** @internal */ -export const Lineup$outboundSchema: z.ZodType< - Lineup$Outbound, - z.ZodTypeDef, - Lineup -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - lineupType: LineupType$outboundSchema.optional(), - location: z.string().optional(), - uuid: z.string().optional(), - channel: z.array(shared.Channel$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - channel: "Channel", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Lineup$ { - /** @deprecated use `Lineup$inboundSchema` instead. */ - export const inboundSchema = Lineup$inboundSchema; - /** @deprecated use `Lineup$outboundSchema` instead. */ - export const outboundSchema = Lineup$outboundSchema; - /** @deprecated use `Lineup$Outbound` instead. */ - export type Outbound = Lineup$Outbound; -} - -export function lineupToJSON(lineup: Lineup): string { - return JSON.stringify(Lineup$outboundSchema.parse(lineup)); -} - export function lineupFromJSON( jsonString: string, ): SafeParseResult { @@ -531,55 +305,6 @@ export const GetLineupChannelsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLineupChannelsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Lineup?: Array | undefined; -}; - -/** @internal */ -export const GetLineupChannelsMediaContainer$outboundSchema: z.ZodType< - GetLineupChannelsMediaContainer$Outbound, - z.ZodTypeDef, - GetLineupChannelsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - lineup: z.array(z.lazy(() => Lineup$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - lineup: "Lineup", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupChannelsMediaContainer$ { - /** @deprecated use `GetLineupChannelsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetLineupChannelsMediaContainer$inboundSchema; - /** @deprecated use `GetLineupChannelsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetLineupChannelsMediaContainer$outboundSchema; - /** @deprecated use `GetLineupChannelsMediaContainer$Outbound` instead. */ - export type Outbound = GetLineupChannelsMediaContainer$Outbound; -} - -export function getLineupChannelsMediaContainerToJSON( - getLineupChannelsMediaContainer: GetLineupChannelsMediaContainer, -): string { - return JSON.stringify( - GetLineupChannelsMediaContainer$outboundSchema.parse( - getLineupChannelsMediaContainer, - ), - ); -} - export function getLineupChannelsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -604,48 +329,6 @@ export const GetLineupChannelsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLineupChannelsResponseBody$Outbound = { - MediaContainer?: GetLineupChannelsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetLineupChannelsResponseBody$outboundSchema: z.ZodType< - GetLineupChannelsResponseBody$Outbound, - z.ZodTypeDef, - GetLineupChannelsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetLineupChannelsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupChannelsResponseBody$ { - /** @deprecated use `GetLineupChannelsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetLineupChannelsResponseBody$inboundSchema; - /** @deprecated use `GetLineupChannelsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetLineupChannelsResponseBody$outboundSchema; - /** @deprecated use `GetLineupChannelsResponseBody$Outbound` instead. */ - export type Outbound = GetLineupChannelsResponseBody$Outbound; -} - -export function getLineupChannelsResponseBodyToJSON( - getLineupChannelsResponseBody: GetLineupChannelsResponseBody, -): string { - return JSON.stringify( - GetLineupChannelsResponseBody$outboundSchema.parse( - getLineupChannelsResponseBody, - ), - ); -} - export function getLineupChannelsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -674,55 +357,6 @@ export const GetLineupChannelsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLineupChannelsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetLineupChannelsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetLineupChannelsResponse$outboundSchema: z.ZodType< - GetLineupChannelsResponse$Outbound, - z.ZodTypeDef, - GetLineupChannelsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetLineupChannelsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLineupChannelsResponse$ { - /** @deprecated use `GetLineupChannelsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLineupChannelsResponse$inboundSchema; - /** @deprecated use `GetLineupChannelsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLineupChannelsResponse$outboundSchema; - /** @deprecated use `GetLineupChannelsResponse$Outbound` instead. */ - export type Outbound = GetLineupChannelsResponse$Outbound; -} - -export function getLineupChannelsResponseToJSON( - getLineupChannelsResponse: GetLineupChannelsResponse, -): string { - return JSON.stringify( - GetLineupChannelsResponse$outboundSchema.parse(getLineupChannelsResponse), - ); -} - export function getLineupChannelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlivetvsession.ts b/src/sdk/models/operations/getlivetvsession.ts index 9f412c90..f3315937 100644 --- a/src/sdk/models/operations/getlivetvsession.ts +++ b/src/sdk/models/operations/getlivetvsession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,149 +127,6 @@ export type GetLiveTVSessionResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetLiveTVSessionGlobals$inboundSchema: z.ZodType< - GetLiveTVSessionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetLiveTVSessionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetLiveTVSessionGlobals$outboundSchema: z.ZodType< - GetLiveTVSessionGlobals$Outbound, - z.ZodTypeDef, - GetLiveTVSessionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLiveTVSessionGlobals$ { - /** @deprecated use `GetLiveTVSessionGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLiveTVSessionGlobals$inboundSchema; - /** @deprecated use `GetLiveTVSessionGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLiveTVSessionGlobals$outboundSchema; - /** @deprecated use `GetLiveTVSessionGlobals$Outbound` instead. */ - export type Outbound = GetLiveTVSessionGlobals$Outbound; -} - -export function getLiveTVSessionGlobalsToJSON( - getLiveTVSessionGlobals: GetLiveTVSessionGlobals, -): string { - return JSON.stringify( - GetLiveTVSessionGlobals$outboundSchema.parse(getLiveTVSessionGlobals), - ); -} - -export function getLiveTVSessionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLiveTVSessionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLiveTVSessionGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLiveTVSessionRequest$inboundSchema: z.ZodType< - GetLiveTVSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sessionId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetLiveTVSessionRequest$Outbound = { accepts: string; @@ -319,19 +176,6 @@ export const GetLiveTVSessionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLiveTVSessionRequest$ { - /** @deprecated use `GetLiveTVSessionRequest$inboundSchema` instead. */ - export const inboundSchema = GetLiveTVSessionRequest$inboundSchema; - /** @deprecated use `GetLiveTVSessionRequest$outboundSchema` instead. */ - export const outboundSchema = GetLiveTVSessionRequest$outboundSchema; - /** @deprecated use `GetLiveTVSessionRequest$Outbound` instead. */ - export type Outbound = GetLiveTVSessionRequest$Outbound; -} - export function getLiveTVSessionRequestToJSON( getLiveTVSessionRequest: GetLiveTVSessionRequest, ): string { @@ -340,16 +184,6 @@ export function getLiveTVSessionRequestToJSON( ); } -export function getLiveTVSessionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLiveTVSessionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLiveTVSessionRequest' from JSON`, - ); -} - /** @internal */ export const GetLiveTVSessionResponse$inboundSchema: z.ZodType< GetLiveTVSessionResponse, @@ -361,7 +195,7 @@ export const GetLiveTVSessionResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -372,62 +206,6 @@ export const GetLiveTVSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLiveTVSessionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetLiveTVSessionResponse$outboundSchema: z.ZodType< - GetLiveTVSessionResponse$Outbound, - z.ZodTypeDef, - GetLiveTVSessionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLiveTVSessionResponse$ { - /** @deprecated use `GetLiveTVSessionResponse$inboundSchema` instead. */ - export const inboundSchema = GetLiveTVSessionResponse$inboundSchema; - /** @deprecated use `GetLiveTVSessionResponse$outboundSchema` instead. */ - export const outboundSchema = GetLiveTVSessionResponse$outboundSchema; - /** @deprecated use `GetLiveTVSessionResponse$Outbound` instead. */ - export type Outbound = GetLiveTVSessionResponse$Outbound; -} - -export function getLiveTVSessionResponseToJSON( - getLiveTVSessionResponse: GetLiveTVSessionResponse, -): string { - return JSON.stringify( - GetLiveTVSessionResponse$outboundSchema.parse(getLiveTVSessionResponse), - ); -} - export function getLiveTVSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getmediapart.ts b/src/sdk/models/operations/getmediapart.ts index d071841a..d7133479 100644 --- a/src/sdk/models/operations/getmediapart.ts +++ b/src/sdk/models/operations/getmediapart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,152 +135,6 @@ export type GetMediaPartResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetMediaPartGlobals$inboundSchema: z.ZodType< - GetMediaPartGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetMediaPartGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetMediaPartGlobals$outboundSchema: z.ZodType< - GetMediaPartGlobals$Outbound, - z.ZodTypeDef, - GetMediaPartGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMediaPartGlobals$ { - /** @deprecated use `GetMediaPartGlobals$inboundSchema` instead. */ - export const inboundSchema = GetMediaPartGlobals$inboundSchema; - /** @deprecated use `GetMediaPartGlobals$outboundSchema` instead. */ - export const outboundSchema = GetMediaPartGlobals$outboundSchema; - /** @deprecated use `GetMediaPartGlobals$Outbound` instead. */ - export type Outbound = GetMediaPartGlobals$Outbound; -} - -export function getMediaPartGlobalsToJSON( - getMediaPartGlobals: GetMediaPartGlobals, -): string { - return JSON.stringify( - GetMediaPartGlobals$outboundSchema.parse(getMediaPartGlobals), - ); -} - -export function getMediaPartGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMediaPartGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMediaPartGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetMediaPartRequest$inboundSchema: z.ZodType< - GetMediaPartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - partId: z.number().int(), - changestamp: z.number().int(), - filename: z.string(), - download: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetMediaPartRequest$Outbound = { accepts: string; @@ -336,19 +190,6 @@ export const GetMediaPartRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMediaPartRequest$ { - /** @deprecated use `GetMediaPartRequest$inboundSchema` instead. */ - export const inboundSchema = GetMediaPartRequest$inboundSchema; - /** @deprecated use `GetMediaPartRequest$outboundSchema` instead. */ - export const outboundSchema = GetMediaPartRequest$outboundSchema; - /** @deprecated use `GetMediaPartRequest$Outbound` instead. */ - export type Outbound = GetMediaPartRequest$Outbound; -} - export function getMediaPartRequestToJSON( getMediaPartRequest: GetMediaPartRequest, ): string { @@ -357,16 +198,6 @@ export function getMediaPartRequestToJSON( ); } -export function getMediaPartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMediaPartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMediaPartRequest' from JSON`, - ); -} - /** @internal */ export const GetMediaPartResponse$inboundSchema: z.ZodType< GetMediaPartResponse, @@ -376,7 +207,7 @@ export const GetMediaPartResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,56 +217,6 @@ export const GetMediaPartResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetMediaPartResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetMediaPartResponse$outboundSchema: z.ZodType< - GetMediaPartResponse$Outbound, - z.ZodTypeDef, - GetMediaPartResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMediaPartResponse$ { - /** @deprecated use `GetMediaPartResponse$inboundSchema` instead. */ - export const inboundSchema = GetMediaPartResponse$inboundSchema; - /** @deprecated use `GetMediaPartResponse$outboundSchema` instead. */ - export const outboundSchema = GetMediaPartResponse$outboundSchema; - /** @deprecated use `GetMediaPartResponse$Outbound` instead. */ - export type Outbound = GetMediaPartResponse$Outbound; -} - -export function getMediaPartResponseToJSON( - getMediaPartResponse: GetMediaPartResponse, -): string { - return JSON.stringify( - GetMediaPartResponse$outboundSchema.parse(getMediaPartResponse), - ); -} - export function getMediaPartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getmetadatahubs.ts b/src/sdk/models/operations/getmetadatahubs.ts index 003bc1ff..fb24e7ef 100644 --- a/src/sdk/models/operations/getmetadatahubs.ts +++ b/src/sdk/models/operations/getmetadatahubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,151 +135,6 @@ export type GetMetadataHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetMetadataHubsGlobals$inboundSchema: z.ZodType< - GetMetadataHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetMetadataHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetMetadataHubsGlobals$outboundSchema: z.ZodType< - GetMetadataHubsGlobals$Outbound, - z.ZodTypeDef, - GetMetadataHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataHubsGlobals$ { - /** @deprecated use `GetMetadataHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetMetadataHubsGlobals$inboundSchema; - /** @deprecated use `GetMetadataHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetMetadataHubsGlobals$outboundSchema; - /** @deprecated use `GetMetadataHubsGlobals$Outbound` instead. */ - export type Outbound = GetMetadataHubsGlobals$Outbound; -} - -export function getMetadataHubsGlobalsToJSON( - getMetadataHubsGlobals: GetMetadataHubsGlobals, -): string { - return JSON.stringify( - GetMetadataHubsGlobals$outboundSchema.parse(getMetadataHubsGlobals), - ); -} - -export function getMetadataHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetadataHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetadataHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetMetadataHubsRequest$inboundSchema: z.ZodType< - GetMetadataHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), - onlyTransient: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetMetadataHubsRequest$Outbound = { accepts: string; @@ -333,19 +188,6 @@ export const GetMetadataHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataHubsRequest$ { - /** @deprecated use `GetMetadataHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetadataHubsRequest$inboundSchema; - /** @deprecated use `GetMetadataHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetadataHubsRequest$outboundSchema; - /** @deprecated use `GetMetadataHubsRequest$Outbound` instead. */ - export type Outbound = GetMetadataHubsRequest$Outbound; -} - export function getMetadataHubsRequestToJSON( getMetadataHubsRequest: GetMetadataHubsRequest, ): string { @@ -354,16 +196,6 @@ export function getMetadataHubsRequestToJSON( ); } -export function getMetadataHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetadataHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetadataHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetMetadataHubsResponse$inboundSchema: z.ZodType< GetMetadataHubsResponse, @@ -375,7 +207,7 @@ export const GetMetadataHubsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,60 +218,6 @@ export const GetMetadataHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetMetadataHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithHubs?: shared.MediaContainerWithHubs$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetMetadataHubsResponse$outboundSchema: z.ZodType< - GetMetadataHubsResponse$Outbound, - z.ZodTypeDef, - GetMetadataHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithHubs: shared.MediaContainerWithHubs$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithHubs: "MediaContainerWithHubs", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataHubsResponse$ { - /** @deprecated use `GetMetadataHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetMetadataHubsResponse$inboundSchema; - /** @deprecated use `GetMetadataHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetMetadataHubsResponse$outboundSchema; - /** @deprecated use `GetMetadataHubsResponse$Outbound` instead. */ - export type Outbound = GetMetadataHubsResponse$Outbound; -} - -export function getMetadataHubsResponseToJSON( - getMetadataHubsResponse: GetMetadataHubsResponse, -): string { - return JSON.stringify( - GetMetadataHubsResponse$outboundSchema.parse(getMetadataHubsResponse), - ); -} - export function getMetadataHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getmetadataitem.ts b/src/sdk/models/operations/getmetadataitem.ts index c27ede97..92a8c90a 100644 --- a/src/sdk/models/operations/getmetadataitem.ts +++ b/src/sdk/models/operations/getmetadataitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -156,157 +156,6 @@ export type GetMetadataItemResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetMetadataItemGlobals$inboundSchema: z.ZodType< - GetMetadataItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetMetadataItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetMetadataItemGlobals$outboundSchema: z.ZodType< - GetMetadataItemGlobals$Outbound, - z.ZodTypeDef, - GetMetadataItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataItemGlobals$ { - /** @deprecated use `GetMetadataItemGlobals$inboundSchema` instead. */ - export const inboundSchema = GetMetadataItemGlobals$inboundSchema; - /** @deprecated use `GetMetadataItemGlobals$outboundSchema` instead. */ - export const outboundSchema = GetMetadataItemGlobals$outboundSchema; - /** @deprecated use `GetMetadataItemGlobals$Outbound` instead. */ - export type Outbound = GetMetadataItemGlobals$Outbound; -} - -export function getMetadataItemGlobalsToJSON( - getMetadataItemGlobals: GetMetadataItemGlobals, -): string { - return JSON.stringify( - GetMetadataItemGlobals$outboundSchema.parse(getMetadataItemGlobals), - ); -} - -export function getMetadataItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetadataItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetadataItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetMetadataItemRequest$inboundSchema: z.ZodType< - GetMetadataItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.array(z.string()), - asyncCheckFiles: shared.BoolInt$inboundSchema.optional(), - asyncRefreshLocalMediaAgent: shared.BoolInt$inboundSchema.optional(), - asyncRefreshAnalysis: shared.BoolInt$inboundSchema.optional(), - checkFiles: shared.BoolInt$inboundSchema.optional(), - skipRefresh: shared.BoolInt$inboundSchema.optional(), - checkFileAvailability: shared.BoolInt$inboundSchema.optional(), - asyncAugmentMetadata: shared.BoolInt$inboundSchema.optional(), - augmentCount: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetMetadataItemRequest$Outbound = { accepts: string; @@ -372,19 +221,6 @@ export const GetMetadataItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataItemRequest$ { - /** @deprecated use `GetMetadataItemRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetadataItemRequest$inboundSchema; - /** @deprecated use `GetMetadataItemRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetadataItemRequest$outboundSchema; - /** @deprecated use `GetMetadataItemRequest$Outbound` instead. */ - export type Outbound = GetMetadataItemRequest$Outbound; -} - export function getMetadataItemRequestToJSON( getMetadataItemRequest: GetMetadataItemRequest, ): string { @@ -393,16 +229,6 @@ export function getMetadataItemRequestToJSON( ); } -export function getMetadataItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetadataItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetadataItemRequest' from JSON`, - ); -} - /** @internal */ export const GetMetadataItemResponse$inboundSchema: z.ZodType< GetMetadataItemResponse, @@ -414,7 +240,7 @@ export const GetMetadataItemResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -425,62 +251,6 @@ export const GetMetadataItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetMetadataItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetMetadataItemResponse$outboundSchema: z.ZodType< - GetMetadataItemResponse$Outbound, - z.ZodTypeDef, - GetMetadataItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataItemResponse$ { - /** @deprecated use `GetMetadataItemResponse$inboundSchema` instead. */ - export const inboundSchema = GetMetadataItemResponse$inboundSchema; - /** @deprecated use `GetMetadataItemResponse$outboundSchema` instead. */ - export const outboundSchema = GetMetadataItemResponse$outboundSchema; - /** @deprecated use `GetMetadataItemResponse$Outbound` instead. */ - export type Outbound = GetMetadataItemResponse$Outbound; -} - -export function getMetadataItemResponseToJSON( - getMetadataItemResponse: GetMetadataItemResponse, -): string { - return JSON.stringify( - GetMetadataItemResponse$outboundSchema.parse(getMetadataItemResponse), - ); -} - export function getMetadataItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getnotifications.ts b/src/sdk/models/operations/getnotifications.ts index 56f8a2ce..b3d64df5 100644 --- a/src/sdk/models/operations/getnotifications.ts +++ b/src/sdk/models/operations/getnotifications.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,149 +133,6 @@ export type GetNotificationsResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetNotificationsGlobals$inboundSchema: z.ZodType< - GetNotificationsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetNotificationsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetNotificationsGlobals$outboundSchema: z.ZodType< - GetNotificationsGlobals$Outbound, - z.ZodTypeDef, - GetNotificationsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNotificationsGlobals$ { - /** @deprecated use `GetNotificationsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetNotificationsGlobals$inboundSchema; - /** @deprecated use `GetNotificationsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetNotificationsGlobals$outboundSchema; - /** @deprecated use `GetNotificationsGlobals$Outbound` instead. */ - export type Outbound = GetNotificationsGlobals$Outbound; -} - -export function getNotificationsGlobalsToJSON( - getNotificationsGlobals: GetNotificationsGlobals, -): string { - return JSON.stringify( - GetNotificationsGlobals$outboundSchema.parse(getNotificationsGlobals), - ); -} - -export function getNotificationsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNotificationsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNotificationsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetNotificationsRequest$inboundSchema: z.ZodType< - GetNotificationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - filter: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetNotificationsRequest$Outbound = { accepts: string; @@ -325,19 +182,6 @@ export const GetNotificationsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNotificationsRequest$ { - /** @deprecated use `GetNotificationsRequest$inboundSchema` instead. */ - export const inboundSchema = GetNotificationsRequest$inboundSchema; - /** @deprecated use `GetNotificationsRequest$outboundSchema` instead. */ - export const outboundSchema = GetNotificationsRequest$outboundSchema; - /** @deprecated use `GetNotificationsRequest$Outbound` instead. */ - export type Outbound = GetNotificationsRequest$Outbound; -} - export function getNotificationsRequestToJSON( getNotificationsRequest: GetNotificationsRequest, ): string { @@ -346,16 +190,6 @@ export function getNotificationsRequestToJSON( ); } -export function getNotificationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNotificationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNotificationsRequest' from JSON`, - ); -} - /** @internal */ export const GetNotificationsResponse$inboundSchema: z.ZodType< GetNotificationsResponse, @@ -375,56 +209,6 @@ export const GetNotificationsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetNotificationsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetNotificationsResponse$outboundSchema: z.ZodType< - GetNotificationsResponse$Outbound, - z.ZodTypeDef, - GetNotificationsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNotificationsResponse$ { - /** @deprecated use `GetNotificationsResponse$inboundSchema` instead. */ - export const inboundSchema = GetNotificationsResponse$inboundSchema; - /** @deprecated use `GetNotificationsResponse$outboundSchema` instead. */ - export const outboundSchema = GetNotificationsResponse$outboundSchema; - /** @deprecated use `GetNotificationsResponse$Outbound` instead. */ - export type Outbound = GetNotificationsResponse$Outbound; -} - -export function getNotificationsResponseToJSON( - getNotificationsResponse: GetNotificationsResponse, -): string { - return JSON.stringify( - GetNotificationsResponse$outboundSchema.parse(getNotificationsResponse), - ); -} - export function getNotificationsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpartindex.ts b/src/sdk/models/operations/getpartindex.ts index b6eb927d..1a54bdce 100644 --- a/src/sdk/models/operations/getpartindex.ts +++ b/src/sdk/models/operations/getpartindex.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -141,171 +141,10 @@ export type GetPartIndexResponse = { responseStream?: ReadableStream | undefined; }; -/** @internal */ -export const GetPartIndexGlobals$inboundSchema: z.ZodType< - GetPartIndexGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPartIndexGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPartIndexGlobals$outboundSchema: z.ZodType< - GetPartIndexGlobals$Outbound, - z.ZodTypeDef, - GetPartIndexGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPartIndexGlobals$ { - /** @deprecated use `GetPartIndexGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPartIndexGlobals$inboundSchema; - /** @deprecated use `GetPartIndexGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPartIndexGlobals$outboundSchema; - /** @deprecated use `GetPartIndexGlobals$Outbound` instead. */ - export type Outbound = GetPartIndexGlobals$Outbound; -} - -export function getPartIndexGlobalsToJSON( - getPartIndexGlobals: GetPartIndexGlobals, -): string { - return JSON.stringify( - GetPartIndexGlobals$outboundSchema.parse(getPartIndexGlobals), - ); -} - -export function getPartIndexGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPartIndexGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPartIndexGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPartIndexIndex$inboundSchema: z.ZodNativeEnum< - typeof GetPartIndexIndex -> = z.nativeEnum(GetPartIndexIndex); - /** @internal */ export const GetPartIndexIndex$outboundSchema: z.ZodNativeEnum< typeof GetPartIndexIndex -> = GetPartIndexIndex$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPartIndexIndex$ { - /** @deprecated use `GetPartIndexIndex$inboundSchema` instead. */ - export const inboundSchema = GetPartIndexIndex$inboundSchema; - /** @deprecated use `GetPartIndexIndex$outboundSchema` instead. */ - export const outboundSchema = GetPartIndexIndex$outboundSchema; -} - -/** @internal */ -export const GetPartIndexRequest$inboundSchema: z.ZodType< - GetPartIndexRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - partId: z.number().int(), - index: GetPartIndexIndex$inboundSchema, - interval: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(GetPartIndexIndex); /** @internal */ export type GetPartIndexRequest$Outbound = { @@ -360,19 +199,6 @@ export const GetPartIndexRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPartIndexRequest$ { - /** @deprecated use `GetPartIndexRequest$inboundSchema` instead. */ - export const inboundSchema = GetPartIndexRequest$inboundSchema; - /** @deprecated use `GetPartIndexRequest$outboundSchema` instead. */ - export const outboundSchema = GetPartIndexRequest$outboundSchema; - /** @deprecated use `GetPartIndexRequest$Outbound` instead. */ - export type Outbound = GetPartIndexRequest$Outbound; -} - export function getPartIndexRequestToJSON( getPartIndexRequest: GetPartIndexRequest, ): string { @@ -381,16 +207,6 @@ export function getPartIndexRequestToJSON( ); } -export function getPartIndexRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPartIndexRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPartIndexRequest' from JSON`, - ); -} - /** @internal */ export const GetPartIndexResponse$inboundSchema: z.ZodType< GetPartIndexResponse, @@ -410,56 +226,6 @@ export const GetPartIndexResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPartIndexResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const GetPartIndexResponse$outboundSchema: z.ZodType< - GetPartIndexResponse$Outbound, - z.ZodTypeDef, - GetPartIndexResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPartIndexResponse$ { - /** @deprecated use `GetPartIndexResponse$inboundSchema` instead. */ - export const inboundSchema = GetPartIndexResponse$inboundSchema; - /** @deprecated use `GetPartIndexResponse$outboundSchema` instead. */ - export const outboundSchema = GetPartIndexResponse$outboundSchema; - /** @deprecated use `GetPartIndexResponse$Outbound` instead. */ - export type Outbound = GetPartIndexResponse$Outbound; -} - -export function getPartIndexResponseToJSON( - getPartIndexResponse: GetPartIndexResponse, -): string { - return JSON.stringify( - GetPartIndexResponse$outboundSchema.parse(getPartIndexResponse), - ); -} - export function getPartIndexResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getperson.ts b/src/sdk/models/operations/getperson.ts index c7750b26..f949bb4c 100644 --- a/src/sdk/models/operations/getperson.ts +++ b/src/sdk/models/operations/getperson.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -158,149 +158,6 @@ export type GetPersonResponse = { object?: GetPersonResponseBody | undefined; }; -/** @internal */ -export const GetPersonGlobals$inboundSchema: z.ZodType< - GetPersonGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPersonGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPersonGlobals$outboundSchema: z.ZodType< - GetPersonGlobals$Outbound, - z.ZodTypeDef, - GetPersonGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPersonGlobals$ { - /** @deprecated use `GetPersonGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPersonGlobals$inboundSchema; - /** @deprecated use `GetPersonGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPersonGlobals$outboundSchema; - /** @deprecated use `GetPersonGlobals$Outbound` instead. */ - export type Outbound = GetPersonGlobals$Outbound; -} - -export function getPersonGlobalsToJSON( - getPersonGlobals: GetPersonGlobals, -): string { - return JSON.stringify( - GetPersonGlobals$outboundSchema.parse(getPersonGlobals), - ); -} - -export function getPersonGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPersonGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPersonGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPersonRequest$inboundSchema: z.ZodType< - GetPersonRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - personId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPersonRequest$Outbound = { accepts: string; @@ -350,19 +207,6 @@ export const GetPersonRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPersonRequest$ { - /** @deprecated use `GetPersonRequest$inboundSchema` instead. */ - export const inboundSchema = GetPersonRequest$inboundSchema; - /** @deprecated use `GetPersonRequest$outboundSchema` instead. */ - export const outboundSchema = GetPersonRequest$outboundSchema; - /** @deprecated use `GetPersonRequest$Outbound` instead. */ - export type Outbound = GetPersonRequest$Outbound; -} - export function getPersonRequestToJSON( getPersonRequest: GetPersonRequest, ): string { @@ -371,16 +215,6 @@ export function getPersonRequestToJSON( ); } -export function getPersonRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPersonRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPersonRequest' from JSON`, - ); -} - /** @internal */ export const GetPersonMediaContainer$inboundSchema: z.ZodType< GetPersonMediaContainer, @@ -398,53 +232,6 @@ export const GetPersonMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPersonMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetPersonMediaContainer$outboundSchema: z.ZodType< - GetPersonMediaContainer$Outbound, - z.ZodTypeDef, - GetPersonMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(shared.Tag$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPersonMediaContainer$ { - /** @deprecated use `GetPersonMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetPersonMediaContainer$inboundSchema; - /** @deprecated use `GetPersonMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetPersonMediaContainer$outboundSchema; - /** @deprecated use `GetPersonMediaContainer$Outbound` instead. */ - export type Outbound = GetPersonMediaContainer$Outbound; -} - -export function getPersonMediaContainerToJSON( - getPersonMediaContainer: GetPersonMediaContainer, -): string { - return JSON.stringify( - GetPersonMediaContainer$outboundSchema.parse(getPersonMediaContainer), - ); -} - export function getPersonMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -469,46 +256,6 @@ export const GetPersonResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPersonResponseBody$Outbound = { - MediaContainer?: GetPersonMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetPersonResponseBody$outboundSchema: z.ZodType< - GetPersonResponseBody$Outbound, - z.ZodTypeDef, - GetPersonResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetPersonMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPersonResponseBody$ { - /** @deprecated use `GetPersonResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetPersonResponseBody$inboundSchema; - /** @deprecated use `GetPersonResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetPersonResponseBody$outboundSchema; - /** @deprecated use `GetPersonResponseBody$Outbound` instead. */ - export type Outbound = GetPersonResponseBody$Outbound; -} - -export function getPersonResponseBodyToJSON( - getPersonResponseBody: GetPersonResponseBody, -): string { - return JSON.stringify( - GetPersonResponseBody$outboundSchema.parse(getPersonResponseBody), - ); -} - export function getPersonResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -537,55 +284,6 @@ export const GetPersonResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPersonResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetPersonResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetPersonResponse$outboundSchema: z.ZodType< - GetPersonResponse$Outbound, - z.ZodTypeDef, - GetPersonResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetPersonResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPersonResponse$ { - /** @deprecated use `GetPersonResponse$inboundSchema` instead. */ - export const inboundSchema = GetPersonResponse$inboundSchema; - /** @deprecated use `GetPersonResponse$outboundSchema` instead. */ - export const outboundSchema = GetPersonResponse$outboundSchema; - /** @deprecated use `GetPersonResponse$Outbound` instead. */ - export type Outbound = GetPersonResponse$Outbound; -} - -export function getPersonResponseToJSON( - getPersonResponse: GetPersonResponse, -): string { - return JSON.stringify( - GetPersonResponse$outboundSchema.parse(getPersonResponse), - ); -} - export function getPersonResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylist.ts b/src/sdk/models/operations/getplaylist.ts index a584ca46..65f0deab 100644 --- a/src/sdk/models/operations/getplaylist.ts +++ b/src/sdk/models/operations/getplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,149 +128,6 @@ export type GetPlaylistResponse = { | undefined; }; -/** @internal */ -export const GetPlaylistGlobals$inboundSchema: z.ZodType< - GetPlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGlobals$outboundSchema: z.ZodType< - GetPlaylistGlobals$Outbound, - z.ZodTypeDef, - GetPlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGlobals$ { - /** @deprecated use `GetPlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGlobals$inboundSchema; - /** @deprecated use `GetPlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGlobals$outboundSchema; - /** @deprecated use `GetPlaylistGlobals$Outbound` instead. */ - export type Outbound = GetPlaylistGlobals$Outbound; -} - -export function getPlaylistGlobalsToJSON( - getPlaylistGlobals: GetPlaylistGlobals, -): string { - return JSON.stringify( - GetPlaylistGlobals$outboundSchema.parse(getPlaylistGlobals), - ); -} - -export function getPlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistRequest$inboundSchema: z.ZodType< - GetPlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlaylistRequest$Outbound = { accepts: string; @@ -320,19 +177,6 @@ export const GetPlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistRequest$ { - /** @deprecated use `GetPlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistRequest$inboundSchema; - /** @deprecated use `GetPlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistRequest$outboundSchema; - /** @deprecated use `GetPlaylistRequest$Outbound` instead. */ - export type Outbound = GetPlaylistRequest$Outbound; -} - export function getPlaylistRequestToJSON( getPlaylistRequest: GetPlaylistRequest, ): string { @@ -341,16 +185,6 @@ export function getPlaylistRequestToJSON( ); } -export function getPlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistRequest' from JSON`, - ); -} - /** @internal */ export const GetPlaylistResponse$inboundSchema: z.ZodType< GetPlaylistResponse, @@ -371,59 +205,6 @@ export const GetPlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetPlaylistResponse$outboundSchema: z.ZodType< - GetPlaylistResponse$Outbound, - z.ZodTypeDef, - GetPlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistResponse$ { - /** @deprecated use `GetPlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistResponse$inboundSchema; - /** @deprecated use `GetPlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistResponse$outboundSchema; - /** @deprecated use `GetPlaylistResponse$Outbound` instead. */ - export type Outbound = GetPlaylistResponse$Outbound; -} - -export function getPlaylistResponseToJSON( - getPlaylistResponse: GetPlaylistResponse, -): string { - return JSON.stringify( - GetPlaylistResponse$outboundSchema.parse(getPlaylistResponse), - ); -} - export function getPlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistgenerator.ts b/src/sdk/models/operations/getplaylistgenerator.ts index b1148ef7..375c4e55 100644 --- a/src/sdk/models/operations/getplaylistgenerator.ts +++ b/src/sdk/models/operations/getplaylistgenerator.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -274,152 +274,6 @@ export type GetPlaylistGeneratorResponse = { object?: GetPlaylistGeneratorResponseBody | undefined; }; -/** @internal */ -export const GetPlaylistGeneratorGlobals$inboundSchema: z.ZodType< - GetPlaylistGeneratorGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlaylistGeneratorGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorGlobals$outboundSchema: z.ZodType< - GetPlaylistGeneratorGlobals$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorGlobals$ { - /** @deprecated use `GetPlaylistGeneratorGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorGlobals$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorGlobals$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorGlobals$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorGlobals$Outbound; -} - -export function getPlaylistGeneratorGlobalsToJSON( - getPlaylistGeneratorGlobals: GetPlaylistGeneratorGlobals, -): string { - return JSON.stringify( - GetPlaylistGeneratorGlobals$outboundSchema.parse( - getPlaylistGeneratorGlobals, - ), - ); -} - -export function getPlaylistGeneratorGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorRequest$inboundSchema: z.ZodType< - GetPlaylistGeneratorRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlaylistGeneratorRequest$Outbound = { accepts: string; @@ -471,19 +325,6 @@ export const GetPlaylistGeneratorRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorRequest$ { - /** @deprecated use `GetPlaylistGeneratorRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorRequest$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorRequest$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorRequest$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorRequest$Outbound; -} - export function getPlaylistGeneratorRequestToJSON( getPlaylistGeneratorRequest: GetPlaylistGeneratorRequest, ): string { @@ -494,16 +335,6 @@ export function getPlaylistGeneratorRequestToJSON( ); } -export function getPlaylistGeneratorRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorRequest' from JSON`, - ); -} - /** @internal */ export const GetPlaylistGeneratorDevice$inboundSchema: z.ZodType< GetPlaylistGeneratorDevice, @@ -513,41 +344,6 @@ export const GetPlaylistGeneratorDevice$inboundSchema: z.ZodType< profile: z.string().optional(), }); -/** @internal */ -export type GetPlaylistGeneratorDevice$Outbound = { - profile?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorDevice$outboundSchema: z.ZodType< - GetPlaylistGeneratorDevice$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorDevice -> = z.object({ - profile: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorDevice$ { - /** @deprecated use `GetPlaylistGeneratorDevice$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorDevice$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorDevice$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorDevice$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorDevice$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorDevice$Outbound; -} - -export function getPlaylistGeneratorDeviceToJSON( - getPlaylistGeneratorDevice: GetPlaylistGeneratorDevice, -): string { - return JSON.stringify( - GetPlaylistGeneratorDevice$outboundSchema.parse(getPlaylistGeneratorDevice), - ); -} - export function getPlaylistGeneratorDeviceFromJSON( jsonString: string, ): SafeParseResult { @@ -568,45 +364,6 @@ export const GetPlaylistGeneratorLocation$inboundSchema: z.ZodType< uri: z.string().optional(), }); -/** @internal */ -export type GetPlaylistGeneratorLocation$Outbound = { - librarySectionID?: number | undefined; - uri?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorLocation$outboundSchema: z.ZodType< - GetPlaylistGeneratorLocation$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorLocation -> = z.object({ - librarySectionID: z.number().int().optional(), - uri: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorLocation$ { - /** @deprecated use `GetPlaylistGeneratorLocation$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorLocation$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorLocation$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorLocation$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorLocation$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorLocation$Outbound; -} - -export function getPlaylistGeneratorLocationToJSON( - getPlaylistGeneratorLocation: GetPlaylistGeneratorLocation, -): string { - return JSON.stringify( - GetPlaylistGeneratorLocation$outboundSchema.parse( - getPlaylistGeneratorLocation, - ), - ); -} - export function getPlaylistGeneratorLocationFromJSON( jsonString: string, ): SafeParseResult { @@ -622,43 +379,11 @@ export const AdvancedSubtitles$inboundSchema: z.ZodNativeEnum< typeof AdvancedSubtitles > = z.nativeEnum(AdvancedSubtitles); -/** @internal */ -export const AdvancedSubtitles$outboundSchema: z.ZodNativeEnum< - typeof AdvancedSubtitles -> = AdvancedSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdvancedSubtitles$ { - /** @deprecated use `AdvancedSubtitles$inboundSchema` instead. */ - export const inboundSchema = AdvancedSubtitles$inboundSchema; - /** @deprecated use `AdvancedSubtitles$outboundSchema` instead. */ - export const outboundSchema = AdvancedSubtitles$outboundSchema; -} - /** @internal */ export const GetPlaylistGeneratorSubtitles$inboundSchema: z.ZodNativeEnum< typeof GetPlaylistGeneratorSubtitles > = z.nativeEnum(GetPlaylistGeneratorSubtitles); -/** @internal */ -export const GetPlaylistGeneratorSubtitles$outboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorSubtitles -> = GetPlaylistGeneratorSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorSubtitles$ { - /** @deprecated use `GetPlaylistGeneratorSubtitles$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorSubtitles$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorSubtitles$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorSubtitles$outboundSchema; -} - /** @internal */ export const MediaSettings$inboundSchema: z.ZodType< MediaSettings, @@ -687,75 +412,6 @@ export const MediaSettings$inboundSchema: z.ZodType< videoResolution: z.string().optional(), }); -/** @internal */ -export type MediaSettings$Outbound = { - advancedSubtitles?: string | undefined; - audioBoost?: number | undefined; - audioChannelCount?: number | undefined; - autoAdjustQuality?: boolean | undefined; - autoAdjustSubtitle?: boolean | undefined; - directPlay?: boolean | undefined; - directStream?: boolean | undefined; - directStreamAudio?: boolean | undefined; - disableResolutionRotation?: boolean | undefined; - maxVideoBitrate?: number | undefined; - musicBitrate?: number | undefined; - peakBitrate?: number | undefined; - photoQuality?: number | undefined; - photoResolution?: string | undefined; - secondsPerSegment?: number | undefined; - subtitles?: string | undefined; - subtitleSize?: number | undefined; - videoBitrate?: number | undefined; - videoQuality?: number | undefined; - videoResolution?: string | undefined; -}; - -/** @internal */ -export const MediaSettings$outboundSchema: z.ZodType< - MediaSettings$Outbound, - z.ZodTypeDef, - MediaSettings -> = z.object({ - advancedSubtitles: AdvancedSubtitles$outboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: z.boolean().optional(), - autoAdjustSubtitle: z.boolean().optional(), - directPlay: z.boolean().optional(), - directStream: z.boolean().optional(), - directStreamAudio: z.boolean().optional(), - disableResolutionRotation: z.boolean().optional(), - maxVideoBitrate: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - peakBitrate: z.number().int().optional(), - photoQuality: z.number().int().optional(), - photoResolution: z.string().optional(), - secondsPerSegment: z.number().int().optional(), - subtitles: GetPlaylistGeneratorSubtitles$outboundSchema.optional(), - subtitleSize: z.number().int().optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaSettings$ { - /** @deprecated use `MediaSettings$inboundSchema` instead. */ - export const inboundSchema = MediaSettings$inboundSchema; - /** @deprecated use `MediaSettings$outboundSchema` instead. */ - export const outboundSchema = MediaSettings$outboundSchema; - /** @deprecated use `MediaSettings$Outbound` instead. */ - export type Outbound = MediaSettings$Outbound; -} - -export function mediaSettingsToJSON(mediaSettings: MediaSettings): string { - return JSON.stringify(MediaSettings$outboundSchema.parse(mediaSettings)); -} - export function mediaSettingsFromJSON( jsonString: string, ): SafeParseResult { @@ -771,22 +427,6 @@ export const GetPlaylistGeneratorScope$inboundSchema: z.ZodNativeEnum< typeof GetPlaylistGeneratorScope > = z.nativeEnum(GetPlaylistGeneratorScope); -/** @internal */ -export const GetPlaylistGeneratorScope$outboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorScope -> = GetPlaylistGeneratorScope$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorScope$ { - /** @deprecated use `GetPlaylistGeneratorScope$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorScope$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorScope$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorScope$outboundSchema; -} - /** @internal */ export const GetPlaylistGeneratorPolicy$inboundSchema: z.ZodType< GetPlaylistGeneratorPolicy, @@ -798,45 +438,6 @@ export const GetPlaylistGeneratorPolicy$inboundSchema: z.ZodType< value: z.number().int().optional(), }); -/** @internal */ -export type GetPlaylistGeneratorPolicy$Outbound = { - scope?: string | undefined; - unwatched?: boolean | undefined; - value?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorPolicy$outboundSchema: z.ZodType< - GetPlaylistGeneratorPolicy$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorPolicy -> = z.object({ - scope: GetPlaylistGeneratorScope$outboundSchema.optional(), - unwatched: z.boolean().optional(), - value: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorPolicy$ { - /** @deprecated use `GetPlaylistGeneratorPolicy$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorPolicy$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorPolicy$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorPolicy$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorPolicy$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorPolicy$Outbound; -} - -export function getPlaylistGeneratorPolicyToJSON( - getPlaylistGeneratorPolicy: GetPlaylistGeneratorPolicy, -): string { - return JSON.stringify( - GetPlaylistGeneratorPolicy$outboundSchema.parse(getPlaylistGeneratorPolicy), - ); -} - export function getPlaylistGeneratorPolicyFromJSON( jsonString: string, ): SafeParseResult { @@ -852,22 +453,6 @@ export const GetPlaylistGeneratorState$inboundSchema: z.ZodNativeEnum< typeof GetPlaylistGeneratorState > = z.nativeEnum(GetPlaylistGeneratorState); -/** @internal */ -export const GetPlaylistGeneratorState$outboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorState -> = GetPlaylistGeneratorState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorState$ { - /** @deprecated use `GetPlaylistGeneratorState$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorState$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorState$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorState$outboundSchema; -} - /** @internal */ export const GetPlaylistGeneratorStatus$inboundSchema: z.ZodType< GetPlaylistGeneratorStatus, @@ -881,49 +466,6 @@ export const GetPlaylistGeneratorStatus$inboundSchema: z.ZodType< totalSize: z.number().int().optional(), }); -/** @internal */ -export type GetPlaylistGeneratorStatus$Outbound = { - itemsCompleteCount?: number | undefined; - itemsCount?: number | undefined; - itemsSuccessfulCount?: number | undefined; - state?: string | undefined; - totalSize?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorStatus$outboundSchema: z.ZodType< - GetPlaylistGeneratorStatus$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorStatus -> = z.object({ - itemsCompleteCount: z.number().int().optional(), - itemsCount: z.number().int().optional(), - itemsSuccessfulCount: z.number().int().optional(), - state: GetPlaylistGeneratorState$outboundSchema.optional(), - totalSize: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorStatus$ { - /** @deprecated use `GetPlaylistGeneratorStatus$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorStatus$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorStatus$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorStatus$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorStatus$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorStatus$Outbound; -} - -export function getPlaylistGeneratorStatusToJSON( - getPlaylistGeneratorStatus: GetPlaylistGeneratorStatus, -): string { - return JSON.stringify( - GetPlaylistGeneratorStatus$outboundSchema.parse(getPlaylistGeneratorStatus), - ); -} - export function getPlaylistGeneratorStatusFromJSON( jsonString: string, ): SafeParseResult { @@ -939,22 +481,6 @@ export const GetPlaylistGeneratorType$inboundSchema: z.ZodNativeEnum< typeof GetPlaylistGeneratorType > = z.nativeEnum(GetPlaylistGeneratorType); -/** @internal */ -export const GetPlaylistGeneratorType$outboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorType -> = GetPlaylistGeneratorType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorType$ { - /** @deprecated use `GetPlaylistGeneratorType$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorType$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorType$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorType$outboundSchema; -} - /** @internal */ export const GetPlaylistGeneratorItem$inboundSchema: z.ZodType< GetPlaylistGeneratorItem, @@ -982,70 +508,6 @@ export const GetPlaylistGeneratorItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorItem$Outbound = { - composite?: string | undefined; - Device?: GetPlaylistGeneratorDevice$Outbound | undefined; - id?: number | undefined; - Location?: GetPlaylistGeneratorLocation$Outbound | undefined; - MediaSettings?: MediaSettings$Outbound | undefined; - Policy?: GetPlaylistGeneratorPolicy$Outbound | undefined; - Status?: GetPlaylistGeneratorStatus$Outbound | undefined; - target?: string | undefined; - targetTagID?: number | undefined; - title?: string | undefined; - type?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorItem$outboundSchema: z.ZodType< - GetPlaylistGeneratorItem$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorItem -> = z.object({ - composite: z.string().optional(), - device: z.lazy(() => GetPlaylistGeneratorDevice$outboundSchema).optional(), - id: z.number().int().optional(), - location: z.lazy(() => GetPlaylistGeneratorLocation$outboundSchema) - .optional(), - mediaSettings: z.lazy(() => MediaSettings$outboundSchema).optional(), - policy: z.lazy(() => GetPlaylistGeneratorPolicy$outboundSchema).optional(), - status: z.lazy(() => GetPlaylistGeneratorStatus$outboundSchema).optional(), - target: z.string().optional(), - targetTagID: z.number().int().optional(), - title: z.string().optional(), - type: GetPlaylistGeneratorType$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - location: "Location", - mediaSettings: "MediaSettings", - policy: "Policy", - status: "Status", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItem$ { - /** @deprecated use `GetPlaylistGeneratorItem$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorItem$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItem$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorItem$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItem$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItem$Outbound; -} - -export function getPlaylistGeneratorItemToJSON( - getPlaylistGeneratorItem: GetPlaylistGeneratorItem, -): string { - return JSON.stringify( - GetPlaylistGeneratorItem$outboundSchema.parse(getPlaylistGeneratorItem), - ); -} - export function getPlaylistGeneratorItemFromJSON( jsonString: string, ): SafeParseResult { @@ -1074,57 +536,6 @@ export const GetPlaylistGeneratorMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Item?: Array | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorMediaContainer$outboundSchema: z.ZodType< - GetPlaylistGeneratorMediaContainer$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - item: z.array(z.lazy(() => GetPlaylistGeneratorItem$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - item: "Item", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorMediaContainer$ { - /** @deprecated use `GetPlaylistGeneratorMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorMediaContainer$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorMediaContainer$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorMediaContainer$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorMediaContainer$Outbound; -} - -export function getPlaylistGeneratorMediaContainerToJSON( - getPlaylistGeneratorMediaContainer: GetPlaylistGeneratorMediaContainer, -): string { - return JSON.stringify( - GetPlaylistGeneratorMediaContainer$outboundSchema.parse( - getPlaylistGeneratorMediaContainer, - ), - ); -} - export function getPlaylistGeneratorMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -1150,49 +561,6 @@ export const GetPlaylistGeneratorResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorResponseBody$Outbound = { - MediaContainer?: GetPlaylistGeneratorMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorResponseBody$outboundSchema: z.ZodType< - GetPlaylistGeneratorResponseBody$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetPlaylistGeneratorMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorResponseBody$ { - /** @deprecated use `GetPlaylistGeneratorResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorResponseBody$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorResponseBody$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorResponseBody$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorResponseBody$Outbound; -} - -export function getPlaylistGeneratorResponseBodyToJSON( - getPlaylistGeneratorResponseBody: GetPlaylistGeneratorResponseBody, -): string { - return JSON.stringify( - GetPlaylistGeneratorResponseBody$outboundSchema.parse( - getPlaylistGeneratorResponseBody, - ), - ); -} - export function getPlaylistGeneratorResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1222,58 +590,6 @@ export const GetPlaylistGeneratorResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetPlaylistGeneratorResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorResponse$outboundSchema: z.ZodType< - GetPlaylistGeneratorResponse$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetPlaylistGeneratorResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorResponse$ { - /** @deprecated use `GetPlaylistGeneratorResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorResponse$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorResponse$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorResponse$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorResponse$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorResponse$Outbound; -} - -export function getPlaylistGeneratorResponseToJSON( - getPlaylistGeneratorResponse: GetPlaylistGeneratorResponse, -): string { - return JSON.stringify( - GetPlaylistGeneratorResponse$outboundSchema.parse( - getPlaylistGeneratorResponse, - ), - ); -} - export function getPlaylistGeneratorResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistgeneratoritems.ts b/src/sdk/models/operations/getplaylistgeneratoritems.ts index 311c3598..14105d9f 100644 --- a/src/sdk/models/operations/getplaylistgeneratoritems.ts +++ b/src/sdk/models/operations/getplaylistgeneratoritems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -400,7 +400,7 @@ export type Metadata = { * The error which could have occurred (or `good`) */ processingStateContext?: ProcessingStateContext | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -454,152 +454,6 @@ export type GetPlaylistGeneratorItemsResponse = { object?: GetPlaylistGeneratorItemsResponseBody | undefined; }; -/** @internal */ -export const GetPlaylistGeneratorItemsGlobals$inboundSchema: z.ZodType< - GetPlaylistGeneratorItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlaylistGeneratorItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorItemsGlobals$outboundSchema: z.ZodType< - GetPlaylistGeneratorItemsGlobals$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItemsGlobals$ { - /** @deprecated use `GetPlaylistGeneratorItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorItemsGlobals$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorItemsGlobals$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsGlobals$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItemsGlobals$Outbound; -} - -export function getPlaylistGeneratorItemsGlobalsToJSON( - getPlaylistGeneratorItemsGlobals: GetPlaylistGeneratorItemsGlobals, -): string { - return JSON.stringify( - GetPlaylistGeneratorItemsGlobals$outboundSchema.parse( - getPlaylistGeneratorItemsGlobals, - ), - ); -} - -export function getPlaylistGeneratorItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorItemsRequest$inboundSchema: z.ZodType< - GetPlaylistGeneratorItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlaylistGeneratorItemsRequest$Outbound = { accepts: string; @@ -651,19 +505,6 @@ export const GetPlaylistGeneratorItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItemsRequest$ { - /** @deprecated use `GetPlaylistGeneratorItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorItemsRequest$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorItemsRequest$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsRequest$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItemsRequest$Outbound; -} - export function getPlaylistGeneratorItemsRequestToJSON( getPlaylistGeneratorItemsRequest: GetPlaylistGeneratorItemsRequest, ): string { @@ -674,58 +515,16 @@ export function getPlaylistGeneratorItemsRequestToJSON( ); } -export function getPlaylistGeneratorItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorItemsRequest' from JSON`, - ); -} - /** @internal */ export const ProcessingState$inboundSchema: z.ZodNativeEnum< typeof ProcessingState > = z.nativeEnum(ProcessingState); -/** @internal */ -export const ProcessingState$outboundSchema: z.ZodNativeEnum< - typeof ProcessingState -> = ProcessingState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProcessingState$ { - /** @deprecated use `ProcessingState$inboundSchema` instead. */ - export const inboundSchema = ProcessingState$inboundSchema; - /** @deprecated use `ProcessingState$outboundSchema` instead. */ - export const outboundSchema = ProcessingState$outboundSchema; -} - /** @internal */ export const ProcessingStateContext$inboundSchema: z.ZodNativeEnum< typeof ProcessingStateContext > = z.nativeEnum(ProcessingStateContext); -/** @internal */ -export const ProcessingStateContext$outboundSchema: z.ZodNativeEnum< - typeof ProcessingStateContext -> = ProcessingStateContext$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProcessingStateContext$ { - /** @deprecated use `ProcessingStateContext$inboundSchema` instead. */ - export const inboundSchema = ProcessingStateContext$inboundSchema; - /** @deprecated use `ProcessingStateContext$outboundSchema` instead. */ - export const outboundSchema = ProcessingStateContext$outboundSchema; -} - /** @internal */ export const Metadata$inboundSchema: z.ZodType< Metadata, @@ -822,194 +621,6 @@ export const Metadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Metadata$Outbound = { - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - processingState?: string | undefined; - processingStateContext?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Metadata$outboundSchema: z.ZodType< - Metadata$Outbound, - z.ZodTypeDef, - Metadata -> = z.object({ - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(shared.Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(shared.Tag$outboundSchema).optional(), - director: z.array(shared.Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(shared.Filter$outboundSchema).optional(), - genre: z.array(shared.Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(shared.Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(shared.Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(shared.Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(shared.Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(shared.Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(shared.Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(shared.Tag$outboundSchema).optional(), - year: z.number().int().optional(), - processingState: ProcessingState$outboundSchema.optional(), - processingStateContext: ProcessingStateContext$outboundSchema.optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Metadata$ { - /** @deprecated use `Metadata$inboundSchema` instead. */ - export const inboundSchema = Metadata$inboundSchema; - /** @deprecated use `Metadata$outboundSchema` instead. */ - export const outboundSchema = Metadata$outboundSchema; - /** @deprecated use `Metadata$Outbound` instead. */ - export type Outbound = Metadata$Outbound; -} - -export function metadataToJSON(metadata: Metadata): string { - return JSON.stringify(Metadata$outboundSchema.parse(metadata)); -} - export function metadataFromJSON( jsonString: string, ): SafeParseResult { @@ -1037,58 +648,6 @@ export const GetPlaylistGeneratorItemsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorItemsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Metadata$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorItemsMediaContainer$outboundSchema: z.ZodType< - GetPlaylistGeneratorItemsMediaContainer$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorItemsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.lazy(() => Metadata$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItemsMediaContainer$ { - /** @deprecated use `GetPlaylistGeneratorItemsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - GetPlaylistGeneratorItemsMediaContainer$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorItemsMediaContainer$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsMediaContainer$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItemsMediaContainer$Outbound; -} - -export function getPlaylistGeneratorItemsMediaContainerToJSON( - getPlaylistGeneratorItemsMediaContainer: - GetPlaylistGeneratorItemsMediaContainer, -): string { - return JSON.stringify( - GetPlaylistGeneratorItemsMediaContainer$outboundSchema.parse( - getPlaylistGeneratorItemsMediaContainer, - ), - ); -} - export function getPlaylistGeneratorItemsMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -1120,51 +679,6 @@ export const GetPlaylistGeneratorItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorItemsResponseBody$Outbound = { - MediaContainer?: GetPlaylistGeneratorItemsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorItemsResponseBody$outboundSchema: z.ZodType< - GetPlaylistGeneratorItemsResponseBody$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorItemsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetPlaylistGeneratorItemsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItemsResponseBody$ { - /** @deprecated use `GetPlaylistGeneratorItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = - GetPlaylistGeneratorItemsResponseBody$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorItemsResponseBody$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsResponseBody$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItemsResponseBody$Outbound; -} - -export function getPlaylistGeneratorItemsResponseBodyToJSON( - getPlaylistGeneratorItemsResponseBody: GetPlaylistGeneratorItemsResponseBody, -): string { - return JSON.stringify( - GetPlaylistGeneratorItemsResponseBody$outboundSchema.parse( - getPlaylistGeneratorItemsResponseBody, - ), - ); -} - export function getPlaylistGeneratorItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1195,59 +709,6 @@ export const GetPlaylistGeneratorItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetPlaylistGeneratorItemsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorItemsResponse$outboundSchema: z.ZodType< - GetPlaylistGeneratorItemsResponse$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetPlaylistGeneratorItemsResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorItemsResponse$ { - /** @deprecated use `GetPlaylistGeneratorItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorItemsResponse$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsResponse$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorItemsResponse$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorItemsResponse$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorItemsResponse$Outbound; -} - -export function getPlaylistGeneratorItemsResponseToJSON( - getPlaylistGeneratorItemsResponse: GetPlaylistGeneratorItemsResponse, -): string { - return JSON.stringify( - GetPlaylistGeneratorItemsResponse$outboundSchema.parse( - getPlaylistGeneratorItemsResponse, - ), - ); -} - export function getPlaylistGeneratorItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistgenerators.ts b/src/sdk/models/operations/getplaylistgenerators.ts index d7ab07ad..a4a9ff12 100644 --- a/src/sdk/models/operations/getplaylistgenerators.ts +++ b/src/sdk/models/operations/getplaylistgenerators.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -192,151 +192,6 @@ export type GetPlaylistGeneratorsResponse = { object?: GetPlaylistGeneratorsResponseBody | undefined; }; -/** @internal */ -export const GetPlaylistGeneratorsGlobals$inboundSchema: z.ZodType< - GetPlaylistGeneratorsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlaylistGeneratorsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorsGlobals$outboundSchema: z.ZodType< - GetPlaylistGeneratorsGlobals$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsGlobals$ { - /** @deprecated use `GetPlaylistGeneratorsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorsGlobals$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorsGlobals$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorsGlobals$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorsGlobals$Outbound; -} - -export function getPlaylistGeneratorsGlobalsToJSON( - getPlaylistGeneratorsGlobals: GetPlaylistGeneratorsGlobals, -): string { - return JSON.stringify( - GetPlaylistGeneratorsGlobals$outboundSchema.parse( - getPlaylistGeneratorsGlobals, - ), - ); -} - -export function getPlaylistGeneratorsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistGeneratorsRequest$inboundSchema: z.ZodType< - GetPlaylistGeneratorsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlaylistGeneratorsRequest$Outbound = { accepts: string; @@ -386,19 +241,6 @@ export const GetPlaylistGeneratorsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsRequest$ { - /** @deprecated use `GetPlaylistGeneratorsRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorsRequest$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorsRequest$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorsRequest$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorsRequest$Outbound; -} - export function getPlaylistGeneratorsRequestToJSON( getPlaylistGeneratorsRequest: GetPlaylistGeneratorsRequest, ): string { @@ -409,37 +251,11 @@ export function getPlaylistGeneratorsRequestToJSON( ); } -export function getPlaylistGeneratorsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistGeneratorsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistGeneratorsRequest' from JSON`, - ); -} - /** @internal */ export const GetPlaylistGeneratorsType$inboundSchema: z.ZodNativeEnum< typeof GetPlaylistGeneratorsType > = z.nativeEnum(GetPlaylistGeneratorsType); -/** @internal */ -export const GetPlaylistGeneratorsType$outboundSchema: z.ZodNativeEnum< - typeof GetPlaylistGeneratorsType -> = GetPlaylistGeneratorsType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsType$ { - /** @deprecated use `GetPlaylistGeneratorsType$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorsType$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsType$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorsType$outboundSchema; -} - /** @internal */ export const PlayQueueGenerator$inboundSchema: z.ZodType< PlayQueueGenerator, @@ -455,53 +271,6 @@ export const PlayQueueGenerator$inboundSchema: z.ZodType< uri: z.string().optional(), }); -/** @internal */ -export type PlayQueueGenerator$Outbound = { - changedAt?: number | undefined; - createdAt?: number | undefined; - id?: number | undefined; - playlistID?: number | undefined; - type?: number | undefined; - updatedAt?: number | undefined; - uri?: string | undefined; -}; - -/** @internal */ -export const PlayQueueGenerator$outboundSchema: z.ZodType< - PlayQueueGenerator$Outbound, - z.ZodTypeDef, - PlayQueueGenerator -> = z.object({ - changedAt: z.number().int().optional(), - createdAt: z.number().int().optional(), - id: z.number().int().optional(), - playlistID: z.number().int().optional(), - type: GetPlaylistGeneratorsType$outboundSchema.optional(), - updatedAt: z.number().int().optional(), - uri: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PlayQueueGenerator$ { - /** @deprecated use `PlayQueueGenerator$inboundSchema` instead. */ - export const inboundSchema = PlayQueueGenerator$inboundSchema; - /** @deprecated use `PlayQueueGenerator$outboundSchema` instead. */ - export const outboundSchema = PlayQueueGenerator$outboundSchema; - /** @deprecated use `PlayQueueGenerator$Outbound` instead. */ - export type Outbound = PlayQueueGenerator$Outbound; -} - -export function playQueueGeneratorToJSON( - playQueueGenerator: PlayQueueGenerator, -): string { - return JSON.stringify( - PlayQueueGenerator$outboundSchema.parse(playQueueGenerator), - ); -} - export function playQueueGeneratorFromJSON( jsonString: string, ): SafeParseResult { @@ -530,58 +299,6 @@ export const GetPlaylistGeneratorsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - PlayQueueGenerator?: Array | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorsMediaContainer$outboundSchema: z.ZodType< - GetPlaylistGeneratorsMediaContainer$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - playQueueGenerator: z.array(z.lazy(() => PlayQueueGenerator$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - playQueueGenerator: "PlayQueueGenerator", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsMediaContainer$ { - /** @deprecated use `GetPlaylistGeneratorsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - GetPlaylistGeneratorsMediaContainer$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorsMediaContainer$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorsMediaContainer$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorsMediaContainer$Outbound; -} - -export function getPlaylistGeneratorsMediaContainerToJSON( - getPlaylistGeneratorsMediaContainer: GetPlaylistGeneratorsMediaContainer, -): string { - return JSON.stringify( - GetPlaylistGeneratorsMediaContainer$outboundSchema.parse( - getPlaylistGeneratorsMediaContainer, - ), - ); -} - export function getPlaylistGeneratorsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -608,50 +325,6 @@ export const GetPlaylistGeneratorsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorsResponseBody$Outbound = { - MediaContainer?: GetPlaylistGeneratorsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorsResponseBody$outboundSchema: z.ZodType< - GetPlaylistGeneratorsResponseBody$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetPlaylistGeneratorsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsResponseBody$ { - /** @deprecated use `GetPlaylistGeneratorsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorsResponseBody$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetPlaylistGeneratorsResponseBody$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorsResponseBody$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorsResponseBody$Outbound; -} - -export function getPlaylistGeneratorsResponseBodyToJSON( - getPlaylistGeneratorsResponseBody: GetPlaylistGeneratorsResponseBody, -): string { - return JSON.stringify( - GetPlaylistGeneratorsResponseBody$outboundSchema.parse( - getPlaylistGeneratorsResponseBody, - ), - ); -} - export function getPlaylistGeneratorsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -681,58 +354,6 @@ export const GetPlaylistGeneratorsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistGeneratorsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetPlaylistGeneratorsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetPlaylistGeneratorsResponse$outboundSchema: z.ZodType< - GetPlaylistGeneratorsResponse$Outbound, - z.ZodTypeDef, - GetPlaylistGeneratorsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetPlaylistGeneratorsResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistGeneratorsResponse$ { - /** @deprecated use `GetPlaylistGeneratorsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistGeneratorsResponse$inboundSchema; - /** @deprecated use `GetPlaylistGeneratorsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistGeneratorsResponse$outboundSchema; - /** @deprecated use `GetPlaylistGeneratorsResponse$Outbound` instead. */ - export type Outbound = GetPlaylistGeneratorsResponse$Outbound; -} - -export function getPlaylistGeneratorsResponseToJSON( - getPlaylistGeneratorsResponse: GetPlaylistGeneratorsResponse, -): string { - return JSON.stringify( - GetPlaylistGeneratorsResponse$outboundSchema.parse( - getPlaylistGeneratorsResponse, - ), - ); -} - export function getPlaylistGeneratorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplaylistitems.ts b/src/sdk/models/operations/getplaylistitems.ts index c5fca3d0..870d6431 100644 --- a/src/sdk/models/operations/getplaylistitems.ts +++ b/src/sdk/models/operations/getplaylistitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,150 +131,6 @@ export type GetPlaylistItemsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetPlaylistItemsGlobals$inboundSchema: z.ZodType< - GetPlaylistItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlaylistItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlaylistItemsGlobals$outboundSchema: z.ZodType< - GetPlaylistItemsGlobals$Outbound, - z.ZodTypeDef, - GetPlaylistItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistItemsGlobals$ { - /** @deprecated use `GetPlaylistItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistItemsGlobals$inboundSchema; - /** @deprecated use `GetPlaylistItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistItemsGlobals$outboundSchema; - /** @deprecated use `GetPlaylistItemsGlobals$Outbound` instead. */ - export type Outbound = GetPlaylistItemsGlobals$Outbound; -} - -export function getPlaylistItemsGlobalsToJSON( - getPlaylistItemsGlobals: GetPlaylistItemsGlobals, -): string { - return JSON.stringify( - GetPlaylistItemsGlobals$outboundSchema.parse(getPlaylistItemsGlobals), - ); -} - -export function getPlaylistItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlaylistItemsRequest$inboundSchema: z.ZodType< - GetPlaylistItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - type: z.array(z.number().int()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlaylistItemsRequest$Outbound = { accepts: string; @@ -326,19 +182,6 @@ export const GetPlaylistItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistItemsRequest$ { - /** @deprecated use `GetPlaylistItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistItemsRequest$inboundSchema; - /** @deprecated use `GetPlaylistItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistItemsRequest$outboundSchema; - /** @deprecated use `GetPlaylistItemsRequest$Outbound` instead. */ - export type Outbound = GetPlaylistItemsRequest$Outbound; -} - export function getPlaylistItemsRequestToJSON( getPlaylistItemsRequest: GetPlaylistItemsRequest, ): string { @@ -347,16 +190,6 @@ export function getPlaylistItemsRequestToJSON( ); } -export function getPlaylistItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlaylistItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlaylistItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetPlaylistItemsResponse$inboundSchema: z.ZodType< GetPlaylistItemsResponse, @@ -368,7 +201,7 @@ export const GetPlaylistItemsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -379,62 +212,6 @@ export const GetPlaylistItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlaylistItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetPlaylistItemsResponse$outboundSchema: z.ZodType< - GetPlaylistItemsResponse$Outbound, - z.ZodTypeDef, - GetPlaylistItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistItemsResponse$ { - /** @deprecated use `GetPlaylistItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistItemsResponse$inboundSchema; - /** @deprecated use `GetPlaylistItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistItemsResponse$outboundSchema; - /** @deprecated use `GetPlaylistItemsResponse$Outbound` instead. */ - export type Outbound = GetPlaylistItemsResponse$Outbound; -} - -export function getPlaylistItemsResponseToJSON( - getPlaylistItemsResponse: GetPlaylistItemsResponse, -): string { - return JSON.stringify( - GetPlaylistItemsResponse$outboundSchema.parse(getPlaylistItemsResponse), - ); -} - export function getPlaylistItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getplayqueue.ts b/src/sdk/models/operations/getplayqueue.ts index 67cbe932..4c3e6e4a 100644 --- a/src/sdk/models/operations/getplayqueue.ts +++ b/src/sdk/models/operations/getplayqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -148,154 +148,6 @@ export type GetPlayQueueResponse = { | undefined; }; -/** @internal */ -export const GetPlayQueueGlobals$inboundSchema: z.ZodType< - GetPlayQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPlayQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPlayQueueGlobals$outboundSchema: z.ZodType< - GetPlayQueueGlobals$Outbound, - z.ZodTypeDef, - GetPlayQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlayQueueGlobals$ { - /** @deprecated use `GetPlayQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPlayQueueGlobals$inboundSchema; - /** @deprecated use `GetPlayQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPlayQueueGlobals$outboundSchema; - /** @deprecated use `GetPlayQueueGlobals$Outbound` instead. */ - export type Outbound = GetPlayQueueGlobals$Outbound; -} - -export function getPlayQueueGlobalsToJSON( - getPlayQueueGlobals: GetPlayQueueGlobals, -): string { - return JSON.stringify( - GetPlayQueueGlobals$outboundSchema.parse(getPlayQueueGlobals), - ); -} - -export function getPlayQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlayQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlayQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPlayQueueRequest$inboundSchema: z.ZodType< - GetPlayQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), - own: shared.BoolInt$inboundSchema.optional(), - center: z.string().optional(), - window: z.number().int().optional(), - includeBefore: shared.BoolInt$inboundSchema.optional(), - includeAfter: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPlayQueueRequest$Outbound = { accepts: string; @@ -355,19 +207,6 @@ export const GetPlayQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlayQueueRequest$ { - /** @deprecated use `GetPlayQueueRequest$inboundSchema` instead. */ - export const inboundSchema = GetPlayQueueRequest$inboundSchema; - /** @deprecated use `GetPlayQueueRequest$outboundSchema` instead. */ - export const outboundSchema = GetPlayQueueRequest$outboundSchema; - /** @deprecated use `GetPlayQueueRequest$Outbound` instead. */ - export type Outbound = GetPlayQueueRequest$Outbound; -} - export function getPlayQueueRequestToJSON( getPlayQueueRequest: GetPlayQueueRequest, ): string { @@ -376,16 +215,6 @@ export function getPlayQueueRequestToJSON( ); } -export function getPlayQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPlayQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPlayQueueRequest' from JSON`, - ); -} - /** @internal */ export const GetPlayQueueResponse$inboundSchema: z.ZodType< GetPlayQueueResponse, @@ -406,59 +235,6 @@ export const GetPlayQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPlayQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetPlayQueueResponse$outboundSchema: z.ZodType< - GetPlayQueueResponse$Outbound, - z.ZodTypeDef, - GetPlayQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlayQueueResponse$ { - /** @deprecated use `GetPlayQueueResponse$inboundSchema` instead. */ - export const inboundSchema = GetPlayQueueResponse$inboundSchema; - /** @deprecated use `GetPlayQueueResponse$outboundSchema` instead. */ - export const outboundSchema = GetPlayQueueResponse$outboundSchema; - /** @deprecated use `GetPlayQueueResponse$Outbound` instead. */ - export type Outbound = GetPlayQueueResponse$Outbound; -} - -export function getPlayQueueResponseToJSON( - getPlayQueueResponse: GetPlayQueueResponse, -): string { - return JSON.stringify( - GetPlayQueueResponse$outboundSchema.parse(getPlayQueueResponse), - ); -} - export function getPlayQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpostplayhubs.ts b/src/sdk/models/operations/getpostplayhubs.ts index 28966487..4f0f12c1 100644 --- a/src/sdk/models/operations/getpostplayhubs.ts +++ b/src/sdk/models/operations/getpostplayhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,151 +135,6 @@ export type GetPostplayHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetPostplayHubsGlobals$inboundSchema: z.ZodType< - GetPostplayHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPostplayHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPostplayHubsGlobals$outboundSchema: z.ZodType< - GetPostplayHubsGlobals$Outbound, - z.ZodTypeDef, - GetPostplayHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPostplayHubsGlobals$ { - /** @deprecated use `GetPostplayHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPostplayHubsGlobals$inboundSchema; - /** @deprecated use `GetPostplayHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPostplayHubsGlobals$outboundSchema; - /** @deprecated use `GetPostplayHubsGlobals$Outbound` instead. */ - export type Outbound = GetPostplayHubsGlobals$Outbound; -} - -export function getPostplayHubsGlobalsToJSON( - getPostplayHubsGlobals: GetPostplayHubsGlobals, -): string { - return JSON.stringify( - GetPostplayHubsGlobals$outboundSchema.parse(getPostplayHubsGlobals), - ); -} - -export function getPostplayHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPostplayHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPostplayHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPostplayHubsRequest$inboundSchema: z.ZodType< - GetPostplayHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), - onlyTransient: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPostplayHubsRequest$Outbound = { accepts: string; @@ -333,19 +188,6 @@ export const GetPostplayHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPostplayHubsRequest$ { - /** @deprecated use `GetPostplayHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetPostplayHubsRequest$inboundSchema; - /** @deprecated use `GetPostplayHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetPostplayHubsRequest$outboundSchema; - /** @deprecated use `GetPostplayHubsRequest$Outbound` instead. */ - export type Outbound = GetPostplayHubsRequest$Outbound; -} - export function getPostplayHubsRequestToJSON( getPostplayHubsRequest: GetPostplayHubsRequest, ): string { @@ -354,16 +196,6 @@ export function getPostplayHubsRequestToJSON( ); } -export function getPostplayHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPostplayHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPostplayHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetPostplayHubsResponse$inboundSchema: z.ZodType< GetPostplayHubsResponse, @@ -375,7 +207,7 @@ export const GetPostplayHubsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,60 +218,6 @@ export const GetPostplayHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPostplayHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithHubs?: shared.MediaContainerWithHubs$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetPostplayHubsResponse$outboundSchema: z.ZodType< - GetPostplayHubsResponse$Outbound, - z.ZodTypeDef, - GetPostplayHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithHubs: shared.MediaContainerWithHubs$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithHubs: "MediaContainerWithHubs", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPostplayHubsResponse$ { - /** @deprecated use `GetPostplayHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPostplayHubsResponse$inboundSchema; - /** @deprecated use `GetPostplayHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPostplayHubsResponse$outboundSchema; - /** @deprecated use `GetPostplayHubsResponse$Outbound` instead. */ - export type Outbound = GetPostplayHubsResponse$Outbound; -} - -export function getPostplayHubsResponseToJSON( - getPostplayHubsResponse: GetPostplayHubsResponse, -): string { - return JSON.stringify( - GetPostplayHubsResponse$outboundSchema.parse(getPostplayHubsResponse), - ); -} - export function getPostplayHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpreference.ts b/src/sdk/models/operations/getpreference.ts index 083aeae7..dde83359 100644 --- a/src/sdk/models/operations/getpreference.ts +++ b/src/sdk/models/operations/getpreference.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetPreferenceResponse = { mediaContainerWithSettings?: shared.MediaContainerWithSettings | undefined; }; -/** @internal */ -export const GetPreferenceGlobals$inboundSchema: z.ZodType< - GetPreferenceGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPreferenceGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPreferenceGlobals$outboundSchema: z.ZodType< - GetPreferenceGlobals$Outbound, - z.ZodTypeDef, - GetPreferenceGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPreferenceGlobals$ { - /** @deprecated use `GetPreferenceGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPreferenceGlobals$inboundSchema; - /** @deprecated use `GetPreferenceGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPreferenceGlobals$outboundSchema; - /** @deprecated use `GetPreferenceGlobals$Outbound` instead. */ - export type Outbound = GetPreferenceGlobals$Outbound; -} - -export function getPreferenceGlobalsToJSON( - getPreferenceGlobals: GetPreferenceGlobals, -): string { - return JSON.stringify( - GetPreferenceGlobals$outboundSchema.parse(getPreferenceGlobals), - ); -} - -export function getPreferenceGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPreferenceGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPreferenceGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPreferenceRequest$inboundSchema: z.ZodType< - GetPreferenceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPreferenceRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetPreferenceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPreferenceRequest$ { - /** @deprecated use `GetPreferenceRequest$inboundSchema` instead. */ - export const inboundSchema = GetPreferenceRequest$inboundSchema; - /** @deprecated use `GetPreferenceRequest$outboundSchema` instead. */ - export const outboundSchema = GetPreferenceRequest$outboundSchema; - /** @deprecated use `GetPreferenceRequest$Outbound` instead. */ - export type Outbound = GetPreferenceRequest$Outbound; -} - export function getPreferenceRequestToJSON( getPreferenceRequest: GetPreferenceRequest, ): string { @@ -339,16 +183,6 @@ export function getPreferenceRequestToJSON( ); } -export function getPreferenceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPreferenceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPreferenceRequest' from JSON`, - ); -} - /** @internal */ export const GetPreferenceResponse$inboundSchema: z.ZodType< GetPreferenceResponse, @@ -369,59 +203,6 @@ export const GetPreferenceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPreferenceResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSettings?: - | shared.MediaContainerWithSettings$Outbound - | undefined; -}; - -/** @internal */ -export const GetPreferenceResponse$outboundSchema: z.ZodType< - GetPreferenceResponse$Outbound, - z.ZodTypeDef, - GetPreferenceResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSettings: shared.MediaContainerWithSettings$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSettings: "MediaContainerWithSettings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPreferenceResponse$ { - /** @deprecated use `GetPreferenceResponse$inboundSchema` instead. */ - export const inboundSchema = GetPreferenceResponse$inboundSchema; - /** @deprecated use `GetPreferenceResponse$outboundSchema` instead. */ - export const outboundSchema = GetPreferenceResponse$outboundSchema; - /** @deprecated use `GetPreferenceResponse$Outbound` instead. */ - export type Outbound = GetPreferenceResponse$Outbound; -} - -export function getPreferenceResponseToJSON( - getPreferenceResponse: GetPreferenceResponse, -): string { - return JSON.stringify( - GetPreferenceResponse$outboundSchema.parse(getPreferenceResponse), - ); -} - export function getPreferenceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpromotedhubs.ts b/src/sdk/models/operations/getpromotedhubs.ts index 0875287b..27358a2a 100644 --- a/src/sdk/models/operations/getpromotedhubs.ts +++ b/src/sdk/models/operations/getpromotedhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -159,149 +159,6 @@ export type GetPromotedHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetPromotedHubsGlobals$inboundSchema: z.ZodType< - GetPromotedHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetPromotedHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetPromotedHubsGlobals$outboundSchema: z.ZodType< - GetPromotedHubsGlobals$Outbound, - z.ZodTypeDef, - GetPromotedHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPromotedHubsGlobals$ { - /** @deprecated use `GetPromotedHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetPromotedHubsGlobals$inboundSchema; - /** @deprecated use `GetPromotedHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetPromotedHubsGlobals$outboundSchema; - /** @deprecated use `GetPromotedHubsGlobals$Outbound` instead. */ - export type Outbound = GetPromotedHubsGlobals$Outbound; -} - -export function getPromotedHubsGlobalsToJSON( - getPromotedHubsGlobals: GetPromotedHubsGlobals, -): string { - return JSON.stringify( - GetPromotedHubsGlobals$outboundSchema.parse(getPromotedHubsGlobals), - ); -} - -export function getPromotedHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPromotedHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPromotedHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetPromotedHubsRequest$inboundSchema: z.ZodType< - GetPromotedHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - count: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetPromotedHubsRequest$Outbound = { accepts: string; @@ -351,19 +208,6 @@ export const GetPromotedHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPromotedHubsRequest$ { - /** @deprecated use `GetPromotedHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetPromotedHubsRequest$inboundSchema; - /** @deprecated use `GetPromotedHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetPromotedHubsRequest$outboundSchema; - /** @deprecated use `GetPromotedHubsRequest$Outbound` instead. */ - export type Outbound = GetPromotedHubsRequest$Outbound; -} - export function getPromotedHubsRequestToJSON( getPromotedHubsRequest: GetPromotedHubsRequest, ): string { @@ -372,16 +216,6 @@ export function getPromotedHubsRequestToJSON( ); } -export function getPromotedHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPromotedHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPromotedHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetPromotedHubsMediaContainer$inboundSchema: z.ZodType< GetPromotedHubsMediaContainer, @@ -399,55 +233,6 @@ export const GetPromotedHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPromotedHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetPromotedHubsMediaContainer$outboundSchema: z.ZodType< - GetPromotedHubsMediaContainer$Outbound, - z.ZodTypeDef, - GetPromotedHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPromotedHubsMediaContainer$ { - /** @deprecated use `GetPromotedHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetPromotedHubsMediaContainer$inboundSchema; - /** @deprecated use `GetPromotedHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetPromotedHubsMediaContainer$outboundSchema; - /** @deprecated use `GetPromotedHubsMediaContainer$Outbound` instead. */ - export type Outbound = GetPromotedHubsMediaContainer$Outbound; -} - -export function getPromotedHubsMediaContainerToJSON( - getPromotedHubsMediaContainer: GetPromotedHubsMediaContainer, -): string { - return JSON.stringify( - GetPromotedHubsMediaContainer$outboundSchema.parse( - getPromotedHubsMediaContainer, - ), - ); -} - export function getPromotedHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -472,48 +257,6 @@ export const GetPromotedHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPromotedHubsResponseBody$Outbound = { - MediaContainer?: GetPromotedHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetPromotedHubsResponseBody$outboundSchema: z.ZodType< - GetPromotedHubsResponseBody$Outbound, - z.ZodTypeDef, - GetPromotedHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetPromotedHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPromotedHubsResponseBody$ { - /** @deprecated use `GetPromotedHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetPromotedHubsResponseBody$inboundSchema; - /** @deprecated use `GetPromotedHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetPromotedHubsResponseBody$outboundSchema; - /** @deprecated use `GetPromotedHubsResponseBody$Outbound` instead. */ - export type Outbound = GetPromotedHubsResponseBody$Outbound; -} - -export function getPromotedHubsResponseBodyToJSON( - getPromotedHubsResponseBody: GetPromotedHubsResponseBody, -): string { - return JSON.stringify( - GetPromotedHubsResponseBody$outboundSchema.parse( - getPromotedHubsResponseBody, - ), - ); -} - export function getPromotedHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -534,7 +277,7 @@ export const GetPromotedHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetPromotedHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -544,58 +287,6 @@ export const GetPromotedHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPromotedHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetPromotedHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetPromotedHubsResponse$outboundSchema: z.ZodType< - GetPromotedHubsResponse$Outbound, - z.ZodTypeDef, - GetPromotedHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetPromotedHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPromotedHubsResponse$ { - /** @deprecated use `GetPromotedHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPromotedHubsResponse$inboundSchema; - /** @deprecated use `GetPromotedHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPromotedHubsResponse$outboundSchema; - /** @deprecated use `GetPromotedHubsResponse$Outbound` instead. */ - export type Outbound = GetPromotedHubsResponse$Outbound; -} - -export function getPromotedHubsResponseToJSON( - getPromotedHubsResponse: GetPromotedHubsResponse, -): string { - return JSON.stringify( - GetPromotedHubsResponse$outboundSchema.parse(getPromotedHubsResponse), - ); -} - export function getPromotedHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getrandomartwork.ts b/src/sdk/models/operations/getrandomartwork.ts index be347c2a..ce25820c 100644 --- a/src/sdk/models/operations/getrandomartwork.ts +++ b/src/sdk/models/operations/getrandomartwork.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type GetRandomArtworkResponse = { mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; }; -/** @internal */ -export const GetRandomArtworkGlobals$inboundSchema: z.ZodType< - GetRandomArtworkGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetRandomArtworkGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetRandomArtworkGlobals$outboundSchema: z.ZodType< - GetRandomArtworkGlobals$Outbound, - z.ZodTypeDef, - GetRandomArtworkGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRandomArtworkGlobals$ { - /** @deprecated use `GetRandomArtworkGlobals$inboundSchema` instead. */ - export const inboundSchema = GetRandomArtworkGlobals$inboundSchema; - /** @deprecated use `GetRandomArtworkGlobals$outboundSchema` instead. */ - export const outboundSchema = GetRandomArtworkGlobals$outboundSchema; - /** @deprecated use `GetRandomArtworkGlobals$Outbound` instead. */ - export type Outbound = GetRandomArtworkGlobals$Outbound; -} - -export function getRandomArtworkGlobalsToJSON( - getRandomArtworkGlobals: GetRandomArtworkGlobals, -): string { - return JSON.stringify( - GetRandomArtworkGlobals$outboundSchema.parse(getRandomArtworkGlobals), - ); -} - -export function getRandomArtworkGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRandomArtworkGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRandomArtworkGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetRandomArtworkRequest$inboundSchema: z.ZodType< - GetRandomArtworkRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sections: z.array(z.number().int()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetRandomArtworkRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const GetRandomArtworkRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRandomArtworkRequest$ { - /** @deprecated use `GetRandomArtworkRequest$inboundSchema` instead. */ - export const inboundSchema = GetRandomArtworkRequest$inboundSchema; - /** @deprecated use `GetRandomArtworkRequest$outboundSchema` instead. */ - export const outboundSchema = GetRandomArtworkRequest$outboundSchema; - /** @deprecated use `GetRandomArtworkRequest$Outbound` instead. */ - export type Outbound = GetRandomArtworkRequest$Outbound; -} - export function getRandomArtworkRequestToJSON( getRandomArtworkRequest: GetRandomArtworkRequest, ): string { @@ -339,16 +183,6 @@ export function getRandomArtworkRequestToJSON( ); } -export function getRandomArtworkRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRandomArtworkRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRandomArtworkRequest' from JSON`, - ); -} - /** @internal */ export const GetRandomArtworkResponse$inboundSchema: z.ZodType< GetRandomArtworkResponse, @@ -369,59 +203,6 @@ export const GetRandomArtworkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetRandomArtworkResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithArtwork?: - | shared.MediaContainerWithArtwork$Outbound - | undefined; -}; - -/** @internal */ -export const GetRandomArtworkResponse$outboundSchema: z.ZodType< - GetRandomArtworkResponse$Outbound, - z.ZodTypeDef, - GetRandomArtworkResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithArtwork: shared.MediaContainerWithArtwork$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithArtwork: "MediaContainerWithArtwork", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRandomArtworkResponse$ { - /** @deprecated use `GetRandomArtworkResponse$inboundSchema` instead. */ - export const inboundSchema = GetRandomArtworkResponse$inboundSchema; - /** @deprecated use `GetRandomArtworkResponse$outboundSchema` instead. */ - export const outboundSchema = GetRandomArtworkResponse$outboundSchema; - /** @deprecated use `GetRandomArtworkResponse$Outbound` instead. */ - export type Outbound = GetRandomArtworkResponse$Outbound; -} - -export function getRandomArtworkResponseToJSON( - getRandomArtworkResponse: GetRandomArtworkResponse, -): string { - return JSON.stringify( - GetRandomArtworkResponse$outboundSchema.parse(getRandomArtworkResponse), - ); -} - export function getRandomArtworkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getrelatedhubs.ts b/src/sdk/models/operations/getrelatedhubs.ts index bcb56732..f8dc119f 100644 --- a/src/sdk/models/operations/getrelatedhubs.ts +++ b/src/sdk/models/operations/getrelatedhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,151 +135,6 @@ export type GetRelatedHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetRelatedHubsGlobals$inboundSchema: z.ZodType< - GetRelatedHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetRelatedHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetRelatedHubsGlobals$outboundSchema: z.ZodType< - GetRelatedHubsGlobals$Outbound, - z.ZodTypeDef, - GetRelatedHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedHubsGlobals$ { - /** @deprecated use `GetRelatedHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetRelatedHubsGlobals$inboundSchema; - /** @deprecated use `GetRelatedHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetRelatedHubsGlobals$outboundSchema; - /** @deprecated use `GetRelatedHubsGlobals$Outbound` instead. */ - export type Outbound = GetRelatedHubsGlobals$Outbound; -} - -export function getRelatedHubsGlobalsToJSON( - getRelatedHubsGlobals: GetRelatedHubsGlobals, -): string { - return JSON.stringify( - GetRelatedHubsGlobals$outboundSchema.parse(getRelatedHubsGlobals), - ); -} - -export function getRelatedHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRelatedHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRelatedHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetRelatedHubsRequest$inboundSchema: z.ZodType< - GetRelatedHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - metadataId: z.number().int(), - count: z.number().int().optional(), - onlyTransient: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetRelatedHubsRequest$Outbound = { accepts: string; @@ -333,19 +188,6 @@ export const GetRelatedHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedHubsRequest$ { - /** @deprecated use `GetRelatedHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRelatedHubsRequest$inboundSchema; - /** @deprecated use `GetRelatedHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRelatedHubsRequest$outboundSchema; - /** @deprecated use `GetRelatedHubsRequest$Outbound` instead. */ - export type Outbound = GetRelatedHubsRequest$Outbound; -} - export function getRelatedHubsRequestToJSON( getRelatedHubsRequest: GetRelatedHubsRequest, ): string { @@ -354,16 +196,6 @@ export function getRelatedHubsRequestToJSON( ); } -export function getRelatedHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRelatedHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRelatedHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetRelatedHubsResponse$inboundSchema: z.ZodType< GetRelatedHubsResponse, @@ -375,7 +207,7 @@ export const GetRelatedHubsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithHubs: shared.MediaContainerWithHubs$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,60 +218,6 @@ export const GetRelatedHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetRelatedHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithHubs?: shared.MediaContainerWithHubs$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetRelatedHubsResponse$outboundSchema: z.ZodType< - GetRelatedHubsResponse$Outbound, - z.ZodTypeDef, - GetRelatedHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithHubs: shared.MediaContainerWithHubs$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithHubs: "MediaContainerWithHubs", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedHubsResponse$ { - /** @deprecated use `GetRelatedHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetRelatedHubsResponse$inboundSchema; - /** @deprecated use `GetRelatedHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetRelatedHubsResponse$outboundSchema; - /** @deprecated use `GetRelatedHubsResponse$Outbound` instead. */ - export type Outbound = GetRelatedHubsResponse$Outbound; -} - -export function getRelatedHubsResponseToJSON( - getRelatedHubsResponse: GetRelatedHubsResponse, -): string { - return JSON.stringify( - GetRelatedHubsResponse$outboundSchema.parse(getRelatedHubsResponse), - ); -} - export function getRelatedHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getrelateditems.ts b/src/sdk/models/operations/getrelateditems.ts index b72c78b9..7bea133d 100644 --- a/src/sdk/models/operations/getrelateditems.ts +++ b/src/sdk/models/operations/getrelateditems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -155,149 +155,6 @@ export type GetRelatedItemsResponse = { object?: GetRelatedItemsResponseBody | undefined; }; -/** @internal */ -export const GetRelatedItemsGlobals$inboundSchema: z.ZodType< - GetRelatedItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetRelatedItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetRelatedItemsGlobals$outboundSchema: z.ZodType< - GetRelatedItemsGlobals$Outbound, - z.ZodTypeDef, - GetRelatedItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedItemsGlobals$ { - /** @deprecated use `GetRelatedItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetRelatedItemsGlobals$inboundSchema; - /** @deprecated use `GetRelatedItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetRelatedItemsGlobals$outboundSchema; - /** @deprecated use `GetRelatedItemsGlobals$Outbound` instead. */ - export type Outbound = GetRelatedItemsGlobals$Outbound; -} - -export function getRelatedItemsGlobalsToJSON( - getRelatedItemsGlobals: GetRelatedItemsGlobals, -): string { - return JSON.stringify( - GetRelatedItemsGlobals$outboundSchema.parse(getRelatedItemsGlobals), - ); -} - -export function getRelatedItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRelatedItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRelatedItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetRelatedItemsRequest$inboundSchema: z.ZodType< - GetRelatedItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetRelatedItemsRequest$Outbound = { accepts: string; @@ -347,19 +204,6 @@ export const GetRelatedItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedItemsRequest$ { - /** @deprecated use `GetRelatedItemsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRelatedItemsRequest$inboundSchema; - /** @deprecated use `GetRelatedItemsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRelatedItemsRequest$outboundSchema; - /** @deprecated use `GetRelatedItemsRequest$Outbound` instead. */ - export type Outbound = GetRelatedItemsRequest$Outbound; -} - export function getRelatedItemsRequestToJSON( getRelatedItemsRequest: GetRelatedItemsRequest, ): string { @@ -368,16 +212,6 @@ export function getRelatedItemsRequestToJSON( ); } -export function getRelatedItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRelatedItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRelatedItemsRequest' from JSON`, - ); -} - /** @internal */ export const GetRelatedItemsMediaContainer$inboundSchema: z.ZodType< GetRelatedItemsMediaContainer, @@ -395,55 +229,6 @@ export const GetRelatedItemsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetRelatedItemsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetRelatedItemsMediaContainer$outboundSchema: z.ZodType< - GetRelatedItemsMediaContainer$Outbound, - z.ZodTypeDef, - GetRelatedItemsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedItemsMediaContainer$ { - /** @deprecated use `GetRelatedItemsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetRelatedItemsMediaContainer$inboundSchema; - /** @deprecated use `GetRelatedItemsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetRelatedItemsMediaContainer$outboundSchema; - /** @deprecated use `GetRelatedItemsMediaContainer$Outbound` instead. */ - export type Outbound = GetRelatedItemsMediaContainer$Outbound; -} - -export function getRelatedItemsMediaContainerToJSON( - getRelatedItemsMediaContainer: GetRelatedItemsMediaContainer, -): string { - return JSON.stringify( - GetRelatedItemsMediaContainer$outboundSchema.parse( - getRelatedItemsMediaContainer, - ), - ); -} - export function getRelatedItemsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -468,48 +253,6 @@ export const GetRelatedItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetRelatedItemsResponseBody$Outbound = { - MediaContainer?: GetRelatedItemsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetRelatedItemsResponseBody$outboundSchema: z.ZodType< - GetRelatedItemsResponseBody$Outbound, - z.ZodTypeDef, - GetRelatedItemsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetRelatedItemsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedItemsResponseBody$ { - /** @deprecated use `GetRelatedItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetRelatedItemsResponseBody$inboundSchema; - /** @deprecated use `GetRelatedItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetRelatedItemsResponseBody$outboundSchema; - /** @deprecated use `GetRelatedItemsResponseBody$Outbound` instead. */ - export type Outbound = GetRelatedItemsResponseBody$Outbound; -} - -export function getRelatedItemsResponseBodyToJSON( - getRelatedItemsResponseBody: GetRelatedItemsResponseBody, -): string { - return JSON.stringify( - GetRelatedItemsResponseBody$outboundSchema.parse( - getRelatedItemsResponseBody, - ), - ); -} - export function getRelatedItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -538,55 +281,6 @@ export const GetRelatedItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetRelatedItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetRelatedItemsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetRelatedItemsResponse$outboundSchema: z.ZodType< - GetRelatedItemsResponse$Outbound, - z.ZodTypeDef, - GetRelatedItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetRelatedItemsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRelatedItemsResponse$ { - /** @deprecated use `GetRelatedItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetRelatedItemsResponse$inboundSchema; - /** @deprecated use `GetRelatedItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetRelatedItemsResponse$outboundSchema; - /** @deprecated use `GetRelatedItemsResponse$Outbound` instead. */ - export type Outbound = GetRelatedItemsResponse$Outbound; -} - -export function getRelatedItemsResponseToJSON( - getRelatedItemsResponse: GetRelatedItemsResponse, -): string { - return JSON.stringify( - GetRelatedItemsResponse$outboundSchema.parse(getRelatedItemsResponse), - ); -} - export function getRelatedItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getscheduledrecordings.ts b/src/sdk/models/operations/getscheduledrecordings.ts index 0a408875..de9242e0 100644 --- a/src/sdk/models/operations/getscheduledrecordings.ts +++ b/src/sdk/models/operations/getscheduledrecordings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -79,58 +79,6 @@ export const GetScheduledRecordingsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetScheduledRecordingsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - MediaGrabOperation?: Array | undefined; -}; - -/** @internal */ -export const GetScheduledRecordingsMediaContainer$outboundSchema: z.ZodType< - GetScheduledRecordingsMediaContainer$Outbound, - z.ZodTypeDef, - GetScheduledRecordingsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - mediaGrabOperation: z.array(shared.MediaGrabOperation$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaGrabOperation: "MediaGrabOperation", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetScheduledRecordingsMediaContainer$ { - /** @deprecated use `GetScheduledRecordingsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - GetScheduledRecordingsMediaContainer$inboundSchema; - /** @deprecated use `GetScheduledRecordingsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetScheduledRecordingsMediaContainer$outboundSchema; - /** @deprecated use `GetScheduledRecordingsMediaContainer$Outbound` instead. */ - export type Outbound = GetScheduledRecordingsMediaContainer$Outbound; -} - -export function getScheduledRecordingsMediaContainerToJSON( - getScheduledRecordingsMediaContainer: GetScheduledRecordingsMediaContainer, -): string { - return JSON.stringify( - GetScheduledRecordingsMediaContainer$outboundSchema.parse( - getScheduledRecordingsMediaContainer, - ), - ); -} - export function getScheduledRecordingsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -157,50 +105,6 @@ export const GetScheduledRecordingsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetScheduledRecordingsResponseBody$Outbound = { - MediaContainer?: GetScheduledRecordingsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetScheduledRecordingsResponseBody$outboundSchema: z.ZodType< - GetScheduledRecordingsResponseBody$Outbound, - z.ZodTypeDef, - GetScheduledRecordingsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - GetScheduledRecordingsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetScheduledRecordingsResponseBody$ { - /** @deprecated use `GetScheduledRecordingsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetScheduledRecordingsResponseBody$inboundSchema; - /** @deprecated use `GetScheduledRecordingsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetScheduledRecordingsResponseBody$outboundSchema; - /** @deprecated use `GetScheduledRecordingsResponseBody$Outbound` instead. */ - export type Outbound = GetScheduledRecordingsResponseBody$Outbound; -} - -export function getScheduledRecordingsResponseBodyToJSON( - getScheduledRecordingsResponseBody: GetScheduledRecordingsResponseBody, -): string { - return JSON.stringify( - GetScheduledRecordingsResponseBody$outboundSchema.parse( - getScheduledRecordingsResponseBody, - ), - ); -} - export function getScheduledRecordingsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -223,7 +127,7 @@ export const GetScheduledRecordingsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), object: z.lazy(() => GetScheduledRecordingsResponseBody$inboundSchema) .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -233,61 +137,6 @@ export const GetScheduledRecordingsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetScheduledRecordingsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetScheduledRecordingsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetScheduledRecordingsResponse$outboundSchema: z.ZodType< - GetScheduledRecordingsResponse$Outbound, - z.ZodTypeDef, - GetScheduledRecordingsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetScheduledRecordingsResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetScheduledRecordingsResponse$ { - /** @deprecated use `GetScheduledRecordingsResponse$inboundSchema` instead. */ - export const inboundSchema = GetScheduledRecordingsResponse$inboundSchema; - /** @deprecated use `GetScheduledRecordingsResponse$outboundSchema` instead. */ - export const outboundSchema = GetScheduledRecordingsResponse$outboundSchema; - /** @deprecated use `GetScheduledRecordingsResponse$Outbound` instead. */ - export type Outbound = GetScheduledRecordingsResponse$Outbound; -} - -export function getScheduledRecordingsResponseToJSON( - getScheduledRecordingsResponse: GetScheduledRecordingsResponse, -): string { - return JSON.stringify( - GetScheduledRecordingsResponse$outboundSchema.parse( - getScheduledRecordingsResponse, - ), - ); -} - export function getScheduledRecordingsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionfilters.ts b/src/sdk/models/operations/getsectionfilters.ts index 6c90a27d..8a3f1d11 100644 --- a/src/sdk/models/operations/getsectionfilters.ts +++ b/src/sdk/models/operations/getsectionfilters.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -158,149 +158,6 @@ export type GetSectionFiltersResponse = { object?: GetSectionFiltersResponseBody | undefined; }; -/** @internal */ -export const GetSectionFiltersGlobals$inboundSchema: z.ZodType< - GetSectionFiltersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSectionFiltersGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSectionFiltersGlobals$outboundSchema: z.ZodType< - GetSectionFiltersGlobals$Outbound, - z.ZodTypeDef, - GetSectionFiltersGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionFiltersGlobals$ { - /** @deprecated use `GetSectionFiltersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSectionFiltersGlobals$inboundSchema; - /** @deprecated use `GetSectionFiltersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSectionFiltersGlobals$outboundSchema; - /** @deprecated use `GetSectionFiltersGlobals$Outbound` instead. */ - export type Outbound = GetSectionFiltersGlobals$Outbound; -} - -export function getSectionFiltersGlobalsToJSON( - getSectionFiltersGlobals: GetSectionFiltersGlobals, -): string { - return JSON.stringify( - GetSectionFiltersGlobals$outboundSchema.parse(getSectionFiltersGlobals), - ); -} - -export function getSectionFiltersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionFiltersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionFiltersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSectionFiltersRequest$inboundSchema: z.ZodType< - GetSectionFiltersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSectionFiltersRequest$Outbound = { accepts: string; @@ -350,19 +207,6 @@ export const GetSectionFiltersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionFiltersRequest$ { - /** @deprecated use `GetSectionFiltersRequest$inboundSchema` instead. */ - export const inboundSchema = GetSectionFiltersRequest$inboundSchema; - /** @deprecated use `GetSectionFiltersRequest$outboundSchema` instead. */ - export const outboundSchema = GetSectionFiltersRequest$outboundSchema; - /** @deprecated use `GetSectionFiltersRequest$Outbound` instead. */ - export type Outbound = GetSectionFiltersRequest$Outbound; -} - export function getSectionFiltersRequestToJSON( getSectionFiltersRequest: GetSectionFiltersRequest, ): string { @@ -371,16 +215,6 @@ export function getSectionFiltersRequestToJSON( ); } -export function getSectionFiltersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionFiltersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionFiltersRequest' from JSON`, - ); -} - /** @internal */ export const GetSectionFiltersMediaContainer$inboundSchema: z.ZodType< GetSectionFiltersMediaContainer, @@ -398,55 +232,6 @@ export const GetSectionFiltersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionFiltersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetSectionFiltersMediaContainer$outboundSchema: z.ZodType< - GetSectionFiltersMediaContainer$Outbound, - z.ZodTypeDef, - GetSectionFiltersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(shared.Directory$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionFiltersMediaContainer$ { - /** @deprecated use `GetSectionFiltersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetSectionFiltersMediaContainer$inboundSchema; - /** @deprecated use `GetSectionFiltersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetSectionFiltersMediaContainer$outboundSchema; - /** @deprecated use `GetSectionFiltersMediaContainer$Outbound` instead. */ - export type Outbound = GetSectionFiltersMediaContainer$Outbound; -} - -export function getSectionFiltersMediaContainerToJSON( - getSectionFiltersMediaContainer: GetSectionFiltersMediaContainer, -): string { - return JSON.stringify( - GetSectionFiltersMediaContainer$outboundSchema.parse( - getSectionFiltersMediaContainer, - ), - ); -} - export function getSectionFiltersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -471,48 +256,6 @@ export const GetSectionFiltersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionFiltersResponseBody$Outbound = { - MediaContainer?: GetSectionFiltersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetSectionFiltersResponseBody$outboundSchema: z.ZodType< - GetSectionFiltersResponseBody$Outbound, - z.ZodTypeDef, - GetSectionFiltersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetSectionFiltersMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionFiltersResponseBody$ { - /** @deprecated use `GetSectionFiltersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetSectionFiltersResponseBody$inboundSchema; - /** @deprecated use `GetSectionFiltersResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetSectionFiltersResponseBody$outboundSchema; - /** @deprecated use `GetSectionFiltersResponseBody$Outbound` instead. */ - export type Outbound = GetSectionFiltersResponseBody$Outbound; -} - -export function getSectionFiltersResponseBodyToJSON( - getSectionFiltersResponseBody: GetSectionFiltersResponseBody, -): string { - return JSON.stringify( - GetSectionFiltersResponseBody$outboundSchema.parse( - getSectionFiltersResponseBody, - ), - ); -} - export function getSectionFiltersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -541,55 +284,6 @@ export const GetSectionFiltersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionFiltersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetSectionFiltersResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetSectionFiltersResponse$outboundSchema: z.ZodType< - GetSectionFiltersResponse$Outbound, - z.ZodTypeDef, - GetSectionFiltersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetSectionFiltersResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionFiltersResponse$ { - /** @deprecated use `GetSectionFiltersResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionFiltersResponse$inboundSchema; - /** @deprecated use `GetSectionFiltersResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionFiltersResponse$outboundSchema; - /** @deprecated use `GetSectionFiltersResponse$Outbound` instead. */ - export type Outbound = GetSectionFiltersResponse$Outbound; -} - -export function getSectionFiltersResponseToJSON( - getSectionFiltersResponse: GetSectionFiltersResponse, -): string { - return JSON.stringify( - GetSectionFiltersResponse$outboundSchema.parse(getSectionFiltersResponse), - ); -} - export function getSectionFiltersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionhubs.ts b/src/sdk/models/operations/getsectionhubs.ts index b9265c08..8b2d012e 100644 --- a/src/sdk/models/operations/getsectionhubs.ts +++ b/src/sdk/models/operations/getsectionhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -167,151 +167,6 @@ export type GetSectionHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetSectionHubsGlobals$inboundSchema: z.ZodType< - GetSectionHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSectionHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSectionHubsGlobals$outboundSchema: z.ZodType< - GetSectionHubsGlobals$Outbound, - z.ZodTypeDef, - GetSectionHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionHubsGlobals$ { - /** @deprecated use `GetSectionHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSectionHubsGlobals$inboundSchema; - /** @deprecated use `GetSectionHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSectionHubsGlobals$outboundSchema; - /** @deprecated use `GetSectionHubsGlobals$Outbound` instead. */ - export type Outbound = GetSectionHubsGlobals$Outbound; -} - -export function getSectionHubsGlobalsToJSON( - getSectionHubsGlobals: GetSectionHubsGlobals, -): string { - return JSON.stringify( - GetSectionHubsGlobals$outboundSchema.parse(getSectionHubsGlobals), - ); -} - -export function getSectionHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSectionHubsRequest$inboundSchema: z.ZodType< - GetSectionHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - count: z.number().int().optional(), - onlyTransient: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSectionHubsRequest$Outbound = { accepts: string; @@ -365,19 +220,6 @@ export const GetSectionHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionHubsRequest$ { - /** @deprecated use `GetSectionHubsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSectionHubsRequest$inboundSchema; - /** @deprecated use `GetSectionHubsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSectionHubsRequest$outboundSchema; - /** @deprecated use `GetSectionHubsRequest$Outbound` instead. */ - export type Outbound = GetSectionHubsRequest$Outbound; -} - export function getSectionHubsRequestToJSON( getSectionHubsRequest: GetSectionHubsRequest, ): string { @@ -386,16 +228,6 @@ export function getSectionHubsRequestToJSON( ); } -export function getSectionHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionHubsRequest' from JSON`, - ); -} - /** @internal */ export const GetSectionHubsMediaContainer$inboundSchema: z.ZodType< GetSectionHubsMediaContainer, @@ -413,55 +245,6 @@ export const GetSectionHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetSectionHubsMediaContainer$outboundSchema: z.ZodType< - GetSectionHubsMediaContainer$Outbound, - z.ZodTypeDef, - GetSectionHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionHubsMediaContainer$ { - /** @deprecated use `GetSectionHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetSectionHubsMediaContainer$inboundSchema; - /** @deprecated use `GetSectionHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetSectionHubsMediaContainer$outboundSchema; - /** @deprecated use `GetSectionHubsMediaContainer$Outbound` instead. */ - export type Outbound = GetSectionHubsMediaContainer$Outbound; -} - -export function getSectionHubsMediaContainerToJSON( - getSectionHubsMediaContainer: GetSectionHubsMediaContainer, -): string { - return JSON.stringify( - GetSectionHubsMediaContainer$outboundSchema.parse( - getSectionHubsMediaContainer, - ), - ); -} - export function getSectionHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -486,46 +269,6 @@ export const GetSectionHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionHubsResponseBody$Outbound = { - MediaContainer?: GetSectionHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetSectionHubsResponseBody$outboundSchema: z.ZodType< - GetSectionHubsResponseBody$Outbound, - z.ZodTypeDef, - GetSectionHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetSectionHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionHubsResponseBody$ { - /** @deprecated use `GetSectionHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetSectionHubsResponseBody$inboundSchema; - /** @deprecated use `GetSectionHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetSectionHubsResponseBody$outboundSchema; - /** @deprecated use `GetSectionHubsResponseBody$Outbound` instead. */ - export type Outbound = GetSectionHubsResponseBody$Outbound; -} - -export function getSectionHubsResponseBodyToJSON( - getSectionHubsResponseBody: GetSectionHubsResponseBody, -): string { - return JSON.stringify( - GetSectionHubsResponseBody$outboundSchema.parse(getSectionHubsResponseBody), - ); -} - export function getSectionHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -546,7 +289,7 @@ export const GetSectionHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetSectionHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -556,58 +299,6 @@ export const GetSectionHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetSectionHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetSectionHubsResponse$outboundSchema: z.ZodType< - GetSectionHubsResponse$Outbound, - z.ZodTypeDef, - GetSectionHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetSectionHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionHubsResponse$ { - /** @deprecated use `GetSectionHubsResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionHubsResponse$inboundSchema; - /** @deprecated use `GetSectionHubsResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionHubsResponse$outboundSchema; - /** @deprecated use `GetSectionHubsResponse$Outbound` instead. */ - export type Outbound = GetSectionHubsResponse$Outbound; -} - -export function getSectionHubsResponseToJSON( - getSectionHubsResponse: GetSectionHubsResponse, -): string { - return JSON.stringify( - GetSectionHubsResponse$outboundSchema.parse(getSectionHubsResponse), - ); -} - export function getSectionHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionimage.ts b/src/sdk/models/operations/getsectionimage.ts index 5bcccc9d..22becaae 100644 --- a/src/sdk/models/operations/getsectionimage.ts +++ b/src/sdk/models/operations/getsectionimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,152 +131,6 @@ export type GetSectionImageResponse = { rawResponse: Response; }; -/** @internal */ -export const GetSectionImageGlobals$inboundSchema: z.ZodType< - GetSectionImageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSectionImageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSectionImageGlobals$outboundSchema: z.ZodType< - GetSectionImageGlobals$Outbound, - z.ZodTypeDef, - GetSectionImageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionImageGlobals$ { - /** @deprecated use `GetSectionImageGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSectionImageGlobals$inboundSchema; - /** @deprecated use `GetSectionImageGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSectionImageGlobals$outboundSchema; - /** @deprecated use `GetSectionImageGlobals$Outbound` instead. */ - export type Outbound = GetSectionImageGlobals$Outbound; -} - -export function getSectionImageGlobalsToJSON( - getSectionImageGlobals: GetSectionImageGlobals, -): string { - return JSON.stringify( - GetSectionImageGlobals$outboundSchema.parse(getSectionImageGlobals), - ); -} - -export function getSectionImageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionImageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionImageGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSectionImageRequest$inboundSchema: z.ZodType< - GetSectionImageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - updatedAt: z.number().int(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), - composite: shared.Composite$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSectionImageRequest$Outbound = { accepts: string; @@ -332,19 +186,6 @@ export const GetSectionImageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionImageRequest$ { - /** @deprecated use `GetSectionImageRequest$inboundSchema` instead. */ - export const inboundSchema = GetSectionImageRequest$inboundSchema; - /** @deprecated use `GetSectionImageRequest$outboundSchema` instead. */ - export const outboundSchema = GetSectionImageRequest$outboundSchema; - /** @deprecated use `GetSectionImageRequest$Outbound` instead. */ - export type Outbound = GetSectionImageRequest$Outbound; -} - export function getSectionImageRequestToJSON( getSectionImageRequest: GetSectionImageRequest, ): string { @@ -353,16 +194,6 @@ export function getSectionImageRequestToJSON( ); } -export function getSectionImageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionImageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionImageRequest' from JSON`, - ); -} - /** @internal */ export const GetSectionImageResponse$inboundSchema: z.ZodType< GetSectionImageResponse, @@ -380,53 +211,6 @@ export const GetSectionImageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionImageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetSectionImageResponse$outboundSchema: z.ZodType< - GetSectionImageResponse$Outbound, - z.ZodTypeDef, - GetSectionImageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionImageResponse$ { - /** @deprecated use `GetSectionImageResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionImageResponse$inboundSchema; - /** @deprecated use `GetSectionImageResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionImageResponse$outboundSchema; - /** @deprecated use `GetSectionImageResponse$Outbound` instead. */ - export type Outbound = GetSectionImageResponse$Outbound; -} - -export function getSectionImageResponseToJSON( - getSectionImageResponse: GetSectionImageResponse, -): string { - return JSON.stringify( - GetSectionImageResponse$outboundSchema.parse(getSectionImageResponse), - ); -} - export function getSectionImageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionpreferences.ts b/src/sdk/models/operations/getsectionpreferences.ts index 08ffad33..717601b9 100644 --- a/src/sdk/models/operations/getsectionpreferences.ts +++ b/src/sdk/models/operations/getsectionpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,152 +127,6 @@ export type GetSectionPreferencesResponse = { mediaContainerWithSettings?: shared.MediaContainerWithSettings | undefined; }; -/** @internal */ -export const GetSectionPreferencesGlobals$inboundSchema: z.ZodType< - GetSectionPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSectionPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSectionPreferencesGlobals$outboundSchema: z.ZodType< - GetSectionPreferencesGlobals$Outbound, - z.ZodTypeDef, - GetSectionPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionPreferencesGlobals$ { - /** @deprecated use `GetSectionPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSectionPreferencesGlobals$inboundSchema; - /** @deprecated use `GetSectionPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSectionPreferencesGlobals$outboundSchema; - /** @deprecated use `GetSectionPreferencesGlobals$Outbound` instead. */ - export type Outbound = GetSectionPreferencesGlobals$Outbound; -} - -export function getSectionPreferencesGlobalsToJSON( - getSectionPreferencesGlobals: GetSectionPreferencesGlobals, -): string { - return JSON.stringify( - GetSectionPreferencesGlobals$outboundSchema.parse( - getSectionPreferencesGlobals, - ), - ); -} - -export function getSectionPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSectionPreferencesRequest$inboundSchema: z.ZodType< - GetSectionPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - agent: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSectionPreferencesRequest$Outbound = { accepts: string; @@ -324,19 +178,6 @@ export const GetSectionPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionPreferencesRequest$ { - /** @deprecated use `GetSectionPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = GetSectionPreferencesRequest$inboundSchema; - /** @deprecated use `GetSectionPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = GetSectionPreferencesRequest$outboundSchema; - /** @deprecated use `GetSectionPreferencesRequest$Outbound` instead. */ - export type Outbound = GetSectionPreferencesRequest$Outbound; -} - export function getSectionPreferencesRequestToJSON( getSectionPreferencesRequest: GetSectionPreferencesRequest, ): string { @@ -347,16 +188,6 @@ export function getSectionPreferencesRequestToJSON( ); } -export function getSectionPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const GetSectionPreferencesResponse$inboundSchema: z.ZodType< GetSectionPreferencesResponse, @@ -377,61 +208,6 @@ export const GetSectionPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSettings?: - | shared.MediaContainerWithSettings$Outbound - | undefined; -}; - -/** @internal */ -export const GetSectionPreferencesResponse$outboundSchema: z.ZodType< - GetSectionPreferencesResponse$Outbound, - z.ZodTypeDef, - GetSectionPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSettings: shared.MediaContainerWithSettings$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSettings: "MediaContainerWithSettings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionPreferencesResponse$ { - /** @deprecated use `GetSectionPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionPreferencesResponse$inboundSchema; - /** @deprecated use `GetSectionPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionPreferencesResponse$outboundSchema; - /** @deprecated use `GetSectionPreferencesResponse$Outbound` instead. */ - export type Outbound = GetSectionPreferencesResponse$Outbound; -} - -export function getSectionPreferencesResponseToJSON( - getSectionPreferencesResponse: GetSectionPreferencesResponse, -): string { - return JSON.stringify( - GetSectionPreferencesResponse$outboundSchema.parse( - getSectionPreferencesResponse, - ), - ); -} - export function getSectionPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsections.ts b/src/sdk/models/operations/getsections.ts index 19d58e65..bd44faae 100644 --- a/src/sdk/models/operations/getsections.ts +++ b/src/sdk/models/operations/getsections.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -85,57 +85,6 @@ export const GetSectionsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - allowSync?: boolean | undefined; - Directory?: Array | undefined; - title1?: string | undefined; -}; - -/** @internal */ -export const GetSectionsMediaContainer$outboundSchema: z.ZodType< - GetSectionsMediaContainer$Outbound, - z.ZodTypeDef, - GetSectionsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowSync: z.boolean().optional(), - directory: z.array(shared.LibrarySection$outboundSchema).optional(), - title1: z.string().optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsMediaContainer$ { - /** @deprecated use `GetSectionsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetSectionsMediaContainer$inboundSchema; - /** @deprecated use `GetSectionsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetSectionsMediaContainer$outboundSchema; - /** @deprecated use `GetSectionsMediaContainer$Outbound` instead. */ - export type Outbound = GetSectionsMediaContainer$Outbound; -} - -export function getSectionsMediaContainerToJSON( - getSectionsMediaContainer: GetSectionsMediaContainer, -): string { - return JSON.stringify( - GetSectionsMediaContainer$outboundSchema.parse(getSectionsMediaContainer), - ); -} - export function getSectionsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -160,46 +109,6 @@ export const GetSectionsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionsResponseBody$Outbound = { - MediaContainer?: GetSectionsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetSectionsResponseBody$outboundSchema: z.ZodType< - GetSectionsResponseBody$Outbound, - z.ZodTypeDef, - GetSectionsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetSectionsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsResponseBody$ { - /** @deprecated use `GetSectionsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetSectionsResponseBody$inboundSchema; - /** @deprecated use `GetSectionsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetSectionsResponseBody$outboundSchema; - /** @deprecated use `GetSectionsResponseBody$Outbound` instead. */ - export type Outbound = GetSectionsResponseBody$Outbound; -} - -export function getSectionsResponseBodyToJSON( - getSectionsResponseBody: GetSectionsResponseBody, -): string { - return JSON.stringify( - GetSectionsResponseBody$outboundSchema.parse(getSectionsResponseBody), - ); -} - export function getSectionsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -220,7 +129,7 @@ export const GetSectionsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetSectionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -230,58 +139,6 @@ export const GetSectionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSectionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetSectionsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetSectionsResponse$outboundSchema: z.ZodType< - GetSectionsResponse$Outbound, - z.ZodTypeDef, - GetSectionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetSectionsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsResponse$ { - /** @deprecated use `GetSectionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionsResponse$inboundSchema; - /** @deprecated use `GetSectionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionsResponse$outboundSchema; - /** @deprecated use `GetSectionsResponse$Outbound` instead. */ - export type Outbound = GetSectionsResponse$Outbound; -} - -export function getSectionsResponseToJSON( - getSectionsResponse: GetSectionsResponse, -): string { - return JSON.stringify( - GetSectionsResponse$outboundSchema.parse(getSectionsResponse), - ); -} - export function getSectionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsectionsprefs.ts b/src/sdk/models/operations/getsectionsprefs.ts index 9afc279b..a93fa2a0 100644 --- a/src/sdk/models/operations/getsectionsprefs.ts +++ b/src/sdk/models/operations/getsectionsprefs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,155 +127,9 @@ export type GetSectionsPrefsResponse = { /** * OK */ - requestHandlerSlashGetResponses200?: - | shared.RequestHandlerSlashGetResponses200 - | undefined; + librarySections?: shared.LibrarySections | undefined; }; -/** @internal */ -export const GetSectionsPrefsGlobals$inboundSchema: z.ZodType< - GetSectionsPrefsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSectionsPrefsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSectionsPrefsGlobals$outboundSchema: z.ZodType< - GetSectionsPrefsGlobals$Outbound, - z.ZodTypeDef, - GetSectionsPrefsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsPrefsGlobals$ { - /** @deprecated use `GetSectionsPrefsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSectionsPrefsGlobals$inboundSchema; - /** @deprecated use `GetSectionsPrefsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSectionsPrefsGlobals$outboundSchema; - /** @deprecated use `GetSectionsPrefsGlobals$Outbound` instead. */ - export type Outbound = GetSectionsPrefsGlobals$Outbound; -} - -export function getSectionsPrefsGlobalsToJSON( - getSectionsPrefsGlobals: GetSectionsPrefsGlobals, -): string { - return JSON.stringify( - GetSectionsPrefsGlobals$outboundSchema.parse(getSectionsPrefsGlobals), - ); -} - -export function getSectionsPrefsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionsPrefsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionsPrefsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSectionsPrefsRequest$inboundSchema: z.ZodType< - GetSectionsPrefsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - type: z.number().int(), - agent: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSectionsPrefsRequest$Outbound = { accepts: string; @@ -327,19 +181,6 @@ export const GetSectionsPrefsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsPrefsRequest$ { - /** @deprecated use `GetSectionsPrefsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSectionsPrefsRequest$inboundSchema; - /** @deprecated use `GetSectionsPrefsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSectionsPrefsRequest$outboundSchema; - /** @deprecated use `GetSectionsPrefsRequest$Outbound` instead. */ - export type Outbound = GetSectionsPrefsRequest$Outbound; -} - export function getSectionsPrefsRequestToJSON( getSectionsPrefsRequest: GetSectionsPrefsRequest, ): string { @@ -348,16 +189,6 @@ export function getSectionsPrefsRequestToJSON( ); } -export function getSectionsPrefsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSectionsPrefsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSectionsPrefsRequest' from JSON`, - ); -} - /** @internal */ export const GetSectionsPrefsResponse$inboundSchema: z.ZodType< GetSectionsPrefsResponse, @@ -367,72 +198,16 @@ export const GetSectionsPrefsResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - "requestHandler_slash-get-responses-200": shared - .RequestHandlerSlashGetResponses200$inboundSchema.optional(), + LibrarySections: shared.LibrarySections$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "ContentType": "contentType", "StatusCode": "statusCode", "RawResponse": "rawResponse", - "requestHandler_slash-get-responses-200": - "requestHandlerSlashGetResponses200", + "LibrarySections": "librarySections", }); }); -/** @internal */ -export type GetSectionsPrefsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "requestHandler_slash-get-responses-200"?: - | shared.RequestHandlerSlashGetResponses200$Outbound - | undefined; -}; - -/** @internal */ -export const GetSectionsPrefsResponse$outboundSchema: z.ZodType< - GetSectionsPrefsResponse$Outbound, - z.ZodTypeDef, - GetSectionsPrefsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - requestHandlerSlashGetResponses200: shared - .RequestHandlerSlashGetResponses200$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - requestHandlerSlashGetResponses200: - "requestHandler_slash-get-responses-200", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSectionsPrefsResponse$ { - /** @deprecated use `GetSectionsPrefsResponse$inboundSchema` instead. */ - export const inboundSchema = GetSectionsPrefsResponse$inboundSchema; - /** @deprecated use `GetSectionsPrefsResponse$outboundSchema` instead. */ - export const outboundSchema = GetSectionsPrefsResponse$outboundSchema; - /** @deprecated use `GetSectionsPrefsResponse$Outbound` instead. */ - export type Outbound = GetSectionsPrefsResponse$Outbound; -} - -export function getSectionsPrefsResponseToJSON( - getSectionsPrefsResponse: GetSectionsPrefsResponse, -): string { - return JSON.stringify( - GetSectionsPrefsResponse$outboundSchema.parse(getSectionsPrefsResponse), - ); -} - export function getSectionsPrefsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getserverinfo.ts b/src/sdk/models/operations/getserverinfo.ts index 80b4e0b9..3fc3e4b5 100644 --- a/src/sdk/models/operations/getserverinfo.ts +++ b/src/sdk/models/operations/getserverinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,148 +122,6 @@ export type GetServerInfoResponse = { mediaContainerWithDirectory?: shared.MediaContainerWithDirectory | undefined; }; -/** @internal */ -export const GetServerInfoGlobals$inboundSchema: z.ZodType< - GetServerInfoGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetServerInfoGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetServerInfoGlobals$outboundSchema: z.ZodType< - GetServerInfoGlobals$Outbound, - z.ZodTypeDef, - GetServerInfoGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerInfoGlobals$ { - /** @deprecated use `GetServerInfoGlobals$inboundSchema` instead. */ - export const inboundSchema = GetServerInfoGlobals$inboundSchema; - /** @deprecated use `GetServerInfoGlobals$outboundSchema` instead. */ - export const outboundSchema = GetServerInfoGlobals$outboundSchema; - /** @deprecated use `GetServerInfoGlobals$Outbound` instead. */ - export type Outbound = GetServerInfoGlobals$Outbound; -} - -export function getServerInfoGlobalsToJSON( - getServerInfoGlobals: GetServerInfoGlobals, -): string { - return JSON.stringify( - GetServerInfoGlobals$outboundSchema.parse(getServerInfoGlobals), - ); -} - -export function getServerInfoGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetServerInfoGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetServerInfoGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetServerInfoRequest$inboundSchema: z.ZodType< - GetServerInfoRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetServerInfoRequest$Outbound = { accepts: string; @@ -311,19 +169,6 @@ export const GetServerInfoRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerInfoRequest$ { - /** @deprecated use `GetServerInfoRequest$inboundSchema` instead. */ - export const inboundSchema = GetServerInfoRequest$inboundSchema; - /** @deprecated use `GetServerInfoRequest$outboundSchema` instead. */ - export const outboundSchema = GetServerInfoRequest$outboundSchema; - /** @deprecated use `GetServerInfoRequest$Outbound` instead. */ - export type Outbound = GetServerInfoRequest$Outbound; -} - export function getServerInfoRequestToJSON( getServerInfoRequest: GetServerInfoRequest, ): string { @@ -332,16 +177,6 @@ export function getServerInfoRequestToJSON( ); } -export function getServerInfoRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetServerInfoRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetServerInfoRequest' from JSON`, - ); -} - /** @internal */ export const GetServerInfoResponse$inboundSchema: z.ZodType< GetServerInfoResponse, @@ -362,59 +197,6 @@ export const GetServerInfoResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetServerInfoResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDirectory?: - | shared.MediaContainerWithDirectory$Outbound - | undefined; -}; - -/** @internal */ -export const GetServerInfoResponse$outboundSchema: z.ZodType< - GetServerInfoResponse$Outbound, - z.ZodTypeDef, - GetServerInfoResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDirectory: shared.MediaContainerWithDirectory$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDirectory: "MediaContainerWithDirectory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerInfoResponse$ { - /** @deprecated use `GetServerInfoResponse$inboundSchema` instead. */ - export const inboundSchema = GetServerInfoResponse$inboundSchema; - /** @deprecated use `GetServerInfoResponse$outboundSchema` instead. */ - export const outboundSchema = GetServerInfoResponse$outboundSchema; - /** @deprecated use `GetServerInfoResponse$Outbound` instead. */ - export type Outbound = GetServerInfoResponse$Outbound; -} - -export function getServerInfoResponseToJSON( - getServerInfoResponse: GetServerInfoResponse, -): string { - return JSON.stringify( - GetServerInfoResponse$outboundSchema.parse(getServerInfoResponse), - ); -} - export function getServerInfoResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsessionplaylistindex.ts b/src/sdk/models/operations/getsessionplaylistindex.ts index 1010b1e6..3c50b35b 100644 --- a/src/sdk/models/operations/getsessionplaylistindex.ts +++ b/src/sdk/models/operations/getsessionplaylistindex.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,152 +126,6 @@ export type GetSessionPlaylistIndexResponse = { rawResponse: Response; }; -/** @internal */ -export const GetSessionPlaylistIndexGlobals$inboundSchema: z.ZodType< - GetSessionPlaylistIndexGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSessionPlaylistIndexGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSessionPlaylistIndexGlobals$outboundSchema: z.ZodType< - GetSessionPlaylistIndexGlobals$Outbound, - z.ZodTypeDef, - GetSessionPlaylistIndexGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionPlaylistIndexGlobals$ { - /** @deprecated use `GetSessionPlaylistIndexGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSessionPlaylistIndexGlobals$inboundSchema; - /** @deprecated use `GetSessionPlaylistIndexGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSessionPlaylistIndexGlobals$outboundSchema; - /** @deprecated use `GetSessionPlaylistIndexGlobals$Outbound` instead. */ - export type Outbound = GetSessionPlaylistIndexGlobals$Outbound; -} - -export function getSessionPlaylistIndexGlobalsToJSON( - getSessionPlaylistIndexGlobals: GetSessionPlaylistIndexGlobals, -): string { - return JSON.stringify( - GetSessionPlaylistIndexGlobals$outboundSchema.parse( - getSessionPlaylistIndexGlobals, - ), - ); -} - -export function getSessionPlaylistIndexGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionPlaylistIndexGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionPlaylistIndexGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSessionPlaylistIndexRequest$inboundSchema: z.ZodType< - GetSessionPlaylistIndexRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sessionId: z.string(), - consumerId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSessionPlaylistIndexRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const GetSessionPlaylistIndexRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionPlaylistIndexRequest$ { - /** @deprecated use `GetSessionPlaylistIndexRequest$inboundSchema` instead. */ - export const inboundSchema = GetSessionPlaylistIndexRequest$inboundSchema; - /** @deprecated use `GetSessionPlaylistIndexRequest$outboundSchema` instead. */ - export const outboundSchema = GetSessionPlaylistIndexRequest$outboundSchema; - /** @deprecated use `GetSessionPlaylistIndexRequest$Outbound` instead. */ - export type Outbound = GetSessionPlaylistIndexRequest$Outbound; -} - export function getSessionPlaylistIndexRequestToJSON( getSessionPlaylistIndexRequest: GetSessionPlaylistIndexRequest, ): string { @@ -346,16 +187,6 @@ export function getSessionPlaylistIndexRequestToJSON( ); } -export function getSessionPlaylistIndexRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionPlaylistIndexRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionPlaylistIndexRequest' from JSON`, - ); -} - /** @internal */ export const GetSessionPlaylistIndexResponse$inboundSchema: z.ZodType< GetSessionPlaylistIndexResponse, @@ -373,55 +204,6 @@ export const GetSessionPlaylistIndexResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSessionPlaylistIndexResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetSessionPlaylistIndexResponse$outboundSchema: z.ZodType< - GetSessionPlaylistIndexResponse$Outbound, - z.ZodTypeDef, - GetSessionPlaylistIndexResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionPlaylistIndexResponse$ { - /** @deprecated use `GetSessionPlaylistIndexResponse$inboundSchema` instead. */ - export const inboundSchema = GetSessionPlaylistIndexResponse$inboundSchema; - /** @deprecated use `GetSessionPlaylistIndexResponse$outboundSchema` instead. */ - export const outboundSchema = GetSessionPlaylistIndexResponse$outboundSchema; - /** @deprecated use `GetSessionPlaylistIndexResponse$Outbound` instead. */ - export type Outbound = GetSessionPlaylistIndexResponse$Outbound; -} - -export function getSessionPlaylistIndexResponseToJSON( - getSessionPlaylistIndexResponse: GetSessionPlaylistIndexResponse, -): string { - return JSON.stringify( - GetSessionPlaylistIndexResponse$outboundSchema.parse( - getSessionPlaylistIndexResponse, - ), - ); -} - export function getSessionPlaylistIndexResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsessions.ts b/src/sdk/models/operations/getsessions.ts index 634ab355..d99a01a6 100644 --- a/src/sdk/models/operations/getsessions.ts +++ b/src/sdk/models/operations/getsessions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,7 +40,7 @@ export const GetSessionsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -51,62 +51,6 @@ export const GetSessionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSessionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetSessionsResponse$outboundSchema: z.ZodType< - GetSessionsResponse$Outbound, - z.ZodTypeDef, - GetSessionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionsResponse$ { - /** @deprecated use `GetSessionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetSessionsResponse$inboundSchema; - /** @deprecated use `GetSessionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetSessionsResponse$outboundSchema; - /** @deprecated use `GetSessionsResponse$Outbound` instead. */ - export type Outbound = GetSessionsResponse$Outbound; -} - -export function getSessionsResponseToJSON( - getSessionsResponse: GetSessionsResponse, -): string { - return JSON.stringify( - GetSessionsResponse$outboundSchema.parse(getSessionsResponse), - ); -} - export function getSessionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsessionsegment.ts b/src/sdk/models/operations/getsessionsegment.ts index 7ec88849..97ab6fcc 100644 --- a/src/sdk/models/operations/getsessionsegment.ts +++ b/src/sdk/models/operations/getsessionsegment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,151 +130,6 @@ export type GetSessionSegmentResponse = { rawResponse: Response; }; -/** @internal */ -export const GetSessionSegmentGlobals$inboundSchema: z.ZodType< - GetSessionSegmentGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSessionSegmentGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSessionSegmentGlobals$outboundSchema: z.ZodType< - GetSessionSegmentGlobals$Outbound, - z.ZodTypeDef, - GetSessionSegmentGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionSegmentGlobals$ { - /** @deprecated use `GetSessionSegmentGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSessionSegmentGlobals$inboundSchema; - /** @deprecated use `GetSessionSegmentGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSessionSegmentGlobals$outboundSchema; - /** @deprecated use `GetSessionSegmentGlobals$Outbound` instead. */ - export type Outbound = GetSessionSegmentGlobals$Outbound; -} - -export function getSessionSegmentGlobalsToJSON( - getSessionSegmentGlobals: GetSessionSegmentGlobals, -): string { - return JSON.stringify( - GetSessionSegmentGlobals$outboundSchema.parse(getSessionSegmentGlobals), - ); -} - -export function getSessionSegmentGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionSegmentGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionSegmentGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSessionSegmentRequest$inboundSchema: z.ZodType< - GetSessionSegmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sessionId: z.string(), - consumerId: z.string(), - segmentId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSessionSegmentRequest$Outbound = { accepts: string; @@ -328,19 +183,6 @@ export const GetSessionSegmentRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionSegmentRequest$ { - /** @deprecated use `GetSessionSegmentRequest$inboundSchema` instead. */ - export const inboundSchema = GetSessionSegmentRequest$inboundSchema; - /** @deprecated use `GetSessionSegmentRequest$outboundSchema` instead. */ - export const outboundSchema = GetSessionSegmentRequest$outboundSchema; - /** @deprecated use `GetSessionSegmentRequest$Outbound` instead. */ - export type Outbound = GetSessionSegmentRequest$Outbound; -} - export function getSessionSegmentRequestToJSON( getSessionSegmentRequest: GetSessionSegmentRequest, ): string { @@ -349,16 +191,6 @@ export function getSessionSegmentRequestToJSON( ); } -export function getSessionSegmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSessionSegmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSessionSegmentRequest' from JSON`, - ); -} - /** @internal */ export const GetSessionSegmentResponse$inboundSchema: z.ZodType< GetSessionSegmentResponse, @@ -376,53 +208,6 @@ export const GetSessionSegmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSessionSegmentResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetSessionSegmentResponse$outboundSchema: z.ZodType< - GetSessionSegmentResponse$Outbound, - z.ZodTypeDef, - GetSessionSegmentResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionSegmentResponse$ { - /** @deprecated use `GetSessionSegmentResponse$inboundSchema` instead. */ - export const inboundSchema = GetSessionSegmentResponse$inboundSchema; - /** @deprecated use `GetSessionSegmentResponse$outboundSchema` instead. */ - export const outboundSchema = GetSessionSegmentResponse$outboundSchema; - /** @deprecated use `GetSessionSegmentResponse$Outbound` instead. */ - export type Outbound = GetSessionSegmentResponse$Outbound; -} - -export function getSessionSegmentResponseToJSON( - getSessionSegmentResponse: GetSessionSegmentResponse, -): string { - return JSON.stringify( - GetSessionSegmentResponse$outboundSchema.parse(getSessionSegmentResponse), - ); -} - export function getSessionSegmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsonicallysimilar.ts b/src/sdk/models/operations/getsonicallysimilar.ts index f6f90ef5..fa54c2c9 100644 --- a/src/sdk/models/operations/getsonicallysimilar.ts +++ b/src/sdk/models/operations/getsonicallysimilar.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -142,153 +142,6 @@ export type GetSonicallySimilarResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const GetSonicallySimilarGlobals$inboundSchema: z.ZodType< - GetSonicallySimilarGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSonicallySimilarGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSonicallySimilarGlobals$outboundSchema: z.ZodType< - GetSonicallySimilarGlobals$Outbound, - z.ZodTypeDef, - GetSonicallySimilarGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicallySimilarGlobals$ { - /** @deprecated use `GetSonicallySimilarGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSonicallySimilarGlobals$inboundSchema; - /** @deprecated use `GetSonicallySimilarGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSonicallySimilarGlobals$outboundSchema; - /** @deprecated use `GetSonicallySimilarGlobals$Outbound` instead. */ - export type Outbound = GetSonicallySimilarGlobals$Outbound; -} - -export function getSonicallySimilarGlobalsToJSON( - getSonicallySimilarGlobals: GetSonicallySimilarGlobals, -): string { - return JSON.stringify( - GetSonicallySimilarGlobals$outboundSchema.parse(getSonicallySimilarGlobals), - ); -} - -export function getSonicallySimilarGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicallySimilarGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicallySimilarGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSonicallySimilarRequest$inboundSchema: z.ZodType< - GetSonicallySimilarRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - type: z.number().int().optional(), - values: z.array(z.number().int()), - limit: z.number().int().optional(), - maxDistance: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSonicallySimilarRequest$Outbound = { accepts: string; @@ -346,19 +199,6 @@ export const GetSonicallySimilarRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicallySimilarRequest$ { - /** @deprecated use `GetSonicallySimilarRequest$inboundSchema` instead. */ - export const inboundSchema = GetSonicallySimilarRequest$inboundSchema; - /** @deprecated use `GetSonicallySimilarRequest$outboundSchema` instead. */ - export const outboundSchema = GetSonicallySimilarRequest$outboundSchema; - /** @deprecated use `GetSonicallySimilarRequest$Outbound` instead. */ - export type Outbound = GetSonicallySimilarRequest$Outbound; -} - export function getSonicallySimilarRequestToJSON( getSonicallySimilarRequest: GetSonicallySimilarRequest, ): string { @@ -367,16 +207,6 @@ export function getSonicallySimilarRequestToJSON( ); } -export function getSonicallySimilarRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicallySimilarRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicallySimilarRequest' from JSON`, - ); -} - /** @internal */ export const GetSonicallySimilarResponse$inboundSchema: z.ZodType< GetSonicallySimilarResponse, @@ -397,61 +227,6 @@ export const GetSonicallySimilarResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSonicallySimilarResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetSonicallySimilarResponse$outboundSchema: z.ZodType< - GetSonicallySimilarResponse$Outbound, - z.ZodTypeDef, - GetSonicallySimilarResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicallySimilarResponse$ { - /** @deprecated use `GetSonicallySimilarResponse$inboundSchema` instead. */ - export const inboundSchema = GetSonicallySimilarResponse$inboundSchema; - /** @deprecated use `GetSonicallySimilarResponse$outboundSchema` instead. */ - export const outboundSchema = GetSonicallySimilarResponse$outboundSchema; - /** @deprecated use `GetSonicallySimilarResponse$Outbound` instead. */ - export type Outbound = GetSonicallySimilarResponse$Outbound; -} - -export function getSonicallySimilarResponseToJSON( - getSonicallySimilarResponse: GetSonicallySimilarResponse, -): string { - return JSON.stringify( - GetSonicallySimilarResponse$outboundSchema.parse( - getSonicallySimilarResponse, - ), - ); -} - export function getSonicallySimilarResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsonicpath.ts b/src/sdk/models/operations/getsonicpath.ts index b4e52151..ff8537e2 100644 --- a/src/sdk/models/operations/getsonicpath.ts +++ b/src/sdk/models/operations/getsonicpath.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -142,153 +142,6 @@ export type GetSonicPathResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const GetSonicPathGlobals$inboundSchema: z.ZodType< - GetSonicPathGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSonicPathGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSonicPathGlobals$outboundSchema: z.ZodType< - GetSonicPathGlobals$Outbound, - z.ZodTypeDef, - GetSonicPathGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicPathGlobals$ { - /** @deprecated use `GetSonicPathGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSonicPathGlobals$inboundSchema; - /** @deprecated use `GetSonicPathGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSonicPathGlobals$outboundSchema; - /** @deprecated use `GetSonicPathGlobals$Outbound` instead. */ - export type Outbound = GetSonicPathGlobals$Outbound; -} - -export function getSonicPathGlobalsToJSON( - getSonicPathGlobals: GetSonicPathGlobals, -): string { - return JSON.stringify( - GetSonicPathGlobals$outboundSchema.parse(getSonicPathGlobals), - ); -} - -export function getSonicPathGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicPathGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicPathGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSonicPathRequest$inboundSchema: z.ZodType< - GetSonicPathRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - startID: z.number().int(), - endID: z.number().int(), - count: z.number().int().optional(), - maxDistance: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSonicPathRequest$Outbound = { accepts: string; @@ -346,19 +199,6 @@ export const GetSonicPathRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicPathRequest$ { - /** @deprecated use `GetSonicPathRequest$inboundSchema` instead. */ - export const inboundSchema = GetSonicPathRequest$inboundSchema; - /** @deprecated use `GetSonicPathRequest$outboundSchema` instead. */ - export const outboundSchema = GetSonicPathRequest$outboundSchema; - /** @deprecated use `GetSonicPathRequest$Outbound` instead. */ - export type Outbound = GetSonicPathRequest$Outbound; -} - export function getSonicPathRequestToJSON( getSonicPathRequest: GetSonicPathRequest, ): string { @@ -367,16 +207,6 @@ export function getSonicPathRequestToJSON( ); } -export function getSonicPathRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSonicPathRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSonicPathRequest' from JSON`, - ); -} - /** @internal */ export const GetSonicPathResponse$inboundSchema: z.ZodType< GetSonicPathResponse, @@ -397,59 +227,6 @@ export const GetSonicPathResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSonicPathResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const GetSonicPathResponse$outboundSchema: z.ZodType< - GetSonicPathResponse$Outbound, - z.ZodTypeDef, - GetSonicPathResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSonicPathResponse$ { - /** @deprecated use `GetSonicPathResponse$inboundSchema` instead. */ - export const inboundSchema = GetSonicPathResponse$inboundSchema; - /** @deprecated use `GetSonicPathResponse$outboundSchema` instead. */ - export const outboundSchema = GetSonicPathResponse$outboundSchema; - /** @deprecated use `GetSonicPathResponse$Outbound` instead. */ - export type Outbound = GetSonicPathResponse$Outbound; -} - -export function getSonicPathResponseToJSON( - getSonicPathResponse: GetSonicPathResponse, -): string { - return JSON.stringify( - GetSonicPathResponse$outboundSchema.parse(getSonicPathResponse), - ); -} - export function getSonicPathResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsourceconnectioninformation.ts b/src/sdk/models/operations/getsourceconnectioninformation.ts index 8bdd4ba7..ddff1fc2 100644 --- a/src/sdk/models/operations/getsourceconnectioninformation.ts +++ b/src/sdk/models/operations/getsourceconnectioninformation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -184,155 +184,6 @@ export type GetSourceConnectionInformationResponse = { object?: GetSourceConnectionInformationResponseBody | undefined; }; -/** @internal */ -export const GetSourceConnectionInformationGlobals$inboundSchema: z.ZodType< - GetSourceConnectionInformationGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSourceConnectionInformationGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSourceConnectionInformationGlobals$outboundSchema: z.ZodType< - GetSourceConnectionInformationGlobals$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationGlobals$ { - /** @deprecated use `GetSourceConnectionInformationGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationGlobals$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationGlobals$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationGlobals$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationGlobals$Outbound; -} - -export function getSourceConnectionInformationGlobalsToJSON( - getSourceConnectionInformationGlobals: GetSourceConnectionInformationGlobals, -): string { - return JSON.stringify( - GetSourceConnectionInformationGlobals$outboundSchema.parse( - getSourceConnectionInformationGlobals, - ), - ); -} - -export function getSourceConnectionInformationGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetSourceConnectionInformationGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSourceConnectionInformationGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSourceConnectionInformationRequest$inboundSchema: z.ZodType< - GetSourceConnectionInformationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - source: z.string(), - refresh: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSourceConnectionInformationRequest$Outbound = { accepts: string; @@ -384,21 +235,6 @@ export const GetSourceConnectionInformationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationRequest$ { - /** @deprecated use `GetSourceConnectionInformationRequest$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationRequest$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationRequest$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationRequest$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationRequest$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationRequest$Outbound; -} - export function getSourceConnectionInformationRequestToJSON( getSourceConnectionInformationRequest: GetSourceConnectionInformationRequest, ): string { @@ -409,17 +245,6 @@ export function getSourceConnectionInformationRequestToJSON( ); } -export function getSourceConnectionInformationRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetSourceConnectionInformationRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSourceConnectionInformationRequest' from JSON`, - ); -} - /** @internal */ export const Connection$inboundSchema: z.ZodType< Connection, @@ -434,47 +259,6 @@ export const Connection$inboundSchema: z.ZodType< uri: z.string().optional(), }); -/** @internal */ -export type Connection$Outbound = { - address?: string | undefined; - local?: boolean | undefined; - port?: number | undefined; - protocol?: string | undefined; - relay?: boolean | undefined; - uri?: string | undefined; -}; - -/** @internal */ -export const Connection$outboundSchema: z.ZodType< - Connection$Outbound, - z.ZodTypeDef, - Connection -> = z.object({ - address: z.string().optional(), - local: z.boolean().optional(), - port: z.number().int().optional(), - protocol: z.string().optional(), - relay: z.boolean().optional(), - uri: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Connection$ { - /** @deprecated use `Connection$inboundSchema` instead. */ - export const inboundSchema = Connection$inboundSchema; - /** @deprecated use `Connection$outboundSchema` instead. */ - export const outboundSchema = Connection$outboundSchema; - /** @deprecated use `Connection$Outbound` instead. */ - export type Outbound = Connection$Outbound; -} - -export function connectionToJSON(connection: Connection): string { - return JSON.stringify(Connection$outboundSchema.parse(connection)); -} - export function connectionFromJSON( jsonString: string, ): SafeParseResult { @@ -501,55 +285,6 @@ export const GetSourceConnectionInformationDevice$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSourceConnectionInformationDevice$Outbound = { - accessToken?: string | undefined; - clientIdentifier?: string | undefined; - Connection?: Array | undefined; - name?: string | undefined; -}; - -/** @internal */ -export const GetSourceConnectionInformationDevice$outboundSchema: z.ZodType< - GetSourceConnectionInformationDevice$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationDevice -> = z.object({ - accessToken: z.string().optional(), - clientIdentifier: z.string().optional(), - connection: z.array(z.lazy(() => Connection$outboundSchema)).optional(), - name: z.string().optional(), -}).transform((v) => { - return remap$(v, { - connection: "Connection", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationDevice$ { - /** @deprecated use `GetSourceConnectionInformationDevice$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationDevice$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationDevice$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationDevice$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationDevice$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationDevice$Outbound; -} - -export function getSourceConnectionInformationDeviceToJSON( - getSourceConnectionInformationDevice: GetSourceConnectionInformationDevice, -): string { - return JSON.stringify( - GetSourceConnectionInformationDevice$outboundSchema.parse( - getSourceConnectionInformationDevice, - ), - ); -} - export function getSourceConnectionInformationDeviceFromJSON( jsonString: string, ): SafeParseResult { @@ -580,60 +315,6 @@ export const GetSourceConnectionInformationMediaContainer$inboundSchema: }); }); -/** @internal */ -export type GetSourceConnectionInformationMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Device?: GetSourceConnectionInformationDevice$Outbound | undefined; -}; - -/** @internal */ -export const GetSourceConnectionInformationMediaContainer$outboundSchema: - z.ZodType< - GetSourceConnectionInformationMediaContainer$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - device: z.lazy(() => GetSourceConnectionInformationDevice$outboundSchema) - .optional(), - }).transform((v) => { - return remap$(v, { - device: "Device", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationMediaContainer$ { - /** @deprecated use `GetSourceConnectionInformationMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationMediaContainer$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationMediaContainer$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationMediaContainer$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationMediaContainer$Outbound; -} - -export function getSourceConnectionInformationMediaContainerToJSON( - getSourceConnectionInformationMediaContainer: - GetSourceConnectionInformationMediaContainer, -): string { - return JSON.stringify( - GetSourceConnectionInformationMediaContainer$outboundSchema.parse( - getSourceConnectionInformationMediaContainer, - ), - ); -} - export function getSourceConnectionInformationMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -663,55 +344,6 @@ export const GetSourceConnectionInformationResponseBody$inboundSchema: }); }); -/** @internal */ -export type GetSourceConnectionInformationResponseBody$Outbound = { - MediaContainer?: - | GetSourceConnectionInformationMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const GetSourceConnectionInformationResponseBody$outboundSchema: - z.ZodType< - GetSourceConnectionInformationResponseBody$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationResponseBody - > = z.object({ - mediaContainer: z.lazy(() => - GetSourceConnectionInformationMediaContainer$outboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationResponseBody$ { - /** @deprecated use `GetSourceConnectionInformationResponseBody$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationResponseBody$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationResponseBody$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponseBody$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationResponseBody$Outbound; -} - -export function getSourceConnectionInformationResponseBodyToJSON( - getSourceConnectionInformationResponseBody: - GetSourceConnectionInformationResponseBody, -): string { - return JSON.stringify( - GetSourceConnectionInformationResponseBody$outboundSchema.parse( - getSourceConnectionInformationResponseBody, - ), - ); -} - export function getSourceConnectionInformationResponseBodyFromJSON( jsonString: string, ): SafeParseResult< @@ -747,62 +379,6 @@ export const GetSourceConnectionInformationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSourceConnectionInformationResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetSourceConnectionInformationResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetSourceConnectionInformationResponse$outboundSchema: z.ZodType< - GetSourceConnectionInformationResponse$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => - GetSourceConnectionInformationResponseBody$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationResponse$ { - /** @deprecated use `GetSourceConnectionInformationResponse$inboundSchema` instead. */ - export const inboundSchema = - GetSourceConnectionInformationResponse$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponse$outboundSchema` instead. */ - export const outboundSchema = - GetSourceConnectionInformationResponse$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponse$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationResponse$Outbound; -} - -export function getSourceConnectionInformationResponseToJSON( - getSourceConnectionInformationResponse: - GetSourceConnectionInformationResponse, -): string { - return JSON.stringify( - GetSourceConnectionInformationResponse$outboundSchema.parse( - getSourceConnectionInformationResponse, - ), - ); -} - export function getSourceConnectionInformationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getstream.ts b/src/sdk/models/operations/getstream.ts index 5caf55bb..373c62ac 100644 --- a/src/sdk/models/operations/getstream.ts +++ b/src/sdk/models/operations/getstream.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -138,153 +138,6 @@ export type GetStreamResponse = { rawResponse: Response; }; -/** @internal */ -export const GetStreamGlobals$inboundSchema: z.ZodType< - GetStreamGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetStreamGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetStreamGlobals$outboundSchema: z.ZodType< - GetStreamGlobals$Outbound, - z.ZodTypeDef, - GetStreamGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamGlobals$ { - /** @deprecated use `GetStreamGlobals$inboundSchema` instead. */ - export const inboundSchema = GetStreamGlobals$inboundSchema; - /** @deprecated use `GetStreamGlobals$outboundSchema` instead. */ - export const outboundSchema = GetStreamGlobals$outboundSchema; - /** @deprecated use `GetStreamGlobals$Outbound` instead. */ - export type Outbound = GetStreamGlobals$Outbound; -} - -export function getStreamGlobalsToJSON( - getStreamGlobals: GetStreamGlobals, -): string { - return JSON.stringify( - GetStreamGlobals$outboundSchema.parse(getStreamGlobals), - ); -} - -export function getStreamGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetStreamRequest$inboundSchema: z.ZodType< - GetStreamRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - streamId: z.number().int(), - ext: z.string(), - encoding: z.string().optional(), - format: z.string().optional(), - autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetStreamRequest$Outbound = { accepts: string; @@ -342,19 +195,6 @@ export const GetStreamRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamRequest$ { - /** @deprecated use `GetStreamRequest$inboundSchema` instead. */ - export const inboundSchema = GetStreamRequest$inboundSchema; - /** @deprecated use `GetStreamRequest$outboundSchema` instead. */ - export const outboundSchema = GetStreamRequest$outboundSchema; - /** @deprecated use `GetStreamRequest$Outbound` instead. */ - export type Outbound = GetStreamRequest$Outbound; -} - export function getStreamRequestToJSON( getStreamRequest: GetStreamRequest, ): string { @@ -363,16 +203,6 @@ export function getStreamRequestToJSON( ); } -export function getStreamRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamRequest' from JSON`, - ); -} - /** @internal */ export const GetStreamResponse$inboundSchema: z.ZodType< GetStreamResponse, @@ -390,53 +220,6 @@ export const GetStreamResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStreamResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetStreamResponse$outboundSchema: z.ZodType< - GetStreamResponse$Outbound, - z.ZodTypeDef, - GetStreamResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamResponse$ { - /** @deprecated use `GetStreamResponse$inboundSchema` instead. */ - export const inboundSchema = GetStreamResponse$inboundSchema; - /** @deprecated use `GetStreamResponse$outboundSchema` instead. */ - export const outboundSchema = GetStreamResponse$outboundSchema; - /** @deprecated use `GetStreamResponse$Outbound` instead. */ - export type Outbound = GetStreamResponse$Outbound; -} - -export function getStreamResponseToJSON( - getStreamResponse: GetStreamResponse, -): string { - return JSON.stringify( - GetStreamResponse$outboundSchema.parse(getStreamResponse), - ); -} - export function getStreamResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getstreamlevels.ts b/src/sdk/models/operations/getstreamlevels.ts index ba2c123c..8ff51c2e 100644 --- a/src/sdk/models/operations/getstreamlevels.ts +++ b/src/sdk/models/operations/getstreamlevels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -173,150 +173,6 @@ export type GetStreamLevelsResponse = { object?: GetStreamLevelsResponseBody | undefined; }; -/** @internal */ -export const GetStreamLevelsGlobals$inboundSchema: z.ZodType< - GetStreamLevelsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetStreamLevelsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetStreamLevelsGlobals$outboundSchema: z.ZodType< - GetStreamLevelsGlobals$Outbound, - z.ZodTypeDef, - GetStreamLevelsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsGlobals$ { - /** @deprecated use `GetStreamLevelsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsGlobals$inboundSchema; - /** @deprecated use `GetStreamLevelsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsGlobals$outboundSchema; - /** @deprecated use `GetStreamLevelsGlobals$Outbound` instead. */ - export type Outbound = GetStreamLevelsGlobals$Outbound; -} - -export function getStreamLevelsGlobalsToJSON( - getStreamLevelsGlobals: GetStreamLevelsGlobals, -): string { - return JSON.stringify( - GetStreamLevelsGlobals$outboundSchema.parse(getStreamLevelsGlobals), - ); -} - -export function getStreamLevelsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLevelsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLevelsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetStreamLevelsRequest$inboundSchema: z.ZodType< - GetStreamLevelsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - streamId: z.number().int(), - subsample: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetStreamLevelsRequest$Outbound = { accepts: string; @@ -368,19 +224,6 @@ export const GetStreamLevelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsRequest$ { - /** @deprecated use `GetStreamLevelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsRequest$inboundSchema; - /** @deprecated use `GetStreamLevelsRequest$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsRequest$outboundSchema; - /** @deprecated use `GetStreamLevelsRequest$Outbound` instead. */ - export type Outbound = GetStreamLevelsRequest$Outbound; -} - export function getStreamLevelsRequestToJSON( getStreamLevelsRequest: GetStreamLevelsRequest, ): string { @@ -389,16 +232,6 @@ export function getStreamLevelsRequestToJSON( ); } -export function getStreamLevelsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLevelsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLevelsRequest' from JSON`, - ); -} - /** @internal */ export const GetStreamLevelsLevel$inboundSchema: z.ZodType< GetStreamLevelsLevel, @@ -408,41 +241,6 @@ export const GetStreamLevelsLevel$inboundSchema: z.ZodType< v: z.number().optional(), }); -/** @internal */ -export type GetStreamLevelsLevel$Outbound = { - v?: number | undefined; -}; - -/** @internal */ -export const GetStreamLevelsLevel$outboundSchema: z.ZodType< - GetStreamLevelsLevel$Outbound, - z.ZodTypeDef, - GetStreamLevelsLevel -> = z.object({ - v: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsLevel$ { - /** @deprecated use `GetStreamLevelsLevel$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsLevel$inboundSchema; - /** @deprecated use `GetStreamLevelsLevel$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsLevel$outboundSchema; - /** @deprecated use `GetStreamLevelsLevel$Outbound` instead. */ - export type Outbound = GetStreamLevelsLevel$Outbound; -} - -export function getStreamLevelsLevelToJSON( - getStreamLevelsLevel: GetStreamLevelsLevel, -): string { - return JSON.stringify( - GetStreamLevelsLevel$outboundSchema.parse(getStreamLevelsLevel), - ); -} - export function getStreamLevelsLevelFromJSON( jsonString: string, ): SafeParseResult { @@ -471,57 +269,6 @@ export const GetStreamLevelsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStreamLevelsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Level?: Array | undefined; - totalSamples?: string | undefined; -}; - -/** @internal */ -export const GetStreamLevelsMediaContainer$outboundSchema: z.ZodType< - GetStreamLevelsMediaContainer$Outbound, - z.ZodTypeDef, - GetStreamLevelsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - level: z.array(z.lazy(() => GetStreamLevelsLevel$outboundSchema)).optional(), - totalSamples: z.string().optional(), -}).transform((v) => { - return remap$(v, { - level: "Level", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsMediaContainer$ { - /** @deprecated use `GetStreamLevelsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsMediaContainer$inboundSchema; - /** @deprecated use `GetStreamLevelsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsMediaContainer$outboundSchema; - /** @deprecated use `GetStreamLevelsMediaContainer$Outbound` instead. */ - export type Outbound = GetStreamLevelsMediaContainer$Outbound; -} - -export function getStreamLevelsMediaContainerToJSON( - getStreamLevelsMediaContainer: GetStreamLevelsMediaContainer, -): string { - return JSON.stringify( - GetStreamLevelsMediaContainer$outboundSchema.parse( - getStreamLevelsMediaContainer, - ), - ); -} - export function getStreamLevelsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -546,48 +293,6 @@ export const GetStreamLevelsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStreamLevelsResponseBody$Outbound = { - MediaContainer?: GetStreamLevelsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetStreamLevelsResponseBody$outboundSchema: z.ZodType< - GetStreamLevelsResponseBody$Outbound, - z.ZodTypeDef, - GetStreamLevelsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetStreamLevelsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsResponseBody$ { - /** @deprecated use `GetStreamLevelsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsResponseBody$inboundSchema; - /** @deprecated use `GetStreamLevelsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsResponseBody$outboundSchema; - /** @deprecated use `GetStreamLevelsResponseBody$Outbound` instead. */ - export type Outbound = GetStreamLevelsResponseBody$Outbound; -} - -export function getStreamLevelsResponseBodyToJSON( - getStreamLevelsResponseBody: GetStreamLevelsResponseBody, -): string { - return JSON.stringify( - GetStreamLevelsResponseBody$outboundSchema.parse( - getStreamLevelsResponseBody, - ), - ); -} - export function getStreamLevelsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -616,55 +321,6 @@ export const GetStreamLevelsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStreamLevelsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetStreamLevelsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetStreamLevelsResponse$outboundSchema: z.ZodType< - GetStreamLevelsResponse$Outbound, - z.ZodTypeDef, - GetStreamLevelsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetStreamLevelsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLevelsResponse$ { - /** @deprecated use `GetStreamLevelsResponse$inboundSchema` instead. */ - export const inboundSchema = GetStreamLevelsResponse$inboundSchema; - /** @deprecated use `GetStreamLevelsResponse$outboundSchema` instead. */ - export const outboundSchema = GetStreamLevelsResponse$outboundSchema; - /** @deprecated use `GetStreamLevelsResponse$Outbound` instead. */ - export type Outbound = GetStreamLevelsResponse$Outbound; -} - -export function getStreamLevelsResponseToJSON( - getStreamLevelsResponse: GetStreamLevelsResponse, -): string { - return JSON.stringify( - GetStreamLevelsResponse$outboundSchema.parse(getStreamLevelsResponse), - ); -} - export function getStreamLevelsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getstreamloudness.ts b/src/sdk/models/operations/getstreamloudness.ts index ba52b4bb..4de1909b 100644 --- a/src/sdk/models/operations/getstreamloudness.ts +++ b/src/sdk/models/operations/getstreamloudness.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,150 +130,6 @@ export type GetStreamLoudnessResponse = { res?: string | undefined; }; -/** @internal */ -export const GetStreamLoudnessGlobals$inboundSchema: z.ZodType< - GetStreamLoudnessGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetStreamLoudnessGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetStreamLoudnessGlobals$outboundSchema: z.ZodType< - GetStreamLoudnessGlobals$Outbound, - z.ZodTypeDef, - GetStreamLoudnessGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLoudnessGlobals$ { - /** @deprecated use `GetStreamLoudnessGlobals$inboundSchema` instead. */ - export const inboundSchema = GetStreamLoudnessGlobals$inboundSchema; - /** @deprecated use `GetStreamLoudnessGlobals$outboundSchema` instead. */ - export const outboundSchema = GetStreamLoudnessGlobals$outboundSchema; - /** @deprecated use `GetStreamLoudnessGlobals$Outbound` instead. */ - export type Outbound = GetStreamLoudnessGlobals$Outbound; -} - -export function getStreamLoudnessGlobalsToJSON( - getStreamLoudnessGlobals: GetStreamLoudnessGlobals, -): string { - return JSON.stringify( - GetStreamLoudnessGlobals$outboundSchema.parse(getStreamLoudnessGlobals), - ); -} - -export function getStreamLoudnessGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLoudnessGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLoudnessGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetStreamLoudnessRequest$inboundSchema: z.ZodType< - GetStreamLoudnessRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - streamId: z.number().int(), - subsample: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetStreamLoudnessRequest$Outbound = { accepts: string; @@ -325,19 +181,6 @@ export const GetStreamLoudnessRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLoudnessRequest$ { - /** @deprecated use `GetStreamLoudnessRequest$inboundSchema` instead. */ - export const inboundSchema = GetStreamLoudnessRequest$inboundSchema; - /** @deprecated use `GetStreamLoudnessRequest$outboundSchema` instead. */ - export const outboundSchema = GetStreamLoudnessRequest$outboundSchema; - /** @deprecated use `GetStreamLoudnessRequest$Outbound` instead. */ - export type Outbound = GetStreamLoudnessRequest$Outbound; -} - export function getStreamLoudnessRequestToJSON( getStreamLoudnessRequest: GetStreamLoudnessRequest, ): string { @@ -346,16 +189,6 @@ export function getStreamLoudnessRequestToJSON( ); } -export function getStreamLoudnessRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStreamLoudnessRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStreamLoudnessRequest' from JSON`, - ); -} - /** @internal */ export const GetStreamLoudnessResponse$inboundSchema: z.ZodType< GetStreamLoudnessResponse, @@ -374,55 +207,6 @@ export const GetStreamLoudnessResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStreamLoudnessResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - res?: string | undefined; -}; - -/** @internal */ -export const GetStreamLoudnessResponse$outboundSchema: z.ZodType< - GetStreamLoudnessResponse$Outbound, - z.ZodTypeDef, - GetStreamLoudnessResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - res: z.string().optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStreamLoudnessResponse$ { - /** @deprecated use `GetStreamLoudnessResponse$inboundSchema` instead. */ - export const inboundSchema = GetStreamLoudnessResponse$inboundSchema; - /** @deprecated use `GetStreamLoudnessResponse$outboundSchema` instead. */ - export const outboundSchema = GetStreamLoudnessResponse$outboundSchema; - /** @deprecated use `GetStreamLoudnessResponse$Outbound` instead. */ - export type Outbound = GetStreamLoudnessResponse$Outbound; -} - -export function getStreamLoudnessResponseToJSON( - getStreamLoudnessResponse: GetStreamLoudnessResponse, -): string { - return JSON.stringify( - GetStreamLoudnessResponse$outboundSchema.parse(getStreamLoudnessResponse), - ); -} - export function getStreamLoudnessResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getsubscription.ts b/src/sdk/models/operations/getsubscription.ts index e820f114..76501eac 100644 --- a/src/sdk/models/operations/getsubscription.ts +++ b/src/sdk/models/operations/getsubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,151 +133,6 @@ export type GetSubscriptionResponse = { | undefined; }; -/** @internal */ -export const GetSubscriptionGlobals$inboundSchema: z.ZodType< - GetSubscriptionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetSubscriptionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetSubscriptionGlobals$outboundSchema: z.ZodType< - GetSubscriptionGlobals$Outbound, - z.ZodTypeDef, - GetSubscriptionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubscriptionGlobals$ { - /** @deprecated use `GetSubscriptionGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSubscriptionGlobals$inboundSchema; - /** @deprecated use `GetSubscriptionGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSubscriptionGlobals$outboundSchema; - /** @deprecated use `GetSubscriptionGlobals$Outbound` instead. */ - export type Outbound = GetSubscriptionGlobals$Outbound; -} - -export function getSubscriptionGlobalsToJSON( - getSubscriptionGlobals: GetSubscriptionGlobals, -): string { - return JSON.stringify( - GetSubscriptionGlobals$outboundSchema.parse(getSubscriptionGlobals), - ); -} - -export function getSubscriptionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubscriptionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubscriptionGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSubscriptionRequest$inboundSchema: z.ZodType< - GetSubscriptionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - subscriptionId: z.number().int(), - includeGrabs: shared.BoolInt$inboundSchema.optional(), - includeStorage: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetSubscriptionRequest$Outbound = { accepts: string; @@ -331,19 +186,6 @@ export const GetSubscriptionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubscriptionRequest$ { - /** @deprecated use `GetSubscriptionRequest$inboundSchema` instead. */ - export const inboundSchema = GetSubscriptionRequest$inboundSchema; - /** @deprecated use `GetSubscriptionRequest$outboundSchema` instead. */ - export const outboundSchema = GetSubscriptionRequest$outboundSchema; - /** @deprecated use `GetSubscriptionRequest$Outbound` instead. */ - export type Outbound = GetSubscriptionRequest$Outbound; -} - export function getSubscriptionRequestToJSON( getSubscriptionRequest: GetSubscriptionRequest, ): string { @@ -352,16 +194,6 @@ export function getSubscriptionRequestToJSON( ); } -export function getSubscriptionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubscriptionRequest' from JSON`, - ); -} - /** @internal */ export const GetSubscriptionResponse$inboundSchema: z.ZodType< GetSubscriptionResponse, @@ -382,59 +214,6 @@ export const GetSubscriptionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSubscriptionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription$Outbound - | undefined; -}; - -/** @internal */ -export const GetSubscriptionResponse$outboundSchema: z.ZodType< - GetSubscriptionResponse$Outbound, - z.ZodTypeDef, - GetSubscriptionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSubscription: shared - .MediaContainerWithSubscription$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSubscription: "MediaContainerWithSubscription", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubscriptionResponse$ { - /** @deprecated use `GetSubscriptionResponse$inboundSchema` instead. */ - export const inboundSchema = GetSubscriptionResponse$inboundSchema; - /** @deprecated use `GetSubscriptionResponse$outboundSchema` instead. */ - export const outboundSchema = GetSubscriptionResponse$outboundSchema; - /** @deprecated use `GetSubscriptionResponse$Outbound` instead. */ - export type Outbound = GetSubscriptionResponse$Outbound; -} - -export function getSubscriptionResponseToJSON( - getSubscriptionResponse: GetSubscriptionResponse, -): string { - return JSON.stringify( - GetSubscriptionResponse$outboundSchema.parse(getSubscriptionResponse), - ); -} - export function getSubscriptionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettags.ts b/src/sdk/models/operations/gettags.ts index 46fc7032..c58881b0 100644 --- a/src/sdk/models/operations/gettags.ts +++ b/src/sdk/models/operations/gettags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -182,145 +182,6 @@ export type GetTagsResponse = { object?: GetTagsResponseBody | undefined; }; -/** @internal */ -export const GetTagsGlobals$inboundSchema: z.ZodType< - GetTagsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetTagsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetTagsGlobals$outboundSchema: z.ZodType< - GetTagsGlobals$Outbound, - z.ZodTypeDef, - GetTagsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsGlobals$ { - /** @deprecated use `GetTagsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTagsGlobals$inboundSchema; - /** @deprecated use `GetTagsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTagsGlobals$outboundSchema; - /** @deprecated use `GetTagsGlobals$Outbound` instead. */ - export type Outbound = GetTagsGlobals$Outbound; -} - -export function getTagsGlobalsToJSON(getTagsGlobals: GetTagsGlobals): string { - return JSON.stringify(GetTagsGlobals$outboundSchema.parse(getTagsGlobals)); -} - -export function getTagsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTagsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTagsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTagsRequest$inboundSchema: z.ZodType< - GetTagsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - type: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetTagsRequest$Outbound = { accepts: string; @@ -370,33 +231,10 @@ export const GetTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsRequest$ { - /** @deprecated use `GetTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagsRequest$inboundSchema; - /** @deprecated use `GetTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagsRequest$outboundSchema; - /** @deprecated use `GetTagsRequest$Outbound` instead. */ - export type Outbound = GetTagsRequest$Outbound; -} - export function getTagsRequestToJSON(getTagsRequest: GetTagsRequest): string { return JSON.stringify(GetTagsRequest$outboundSchema.parse(getTagsRequest)); } -export function getTagsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTagsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTagsRequest' from JSON`, - ); -} - /** @internal */ export const GetTagsDirectory$inboundSchema: z.ZodType< GetTagsDirectory, @@ -411,51 +249,6 @@ export const GetTagsDirectory$inboundSchema: z.ZodType< thumb: z.string().optional(), }); -/** @internal */ -export type GetTagsDirectory$Outbound = { - filter?: string | undefined; - id?: number | undefined; - tag?: string | undefined; - tagKey?: string | undefined; - tagType?: number | undefined; - thumb?: string | undefined; -}; - -/** @internal */ -export const GetTagsDirectory$outboundSchema: z.ZodType< - GetTagsDirectory$Outbound, - z.ZodTypeDef, - GetTagsDirectory -> = z.object({ - filter: z.string().optional(), - id: z.number().int().optional(), - tag: z.string().optional(), - tagKey: z.string().optional(), - tagType: z.number().int().optional(), - thumb: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsDirectory$ { - /** @deprecated use `GetTagsDirectory$inboundSchema` instead. */ - export const inboundSchema = GetTagsDirectory$inboundSchema; - /** @deprecated use `GetTagsDirectory$outboundSchema` instead. */ - export const outboundSchema = GetTagsDirectory$outboundSchema; - /** @deprecated use `GetTagsDirectory$Outbound` instead. */ - export type Outbound = GetTagsDirectory$Outbound; -} - -export function getTagsDirectoryToJSON( - getTagsDirectory: GetTagsDirectory, -): string { - return JSON.stringify( - GetTagsDirectory$outboundSchema.parse(getTagsDirectory), - ); -} - export function getTagsDirectoryFromJSON( jsonString: string, ): SafeParseResult { @@ -483,53 +276,6 @@ export const GetTagsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTagsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const GetTagsMediaContainer$outboundSchema: z.ZodType< - GetTagsMediaContainer$Outbound, - z.ZodTypeDef, - GetTagsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(z.lazy(() => GetTagsDirectory$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsMediaContainer$ { - /** @deprecated use `GetTagsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetTagsMediaContainer$inboundSchema; - /** @deprecated use `GetTagsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetTagsMediaContainer$outboundSchema; - /** @deprecated use `GetTagsMediaContainer$Outbound` instead. */ - export type Outbound = GetTagsMediaContainer$Outbound; -} - -export function getTagsMediaContainerToJSON( - getTagsMediaContainer: GetTagsMediaContainer, -): string { - return JSON.stringify( - GetTagsMediaContainer$outboundSchema.parse(getTagsMediaContainer), - ); -} - export function getTagsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -553,45 +299,6 @@ export const GetTagsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTagsResponseBody$Outbound = { - MediaContainer?: GetTagsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetTagsResponseBody$outboundSchema: z.ZodType< - GetTagsResponseBody$Outbound, - z.ZodTypeDef, - GetTagsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetTagsMediaContainer$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsResponseBody$ { - /** @deprecated use `GetTagsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTagsResponseBody$inboundSchema; - /** @deprecated use `GetTagsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTagsResponseBody$outboundSchema; - /** @deprecated use `GetTagsResponseBody$Outbound` instead. */ - export type Outbound = GetTagsResponseBody$Outbound; -} - -export function getTagsResponseBodyToJSON( - getTagsResponseBody: GetTagsResponseBody, -): string { - return JSON.stringify( - GetTagsResponseBody$outboundSchema.parse(getTagsResponseBody), - ); -} - export function getTagsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -620,53 +327,6 @@ export const GetTagsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTagsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetTagsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetTagsResponse$outboundSchema: z.ZodType< - GetTagsResponse$Outbound, - z.ZodTypeDef, - GetTagsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetTagsResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsResponse$ { - /** @deprecated use `GetTagsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTagsResponse$inboundSchema; - /** @deprecated use `GetTagsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTagsResponse$outboundSchema; - /** @deprecated use `GetTagsResponse$Outbound` instead. */ - export type Outbound = GetTagsResponse$Outbound; -} - -export function getTagsResponseToJSON( - getTagsResponse: GetTagsResponse, -): string { - return JSON.stringify(GetTagsResponse$outboundSchema.parse(getTagsResponse)); -} - export function getTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettasks.ts b/src/sdk/models/operations/gettasks.ts index aa3b27e5..84d364da 100644 --- a/src/sdk/models/operations/gettasks.ts +++ b/src/sdk/models/operations/gettasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -79,47 +79,6 @@ export const ButlerTask$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type ButlerTask$Outbound = { - description?: string | undefined; - enabled?: boolean | undefined; - interval?: number | undefined; - name?: string | undefined; - scheduleRandomized?: boolean | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const ButlerTask$outboundSchema: z.ZodType< - ButlerTask$Outbound, - z.ZodTypeDef, - ButlerTask -> = z.object({ - description: z.string().optional(), - enabled: z.boolean().optional(), - interval: z.number().int().optional(), - name: z.string().optional(), - scheduleRandomized: z.boolean().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ButlerTask$ { - /** @deprecated use `ButlerTask$inboundSchema` instead. */ - export const inboundSchema = ButlerTask$inboundSchema; - /** @deprecated use `ButlerTask$outboundSchema` instead. */ - export const outboundSchema = ButlerTask$outboundSchema; - /** @deprecated use `ButlerTask$Outbound` instead. */ - export type Outbound = ButlerTask$Outbound; -} - -export function butlerTaskToJSON(butlerTask: ButlerTask): string { - return JSON.stringify(ButlerTask$outboundSchema.parse(butlerTask)); -} - export function butlerTaskFromJSON( jsonString: string, ): SafeParseResult { @@ -143,41 +102,6 @@ export const ButlerTasks$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ButlerTasks$Outbound = { - ButlerTask?: Array | undefined; -}; - -/** @internal */ -export const ButlerTasks$outboundSchema: z.ZodType< - ButlerTasks$Outbound, - z.ZodTypeDef, - ButlerTasks -> = z.object({ - butlerTask: z.array(z.lazy(() => ButlerTask$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - butlerTask: "ButlerTask", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ButlerTasks$ { - /** @deprecated use `ButlerTasks$inboundSchema` instead. */ - export const inboundSchema = ButlerTasks$inboundSchema; - /** @deprecated use `ButlerTasks$outboundSchema` instead. */ - export const outboundSchema = ButlerTasks$outboundSchema; - /** @deprecated use `ButlerTasks$Outbound` instead. */ - export type Outbound = ButlerTasks$Outbound; -} - -export function butlerTasksToJSON(butlerTasks: ButlerTasks): string { - return JSON.stringify(ButlerTasks$outboundSchema.parse(butlerTasks)); -} - export function butlerTasksFromJSON( jsonString: string, ): SafeParseResult { @@ -201,45 +125,6 @@ export const GetTasksResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTasksResponseBody$Outbound = { - ButlerTasks?: ButlerTasks$Outbound | undefined; -}; - -/** @internal */ -export const GetTasksResponseBody$outboundSchema: z.ZodType< - GetTasksResponseBody$Outbound, - z.ZodTypeDef, - GetTasksResponseBody -> = z.object({ - butlerTasks: z.lazy(() => ButlerTasks$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - butlerTasks: "ButlerTasks", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTasksResponseBody$ { - /** @deprecated use `GetTasksResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTasksResponseBody$inboundSchema; - /** @deprecated use `GetTasksResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTasksResponseBody$outboundSchema; - /** @deprecated use `GetTasksResponseBody$Outbound` instead. */ - export type Outbound = GetTasksResponseBody$Outbound; -} - -export function getTasksResponseBodyToJSON( - getTasksResponseBody: GetTasksResponseBody, -): string { - return JSON.stringify( - GetTasksResponseBody$outboundSchema.parse(getTasksResponseBody), - ); -} - export function getTasksResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -268,55 +153,6 @@ export const GetTasksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetTasksResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetTasksResponse$outboundSchema: z.ZodType< - GetTasksResponse$Outbound, - z.ZodTypeDef, - GetTasksResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetTasksResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTasksResponse$ { - /** @deprecated use `GetTasksResponse$inboundSchema` instead. */ - export const inboundSchema = GetTasksResponse$inboundSchema; - /** @deprecated use `GetTasksResponse$outboundSchema` instead. */ - export const outboundSchema = GetTasksResponse$outboundSchema; - /** @deprecated use `GetTasksResponse$Outbound` instead. */ - export type Outbound = GetTasksResponse$Outbound; -} - -export function getTasksResponseToJSON( - getTasksResponse: GetTasksResponse, -): string { - return JSON.stringify( - GetTasksResponse$outboundSchema.parse(getTasksResponse), - ); -} - export function getTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettemplate.ts b/src/sdk/models/operations/gettemplate.ts index 5054de36..a6b955f5 100644 --- a/src/sdk/models/operations/gettemplate.ts +++ b/src/sdk/models/operations/gettemplate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -219,149 +219,6 @@ export type GetTemplateResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const GetTemplateGlobals$inboundSchema: z.ZodType< - GetTemplateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetTemplateGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetTemplateGlobals$outboundSchema: z.ZodType< - GetTemplateGlobals$Outbound, - z.ZodTypeDef, - GetTemplateGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTemplateGlobals$ { - /** @deprecated use `GetTemplateGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTemplateGlobals$inboundSchema; - /** @deprecated use `GetTemplateGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTemplateGlobals$outboundSchema; - /** @deprecated use `GetTemplateGlobals$Outbound` instead. */ - export type Outbound = GetTemplateGlobals$Outbound; -} - -export function getTemplateGlobalsToJSON( - getTemplateGlobals: GetTemplateGlobals, -): string { - return JSON.stringify( - GetTemplateGlobals$outboundSchema.parse(getTemplateGlobals), - ); -} - -export function getTemplateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTemplateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTemplateGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTemplateRequest$inboundSchema: z.ZodType< - GetTemplateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - guid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetTemplateRequest$Outbound = { accepts: string; @@ -411,19 +268,6 @@ export const GetTemplateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTemplateRequest$ { - /** @deprecated use `GetTemplateRequest$inboundSchema` instead. */ - export const inboundSchema = GetTemplateRequest$inboundSchema; - /** @deprecated use `GetTemplateRequest$outboundSchema` instead. */ - export const outboundSchema = GetTemplateRequest$outboundSchema; - /** @deprecated use `GetTemplateRequest$Outbound` instead. */ - export type Outbound = GetTemplateRequest$Outbound; -} - export function getTemplateRequestToJSON( getTemplateRequest: GetTemplateRequest, ): string { @@ -432,16 +276,6 @@ export function getTemplateRequestToJSON( ); } -export function getTemplateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTemplateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTemplateRequest' from JSON`, - ); -} - /** @internal */ export const MediaSubscription$inboundSchema: z.ZodType< MediaSubscription, @@ -477,84 +311,6 @@ export const MediaSubscription$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaSubscription$Outbound = { - title?: string | undefined; - type?: number | undefined; - airingsType?: string | undefined; - createdAt?: number | undefined; - Directory?: { [k: string]: any } | undefined; - durationTotal?: number | undefined; - key?: string | undefined; - librarySectionTitle?: string | undefined; - locationPath?: string | undefined; - MediaGrabOperation?: Array | undefined; - Playlist?: { [k: string]: any } | undefined; - Setting?: Array | undefined; - storageTotal?: number | undefined; - targetLibrarySectionID?: number | undefined; - targetSectionLocationID?: number | undefined; - Video?: { [k: string]: any } | undefined; - parameters?: string | undefined; - selected?: boolean | undefined; -}; - -/** @internal */ -export const MediaSubscription$outboundSchema: z.ZodType< - MediaSubscription$Outbound, - z.ZodTypeDef, - MediaSubscription -> = z.object({ - title: z.string().optional(), - type: z.number().int().optional(), - airingsType: z.string().optional(), - createdAt: z.number().int().optional(), - directory: z.record(z.any()).optional(), - durationTotal: z.number().int().optional(), - key: z.string().optional(), - librarySectionTitle: z.string().optional(), - locationPath: z.string().optional(), - mediaGrabOperation: z.array(shared.MediaGrabOperation$outboundSchema) - .optional(), - playlist: z.record(z.any()).optional(), - setting: z.array(shared.Setting$outboundSchema).optional(), - storageTotal: z.number().int().optional(), - targetLibrarySectionID: z.number().int().optional(), - targetSectionLocationID: z.number().int().optional(), - video: z.record(z.any()).optional(), - parameters: z.string().optional(), - selected: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - mediaGrabOperation: "MediaGrabOperation", - playlist: "Playlist", - setting: "Setting", - video: "Video", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaSubscription$ { - /** @deprecated use `MediaSubscription$inboundSchema` instead. */ - export const inboundSchema = MediaSubscription$inboundSchema; - /** @deprecated use `MediaSubscription$outboundSchema` instead. */ - export const outboundSchema = MediaSubscription$outboundSchema; - /** @deprecated use `MediaSubscription$Outbound` instead. */ - export type Outbound = MediaSubscription$Outbound; -} - -export function mediaSubscriptionToJSON( - mediaSubscription: MediaSubscription, -): string { - return JSON.stringify( - MediaSubscription$outboundSchema.parse(mediaSubscription), - ); -} - export function mediaSubscriptionFromJSON( jsonString: string, ): SafeParseResult { @@ -579,46 +335,6 @@ export const SubscriptionTemplate$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SubscriptionTemplate$Outbound = { - MediaSubscription?: Array | undefined; -}; - -/** @internal */ -export const SubscriptionTemplate$outboundSchema: z.ZodType< - SubscriptionTemplate$Outbound, - z.ZodTypeDef, - SubscriptionTemplate -> = z.object({ - mediaSubscription: z.array(z.lazy(() => MediaSubscription$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaSubscription: "MediaSubscription", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubscriptionTemplate$ { - /** @deprecated use `SubscriptionTemplate$inboundSchema` instead. */ - export const inboundSchema = SubscriptionTemplate$inboundSchema; - /** @deprecated use `SubscriptionTemplate$outboundSchema` instead. */ - export const outboundSchema = SubscriptionTemplate$outboundSchema; - /** @deprecated use `SubscriptionTemplate$Outbound` instead. */ - export type Outbound = SubscriptionTemplate$Outbound; -} - -export function subscriptionTemplateToJSON( - subscriptionTemplate: SubscriptionTemplate, -): string { - return JSON.stringify( - SubscriptionTemplate$outboundSchema.parse(subscriptionTemplate), - ); -} - export function subscriptionTemplateFromJSON( jsonString: string, ): SafeParseResult { @@ -648,55 +364,6 @@ export const GetTemplateMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTemplateMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - SubscriptionTemplate?: Array | undefined; -}; - -/** @internal */ -export const GetTemplateMediaContainer$outboundSchema: z.ZodType< - GetTemplateMediaContainer$Outbound, - z.ZodTypeDef, - GetTemplateMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - subscriptionTemplate: z.array( - z.lazy(() => SubscriptionTemplate$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - subscriptionTemplate: "SubscriptionTemplate", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTemplateMediaContainer$ { - /** @deprecated use `GetTemplateMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetTemplateMediaContainer$inboundSchema; - /** @deprecated use `GetTemplateMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetTemplateMediaContainer$outboundSchema; - /** @deprecated use `GetTemplateMediaContainer$Outbound` instead. */ - export type Outbound = GetTemplateMediaContainer$Outbound; -} - -export function getTemplateMediaContainerToJSON( - getTemplateMediaContainer: GetTemplateMediaContainer, -): string { - return JSON.stringify( - GetTemplateMediaContainer$outboundSchema.parse(getTemplateMediaContainer), - ); -} - export function getTemplateMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -721,46 +388,6 @@ export const GetTemplateResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTemplateResponseBody$Outbound = { - MediaContainer?: GetTemplateMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetTemplateResponseBody$outboundSchema: z.ZodType< - GetTemplateResponseBody$Outbound, - z.ZodTypeDef, - GetTemplateResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetTemplateMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTemplateResponseBody$ { - /** @deprecated use `GetTemplateResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTemplateResponseBody$inboundSchema; - /** @deprecated use `GetTemplateResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTemplateResponseBody$outboundSchema; - /** @deprecated use `GetTemplateResponseBody$Outbound` instead. */ - export type Outbound = GetTemplateResponseBody$Outbound; -} - -export function getTemplateResponseBodyToJSON( - getTemplateResponseBody: GetTemplateResponseBody, -): string { - return JSON.stringify( - GetTemplateResponseBody$outboundSchema.parse(getTemplateResponseBody), - ); -} - export function getTemplateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -781,7 +408,7 @@ export const GetTemplateResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => GetTemplateResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -791,58 +418,6 @@ export const GetTemplateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTemplateResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetTemplateResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const GetTemplateResponse$outboundSchema: z.ZodType< - GetTemplateResponse$Outbound, - z.ZodTypeDef, - GetTemplateResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetTemplateResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTemplateResponse$ { - /** @deprecated use `GetTemplateResponse$inboundSchema` instead. */ - export const inboundSchema = GetTemplateResponse$inboundSchema; - /** @deprecated use `GetTemplateResponse$outboundSchema` instead. */ - export const outboundSchema = GetTemplateResponse$outboundSchema; - /** @deprecated use `GetTemplateResponse$Outbound` instead. */ - export type Outbound = GetTemplateResponse$Outbound; -} - -export function getTemplateResponseToJSON( - getTemplateResponse: GetTemplateResponse, -): string { - return JSON.stringify( - GetTemplateResponse$outboundSchema.parse(getTemplateResponse), - ); -} - export function getTemplateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getthumb.ts b/src/sdk/models/operations/getthumb.ts index e063fadc..4e06b6e5 100644 --- a/src/sdk/models/operations/getthumb.ts +++ b/src/sdk/models/operations/getthumb.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,148 +126,6 @@ export type GetThumbResponse = { rawResponse: Response; }; -/** @internal */ -export const GetThumbGlobals$inboundSchema: z.ZodType< - GetThumbGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetThumbGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetThumbGlobals$outboundSchema: z.ZodType< - GetThumbGlobals$Outbound, - z.ZodTypeDef, - GetThumbGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetThumbGlobals$ { - /** @deprecated use `GetThumbGlobals$inboundSchema` instead. */ - export const inboundSchema = GetThumbGlobals$inboundSchema; - /** @deprecated use `GetThumbGlobals$outboundSchema` instead. */ - export const outboundSchema = GetThumbGlobals$outboundSchema; - /** @deprecated use `GetThumbGlobals$Outbound` instead. */ - export type Outbound = GetThumbGlobals$Outbound; -} - -export function getThumbGlobalsToJSON( - getThumbGlobals: GetThumbGlobals, -): string { - return JSON.stringify(GetThumbGlobals$outboundSchema.parse(getThumbGlobals)); -} - -export function getThumbGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetThumbGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetThumbGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetThumbRequest$inboundSchema: z.ZodType< - GetThumbRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), - versionPathParameter: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type GetThumbRequest$Outbound = { accepts: string; @@ -319,35 +177,12 @@ export const GetThumbRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetThumbRequest$ { - /** @deprecated use `GetThumbRequest$inboundSchema` instead. */ - export const inboundSchema = GetThumbRequest$inboundSchema; - /** @deprecated use `GetThumbRequest$outboundSchema` instead. */ - export const outboundSchema = GetThumbRequest$outboundSchema; - /** @deprecated use `GetThumbRequest$Outbound` instead. */ - export type Outbound = GetThumbRequest$Outbound; -} - export function getThumbRequestToJSON( getThumbRequest: GetThumbRequest, ): string { return JSON.stringify(GetThumbRequest$outboundSchema.parse(getThumbRequest)); } -export function getThumbRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetThumbRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetThumbRequest' from JSON`, - ); -} - /** @internal */ export const GetThumbResponse$inboundSchema: z.ZodType< GetThumbResponse, @@ -365,53 +200,6 @@ export const GetThumbResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetThumbResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetThumbResponse$outboundSchema: z.ZodType< - GetThumbResponse$Outbound, - z.ZodTypeDef, - GetThumbResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetThumbResponse$ { - /** @deprecated use `GetThumbResponse$inboundSchema` instead. */ - export const inboundSchema = GetThumbResponse$inboundSchema; - /** @deprecated use `GetThumbResponse$outboundSchema` instead. */ - export const outboundSchema = GetThumbResponse$outboundSchema; - /** @deprecated use `GetThumbResponse$Outbound` instead. */ - export type Outbound = GetThumbResponse$Outbound; -} - -export function getThumbResponseToJSON( - getThumbResponse: GetThumbResponse, -): string { - return JSON.stringify( - GetThumbResponse$outboundSchema.parse(getThumbResponse), - ); -} - export function getThumbResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettransienttoken.ts b/src/sdk/models/operations/gettransienttoken.ts index 7001e5a4..d973be68 100644 --- a/src/sdk/models/operations/gettransienttoken.ts +++ b/src/sdk/models/operations/gettransienttoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -180,190 +180,14 @@ export type GetTransientTokenResponse = { }; /** @internal */ -export const GetTransientTokenGlobals$inboundSchema: z.ZodType< - GetTransientTokenGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type GetTransientTokenGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const GetTransientTokenGlobals$outboundSchema: z.ZodType< - GetTransientTokenGlobals$Outbound, - z.ZodTypeDef, - GetTransientTokenGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenGlobals$ { - /** @deprecated use `GetTransientTokenGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenGlobals$inboundSchema; - /** @deprecated use `GetTransientTokenGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenGlobals$outboundSchema; - /** @deprecated use `GetTransientTokenGlobals$Outbound` instead. */ - export type Outbound = GetTransientTokenGlobals$Outbound; -} - -export function getTransientTokenGlobalsToJSON( - getTransientTokenGlobals: GetTransientTokenGlobals, -): string { - return JSON.stringify( - GetTransientTokenGlobals$outboundSchema.parse(getTransientTokenGlobals), - ); -} - -export function getTransientTokenGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransientTokenGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransientTokenGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTransientTokenType$inboundSchema: z.ZodNativeEnum< +export const GetTransientTokenType$outboundSchema: z.ZodNativeEnum< typeof GetTransientTokenType > = z.nativeEnum(GetTransientTokenType); -/** @internal */ -export const GetTransientTokenType$outboundSchema: z.ZodNativeEnum< - typeof GetTransientTokenType -> = GetTransientTokenType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenType$ { - /** @deprecated use `GetTransientTokenType$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenType$inboundSchema; - /** @deprecated use `GetTransientTokenType$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenType$outboundSchema; -} - -/** @internal */ -export const GetTransientTokenScope$inboundSchema: z.ZodNativeEnum< - typeof GetTransientTokenScope -> = z.nativeEnum(GetTransientTokenScope); - /** @internal */ export const GetTransientTokenScope$outboundSchema: z.ZodNativeEnum< typeof GetTransientTokenScope -> = GetTransientTokenScope$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenScope$ { - /** @deprecated use `GetTransientTokenScope$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenScope$inboundSchema; - /** @deprecated use `GetTransientTokenScope$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenScope$outboundSchema; -} - -/** @internal */ -export const GetTransientTokenRequest$inboundSchema: z.ZodType< - GetTransientTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - type: GetTransientTokenType$inboundSchema, - scope: GetTransientTokenScope$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(GetTransientTokenScope); /** @internal */ export type GetTransientTokenRequest$Outbound = { @@ -416,19 +240,6 @@ export const GetTransientTokenRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenRequest$ { - /** @deprecated use `GetTransientTokenRequest$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenRequest$inboundSchema; - /** @deprecated use `GetTransientTokenRequest$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenRequest$outboundSchema; - /** @deprecated use `GetTransientTokenRequest$Outbound` instead. */ - export type Outbound = GetTransientTokenRequest$Outbound; -} - export function getTransientTokenRequestToJSON( getTransientTokenRequest: GetTransientTokenRequest, ): string { @@ -437,16 +248,6 @@ export function getTransientTokenRequestToJSON( ); } -export function getTransientTokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransientTokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransientTokenRequest' from JSON`, - ); -} - /** @internal */ export const GetTransientTokenMediaContainer$inboundSchema: z.ZodType< GetTransientTokenMediaContainer, @@ -460,51 +261,6 @@ export const GetTransientTokenMediaContainer$inboundSchema: z.ZodType< token: z.string().optional(), }); -/** @internal */ -export type GetTransientTokenMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - token?: string | undefined; -}; - -/** @internal */ -export const GetTransientTokenMediaContainer$outboundSchema: z.ZodType< - GetTransientTokenMediaContainer$Outbound, - z.ZodTypeDef, - GetTransientTokenMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - token: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenMediaContainer$ { - /** @deprecated use `GetTransientTokenMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenMediaContainer$inboundSchema; - /** @deprecated use `GetTransientTokenMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenMediaContainer$outboundSchema; - /** @deprecated use `GetTransientTokenMediaContainer$Outbound` instead. */ - export type Outbound = GetTransientTokenMediaContainer$Outbound; -} - -export function getTransientTokenMediaContainerToJSON( - getTransientTokenMediaContainer: GetTransientTokenMediaContainer, -): string { - return JSON.stringify( - GetTransientTokenMediaContainer$outboundSchema.parse( - getTransientTokenMediaContainer, - ), - ); -} - export function getTransientTokenMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -529,48 +285,6 @@ export const GetTransientTokenResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTransientTokenResponseBody$Outbound = { - MediaContainer?: GetTransientTokenMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetTransientTokenResponseBody$outboundSchema: z.ZodType< - GetTransientTokenResponseBody$Outbound, - z.ZodTypeDef, - GetTransientTokenResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetTransientTokenMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenResponseBody$ { - /** @deprecated use `GetTransientTokenResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenResponseBody$inboundSchema; - /** @deprecated use `GetTransientTokenResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenResponseBody$outboundSchema; - /** @deprecated use `GetTransientTokenResponseBody$Outbound` instead. */ - export type Outbound = GetTransientTokenResponseBody$Outbound; -} - -export function getTransientTokenResponseBodyToJSON( - getTransientTokenResponseBody: GetTransientTokenResponseBody, -): string { - return JSON.stringify( - GetTransientTokenResponseBody$outboundSchema.parse( - getTransientTokenResponseBody, - ), - ); -} - export function getTransientTokenResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -599,55 +313,6 @@ export const GetTransientTokenResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTransientTokenResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetTransientTokenResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetTransientTokenResponse$outboundSchema: z.ZodType< - GetTransientTokenResponse$Outbound, - z.ZodTypeDef, - GetTransientTokenResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetTransientTokenResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenResponse$ { - /** @deprecated use `GetTransientTokenResponse$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenResponse$inboundSchema; - /** @deprecated use `GetTransientTokenResponse$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenResponse$outboundSchema; - /** @deprecated use `GetTransientTokenResponse$Outbound` instead. */ - export type Outbound = GetTransientTokenResponse$Outbound; -} - -export function getTransientTokenResponseToJSON( - getTransientTokenResponse: GetTransientTokenResponse, -): string { - return JSON.stringify( - GetTransientTokenResponse$outboundSchema.parse(getTransientTokenResponse), - ); -} - export function getTransientTokenResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getupdatesstatus.ts b/src/sdk/models/operations/getupdatesstatus.ts index 606cd9aa..78d755e6 100644 --- a/src/sdk/models/operations/getupdatesstatus.ts +++ b/src/sdk/models/operations/getupdatesstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -129,22 +129,6 @@ export const GetUpdatesStatusState$inboundSchema: z.ZodNativeEnum< typeof GetUpdatesStatusState > = z.nativeEnum(GetUpdatesStatusState); -/** @internal */ -export const GetUpdatesStatusState$outboundSchema: z.ZodNativeEnum< - typeof GetUpdatesStatusState -> = GetUpdatesStatusState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUpdatesStatusState$ { - /** @deprecated use `GetUpdatesStatusState$inboundSchema` instead. */ - export const inboundSchema = GetUpdatesStatusState$inboundSchema; - /** @deprecated use `GetUpdatesStatusState$outboundSchema` instead. */ - export const outboundSchema = GetUpdatesStatusState$outboundSchema; -} - /** @internal */ export const Release$inboundSchema: z.ZodType = z.object({ @@ -156,47 +140,6 @@ export const Release$inboundSchema: z.ZodType = version: z.string().optional(), }); -/** @internal */ -export type Release$Outbound = { - added?: string | undefined; - downloadURL?: string | undefined; - fixed?: string | undefined; - key?: string | undefined; - state?: string | undefined; - version?: string | undefined; -}; - -/** @internal */ -export const Release$outboundSchema: z.ZodType< - Release$Outbound, - z.ZodTypeDef, - Release -> = z.object({ - added: z.string().optional(), - downloadURL: z.string().optional(), - fixed: z.string().optional(), - key: z.string().optional(), - state: GetUpdatesStatusState$outboundSchema.optional(), - version: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Release$ { - /** @deprecated use `Release$inboundSchema` instead. */ - export const inboundSchema = Release$inboundSchema; - /** @deprecated use `Release$outboundSchema` instead. */ - export const outboundSchema = Release$outboundSchema; - /** @deprecated use `Release$Outbound` instead. */ - export type Outbound = Release$Outbound; -} - -export function releaseToJSON(release: Release): string { - return JSON.stringify(Release$outboundSchema.parse(release)); -} - export function releaseFromJSON( jsonString: string, ): SafeParseResult { @@ -225,57 +168,6 @@ export const GetUpdatesStatusMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUpdatesStatusMediaContainer$Outbound = { - autoUpdateVersion?: number | undefined; - canInstall?: boolean | undefined; - checkedAt?: number | undefined; - downloadURL?: string | undefined; - Release?: Array | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetUpdatesStatusMediaContainer$outboundSchema: z.ZodType< - GetUpdatesStatusMediaContainer$Outbound, - z.ZodTypeDef, - GetUpdatesStatusMediaContainer -> = z.object({ - autoUpdateVersion: z.number().int().optional(), - canInstall: z.boolean().optional(), - checkedAt: z.number().int().optional(), - downloadURL: z.string().optional(), - release: z.array(z.lazy(() => Release$outboundSchema)).optional(), - status: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - release: "Release", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUpdatesStatusMediaContainer$ { - /** @deprecated use `GetUpdatesStatusMediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetUpdatesStatusMediaContainer$inboundSchema; - /** @deprecated use `GetUpdatesStatusMediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetUpdatesStatusMediaContainer$outboundSchema; - /** @deprecated use `GetUpdatesStatusMediaContainer$Outbound` instead. */ - export type Outbound = GetUpdatesStatusMediaContainer$Outbound; -} - -export function getUpdatesStatusMediaContainerToJSON( - getUpdatesStatusMediaContainer: GetUpdatesStatusMediaContainer, -): string { - return JSON.stringify( - GetUpdatesStatusMediaContainer$outboundSchema.parse( - getUpdatesStatusMediaContainer, - ), - ); -} - export function getUpdatesStatusMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -300,48 +192,6 @@ export const GetUpdatesStatusResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUpdatesStatusResponseBody$Outbound = { - MediaContainer?: GetUpdatesStatusMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetUpdatesStatusResponseBody$outboundSchema: z.ZodType< - GetUpdatesStatusResponseBody$Outbound, - z.ZodTypeDef, - GetUpdatesStatusResponseBody -> = z.object({ - mediaContainer: z.lazy(() => GetUpdatesStatusMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUpdatesStatusResponseBody$ { - /** @deprecated use `GetUpdatesStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetUpdatesStatusResponseBody$inboundSchema; - /** @deprecated use `GetUpdatesStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetUpdatesStatusResponseBody$outboundSchema; - /** @deprecated use `GetUpdatesStatusResponseBody$Outbound` instead. */ - export type Outbound = GetUpdatesStatusResponseBody$Outbound; -} - -export function getUpdatesStatusResponseBodyToJSON( - getUpdatesStatusResponseBody: GetUpdatesStatusResponseBody, -): string { - return JSON.stringify( - GetUpdatesStatusResponseBody$outboundSchema.parse( - getUpdatesStatusResponseBody, - ), - ); -} - export function getUpdatesStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -370,55 +220,6 @@ export const GetUpdatesStatusResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUpdatesStatusResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetUpdatesStatusResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetUpdatesStatusResponse$outboundSchema: z.ZodType< - GetUpdatesStatusResponse$Outbound, - z.ZodTypeDef, - GetUpdatesStatusResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetUpdatesStatusResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUpdatesStatusResponse$ { - /** @deprecated use `GetUpdatesStatusResponse$inboundSchema` instead. */ - export const inboundSchema = GetUpdatesStatusResponse$inboundSchema; - /** @deprecated use `GetUpdatesStatusResponse$outboundSchema` instead. */ - export const outboundSchema = GetUpdatesStatusResponse$outboundSchema; - /** @deprecated use `GetUpdatesStatusResponse$Outbound` instead. */ - export type Outbound = GetUpdatesStatusResponse$Outbound; -} - -export function getUpdatesStatusResponseToJSON( - getUpdatesStatusResponse: GetUpdatesStatusResponse, -): string { - return JSON.stringify( - GetUpdatesStatusResponse$outboundSchema.parse(getUpdatesStatusResponse), - ); -} - export function getUpdatesStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/ingesttransientitem.ts b/src/sdk/models/operations/ingesttransientitem.ts index a870931a..0c4ffd74 100644 --- a/src/sdk/models/operations/ingesttransientitem.ts +++ b/src/sdk/models/operations/ingesttransientitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -139,152 +139,6 @@ export type IngestTransientItemResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const IngestTransientItemGlobals$inboundSchema: z.ZodType< - IngestTransientItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type IngestTransientItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const IngestTransientItemGlobals$outboundSchema: z.ZodType< - IngestTransientItemGlobals$Outbound, - z.ZodTypeDef, - IngestTransientItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IngestTransientItemGlobals$ { - /** @deprecated use `IngestTransientItemGlobals$inboundSchema` instead. */ - export const inboundSchema = IngestTransientItemGlobals$inboundSchema; - /** @deprecated use `IngestTransientItemGlobals$outboundSchema` instead. */ - export const outboundSchema = IngestTransientItemGlobals$outboundSchema; - /** @deprecated use `IngestTransientItemGlobals$Outbound` instead. */ - export type Outbound = IngestTransientItemGlobals$Outbound; -} - -export function ingestTransientItemGlobalsToJSON( - ingestTransientItemGlobals: IngestTransientItemGlobals, -): string { - return JSON.stringify( - IngestTransientItemGlobals$outboundSchema.parse(ingestTransientItemGlobals), - ); -} - -export function ingestTransientItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IngestTransientItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IngestTransientItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const IngestTransientItemRequest$inboundSchema: z.ZodType< - IngestTransientItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - url: z.string().optional(), - virtualFilePath: z.string().optional(), - computeHashes: shared.BoolInt$inboundSchema.optional(), - ingestNonMatches: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type IngestTransientItemRequest$Outbound = { accepts: string; @@ -340,19 +194,6 @@ export const IngestTransientItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IngestTransientItemRequest$ { - /** @deprecated use `IngestTransientItemRequest$inboundSchema` instead. */ - export const inboundSchema = IngestTransientItemRequest$inboundSchema; - /** @deprecated use `IngestTransientItemRequest$outboundSchema` instead. */ - export const outboundSchema = IngestTransientItemRequest$outboundSchema; - /** @deprecated use `IngestTransientItemRequest$Outbound` instead. */ - export type Outbound = IngestTransientItemRequest$Outbound; -} - export function ingestTransientItemRequestToJSON( ingestTransientItemRequest: IngestTransientItemRequest, ): string { @@ -361,16 +202,6 @@ export function ingestTransientItemRequestToJSON( ); } -export function ingestTransientItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IngestTransientItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IngestTransientItemRequest' from JSON`, - ); -} - /** @internal */ export const IngestTransientItemResponse$inboundSchema: z.ZodType< IngestTransientItemResponse, @@ -382,7 +213,7 @@ export const IngestTransientItemResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -393,64 +224,6 @@ export const IngestTransientItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IngestTransientItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const IngestTransientItemResponse$outboundSchema: z.ZodType< - IngestTransientItemResponse$Outbound, - z.ZodTypeDef, - IngestTransientItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IngestTransientItemResponse$ { - /** @deprecated use `IngestTransientItemResponse$inboundSchema` instead. */ - export const inboundSchema = IngestTransientItemResponse$inboundSchema; - /** @deprecated use `IngestTransientItemResponse$outboundSchema` instead. */ - export const outboundSchema = IngestTransientItemResponse$outboundSchema; - /** @deprecated use `IngestTransientItemResponse$Outbound` instead. */ - export type Outbound = IngestTransientItemResponse$Outbound; -} - -export function ingestTransientItemResponseToJSON( - ingestTransientItemResponse: IngestTransientItemResponse, -): string { - return JSON.stringify( - IngestTransientItemResponse$outboundSchema.parse( - ingestTransientItemResponse, - ), - ); -} - export function ingestTransientItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listactivities.ts b/src/sdk/models/operations/listactivities.ts index ab0f3d54..3e718263 100644 --- a/src/sdk/models/operations/listactivities.ts +++ b/src/sdk/models/operations/listactivities.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -99,58 +99,6 @@ export const Activity$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Activity$Outbound = { - cancellable?: boolean | undefined; - Context?: { [k: string]: any } | undefined; - progress?: number | undefined; - Response?: { [k: string]: any } | undefined; - subtitle?: string | undefined; - title?: string | undefined; - type?: string | undefined; - userID?: number | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const Activity$outboundSchema: z.ZodType< - Activity$Outbound, - z.ZodTypeDef, - Activity -> = z.object({ - cancellable: z.boolean().optional(), - context: z.record(z.any()).optional(), - progress: z.number().optional(), - response: z.record(z.any()).optional(), - subtitle: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - userID: z.number().int().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - context: "Context", - response: "Response", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Activity$ { - /** @deprecated use `Activity$inboundSchema` instead. */ - export const inboundSchema = Activity$inboundSchema; - /** @deprecated use `Activity$outboundSchema` instead. */ - export const outboundSchema = Activity$outboundSchema; - /** @deprecated use `Activity$Outbound` instead. */ - export type Outbound = Activity$Outbound; -} - -export function activityToJSON(activity: Activity): string { - return JSON.stringify(Activity$outboundSchema.parse(activity)); -} - export function activityFromJSON( jsonString: string, ): SafeParseResult { @@ -174,47 +122,6 @@ export const ListActivitiesMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListActivitiesMediaContainer$Outbound = { - Activity?: Array | undefined; -}; - -/** @internal */ -export const ListActivitiesMediaContainer$outboundSchema: z.ZodType< - ListActivitiesMediaContainer$Outbound, - z.ZodTypeDef, - ListActivitiesMediaContainer -> = z.object({ - activity: z.array(z.lazy(() => Activity$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - activity: "Activity", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivitiesMediaContainer$ { - /** @deprecated use `ListActivitiesMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListActivitiesMediaContainer$inboundSchema; - /** @deprecated use `ListActivitiesMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListActivitiesMediaContainer$outboundSchema; - /** @deprecated use `ListActivitiesMediaContainer$Outbound` instead. */ - export type Outbound = ListActivitiesMediaContainer$Outbound; -} - -export function listActivitiesMediaContainerToJSON( - listActivitiesMediaContainer: ListActivitiesMediaContainer, -): string { - return JSON.stringify( - ListActivitiesMediaContainer$outboundSchema.parse( - listActivitiesMediaContainer, - ), - ); -} - export function listActivitiesMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -239,46 +146,6 @@ export const ListActivitiesResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListActivitiesResponseBody$Outbound = { - MediaContainer?: ListActivitiesMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListActivitiesResponseBody$outboundSchema: z.ZodType< - ListActivitiesResponseBody$Outbound, - z.ZodTypeDef, - ListActivitiesResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListActivitiesMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivitiesResponseBody$ { - /** @deprecated use `ListActivitiesResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListActivitiesResponseBody$inboundSchema; - /** @deprecated use `ListActivitiesResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListActivitiesResponseBody$outboundSchema; - /** @deprecated use `ListActivitiesResponseBody$Outbound` instead. */ - export type Outbound = ListActivitiesResponseBody$Outbound; -} - -export function listActivitiesResponseBodyToJSON( - listActivitiesResponseBody: ListActivitiesResponseBody, -): string { - return JSON.stringify( - ListActivitiesResponseBody$outboundSchema.parse(listActivitiesResponseBody), - ); -} - export function listActivitiesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -307,55 +174,6 @@ export const ListActivitiesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListActivitiesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListActivitiesResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const ListActivitiesResponse$outboundSchema: z.ZodType< - ListActivitiesResponse$Outbound, - z.ZodTypeDef, - ListActivitiesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListActivitiesResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivitiesResponse$ { - /** @deprecated use `ListActivitiesResponse$inboundSchema` instead. */ - export const inboundSchema = ListActivitiesResponse$inboundSchema; - /** @deprecated use `ListActivitiesResponse$outboundSchema` instead. */ - export const outboundSchema = ListActivitiesResponse$outboundSchema; - /** @deprecated use `ListActivitiesResponse$Outbound` instead. */ - export type Outbound = ListActivitiesResponse$Outbound; -} - -export function listActivitiesResponseToJSON( - listActivitiesResponse: ListActivitiesResponse, -): string { - return JSON.stringify( - ListActivitiesResponse$outboundSchema.parse(listActivitiesResponse), - ); -} - export function listActivitiesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listcontent.ts b/src/sdk/models/operations/listcontent.ts index 0e88d78b..b9dd0d55 100644 --- a/src/sdk/models/operations/listcontent.ts +++ b/src/sdk/models/operations/listcontent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,150 +131,6 @@ export type ListContentResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ListContentGlobals$inboundSchema: z.ZodType< - ListContentGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListContentGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListContentGlobals$outboundSchema: z.ZodType< - ListContentGlobals$Outbound, - z.ZodTypeDef, - ListContentGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContentGlobals$ { - /** @deprecated use `ListContentGlobals$inboundSchema` instead. */ - export const inboundSchema = ListContentGlobals$inboundSchema; - /** @deprecated use `ListContentGlobals$outboundSchema` instead. */ - export const outboundSchema = ListContentGlobals$outboundSchema; - /** @deprecated use `ListContentGlobals$Outbound` instead. */ - export type Outbound = ListContentGlobals$Outbound; -} - -export function listContentGlobalsToJSON( - listContentGlobals: ListContentGlobals, -): string { - return JSON.stringify( - ListContentGlobals$outboundSchema.parse(listContentGlobals), - ); -} - -export function listContentGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContentGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContentGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListContentRequest$inboundSchema: z.ZodType< - ListContentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - mediaQuery: shared.MediaQuery$inboundSchema.optional(), - sectionId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListContentRequest$Outbound = { accepts: string; @@ -326,19 +182,6 @@ export const ListContentRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContentRequest$ { - /** @deprecated use `ListContentRequest$inboundSchema` instead. */ - export const inboundSchema = ListContentRequest$inboundSchema; - /** @deprecated use `ListContentRequest$outboundSchema` instead. */ - export const outboundSchema = ListContentRequest$outboundSchema; - /** @deprecated use `ListContentRequest$Outbound` instead. */ - export type Outbound = ListContentRequest$Outbound; -} - export function listContentRequestToJSON( listContentRequest: ListContentRequest, ): string { @@ -347,16 +190,6 @@ export function listContentRequestToJSON( ); } -export function listContentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContentRequest' from JSON`, - ); -} - /** @internal */ export const ListContentResponse$inboundSchema: z.ZodType< ListContentResponse, @@ -368,7 +201,7 @@ export const ListContentResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -379,62 +212,6 @@ export const ListContentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListContentResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListContentResponse$outboundSchema: z.ZodType< - ListContentResponse$Outbound, - z.ZodTypeDef, - ListContentResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContentResponse$ { - /** @deprecated use `ListContentResponse$inboundSchema` instead. */ - export const inboundSchema = ListContentResponse$inboundSchema; - /** @deprecated use `ListContentResponse$outboundSchema` instead. */ - export const outboundSchema = ListContentResponse$outboundSchema; - /** @deprecated use `ListContentResponse$Outbound` instead. */ - export type Outbound = ListContentResponse$Outbound; -} - -export function listContentResponseToJSON( - listContentResponse: ListContentResponse, -): string { - return JSON.stringify( - ListContentResponse$outboundSchema.parse(listContentResponse), - ); -} - export function listContentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listdevices.ts b/src/sdk/models/operations/listdevices.ts index 183f365f..851e6400 100644 --- a/src/sdk/models/operations/listdevices.ts +++ b/src/sdk/models/operations/listdevices.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,7 +40,7 @@ export const ListDevicesResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -51,62 +51,6 @@ export const ListDevicesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDevicesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListDevicesResponse$outboundSchema: z.ZodType< - ListDevicesResponse$Outbound, - z.ZodTypeDef, - ListDevicesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDevicesResponse$ { - /** @deprecated use `ListDevicesResponse$inboundSchema` instead. */ - export const inboundSchema = ListDevicesResponse$inboundSchema; - /** @deprecated use `ListDevicesResponse$outboundSchema` instead. */ - export const outboundSchema = ListDevicesResponse$outboundSchema; - /** @deprecated use `ListDevicesResponse$Outbound` instead. */ - export type Outbound = ListDevicesResponse$Outbound; -} - -export function listDevicesResponseToJSON( - listDevicesResponse: ListDevicesResponse, -): string { - return JSON.stringify( - ListDevicesResponse$outboundSchema.parse(listDevicesResponse), - ); -} - export function listDevicesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listdownloadqueueitems.ts b/src/sdk/models/operations/listdownloadqueueitems.ts index cb049324..883af287 100644 --- a/src/sdk/models/operations/listdownloadqueueitems.ts +++ b/src/sdk/models/operations/listdownloadqueueitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -237,151 +237,6 @@ export type ListDownloadQueueItemsResponse = { object?: ListDownloadQueueItemsResponseBody | undefined; }; -/** @internal */ -export const ListDownloadQueueItemsGlobals$inboundSchema: z.ZodType< - ListDownloadQueueItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListDownloadQueueItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsGlobals$outboundSchema: z.ZodType< - ListDownloadQueueItemsGlobals$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsGlobals$ { - /** @deprecated use `ListDownloadQueueItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsGlobals$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListDownloadQueueItemsGlobals$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsGlobals$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsGlobals$Outbound; -} - -export function listDownloadQueueItemsGlobalsToJSON( - listDownloadQueueItemsGlobals: ListDownloadQueueItemsGlobals, -): string { - return JSON.stringify( - ListDownloadQueueItemsGlobals$outboundSchema.parse( - listDownloadQueueItemsGlobals, - ), - ); -} - -export function listDownloadQueueItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDownloadQueueItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDownloadQueueItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListDownloadQueueItemsRequest$inboundSchema: z.ZodType< - ListDownloadQueueItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -431,19 +286,6 @@ export const ListDownloadQueueItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsRequest$ { - /** @deprecated use `ListDownloadQueueItemsRequest$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsRequest$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsRequest$outboundSchema` instead. */ - export const outboundSchema = ListDownloadQueueItemsRequest$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsRequest$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsRequest$Outbound; -} - export function listDownloadQueueItemsRequestToJSON( listDownloadQueueItemsRequest: ListDownloadQueueItemsRequest, ): string { @@ -454,16 +296,6 @@ export function listDownloadQueueItemsRequestToJSON( ); } -export function listDownloadQueueItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDownloadQueueItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDownloadQueueItemsRequest' from JSON`, - ); -} - /** @internal */ export const ListDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< ListDownloadQueueItemsDecisionResult, @@ -481,61 +313,6 @@ export const ListDownloadQueueItemsDecisionResult$inboundSchema: z.ZodType< transcodeDecisionText: z.string().optional(), }); -/** @internal */ -export type ListDownloadQueueItemsDecisionResult$Outbound = { - availableBandwidth?: number | undefined; - directPlayDecisionCode?: number | undefined; - directPlayDecisionText?: string | undefined; - generalDecisionCode?: number | undefined; - generalDecisionText?: string | undefined; - mdeDecisionCode?: number | undefined; - mdeDecisionText?: string | undefined; - transcodeDecisionCode?: number | undefined; - transcodeDecisionText?: string | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsDecisionResult$outboundSchema: z.ZodType< - ListDownloadQueueItemsDecisionResult$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsDecisionResult -> = z.object({ - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsDecisionResult$ { - /** @deprecated use `ListDownloadQueueItemsDecisionResult$inboundSchema` instead. */ - export const inboundSchema = - ListDownloadQueueItemsDecisionResult$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsDecisionResult$outboundSchema` instead. */ - export const outboundSchema = - ListDownloadQueueItemsDecisionResult$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsDecisionResult$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsDecisionResult$Outbound; -} - -export function listDownloadQueueItemsDecisionResultToJSON( - listDownloadQueueItemsDecisionResult: ListDownloadQueueItemsDecisionResult, -): string { - return JSON.stringify( - ListDownloadQueueItemsDecisionResult$outboundSchema.parse( - listDownloadQueueItemsDecisionResult, - ), - ); -} - export function listDownloadQueueItemsDecisionResultFromJSON( jsonString: string, ): SafeParseResult { @@ -552,22 +329,6 @@ export const ListDownloadQueueItemsStatus$inboundSchema: z.ZodNativeEnum< typeof ListDownloadQueueItemsStatus > = z.nativeEnum(ListDownloadQueueItemsStatus); -/** @internal */ -export const ListDownloadQueueItemsStatus$outboundSchema: z.ZodNativeEnum< - typeof ListDownloadQueueItemsStatus -> = ListDownloadQueueItemsStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsStatus$ { - /** @deprecated use `ListDownloadQueueItemsStatus$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsStatus$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsStatus$outboundSchema` instead. */ - export const outboundSchema = ListDownloadQueueItemsStatus$outboundSchema; -} - /** @internal */ export const ListDownloadQueueItemsTranscode$inboundSchema: z.ZodType< ListDownloadQueueItemsTranscode, @@ -575,39 +336,6 @@ export const ListDownloadQueueItemsTranscode$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ListDownloadQueueItemsTranscode$Outbound = {}; - -/** @internal */ -export const ListDownloadQueueItemsTranscode$outboundSchema: z.ZodType< - ListDownloadQueueItemsTranscode$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsTranscode -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsTranscode$ { - /** @deprecated use `ListDownloadQueueItemsTranscode$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsTranscode$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsTranscode$outboundSchema` instead. */ - export const outboundSchema = ListDownloadQueueItemsTranscode$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsTranscode$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsTranscode$Outbound; -} - -export function listDownloadQueueItemsTranscodeToJSON( - listDownloadQueueItemsTranscode: ListDownloadQueueItemsTranscode, -): string { - return JSON.stringify( - ListDownloadQueueItemsTranscode$outboundSchema.parse( - listDownloadQueueItemsTranscode, - ), - ); -} - export function listDownloadQueueItemsTranscodeFromJSON( jsonString: string, ): SafeParseResult { @@ -642,68 +370,6 @@ export const ListDownloadQueueItemsDownloadQueueItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDownloadQueueItemsDownloadQueueItem$Outbound = { - DecisionResult?: ListDownloadQueueItemsDecisionResult$Outbound | undefined; - error?: string | undefined; - id?: number | undefined; - key?: string | undefined; - queueId?: number | undefined; - status?: string | undefined; - transcode?: ListDownloadQueueItemsTranscode$Outbound | undefined; - TranscodeSession?: shared.TranscodeSession$Outbound | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsDownloadQueueItem$outboundSchema: z.ZodType< - ListDownloadQueueItemsDownloadQueueItem$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsDownloadQueueItem -> = z.object({ - decisionResult: z.lazy(() => - ListDownloadQueueItemsDecisionResult$outboundSchema - ).optional(), - error: z.string().optional(), - id: z.number().int().optional(), - key: z.string().optional(), - queueId: z.number().int().optional(), - status: ListDownloadQueueItemsStatus$outboundSchema.optional(), - transcode: z.lazy(() => ListDownloadQueueItemsTranscode$outboundSchema) - .optional(), - transcodeSession: shared.TranscodeSession$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - decisionResult: "DecisionResult", - transcodeSession: "TranscodeSession", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsDownloadQueueItem$ { - /** @deprecated use `ListDownloadQueueItemsDownloadQueueItem$inboundSchema` instead. */ - export const inboundSchema = - ListDownloadQueueItemsDownloadQueueItem$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsDownloadQueueItem$outboundSchema` instead. */ - export const outboundSchema = - ListDownloadQueueItemsDownloadQueueItem$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsDownloadQueueItem$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsDownloadQueueItem$Outbound; -} - -export function listDownloadQueueItemsDownloadQueueItemToJSON( - listDownloadQueueItemsDownloadQueueItem: - ListDownloadQueueItemsDownloadQueueItem, -): string { - return JSON.stringify( - ListDownloadQueueItemsDownloadQueueItem$outboundSchema.parse( - listDownloadQueueItemsDownloadQueueItem, - ), - ); -} - export function listDownloadQueueItemsDownloadQueueItemFromJSON( jsonString: string, ): SafeParseResult< @@ -739,61 +405,6 @@ export const ListDownloadQueueItemsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDownloadQueueItemsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - DownloadQueueItem?: - | Array - | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsMediaContainer$outboundSchema: z.ZodType< - ListDownloadQueueItemsMediaContainer$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - downloadQueueItem: z.array( - z.lazy(() => ListDownloadQueueItemsDownloadQueueItem$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - downloadQueueItem: "DownloadQueueItem", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsMediaContainer$ { - /** @deprecated use `ListDownloadQueueItemsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - ListDownloadQueueItemsMediaContainer$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - ListDownloadQueueItemsMediaContainer$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsMediaContainer$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsMediaContainer$Outbound; -} - -export function listDownloadQueueItemsMediaContainerToJSON( - listDownloadQueueItemsMediaContainer: ListDownloadQueueItemsMediaContainer, -): string { - return JSON.stringify( - ListDownloadQueueItemsMediaContainer$outboundSchema.parse( - listDownloadQueueItemsMediaContainer, - ), - ); -} - export function listDownloadQueueItemsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -820,50 +431,6 @@ export const ListDownloadQueueItemsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDownloadQueueItemsResponseBody$Outbound = { - MediaContainer?: ListDownloadQueueItemsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsResponseBody$outboundSchema: z.ZodType< - ListDownloadQueueItemsResponseBody$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => - ListDownloadQueueItemsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsResponseBody$ { - /** @deprecated use `ListDownloadQueueItemsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsResponseBody$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ListDownloadQueueItemsResponseBody$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsResponseBody$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsResponseBody$Outbound; -} - -export function listDownloadQueueItemsResponseBodyToJSON( - listDownloadQueueItemsResponseBody: ListDownloadQueueItemsResponseBody, -): string { - return JSON.stringify( - ListDownloadQueueItemsResponseBody$outboundSchema.parse( - listDownloadQueueItemsResponseBody, - ), - ); -} - export function listDownloadQueueItemsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -894,58 +461,6 @@ export const ListDownloadQueueItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDownloadQueueItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListDownloadQueueItemsResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const ListDownloadQueueItemsResponse$outboundSchema: z.ZodType< - ListDownloadQueueItemsResponse$Outbound, - z.ZodTypeDef, - ListDownloadQueueItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListDownloadQueueItemsResponseBody$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDownloadQueueItemsResponse$ { - /** @deprecated use `ListDownloadQueueItemsResponse$inboundSchema` instead. */ - export const inboundSchema = ListDownloadQueueItemsResponse$inboundSchema; - /** @deprecated use `ListDownloadQueueItemsResponse$outboundSchema` instead. */ - export const outboundSchema = ListDownloadQueueItemsResponse$outboundSchema; - /** @deprecated use `ListDownloadQueueItemsResponse$Outbound` instead. */ - export type Outbound = ListDownloadQueueItemsResponse$Outbound; -} - -export function listDownloadQueueItemsResponseToJSON( - listDownloadQueueItemsResponse: ListDownloadQueueItemsResponse, -): string { - return JSON.stringify( - ListDownloadQueueItemsResponse$outboundSchema.parse( - listDownloadQueueItemsResponse, - ), - ); -} - export function listDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listdvrs.ts b/src/sdk/models/operations/listdvrs.ts index 0fd0cc2d..5228bef3 100644 --- a/src/sdk/models/operations/listdvrs.ts +++ b/src/sdk/models/operations/listdvrs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -90,53 +90,6 @@ export const ListDVRsMediaContainerMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type ListDVRsMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const ListDVRsMediaContainerMediaContainer$outboundSchema: z.ZodType< - ListDVRsMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - ListDVRsMediaContainerMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDVRsMediaContainerMediaContainer$ { - /** @deprecated use `ListDVRsMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - ListDVRsMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `ListDVRsMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - ListDVRsMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `ListDVRsMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = ListDVRsMediaContainerMediaContainer$Outbound; -} - -export function listDVRsMediaContainerMediaContainerToJSON( - listDVRsMediaContainerMediaContainer: ListDVRsMediaContainerMediaContainer, -): string { - return JSON.stringify( - ListDVRsMediaContainerMediaContainer$outboundSchema.parse( - listDVRsMediaContainerMediaContainer, - ), - ); -} - export function listDVRsMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -165,49 +118,6 @@ export const ListDVRsDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDVRsDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const ListDVRsDVR$outboundSchema: z.ZodType< - ListDVRsDVR$Outbound, - z.ZodTypeDef, - ListDVRsDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDVRsDVR$ { - /** @deprecated use `ListDVRsDVR$inboundSchema` instead. */ - export const inboundSchema = ListDVRsDVR$inboundSchema; - /** @deprecated use `ListDVRsDVR$outboundSchema` instead. */ - export const outboundSchema = ListDVRsDVR$outboundSchema; - /** @deprecated use `ListDVRsDVR$Outbound` instead. */ - export type Outbound = ListDVRsDVR$Outbound; -} - -export function listDVRsDVRToJSON(listDVRsDVR: ListDVRsDVR): string { - return JSON.stringify(ListDVRsDVR$outboundSchema.parse(listDVRsDVR)); -} - export function listDVRsDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -235,50 +145,6 @@ export const ListDVRsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDVRsMediaContainer$Outbound = { - MediaContainer?: ListDVRsMediaContainerMediaContainer$Outbound | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const ListDVRsMediaContainer$outboundSchema: z.ZodType< - ListDVRsMediaContainer$Outbound, - z.ZodTypeDef, - ListDVRsMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - ListDVRsMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => ListDVRsDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDVRsMediaContainer$ { - /** @deprecated use `ListDVRsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListDVRsMediaContainer$inboundSchema; - /** @deprecated use `ListDVRsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListDVRsMediaContainer$outboundSchema; - /** @deprecated use `ListDVRsMediaContainer$Outbound` instead. */ - export type Outbound = ListDVRsMediaContainer$Outbound; -} - -export function listDVRsMediaContainerToJSON( - listDVRsMediaContainer: ListDVRsMediaContainer, -): string { - return JSON.stringify( - ListDVRsMediaContainer$outboundSchema.parse(listDVRsMediaContainer), - ); -} - export function listDVRsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -302,46 +168,6 @@ export const ListDVRsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDVRsResponseBody$Outbound = { - MediaContainer?: ListDVRsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListDVRsResponseBody$outboundSchema: z.ZodType< - ListDVRsResponseBody$Outbound, - z.ZodTypeDef, - ListDVRsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListDVRsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDVRsResponseBody$ { - /** @deprecated use `ListDVRsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListDVRsResponseBody$inboundSchema; - /** @deprecated use `ListDVRsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListDVRsResponseBody$outboundSchema; - /** @deprecated use `ListDVRsResponseBody$Outbound` instead. */ - export type Outbound = ListDVRsResponseBody$Outbound; -} - -export function listDVRsResponseBodyToJSON( - listDVRsResponseBody: ListDVRsResponseBody, -): string { - return JSON.stringify( - ListDVRsResponseBody$outboundSchema.parse(listDVRsResponseBody), - ); -} - export function listDVRsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -362,7 +188,7 @@ export const ListDVRsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => ListDVRsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -372,58 +198,6 @@ export const ListDVRsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListDVRsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListDVRsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListDVRsResponse$outboundSchema: z.ZodType< - ListDVRsResponse$Outbound, - z.ZodTypeDef, - ListDVRsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListDVRsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDVRsResponse$ { - /** @deprecated use `ListDVRsResponse$inboundSchema` instead. */ - export const inboundSchema = ListDVRsResponse$inboundSchema; - /** @deprecated use `ListDVRsResponse$outboundSchema` instead. */ - export const outboundSchema = ListDVRsResponse$outboundSchema; - /** @deprecated use `ListDVRsResponse$Outbound` instead. */ - export type Outbound = ListDVRsResponse$Outbound; -} - -export function listDVRsResponseToJSON( - listDVRsResponse: ListDVRsResponse, -): string { - return JSON.stringify( - ListDVRsResponse$outboundSchema.parse(listDVRsResponse), - ); -} - export function listDVRsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listhubs.ts b/src/sdk/models/operations/listhubs.ts index 52e1b01a..3aeaa6bd 100644 --- a/src/sdk/models/operations/listhubs.ts +++ b/src/sdk/models/operations/listhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -238,148 +238,6 @@ export type ListHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ListHubsGlobals$inboundSchema: z.ZodType< - ListHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListHubsGlobals$outboundSchema: z.ZodType< - ListHubsGlobals$Outbound, - z.ZodTypeDef, - ListHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHubsGlobals$ { - /** @deprecated use `ListHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListHubsGlobals$inboundSchema; - /** @deprecated use `ListHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListHubsGlobals$outboundSchema; - /** @deprecated use `ListHubsGlobals$Outbound` instead. */ - export type Outbound = ListHubsGlobals$Outbound; -} - -export function listHubsGlobalsToJSON( - listHubsGlobals: ListHubsGlobals, -): string { - return JSON.stringify(ListHubsGlobals$outboundSchema.parse(listHubsGlobals)); -} - -export function listHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListHubsRequest$inboundSchema: z.ZodType< - ListHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - metadataItemId: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListHubsRequest$Outbound = { accepts: string; @@ -431,77 +289,22 @@ export const ListHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHubsRequest$ { - /** @deprecated use `ListHubsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHubsRequest$inboundSchema; - /** @deprecated use `ListHubsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHubsRequest$outboundSchema; - /** @deprecated use `ListHubsRequest$Outbound` instead. */ - export type Outbound = ListHubsRequest$Outbound; -} - export function listHubsRequestToJSON( listHubsRequest: ListHubsRequest, ): string { return JSON.stringify(ListHubsRequest$outboundSchema.parse(listHubsRequest)); } -export function listHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListHubsRequest' from JSON`, - ); -} - /** @internal */ export const HomeVisibility$inboundSchema: z.ZodNativeEnum< typeof HomeVisibility > = z.nativeEnum(HomeVisibility); -/** @internal */ -export const HomeVisibility$outboundSchema: z.ZodNativeEnum< - typeof HomeVisibility -> = HomeVisibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HomeVisibility$ { - /** @deprecated use `HomeVisibility$inboundSchema` instead. */ - export const inboundSchema = HomeVisibility$inboundSchema; - /** @deprecated use `HomeVisibility$outboundSchema` instead. */ - export const outboundSchema = HomeVisibility$outboundSchema; -} - /** @internal */ export const RecommendationsVisibility$inboundSchema: z.ZodNativeEnum< typeof RecommendationsVisibility > = z.nativeEnum(RecommendationsVisibility); -/** @internal */ -export const RecommendationsVisibility$outboundSchema: z.ZodNativeEnum< - typeof RecommendationsVisibility -> = RecommendationsVisibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RecommendationsVisibility$ { - /** @deprecated use `RecommendationsVisibility$inboundSchema` instead. */ - export const inboundSchema = RecommendationsVisibility$inboundSchema; - /** @deprecated use `RecommendationsVisibility$outboundSchema` instead. */ - export const outboundSchema = RecommendationsVisibility$outboundSchema; -} - /** @internal */ export const Hub$inboundSchema: z.ZodType = z .object({ @@ -515,47 +318,6 @@ export const Hub$inboundSchema: z.ZodType = z title: z.string().optional(), }); -/** @internal */ -export type Hub$Outbound = { - homeVisibility?: string | undefined; - identifier?: string | undefined; - promotedToOwnHome?: boolean | undefined; - promotedToRecommended?: boolean | undefined; - promotedToSharedHome?: boolean | undefined; - recommendationsVisibility?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const Hub$outboundSchema: z.ZodType = z - .object({ - homeVisibility: HomeVisibility$outboundSchema.optional(), - identifier: z.string().optional(), - promotedToOwnHome: z.boolean().optional(), - promotedToRecommended: z.boolean().optional(), - promotedToSharedHome: z.boolean().optional(), - recommendationsVisibility: RecommendationsVisibility$outboundSchema - .optional(), - title: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Hub$ { - /** @deprecated use `Hub$inboundSchema` instead. */ - export const inboundSchema = Hub$inboundSchema; - /** @deprecated use `Hub$outboundSchema` instead. */ - export const outboundSchema = Hub$outboundSchema; - /** @deprecated use `Hub$Outbound` instead. */ - export type Outbound = Hub$Outbound; -} - -export function hubToJSON(hub: Hub): string { - return JSON.stringify(Hub$outboundSchema.parse(hub)); -} - export function hubFromJSON( jsonString: string, ): SafeParseResult { @@ -583,53 +345,6 @@ export const ListHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const ListHubsMediaContainer$outboundSchema: z.ZodType< - ListHubsMediaContainer$Outbound, - z.ZodTypeDef, - ListHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(z.lazy(() => Hub$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHubsMediaContainer$ { - /** @deprecated use `ListHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListHubsMediaContainer$inboundSchema; - /** @deprecated use `ListHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListHubsMediaContainer$outboundSchema; - /** @deprecated use `ListHubsMediaContainer$Outbound` instead. */ - export type Outbound = ListHubsMediaContainer$Outbound; -} - -export function listHubsMediaContainerToJSON( - listHubsMediaContainer: ListHubsMediaContainer, -): string { - return JSON.stringify( - ListHubsMediaContainer$outboundSchema.parse(listHubsMediaContainer), - ); -} - export function listHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -653,46 +368,6 @@ export const ListHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListHubsResponseBody$Outbound = { - MediaContainer?: ListHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListHubsResponseBody$outboundSchema: z.ZodType< - ListHubsResponseBody$Outbound, - z.ZodTypeDef, - ListHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHubsResponseBody$ { - /** @deprecated use `ListHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHubsResponseBody$inboundSchema; - /** @deprecated use `ListHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHubsResponseBody$outboundSchema; - /** @deprecated use `ListHubsResponseBody$Outbound` instead. */ - export type Outbound = ListHubsResponseBody$Outbound; -} - -export function listHubsResponseBodyToJSON( - listHubsResponseBody: ListHubsResponseBody, -): string { - return JSON.stringify( - ListHubsResponseBody$outboundSchema.parse(listHubsResponseBody), - ); -} - export function listHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -713,7 +388,7 @@ export const ListHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => ListHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -723,58 +398,6 @@ export const ListHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListHubsResponse$outboundSchema: z.ZodType< - ListHubsResponse$Outbound, - z.ZodTypeDef, - ListHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHubsResponse$ { - /** @deprecated use `ListHubsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHubsResponse$inboundSchema; - /** @deprecated use `ListHubsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHubsResponse$outboundSchema; - /** @deprecated use `ListHubsResponse$Outbound` instead. */ - export type Outbound = ListHubsResponse$Outbound; -} - -export function listHubsResponseToJSON( - listHubsResponse: ListHubsResponse, -): string { - return JSON.stringify( - ListHubsResponse$outboundSchema.parse(listHubsResponse), - ); -} - export function listHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listlineups.ts b/src/sdk/models/operations/listlineups.ts index a77dd48e..baa857eb 100644 --- a/src/sdk/models/operations/listlineups.ts +++ b/src/sdk/models/operations/listlineups.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,151 +135,6 @@ export type ListLineupsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ListLineupsGlobals$inboundSchema: z.ZodType< - ListLineupsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListLineupsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListLineupsGlobals$outboundSchema: z.ZodType< - ListLineupsGlobals$Outbound, - z.ZodTypeDef, - ListLineupsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLineupsGlobals$ { - /** @deprecated use `ListLineupsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListLineupsGlobals$inboundSchema; - /** @deprecated use `ListLineupsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListLineupsGlobals$outboundSchema; - /** @deprecated use `ListLineupsGlobals$Outbound` instead. */ - export type Outbound = ListLineupsGlobals$Outbound; -} - -export function listLineupsGlobalsToJSON( - listLineupsGlobals: ListLineupsGlobals, -): string { - return JSON.stringify( - ListLineupsGlobals$outboundSchema.parse(listLineupsGlobals), - ); -} - -export function listLineupsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLineupsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLineupsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListLineupsRequest$inboundSchema: z.ZodType< - ListLineupsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - country: z.string(), - epgId: z.string(), - region: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListLineupsRequest$Outbound = { accepts: string; @@ -333,19 +188,6 @@ export const ListLineupsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLineupsRequest$ { - /** @deprecated use `ListLineupsRequest$inboundSchema` instead. */ - export const inboundSchema = ListLineupsRequest$inboundSchema; - /** @deprecated use `ListLineupsRequest$outboundSchema` instead. */ - export const outboundSchema = ListLineupsRequest$outboundSchema; - /** @deprecated use `ListLineupsRequest$Outbound` instead. */ - export type Outbound = ListLineupsRequest$Outbound; -} - export function listLineupsRequestToJSON( listLineupsRequest: ListLineupsRequest, ): string { @@ -354,16 +196,6 @@ export function listLineupsRequestToJSON( ); } -export function listLineupsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLineupsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLineupsRequest' from JSON`, - ); -} - /** @internal */ export const ListLineupsResponse$inboundSchema: z.ZodType< ListLineupsResponse, @@ -375,7 +207,7 @@ export const ListLineupsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithLineup: shared.MediaContainerWithLineup$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -386,62 +218,6 @@ export const ListLineupsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListLineupsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithLineup?: - | shared.MediaContainerWithLineup$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListLineupsResponse$outboundSchema: z.ZodType< - ListLineupsResponse$Outbound, - z.ZodTypeDef, - ListLineupsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithLineup: shared.MediaContainerWithLineup$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithLineup: "MediaContainerWithLineup", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLineupsResponse$ { - /** @deprecated use `ListLineupsResponse$inboundSchema` instead. */ - export const inboundSchema = ListLineupsResponse$inboundSchema; - /** @deprecated use `ListLineupsResponse$outboundSchema` instead. */ - export const outboundSchema = ListLineupsResponse$outboundSchema; - /** @deprecated use `ListLineupsResponse$Outbound` instead. */ - export type Outbound = ListLineupsResponse$Outbound; -} - -export function listLineupsResponseToJSON( - listLineupsResponse: ListLineupsResponse, -): string { - return JSON.stringify( - ListLineupsResponse$outboundSchema.parse(listLineupsResponse), - ); -} - export function listLineupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listmatches.ts b/src/sdk/models/operations/listmatches.ts index dfa0bd70..777bf431 100644 --- a/src/sdk/models/operations/listmatches.ts +++ b/src/sdk/models/operations/listmatches.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -129,155 +129,6 @@ export type ListMatchesResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const ListMatchesGlobals$inboundSchema: z.ZodType< - ListMatchesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListMatchesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListMatchesGlobals$outboundSchema: z.ZodType< - ListMatchesGlobals$Outbound, - z.ZodTypeDef, - ListMatchesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMatchesGlobals$ { - /** @deprecated use `ListMatchesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListMatchesGlobals$inboundSchema; - /** @deprecated use `ListMatchesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListMatchesGlobals$outboundSchema; - /** @deprecated use `ListMatchesGlobals$Outbound` instead. */ - export type Outbound = ListMatchesGlobals$Outbound; -} - -export function listMatchesGlobalsToJSON( - listMatchesGlobals: ListMatchesGlobals, -): string { - return JSON.stringify( - ListMatchesGlobals$outboundSchema.parse(listMatchesGlobals), - ); -} - -export function listMatchesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMatchesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMatchesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListMatchesRequest$inboundSchema: z.ZodType< - ListMatchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - title: z.string().optional(), - parentTitle: z.string().optional(), - agent: z.string().optional(), - language: z.string().optional(), - year: z.number().int().optional(), - manual: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListMatchesRequest$Outbound = { accepts: string; @@ -339,19 +190,6 @@ export const ListMatchesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMatchesRequest$ { - /** @deprecated use `ListMatchesRequest$inboundSchema` instead. */ - export const inboundSchema = ListMatchesRequest$inboundSchema; - /** @deprecated use `ListMatchesRequest$outboundSchema` instead. */ - export const outboundSchema = ListMatchesRequest$outboundSchema; - /** @deprecated use `ListMatchesRequest$Outbound` instead. */ - export type Outbound = ListMatchesRequest$Outbound; -} - export function listMatchesRequestToJSON( listMatchesRequest: ListMatchesRequest, ): string { @@ -360,16 +198,6 @@ export function listMatchesRequestToJSON( ); } -export function listMatchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMatchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMatchesRequest' from JSON`, - ); -} - /** @internal */ export const ListMatchesResponse$inboundSchema: z.ZodType< ListMatchesResponse, @@ -390,59 +218,6 @@ export const ListMatchesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListMatchesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ListMatchesResponse$outboundSchema: z.ZodType< - ListMatchesResponse$Outbound, - z.ZodTypeDef, - ListMatchesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMatchesResponse$ { - /** @deprecated use `ListMatchesResponse$inboundSchema` instead. */ - export const inboundSchema = ListMatchesResponse$inboundSchema; - /** @deprecated use `ListMatchesResponse$outboundSchema` instead. */ - export const outboundSchema = ListMatchesResponse$outboundSchema; - /** @deprecated use `ListMatchesResponse$Outbound` instead. */ - export type Outbound = ListMatchesResponse$Outbound; -} - -export function listMatchesResponseToJSON( - listMatchesResponse: ListMatchesResponse, -): string { - return JSON.stringify( - ListMatchesResponse$outboundSchema.parse(listMatchesResponse), - ); -} - export function listMatchesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listmoments.ts b/src/sdk/models/operations/listmoments.ts index 754e9f00..7e35fdac 100644 --- a/src/sdk/models/operations/listmoments.ts +++ b/src/sdk/models/operations/listmoments.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type ListMomentsResponse = { mediaContainerWithArtwork?: shared.MediaContainerWithArtwork | undefined; }; -/** @internal */ -export const ListMomentsGlobals$inboundSchema: z.ZodType< - ListMomentsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListMomentsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListMomentsGlobals$outboundSchema: z.ZodType< - ListMomentsGlobals$Outbound, - z.ZodTypeDef, - ListMomentsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMomentsGlobals$ { - /** @deprecated use `ListMomentsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListMomentsGlobals$inboundSchema; - /** @deprecated use `ListMomentsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListMomentsGlobals$outboundSchema; - /** @deprecated use `ListMomentsGlobals$Outbound` instead. */ - export type Outbound = ListMomentsGlobals$Outbound; -} - -export function listMomentsGlobalsToJSON( - listMomentsGlobals: ListMomentsGlobals, -): string { - return JSON.stringify( - ListMomentsGlobals$outboundSchema.parse(listMomentsGlobals), - ); -} - -export function listMomentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMomentsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMomentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListMomentsRequest$inboundSchema: z.ZodType< - ListMomentsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListMomentsRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const ListMomentsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMomentsRequest$ { - /** @deprecated use `ListMomentsRequest$inboundSchema` instead. */ - export const inboundSchema = ListMomentsRequest$inboundSchema; - /** @deprecated use `ListMomentsRequest$outboundSchema` instead. */ - export const outboundSchema = ListMomentsRequest$outboundSchema; - /** @deprecated use `ListMomentsRequest$Outbound` instead. */ - export type Outbound = ListMomentsRequest$Outbound; -} - export function listMomentsRequestToJSON( listMomentsRequest: ListMomentsRequest, ): string { @@ -339,16 +183,6 @@ export function listMomentsRequestToJSON( ); } -export function listMomentsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListMomentsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListMomentsRequest' from JSON`, - ); -} - /** @internal */ export const ListMomentsResponse$inboundSchema: z.ZodType< ListMomentsResponse, @@ -369,59 +203,6 @@ export const ListMomentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListMomentsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithArtwork?: - | shared.MediaContainerWithArtwork$Outbound - | undefined; -}; - -/** @internal */ -export const ListMomentsResponse$outboundSchema: z.ZodType< - ListMomentsResponse$Outbound, - z.ZodTypeDef, - ListMomentsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithArtwork: shared.MediaContainerWithArtwork$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithArtwork: "MediaContainerWithArtwork", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListMomentsResponse$ { - /** @deprecated use `ListMomentsResponse$inboundSchema` instead. */ - export const inboundSchema = ListMomentsResponse$inboundSchema; - /** @deprecated use `ListMomentsResponse$outboundSchema` instead. */ - export const outboundSchema = ListMomentsResponse$outboundSchema; - /** @deprecated use `ListMomentsResponse$Outbound` instead. */ - export type Outbound = ListMomentsResponse$Outbound; -} - -export function listMomentsResponseToJSON( - listMomentsResponse: ListMomentsResponse, -): string { - return JSON.stringify( - ListMomentsResponse$outboundSchema.parse(listMomentsResponse), - ); -} - export function listMomentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listpersonmedia.ts b/src/sdk/models/operations/listpersonmedia.ts index aa5f38ca..419ace28 100644 --- a/src/sdk/models/operations/listpersonmedia.ts +++ b/src/sdk/models/operations/listpersonmedia.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,149 +126,6 @@ export type ListPersonMediaResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const ListPersonMediaGlobals$inboundSchema: z.ZodType< - ListPersonMediaGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListPersonMediaGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListPersonMediaGlobals$outboundSchema: z.ZodType< - ListPersonMediaGlobals$Outbound, - z.ZodTypeDef, - ListPersonMediaGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPersonMediaGlobals$ { - /** @deprecated use `ListPersonMediaGlobals$inboundSchema` instead. */ - export const inboundSchema = ListPersonMediaGlobals$inboundSchema; - /** @deprecated use `ListPersonMediaGlobals$outboundSchema` instead. */ - export const outboundSchema = ListPersonMediaGlobals$outboundSchema; - /** @deprecated use `ListPersonMediaGlobals$Outbound` instead. */ - export type Outbound = ListPersonMediaGlobals$Outbound; -} - -export function listPersonMediaGlobalsToJSON( - listPersonMediaGlobals: ListPersonMediaGlobals, -): string { - return JSON.stringify( - ListPersonMediaGlobals$outboundSchema.parse(listPersonMediaGlobals), - ); -} - -export function listPersonMediaGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPersonMediaGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPersonMediaGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListPersonMediaRequest$inboundSchema: z.ZodType< - ListPersonMediaRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - personId: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListPersonMediaRequest$Outbound = { accepts: string; @@ -318,19 +175,6 @@ export const ListPersonMediaRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPersonMediaRequest$ { - /** @deprecated use `ListPersonMediaRequest$inboundSchema` instead. */ - export const inboundSchema = ListPersonMediaRequest$inboundSchema; - /** @deprecated use `ListPersonMediaRequest$outboundSchema` instead. */ - export const outboundSchema = ListPersonMediaRequest$outboundSchema; - /** @deprecated use `ListPersonMediaRequest$Outbound` instead. */ - export type Outbound = ListPersonMediaRequest$Outbound; -} - export function listPersonMediaRequestToJSON( listPersonMediaRequest: ListPersonMediaRequest, ): string { @@ -339,16 +183,6 @@ export function listPersonMediaRequestToJSON( ); } -export function listPersonMediaRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPersonMediaRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPersonMediaRequest' from JSON`, - ); -} - /** @internal */ export const ListPersonMediaResponse$inboundSchema: z.ZodType< ListPersonMediaResponse, @@ -369,59 +203,6 @@ export const ListPersonMediaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListPersonMediaResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ListPersonMediaResponse$outboundSchema: z.ZodType< - ListPersonMediaResponse$Outbound, - z.ZodTypeDef, - ListPersonMediaResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPersonMediaResponse$ { - /** @deprecated use `ListPersonMediaResponse$inboundSchema` instead. */ - export const inboundSchema = ListPersonMediaResponse$inboundSchema; - /** @deprecated use `ListPersonMediaResponse$outboundSchema` instead. */ - export const outboundSchema = ListPersonMediaResponse$outboundSchema; - /** @deprecated use `ListPersonMediaResponse$Outbound` instead. */ - export type Outbound = ListPersonMediaResponse$Outbound; -} - -export function listPersonMediaResponseToJSON( - listPersonMediaResponse: ListPersonMediaResponse, -): string { - return JSON.stringify( - ListPersonMediaResponse$outboundSchema.parse(listPersonMediaResponse), - ); -} - export function listPersonMediaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listplaybackhistory.ts b/src/sdk/models/operations/listplaybackhistory.ts index dc36716c..6aa6526a 100644 --- a/src/sdk/models/operations/listplaybackhistory.ts +++ b/src/sdk/models/operations/listplaybackhistory.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -222,153 +222,6 @@ export type ListPlaybackHistoryResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ListPlaybackHistoryGlobals$inboundSchema: z.ZodType< - ListPlaybackHistoryGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListPlaybackHistoryGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListPlaybackHistoryGlobals$outboundSchema: z.ZodType< - ListPlaybackHistoryGlobals$Outbound, - z.ZodTypeDef, - ListPlaybackHistoryGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryGlobals$ { - /** @deprecated use `ListPlaybackHistoryGlobals$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryGlobals$inboundSchema; - /** @deprecated use `ListPlaybackHistoryGlobals$outboundSchema` instead. */ - export const outboundSchema = ListPlaybackHistoryGlobals$outboundSchema; - /** @deprecated use `ListPlaybackHistoryGlobals$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryGlobals$Outbound; -} - -export function listPlaybackHistoryGlobalsToJSON( - listPlaybackHistoryGlobals: ListPlaybackHistoryGlobals, -): string { - return JSON.stringify( - ListPlaybackHistoryGlobals$outboundSchema.parse(listPlaybackHistoryGlobals), - ); -} - -export function listPlaybackHistoryGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPlaybackHistoryGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPlaybackHistoryGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListPlaybackHistoryRequest$inboundSchema: z.ZodType< - ListPlaybackHistoryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - accountID: z.number().int().optional(), - viewedAt: z.number().int().optional(), - librarySectionID: z.number().int().optional(), - metadataItemID: z.number().int().optional(), - sort: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListPlaybackHistoryRequest$Outbound = { accepts: string; @@ -426,19 +279,6 @@ export const ListPlaybackHistoryRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryRequest$ { - /** @deprecated use `ListPlaybackHistoryRequest$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryRequest$inboundSchema; - /** @deprecated use `ListPlaybackHistoryRequest$outboundSchema` instead. */ - export const outboundSchema = ListPlaybackHistoryRequest$outboundSchema; - /** @deprecated use `ListPlaybackHistoryRequest$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryRequest$Outbound; -} - export function listPlaybackHistoryRequestToJSON( listPlaybackHistoryRequest: ListPlaybackHistoryRequest, ): string { @@ -447,16 +287,6 @@ export function listPlaybackHistoryRequestToJSON( ); } -export function listPlaybackHistoryRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPlaybackHistoryRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPlaybackHistoryRequest' from JSON`, - ); -} - /** @internal */ export const ListPlaybackHistoryMetadatum$inboundSchema: z.ZodType< ListPlaybackHistoryMetadatum, @@ -476,63 +306,6 @@ export const ListPlaybackHistoryMetadatum$inboundSchema: z.ZodType< viewedAt: z.number().int().optional(), }); -/** @internal */ -export type ListPlaybackHistoryMetadatum$Outbound = { - accountID?: number | undefined; - deviceID?: number | undefined; - historyKey?: string | undefined; - key?: string | undefined; - librarySectionID?: string | undefined; - originallyAvailableAt?: string | undefined; - ratingKey?: string | undefined; - thumb?: string | undefined; - title?: string | undefined; - type?: string | undefined; - viewedAt?: number | undefined; -}; - -/** @internal */ -export const ListPlaybackHistoryMetadatum$outboundSchema: z.ZodType< - ListPlaybackHistoryMetadatum$Outbound, - z.ZodTypeDef, - ListPlaybackHistoryMetadatum -> = z.object({ - accountID: z.number().int().optional(), - deviceID: z.number().int().optional(), - historyKey: z.string().optional(), - key: z.string().optional(), - librarySectionID: z.string().optional(), - originallyAvailableAt: z.string().optional(), - ratingKey: z.string().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - viewedAt: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryMetadatum$ { - /** @deprecated use `ListPlaybackHistoryMetadatum$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryMetadatum$inboundSchema; - /** @deprecated use `ListPlaybackHistoryMetadatum$outboundSchema` instead. */ - export const outboundSchema = ListPlaybackHistoryMetadatum$outboundSchema; - /** @deprecated use `ListPlaybackHistoryMetadatum$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryMetadatum$Outbound; -} - -export function listPlaybackHistoryMetadatumToJSON( - listPlaybackHistoryMetadatum: ListPlaybackHistoryMetadatum, -): string { - return JSON.stringify( - ListPlaybackHistoryMetadatum$outboundSchema.parse( - listPlaybackHistoryMetadatum, - ), - ); -} - export function listPlaybackHistoryMetadatumFromJSON( jsonString: string, ): SafeParseResult { @@ -561,57 +334,6 @@ export const ListPlaybackHistoryMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListPlaybackHistoryMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Array | undefined; -}; - -/** @internal */ -export const ListPlaybackHistoryMediaContainer$outboundSchema: z.ZodType< - ListPlaybackHistoryMediaContainer$Outbound, - z.ZodTypeDef, - ListPlaybackHistoryMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array(z.lazy(() => ListPlaybackHistoryMetadatum$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryMediaContainer$ { - /** @deprecated use `ListPlaybackHistoryMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryMediaContainer$inboundSchema; - /** @deprecated use `ListPlaybackHistoryMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - ListPlaybackHistoryMediaContainer$outboundSchema; - /** @deprecated use `ListPlaybackHistoryMediaContainer$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryMediaContainer$Outbound; -} - -export function listPlaybackHistoryMediaContainerToJSON( - listPlaybackHistoryMediaContainer: ListPlaybackHistoryMediaContainer, -): string { - return JSON.stringify( - ListPlaybackHistoryMediaContainer$outboundSchema.parse( - listPlaybackHistoryMediaContainer, - ), - ); -} - export function listPlaybackHistoryMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -636,48 +358,6 @@ export const ListPlaybackHistoryResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListPlaybackHistoryResponseBody$Outbound = { - MediaContainer?: ListPlaybackHistoryMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListPlaybackHistoryResponseBody$outboundSchema: z.ZodType< - ListPlaybackHistoryResponseBody$Outbound, - z.ZodTypeDef, - ListPlaybackHistoryResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListPlaybackHistoryMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryResponseBody$ { - /** @deprecated use `ListPlaybackHistoryResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryResponseBody$inboundSchema; - /** @deprecated use `ListPlaybackHistoryResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListPlaybackHistoryResponseBody$outboundSchema; - /** @deprecated use `ListPlaybackHistoryResponseBody$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryResponseBody$Outbound; -} - -export function listPlaybackHistoryResponseBodyToJSON( - listPlaybackHistoryResponseBody: ListPlaybackHistoryResponseBody, -): string { - return JSON.stringify( - ListPlaybackHistoryResponseBody$outboundSchema.parse( - listPlaybackHistoryResponseBody, - ), - ); -} - export function listPlaybackHistoryResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -699,7 +379,7 @@ export const ListPlaybackHistoryResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), object: z.lazy(() => ListPlaybackHistoryResponseBody$inboundSchema) .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -709,61 +389,6 @@ export const ListPlaybackHistoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListPlaybackHistoryResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListPlaybackHistoryResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListPlaybackHistoryResponse$outboundSchema: z.ZodType< - ListPlaybackHistoryResponse$Outbound, - z.ZodTypeDef, - ListPlaybackHistoryResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListPlaybackHistoryResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaybackHistoryResponse$ { - /** @deprecated use `ListPlaybackHistoryResponse$inboundSchema` instead. */ - export const inboundSchema = ListPlaybackHistoryResponse$inboundSchema; - /** @deprecated use `ListPlaybackHistoryResponse$outboundSchema` instead. */ - export const outboundSchema = ListPlaybackHistoryResponse$outboundSchema; - /** @deprecated use `ListPlaybackHistoryResponse$Outbound` instead. */ - export type Outbound = ListPlaybackHistoryResponse$Outbound; -} - -export function listPlaybackHistoryResponseToJSON( - listPlaybackHistoryResponse: ListPlaybackHistoryResponse, -): string { - return JSON.stringify( - ListPlaybackHistoryResponse$outboundSchema.parse( - listPlaybackHistoryResponse, - ), - ); -} - export function listPlaybackHistoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listplaylists.ts b/src/sdk/models/operations/listplaylists.ts index f08406ea..5c924fdc 100644 --- a/src/sdk/models/operations/listplaylists.ts +++ b/src/sdk/models/operations/listplaylists.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -142,168 +142,9 @@ export type ListPlaylistsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ListPlaylistsGlobals$inboundSchema: z.ZodType< - ListPlaylistsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListPlaylistsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListPlaylistsGlobals$outboundSchema: z.ZodType< - ListPlaylistsGlobals$Outbound, - z.ZodTypeDef, - ListPlaylistsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaylistsGlobals$ { - /** @deprecated use `ListPlaylistsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListPlaylistsGlobals$inboundSchema; - /** @deprecated use `ListPlaylistsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListPlaylistsGlobals$outboundSchema; - /** @deprecated use `ListPlaylistsGlobals$Outbound` instead. */ - export type Outbound = ListPlaylistsGlobals$Outbound; -} - -export function listPlaylistsGlobalsToJSON( - listPlaylistsGlobals: ListPlaylistsGlobals, -): string { - return JSON.stringify( - ListPlaylistsGlobals$outboundSchema.parse(listPlaylistsGlobals), - ); -} - -export function listPlaylistsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPlaylistsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPlaylistsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PlaylistType$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(PlaylistType); - /** @internal */ export const PlaylistType$outboundSchema: z.ZodNativeEnum = - PlaylistType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PlaylistType$ { - /** @deprecated use `PlaylistType$inboundSchema` instead. */ - export const inboundSchema = PlaylistType$inboundSchema; - /** @deprecated use `PlaylistType$outboundSchema` instead. */ - export const outboundSchema = PlaylistType$outboundSchema; -} - -/** @internal */ -export const ListPlaylistsRequest$inboundSchema: z.ZodType< - ListPlaylistsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistType: PlaylistType$inboundSchema.optional(), - smart: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); + z.nativeEnum(PlaylistType); /** @internal */ export type ListPlaylistsRequest$Outbound = { @@ -356,19 +197,6 @@ export const ListPlaylistsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaylistsRequest$ { - /** @deprecated use `ListPlaylistsRequest$inboundSchema` instead. */ - export const inboundSchema = ListPlaylistsRequest$inboundSchema; - /** @deprecated use `ListPlaylistsRequest$outboundSchema` instead. */ - export const outboundSchema = ListPlaylistsRequest$outboundSchema; - /** @deprecated use `ListPlaylistsRequest$Outbound` instead. */ - export type Outbound = ListPlaylistsRequest$Outbound; -} - export function listPlaylistsRequestToJSON( listPlaylistsRequest: ListPlaylistsRequest, ): string { @@ -377,16 +205,6 @@ export function listPlaylistsRequestToJSON( ); } -export function listPlaylistsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPlaylistsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPlaylistsRequest' from JSON`, - ); -} - /** @internal */ export const ListPlaylistsResponse$inboundSchema: z.ZodType< ListPlaylistsResponse, @@ -398,7 +216,7 @@ export const ListPlaylistsResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithPlaylistMetadata: shared .MediaContainerWithPlaylistMetadata$inboundSchema.optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -409,62 +227,6 @@ export const ListPlaylistsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListPlaylistsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListPlaylistsResponse$outboundSchema: z.ZodType< - ListPlaylistsResponse$Outbound, - z.ZodTypeDef, - ListPlaylistsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPlaylistsResponse$ { - /** @deprecated use `ListPlaylistsResponse$inboundSchema` instead. */ - export const inboundSchema = ListPlaylistsResponse$inboundSchema; - /** @deprecated use `ListPlaylistsResponse$outboundSchema` instead. */ - export const outboundSchema = ListPlaylistsResponse$outboundSchema; - /** @deprecated use `ListPlaylistsResponse$Outbound` instead. */ - export type Outbound = ListPlaylistsResponse$Outbound; -} - -export function listPlaylistsResponseToJSON( - listPlaylistsResponse: ListPlaylistsResponse, -): string { - return JSON.stringify( - ListPlaylistsResponse$outboundSchema.parse(listPlaylistsResponse), - ); -} - export function listPlaylistsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listproviders.ts b/src/sdk/models/operations/listproviders.ts index 71f09d4c..cbe8a3a4 100644 --- a/src/sdk/models/operations/listproviders.ts +++ b/src/sdk/models/operations/listproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -153,45 +153,6 @@ export const Feature$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Feature$Outbound = { - Directory?: Array | undefined; - key?: string | undefined; - type?: string | undefined; -}; - -/** @internal */ -export const Feature$outboundSchema: z.ZodType< - Feature$Outbound, - z.ZodTypeDef, - Feature -> = z.object({ - directory: z.array(shared.Directory$outboundSchema).optional(), - key: z.string().optional(), - type: z.string().optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Feature$ { - /** @deprecated use `Feature$inboundSchema` instead. */ - export const inboundSchema = Feature$inboundSchema; - /** @deprecated use `Feature$outboundSchema` instead. */ - export const outboundSchema = Feature$outboundSchema; - /** @deprecated use `Feature$Outbound` instead. */ - export type Outbound = Feature$Outbound; -} - -export function featureToJSON(feature: Feature): string { - return JSON.stringify(Feature$outboundSchema.parse(feature)); -} - export function featureFromJSON( jsonString: string, ): SafeParseResult { @@ -270,157 +231,6 @@ export const ListProvidersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListProvidersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - allowCameraUpload?: boolean | undefined; - allowChannelAccess?: boolean | undefined; - allowMediaDeletion?: boolean | undefined; - allowSharing?: boolean | undefined; - allowSync?: boolean | undefined; - allowTuners?: boolean | undefined; - backgroundProcessing?: boolean | undefined; - certificate?: boolean | undefined; - companionProxy?: boolean | undefined; - countryCode?: string | undefined; - diagnostics?: string | undefined; - eventStream?: boolean | undefined; - friendlyName?: string | undefined; - hubSearch?: boolean | undefined; - itemClusters?: boolean | undefined; - livetv?: number | undefined; - machineIdentifier?: any | undefined; - mediaProviders?: boolean | undefined; - multiuser?: boolean | undefined; - musicAnalysis?: number | undefined; - myPlex?: boolean | undefined; - myPlexMappingState?: any | undefined; - myPlexSigninState?: any | undefined; - myPlexSubscription?: boolean | undefined; - myPlexUsername?: string | undefined; - offlineTranscode?: any | undefined; - ownerFeatures?: string | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - pluginHost?: boolean | undefined; - pushNotifications?: boolean | undefined; - readOnlyLibraries?: boolean | undefined; - streamingBrainABRVersion?: number | undefined; - streamingBrainVersion?: number | undefined; - sync?: boolean | undefined; - transcoderActiveVideoSessions?: number | undefined; - transcoderAudio?: boolean | undefined; - transcoderLyrics?: boolean | undefined; - transcoderPhoto?: boolean | undefined; - transcoderSubtitles?: boolean | undefined; - transcoderVideo?: boolean | undefined; - transcoderVideoBitrates?: any | undefined; - transcoderVideoQualities?: string | undefined; - transcoderVideoResolutions?: any | undefined; - updatedAt?: number | undefined; - updater?: boolean | undefined; - version?: string | undefined; - voiceSearch?: boolean | undefined; - Feature?: Array | undefined; - protocols?: string | undefined; - title?: string | undefined; - types?: string | undefined; -}; - -/** @internal */ -export const ListProvidersMediaContainer$outboundSchema: z.ZodType< - ListProvidersMediaContainer$Outbound, - z.ZodTypeDef, - ListProvidersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - feature: z.array(z.lazy(() => Feature$outboundSchema)).optional(), - protocols: z.string().optional(), - title: z.string().optional(), - types: z.string().optional(), -}).transform((v) => { - return remap$(v, { - feature: "Feature", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListProvidersMediaContainer$ { - /** @deprecated use `ListProvidersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListProvidersMediaContainer$inboundSchema; - /** @deprecated use `ListProvidersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListProvidersMediaContainer$outboundSchema; - /** @deprecated use `ListProvidersMediaContainer$Outbound` instead. */ - export type Outbound = ListProvidersMediaContainer$Outbound; -} - -export function listProvidersMediaContainerToJSON( - listProvidersMediaContainer: ListProvidersMediaContainer, -): string { - return JSON.stringify( - ListProvidersMediaContainer$outboundSchema.parse( - listProvidersMediaContainer, - ), - ); -} - export function listProvidersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -445,46 +255,6 @@ export const ListProvidersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListProvidersResponseBody$Outbound = { - MediaContainer?: ListProvidersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListProvidersResponseBody$outboundSchema: z.ZodType< - ListProvidersResponseBody$Outbound, - z.ZodTypeDef, - ListProvidersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListProvidersMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListProvidersResponseBody$ { - /** @deprecated use `ListProvidersResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListProvidersResponseBody$inboundSchema; - /** @deprecated use `ListProvidersResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListProvidersResponseBody$outboundSchema; - /** @deprecated use `ListProvidersResponseBody$Outbound` instead. */ - export type Outbound = ListProvidersResponseBody$Outbound; -} - -export function listProvidersResponseBodyToJSON( - listProvidersResponseBody: ListProvidersResponseBody, -): string { - return JSON.stringify( - ListProvidersResponseBody$outboundSchema.parse(listProvidersResponseBody), - ); -} - export function listProvidersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -513,55 +283,6 @@ export const ListProvidersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListProvidersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListProvidersResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const ListProvidersResponse$outboundSchema: z.ZodType< - ListProvidersResponse$Outbound, - z.ZodTypeDef, - ListProvidersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListProvidersResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListProvidersResponse$ { - /** @deprecated use `ListProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = ListProvidersResponse$inboundSchema; - /** @deprecated use `ListProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = ListProvidersResponse$outboundSchema; - /** @deprecated use `ListProvidersResponse$Outbound` instead. */ - export type Outbound = ListProvidersResponse$Outbound; -} - -export function listProvidersResponseToJSON( - listProvidersResponse: ListProvidersResponse, -): string { - return JSON.stringify( - ListProvidersResponse$outboundSchema.parse(listProvidersResponse), - ); -} - export function listProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listsessions.ts b/src/sdk/models/operations/listsessions.ts index b662a639..478a66f9 100644 --- a/src/sdk/models/operations/listsessions.ts +++ b/src/sdk/models/operations/listsessions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -272,7 +272,7 @@ export type ListSessionsMetadatum = { * When present, the year associated with the item's release (e.g. release year for a movie). */ year?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -427,203 +427,6 @@ export const ListSessionsMetadatum$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSessionsMetadatum$Outbound = { - Player?: shared.Player$Outbound | undefined; - Session?: shared.Session$Outbound | undefined; - User?: shared.User$Outbound | undefined; - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const ListSessionsMetadatum$outboundSchema: z.ZodType< - ListSessionsMetadatum$Outbound, - z.ZodTypeDef, - ListSessionsMetadatum -> = z.object({ - player: shared.Player$outboundSchema.optional(), - session: shared.Session$outboundSchema.optional(), - user: shared.User$outboundSchema.optional(), - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(shared.Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(shared.Tag$outboundSchema).optional(), - director: z.array(shared.Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(shared.Filter$outboundSchema).optional(), - genre: z.array(shared.Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(shared.Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(shared.Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(shared.Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(shared.Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(shared.Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(shared.Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(shared.Tag$outboundSchema).optional(), - year: z.number().int().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - player: "Player", - session: "Session", - user: "User", - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSessionsMetadatum$ { - /** @deprecated use `ListSessionsMetadatum$inboundSchema` instead. */ - export const inboundSchema = ListSessionsMetadatum$inboundSchema; - /** @deprecated use `ListSessionsMetadatum$outboundSchema` instead. */ - export const outboundSchema = ListSessionsMetadatum$outboundSchema; - /** @deprecated use `ListSessionsMetadatum$Outbound` instead. */ - export type Outbound = ListSessionsMetadatum$Outbound; -} - -export function listSessionsMetadatumToJSON( - listSessionsMetadatum: ListSessionsMetadatum, -): string { - return JSON.stringify( - ListSessionsMetadatum$outboundSchema.parse(listSessionsMetadatum), - ); -} - export function listSessionsMetadatumFromJSON( jsonString: string, ): SafeParseResult { @@ -652,54 +455,6 @@ export const ListSessionsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSessionsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Array | undefined; -}; - -/** @internal */ -export const ListSessionsMediaContainer$outboundSchema: z.ZodType< - ListSessionsMediaContainer$Outbound, - z.ZodTypeDef, - ListSessionsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array(z.lazy(() => ListSessionsMetadatum$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSessionsMediaContainer$ { - /** @deprecated use `ListSessionsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListSessionsMediaContainer$inboundSchema; - /** @deprecated use `ListSessionsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListSessionsMediaContainer$outboundSchema; - /** @deprecated use `ListSessionsMediaContainer$Outbound` instead. */ - export type Outbound = ListSessionsMediaContainer$Outbound; -} - -export function listSessionsMediaContainerToJSON( - listSessionsMediaContainer: ListSessionsMediaContainer, -): string { - return JSON.stringify( - ListSessionsMediaContainer$outboundSchema.parse(listSessionsMediaContainer), - ); -} - export function listSessionsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -724,46 +479,6 @@ export const ListSessionsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSessionsResponseBody$Outbound = { - MediaContainer?: ListSessionsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListSessionsResponseBody$outboundSchema: z.ZodType< - ListSessionsResponseBody$Outbound, - z.ZodTypeDef, - ListSessionsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListSessionsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSessionsResponseBody$ { - /** @deprecated use `ListSessionsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListSessionsResponseBody$inboundSchema; - /** @deprecated use `ListSessionsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListSessionsResponseBody$outboundSchema; - /** @deprecated use `ListSessionsResponseBody$Outbound` instead. */ - export type Outbound = ListSessionsResponseBody$Outbound; -} - -export function listSessionsResponseBodyToJSON( - listSessionsResponseBody: ListSessionsResponseBody, -): string { - return JSON.stringify( - ListSessionsResponseBody$outboundSchema.parse(listSessionsResponseBody), - ); -} - export function listSessionsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -784,7 +499,7 @@ export const ListSessionsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => ListSessionsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -794,58 +509,6 @@ export const ListSessionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSessionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListSessionsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ListSessionsResponse$outboundSchema: z.ZodType< - ListSessionsResponse$Outbound, - z.ZodTypeDef, - ListSessionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListSessionsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSessionsResponse$ { - /** @deprecated use `ListSessionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListSessionsResponse$inboundSchema; - /** @deprecated use `ListSessionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListSessionsResponse$outboundSchema; - /** @deprecated use `ListSessionsResponse$Outbound` instead. */ - export type Outbound = ListSessionsResponse$Outbound; -} - -export function listSessionsResponseToJSON( - listSessionsResponse: ListSessionsResponse, -): string { - return JSON.stringify( - ListSessionsResponse$outboundSchema.parse(listSessionsResponse), - ); -} - export function listSessionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listsimilar.ts b/src/sdk/models/operations/listsimilar.ts index 7a594ae2..f7809239 100644 --- a/src/sdk/models/operations/listsimilar.ts +++ b/src/sdk/models/operations/listsimilar.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,150 +127,6 @@ export type ListSimilarResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const ListSimilarGlobals$inboundSchema: z.ZodType< - ListSimilarGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListSimilarGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListSimilarGlobals$outboundSchema: z.ZodType< - ListSimilarGlobals$Outbound, - z.ZodTypeDef, - ListSimilarGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSimilarGlobals$ { - /** @deprecated use `ListSimilarGlobals$inboundSchema` instead. */ - export const inboundSchema = ListSimilarGlobals$inboundSchema; - /** @deprecated use `ListSimilarGlobals$outboundSchema` instead. */ - export const outboundSchema = ListSimilarGlobals$outboundSchema; - /** @deprecated use `ListSimilarGlobals$Outbound` instead. */ - export type Outbound = ListSimilarGlobals$Outbound; -} - -export function listSimilarGlobalsToJSON( - listSimilarGlobals: ListSimilarGlobals, -): string { - return JSON.stringify( - ListSimilarGlobals$outboundSchema.parse(listSimilarGlobals), - ); -} - -export function listSimilarGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSimilarGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSimilarGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListSimilarRequest$inboundSchema: z.ZodType< - ListSimilarRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - count: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListSimilarRequest$Outbound = { accepts: string; @@ -322,19 +178,6 @@ export const ListSimilarRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSimilarRequest$ { - /** @deprecated use `ListSimilarRequest$inboundSchema` instead. */ - export const inboundSchema = ListSimilarRequest$inboundSchema; - /** @deprecated use `ListSimilarRequest$outboundSchema` instead. */ - export const outboundSchema = ListSimilarRequest$outboundSchema; - /** @deprecated use `ListSimilarRequest$Outbound` instead. */ - export type Outbound = ListSimilarRequest$Outbound; -} - export function listSimilarRequestToJSON( listSimilarRequest: ListSimilarRequest, ): string { @@ -343,16 +186,6 @@ export function listSimilarRequestToJSON( ); } -export function listSimilarRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSimilarRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSimilarRequest' from JSON`, - ); -} - /** @internal */ export const ListSimilarResponse$inboundSchema: z.ZodType< ListSimilarResponse, @@ -373,59 +206,6 @@ export const ListSimilarResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSimilarResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ListSimilarResponse$outboundSchema: z.ZodType< - ListSimilarResponse$Outbound, - z.ZodTypeDef, - ListSimilarResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSimilarResponse$ { - /** @deprecated use `ListSimilarResponse$inboundSchema` instead. */ - export const inboundSchema = ListSimilarResponse$inboundSchema; - /** @deprecated use `ListSimilarResponse$outboundSchema` instead. */ - export const outboundSchema = ListSimilarResponse$outboundSchema; - /** @deprecated use `ListSimilarResponse$Outbound` instead. */ - export type Outbound = ListSimilarResponse$Outbound; -} - -export function listSimilarResponseToJSON( - listSimilarResponse: ListSimilarResponse, -): string { - return JSON.stringify( - ListSimilarResponse$outboundSchema.parse(listSimilarResponse), - ); -} - export function listSimilarResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listsonicallysimilar.ts b/src/sdk/models/operations/listsonicallysimilar.ts index e547673f..670e8197 100644 --- a/src/sdk/models/operations/listsonicallysimilar.ts +++ b/src/sdk/models/operations/listsonicallysimilar.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -127,155 +127,6 @@ export type ListSonicallySimilarResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const ListSonicallySimilarGlobals$inboundSchema: z.ZodType< - ListSonicallySimilarGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListSonicallySimilarGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListSonicallySimilarGlobals$outboundSchema: z.ZodType< - ListSonicallySimilarGlobals$Outbound, - z.ZodTypeDef, - ListSonicallySimilarGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSonicallySimilarGlobals$ { - /** @deprecated use `ListSonicallySimilarGlobals$inboundSchema` instead. */ - export const inboundSchema = ListSonicallySimilarGlobals$inboundSchema; - /** @deprecated use `ListSonicallySimilarGlobals$outboundSchema` instead. */ - export const outboundSchema = ListSonicallySimilarGlobals$outboundSchema; - /** @deprecated use `ListSonicallySimilarGlobals$Outbound` instead. */ - export type Outbound = ListSonicallySimilarGlobals$Outbound; -} - -export function listSonicallySimilarGlobalsToJSON( - listSonicallySimilarGlobals: ListSonicallySimilarGlobals, -): string { - return JSON.stringify( - ListSonicallySimilarGlobals$outboundSchema.parse( - listSonicallySimilarGlobals, - ), - ); -} - -export function listSonicallySimilarGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSonicallySimilarGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSonicallySimilarGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListSonicallySimilarRequest$inboundSchema: z.ZodType< - ListSonicallySimilarRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - excludeParentID: z.number().int().optional(), - excludeGrandparentID: z.number().int().optional(), - limit: z.number().int().optional(), - maxDistance: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListSonicallySimilarRequest$Outbound = { accepts: string; @@ -333,19 +184,6 @@ export const ListSonicallySimilarRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSonicallySimilarRequest$ { - /** @deprecated use `ListSonicallySimilarRequest$inboundSchema` instead. */ - export const inboundSchema = ListSonicallySimilarRequest$inboundSchema; - /** @deprecated use `ListSonicallySimilarRequest$outboundSchema` instead. */ - export const outboundSchema = ListSonicallySimilarRequest$outboundSchema; - /** @deprecated use `ListSonicallySimilarRequest$Outbound` instead. */ - export type Outbound = ListSonicallySimilarRequest$Outbound; -} - export function listSonicallySimilarRequestToJSON( listSonicallySimilarRequest: ListSonicallySimilarRequest, ): string { @@ -356,16 +194,6 @@ export function listSonicallySimilarRequestToJSON( ); } -export function listSonicallySimilarRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSonicallySimilarRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSonicallySimilarRequest' from JSON`, - ); -} - /** @internal */ export const ListSonicallySimilarResponse$inboundSchema: z.ZodType< ListSonicallySimilarResponse, @@ -386,61 +214,6 @@ export const ListSonicallySimilarResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListSonicallySimilarResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ListSonicallySimilarResponse$outboundSchema: z.ZodType< - ListSonicallySimilarResponse$Outbound, - z.ZodTypeDef, - ListSonicallySimilarResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSonicallySimilarResponse$ { - /** @deprecated use `ListSonicallySimilarResponse$inboundSchema` instead. */ - export const inboundSchema = ListSonicallySimilarResponse$inboundSchema; - /** @deprecated use `ListSonicallySimilarResponse$outboundSchema` instead. */ - export const outboundSchema = ListSonicallySimilarResponse$outboundSchema; - /** @deprecated use `ListSonicallySimilarResponse$Outbound` instead. */ - export type Outbound = ListSonicallySimilarResponse$Outbound; -} - -export function listSonicallySimilarResponseToJSON( - listSonicallySimilarResponse: ListSonicallySimilarResponse, -): string { - return JSON.stringify( - ListSonicallySimilarResponse$outboundSchema.parse( - listSonicallySimilarResponse, - ), - ); -} - export function listSonicallySimilarResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listtopusers.ts b/src/sdk/models/operations/listtopusers.ts index 65421805..7ca9dbc7 100644 --- a/src/sdk/models/operations/listtopusers.ts +++ b/src/sdk/models/operations/listtopusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -160,149 +160,6 @@ export type ListTopUsersResponse = { object?: ListTopUsersResponseBody | undefined; }; -/** @internal */ -export const ListTopUsersGlobals$inboundSchema: z.ZodType< - ListTopUsersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ListTopUsersGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ListTopUsersGlobals$outboundSchema: z.ZodType< - ListTopUsersGlobals$Outbound, - z.ZodTypeDef, - ListTopUsersGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTopUsersGlobals$ { - /** @deprecated use `ListTopUsersGlobals$inboundSchema` instead. */ - export const inboundSchema = ListTopUsersGlobals$inboundSchema; - /** @deprecated use `ListTopUsersGlobals$outboundSchema` instead. */ - export const outboundSchema = ListTopUsersGlobals$outboundSchema; - /** @deprecated use `ListTopUsersGlobals$Outbound` instead. */ - export type Outbound = ListTopUsersGlobals$Outbound; -} - -export function listTopUsersGlobalsToJSON( - listTopUsersGlobals: ListTopUsersGlobals, -): string { - return JSON.stringify( - ListTopUsersGlobals$outboundSchema.parse(listTopUsersGlobals), - ); -} - -export function listTopUsersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTopUsersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTopUsersGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListTopUsersRequest$inboundSchema: z.ZodType< - ListTopUsersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ListTopUsersRequest$Outbound = { accepts: string; @@ -352,19 +209,6 @@ export const ListTopUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTopUsersRequest$ { - /** @deprecated use `ListTopUsersRequest$inboundSchema` instead. */ - export const inboundSchema = ListTopUsersRequest$inboundSchema; - /** @deprecated use `ListTopUsersRequest$outboundSchema` instead. */ - export const outboundSchema = ListTopUsersRequest$outboundSchema; - /** @deprecated use `ListTopUsersRequest$Outbound` instead. */ - export type Outbound = ListTopUsersRequest$Outbound; -} - export function listTopUsersRequestToJSON( listTopUsersRequest: ListTopUsersRequest, ): string { @@ -373,16 +217,6 @@ export function listTopUsersRequestToJSON( ); } -export function listTopUsersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTopUsersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTopUsersRequest' from JSON`, - ); -} - /** @internal */ export const Account$inboundSchema: z.ZodType = z.object({ @@ -390,39 +224,6 @@ export const Account$inboundSchema: z.ZodType = id: z.number().int().optional(), }); -/** @internal */ -export type Account$Outbound = { - globalViewCount?: number | undefined; - id?: number | undefined; -}; - -/** @internal */ -export const Account$outboundSchema: z.ZodType< - Account$Outbound, - z.ZodTypeDef, - Account -> = z.object({ - globalViewCount: z.number().int().optional(), - id: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Account$ { - /** @deprecated use `Account$inboundSchema` instead. */ - export const inboundSchema = Account$inboundSchema; - /** @deprecated use `Account$outboundSchema` instead. */ - export const outboundSchema = Account$outboundSchema; - /** @deprecated use `Account$Outbound` instead. */ - export type Outbound = Account$Outbound; -} - -export function accountToJSON(account: Account): string { - return JSON.stringify(Account$outboundSchema.parse(account)); -} - export function accountFromJSON( jsonString: string, ): SafeParseResult { @@ -450,53 +251,6 @@ export const ListTopUsersMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListTopUsersMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Account?: Array | undefined; -}; - -/** @internal */ -export const ListTopUsersMediaContainer$outboundSchema: z.ZodType< - ListTopUsersMediaContainer$Outbound, - z.ZodTypeDef, - ListTopUsersMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - account: z.array(z.lazy(() => Account$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - account: "Account", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTopUsersMediaContainer$ { - /** @deprecated use `ListTopUsersMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ListTopUsersMediaContainer$inboundSchema; - /** @deprecated use `ListTopUsersMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ListTopUsersMediaContainer$outboundSchema; - /** @deprecated use `ListTopUsersMediaContainer$Outbound` instead. */ - export type Outbound = ListTopUsersMediaContainer$Outbound; -} - -export function listTopUsersMediaContainerToJSON( - listTopUsersMediaContainer: ListTopUsersMediaContainer, -): string { - return JSON.stringify( - ListTopUsersMediaContainer$outboundSchema.parse(listTopUsersMediaContainer), - ); -} - export function listTopUsersMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -521,46 +275,6 @@ export const ListTopUsersResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListTopUsersResponseBody$Outbound = { - MediaContainer?: ListTopUsersMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ListTopUsersResponseBody$outboundSchema: z.ZodType< - ListTopUsersResponseBody$Outbound, - z.ZodTypeDef, - ListTopUsersResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ListTopUsersMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTopUsersResponseBody$ { - /** @deprecated use `ListTopUsersResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListTopUsersResponseBody$inboundSchema; - /** @deprecated use `ListTopUsersResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListTopUsersResponseBody$outboundSchema; - /** @deprecated use `ListTopUsersResponseBody$Outbound` instead. */ - export type Outbound = ListTopUsersResponseBody$Outbound; -} - -export function listTopUsersResponseBodyToJSON( - listTopUsersResponseBody: ListTopUsersResponseBody, -): string { - return JSON.stringify( - ListTopUsersResponseBody$outboundSchema.parse(listTopUsersResponseBody), - ); -} - export function listTopUsersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -589,55 +303,6 @@ export const ListTopUsersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ListTopUsersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ListTopUsersResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const ListTopUsersResponse$outboundSchema: z.ZodType< - ListTopUsersResponse$Outbound, - z.ZodTypeDef, - ListTopUsersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ListTopUsersResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTopUsersResponse$ { - /** @deprecated use `ListTopUsersResponse$inboundSchema` instead. */ - export const inboundSchema = ListTopUsersResponse$inboundSchema; - /** @deprecated use `ListTopUsersResponse$outboundSchema` instead. */ - export const outboundSchema = ListTopUsersResponse$outboundSchema; - /** @deprecated use `ListTopUsersResponse$Outbound` instead. */ - export type Outbound = ListTopUsersResponse$Outbound; -} - -export function listTopUsersResponseToJSON( - listTopUsersResponse: ListTopUsersResponse, -): string { - return JSON.stringify( - ListTopUsersResponse$outboundSchema.parse(listTopUsersResponse), - ); -} - export function listTopUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/makedecision.ts b/src/sdk/models/operations/makedecision.ts index 73097640..da140ed2 100644 --- a/src/sdk/models/operations/makedecision.ts +++ b/src/sdk/models/operations/makedecision.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -288,243 +288,19 @@ export type MakeDecisionResponse = { }; /** @internal */ -export const MakeDecisionGlobals$inboundSchema: z.ZodType< - MakeDecisionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MakeDecisionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MakeDecisionGlobals$outboundSchema: z.ZodType< - MakeDecisionGlobals$Outbound, - z.ZodTypeDef, - MakeDecisionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionGlobals$ { - /** @deprecated use `MakeDecisionGlobals$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionGlobals$inboundSchema; - /** @deprecated use `MakeDecisionGlobals$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionGlobals$outboundSchema; - /** @deprecated use `MakeDecisionGlobals$Outbound` instead. */ - export type Outbound = MakeDecisionGlobals$Outbound; -} - -export function makeDecisionGlobalsToJSON( - makeDecisionGlobals: MakeDecisionGlobals, -): string { - return JSON.stringify( - MakeDecisionGlobals$outboundSchema.parse(makeDecisionGlobals), - ); -} - -export function makeDecisionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MakeDecisionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MakeDecisionGlobals' from JSON`, - ); -} - -/** @internal */ -export const MakeDecisionLocation$inboundSchema: z.ZodNativeEnum< +export const MakeDecisionLocation$outboundSchema: z.ZodNativeEnum< typeof MakeDecisionLocation > = z.nativeEnum(MakeDecisionLocation); /** @internal */ -export const MakeDecisionLocation$outboundSchema: z.ZodNativeEnum< - typeof MakeDecisionLocation -> = MakeDecisionLocation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionLocation$ { - /** @deprecated use `MakeDecisionLocation$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionLocation$inboundSchema; - /** @deprecated use `MakeDecisionLocation$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionLocation$outboundSchema; -} - -/** @internal */ -export const MakeDecisionProtocol$inboundSchema: z.ZodNativeEnum< +export const MakeDecisionProtocol$outboundSchema: z.ZodNativeEnum< typeof MakeDecisionProtocol > = z.nativeEnum(MakeDecisionProtocol); -/** @internal */ -export const MakeDecisionProtocol$outboundSchema: z.ZodNativeEnum< - typeof MakeDecisionProtocol -> = MakeDecisionProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionProtocol$ { - /** @deprecated use `MakeDecisionProtocol$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionProtocol$inboundSchema; - /** @deprecated use `MakeDecisionProtocol$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionProtocol$outboundSchema; -} - -/** @internal */ -export const MakeDecisionSubtitles$inboundSchema: z.ZodNativeEnum< - typeof MakeDecisionSubtitles -> = z.nativeEnum(MakeDecisionSubtitles); - /** @internal */ export const MakeDecisionSubtitles$outboundSchema: z.ZodNativeEnum< typeof MakeDecisionSubtitles -> = MakeDecisionSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionSubtitles$ { - /** @deprecated use `MakeDecisionSubtitles$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionSubtitles$inboundSchema; - /** @deprecated use `MakeDecisionSubtitles$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionSubtitles$outboundSchema; -} - -/** @internal */ -export const MakeDecisionRequest$inboundSchema: z.ZodType< - MakeDecisionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - transcodeType: shared.TranscodeType$inboundSchema, - transcodeSessionId: z.string().optional(), - advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: shared.BoolInt$inboundSchema.optional(), - autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), - directPlay: shared.BoolInt$inboundSchema.optional(), - directStream: shared.BoolInt$inboundSchema.optional(), - directStreamAudio: shared.BoolInt$inboundSchema.optional(), - disableResolutionRotation: shared.BoolInt$inboundSchema.optional(), - hasMDE: shared.BoolInt$inboundSchema.optional(), - location: MakeDecisionLocation$inboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - offset: z.number().optional(), - partIndex: z.number().int().optional(), - path: z.string().optional(), - peakBitrate: z.number().int().optional(), - photoResolution: z.string().optional(), - protocol: MakeDecisionProtocol$inboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), - subtitles: MakeDecisionSubtitles$inboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), - "X-Plex-Client-Profile-Extra": z.string().optional(), - "X-Plex-Client-Profile-Name": z.string().optional(), - "X-Plex-Session-Identifier": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", - "X-Plex-Client-Profile-Name": "xPlexClientProfileName", - "X-Plex-Session-Identifier": "xPlexSessionIdentifier", - }); -}); +> = z.nativeEnum(MakeDecisionSubtitles); /** @internal */ export type MakeDecisionRequest$Outbound = { @@ -638,19 +414,6 @@ export const MakeDecisionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionRequest$ { - /** @deprecated use `MakeDecisionRequest$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionRequest$inboundSchema; - /** @deprecated use `MakeDecisionRequest$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionRequest$outboundSchema; - /** @deprecated use `MakeDecisionRequest$Outbound` instead. */ - export type Outbound = MakeDecisionRequest$Outbound; -} - export function makeDecisionRequestToJSON( makeDecisionRequest: MakeDecisionRequest, ): string { @@ -659,16 +422,6 @@ export function makeDecisionRequestToJSON( ); } -export function makeDecisionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MakeDecisionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MakeDecisionRequest' from JSON`, - ); -} - /** @internal */ export const MakeDecisionResponse$inboundSchema: z.ZodType< MakeDecisionResponse, @@ -689,59 +442,6 @@ export const MakeDecisionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MakeDecisionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDecision?: - | shared.MediaContainerWithDecision$Outbound - | undefined; -}; - -/** @internal */ -export const MakeDecisionResponse$outboundSchema: z.ZodType< - MakeDecisionResponse$Outbound, - z.ZodTypeDef, - MakeDecisionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDecision: shared.MediaContainerWithDecision$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDecision: "MediaContainerWithDecision", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MakeDecisionResponse$ { - /** @deprecated use `MakeDecisionResponse$inboundSchema` instead. */ - export const inboundSchema = MakeDecisionResponse$inboundSchema; - /** @deprecated use `MakeDecisionResponse$outboundSchema` instead. */ - export const outboundSchema = MakeDecisionResponse$outboundSchema; - /** @deprecated use `MakeDecisionResponse$Outbound` instead. */ - export type Outbound = MakeDecisionResponse$Outbound; -} - -export function makeDecisionResponseToJSON( - makeDecisionResponse: MakeDecisionResponse, -): string { - return JSON.stringify( - MakeDecisionResponse$outboundSchema.parse(makeDecisionResponse), - ); -} - export function makeDecisionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/markplayed.ts b/src/sdk/models/operations/markplayed.ts index af1151d6..89f93f2d 100644 --- a/src/sdk/models/operations/markplayed.ts +++ b/src/sdk/models/operations/markplayed.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,151 +130,6 @@ export type MarkPlayedResponse = { rawResponse: Response; }; -/** @internal */ -export const MarkPlayedGlobals$inboundSchema: z.ZodType< - MarkPlayedGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MarkPlayedGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MarkPlayedGlobals$outboundSchema: z.ZodType< - MarkPlayedGlobals$Outbound, - z.ZodTypeDef, - MarkPlayedGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MarkPlayedGlobals$ { - /** @deprecated use `MarkPlayedGlobals$inboundSchema` instead. */ - export const inboundSchema = MarkPlayedGlobals$inboundSchema; - /** @deprecated use `MarkPlayedGlobals$outboundSchema` instead. */ - export const outboundSchema = MarkPlayedGlobals$outboundSchema; - /** @deprecated use `MarkPlayedGlobals$Outbound` instead. */ - export type Outbound = MarkPlayedGlobals$Outbound; -} - -export function markPlayedGlobalsToJSON( - markPlayedGlobals: MarkPlayedGlobals, -): string { - return JSON.stringify( - MarkPlayedGlobals$outboundSchema.parse(markPlayedGlobals), - ); -} - -export function markPlayedGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MarkPlayedGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MarkPlayedGlobals' from JSON`, - ); -} - -/** @internal */ -export const MarkPlayedRequest$inboundSchema: z.ZodType< - MarkPlayedRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - identifier: z.string(), - key: z.string().optional(), - uri: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MarkPlayedRequest$Outbound = { accepts: string; @@ -328,19 +183,6 @@ export const MarkPlayedRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MarkPlayedRequest$ { - /** @deprecated use `MarkPlayedRequest$inboundSchema` instead. */ - export const inboundSchema = MarkPlayedRequest$inboundSchema; - /** @deprecated use `MarkPlayedRequest$outboundSchema` instead. */ - export const outboundSchema = MarkPlayedRequest$outboundSchema; - /** @deprecated use `MarkPlayedRequest$Outbound` instead. */ - export type Outbound = MarkPlayedRequest$Outbound; -} - export function markPlayedRequestToJSON( markPlayedRequest: MarkPlayedRequest, ): string { @@ -349,16 +191,6 @@ export function markPlayedRequestToJSON( ); } -export function markPlayedRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MarkPlayedRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MarkPlayedRequest' from JSON`, - ); -} - /** @internal */ export const MarkPlayedResponse$inboundSchema: z.ZodType< MarkPlayedResponse, @@ -376,53 +208,6 @@ export const MarkPlayedResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MarkPlayedResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const MarkPlayedResponse$outboundSchema: z.ZodType< - MarkPlayedResponse$Outbound, - z.ZodTypeDef, - MarkPlayedResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MarkPlayedResponse$ { - /** @deprecated use `MarkPlayedResponse$inboundSchema` instead. */ - export const inboundSchema = MarkPlayedResponse$inboundSchema; - /** @deprecated use `MarkPlayedResponse$outboundSchema` instead. */ - export const outboundSchema = MarkPlayedResponse$outboundSchema; - /** @deprecated use `MarkPlayedResponse$Outbound` instead. */ - export type Outbound = MarkPlayedResponse$Outbound; -} - -export function markPlayedResponseToJSON( - markPlayedResponse: MarkPlayedResponse, -): string { - return JSON.stringify( - MarkPlayedResponse$outboundSchema.parse(markPlayedResponse), - ); -} - export function markPlayedResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/matchitem.ts b/src/sdk/models/operations/matchitem.ts index a66a37ea..d724c8f4 100644 --- a/src/sdk/models/operations/matchitem.ts +++ b/src/sdk/models/operations/matchitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,152 +122,6 @@ export type MatchItemResponse = { rawResponse: Response; }; -/** @internal */ -export const MatchItemGlobals$inboundSchema: z.ZodType< - MatchItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MatchItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MatchItemGlobals$outboundSchema: z.ZodType< - MatchItemGlobals$Outbound, - z.ZodTypeDef, - MatchItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MatchItemGlobals$ { - /** @deprecated use `MatchItemGlobals$inboundSchema` instead. */ - export const inboundSchema = MatchItemGlobals$inboundSchema; - /** @deprecated use `MatchItemGlobals$outboundSchema` instead. */ - export const outboundSchema = MatchItemGlobals$outboundSchema; - /** @deprecated use `MatchItemGlobals$Outbound` instead. */ - export type Outbound = MatchItemGlobals$Outbound; -} - -export function matchItemGlobalsToJSON( - matchItemGlobals: MatchItemGlobals, -): string { - return JSON.stringify( - MatchItemGlobals$outboundSchema.parse(matchItemGlobals), - ); -} - -export function matchItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MatchItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MatchItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const MatchItemRequest$inboundSchema: z.ZodType< - MatchItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - guid: z.string().optional(), - name: z.string().optional(), - year: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MatchItemRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const MatchItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MatchItemRequest$ { - /** @deprecated use `MatchItemRequest$inboundSchema` instead. */ - export const inboundSchema = MatchItemRequest$inboundSchema; - /** @deprecated use `MatchItemRequest$outboundSchema` instead. */ - export const outboundSchema = MatchItemRequest$outboundSchema; - /** @deprecated use `MatchItemRequest$Outbound` instead. */ - export type Outbound = MatchItemRequest$Outbound; -} - export function matchItemRequestToJSON( matchItemRequest: MatchItemRequest, ): string { @@ -344,16 +185,6 @@ export function matchItemRequestToJSON( ); } -export function matchItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MatchItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MatchItemRequest' from JSON`, - ); -} - /** @internal */ export const MatchItemResponse$inboundSchema: z.ZodType< MatchItemResponse, @@ -371,53 +202,6 @@ export const MatchItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MatchItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const MatchItemResponse$outboundSchema: z.ZodType< - MatchItemResponse$Outbound, - z.ZodTypeDef, - MatchItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MatchItemResponse$ { - /** @deprecated use `MatchItemResponse$inboundSchema` instead. */ - export const inboundSchema = MatchItemResponse$inboundSchema; - /** @deprecated use `MatchItemResponse$outboundSchema` instead. */ - export const outboundSchema = MatchItemResponse$outboundSchema; - /** @deprecated use `MatchItemResponse$Outbound` instead. */ - export type Outbound = MatchItemResponse$Outbound; -} - -export function matchItemResponseToJSON( - matchItemResponse: MatchItemResponse, -): string { - return JSON.stringify( - MatchItemResponse$outboundSchema.parse(matchItemResponse), - ); -} - export function matchItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/mergeitems.ts b/src/sdk/models/operations/mergeitems.ts index cc0b2265..810f4cdb 100644 --- a/src/sdk/models/operations/mergeitems.ts +++ b/src/sdk/models/operations/mergeitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -120,150 +120,6 @@ export type MergeItemsResponse = { rawResponse: Response; }; -/** @internal */ -export const MergeItemsGlobals$inboundSchema: z.ZodType< - MergeItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MergeItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MergeItemsGlobals$outboundSchema: z.ZodType< - MergeItemsGlobals$Outbound, - z.ZodTypeDef, - MergeItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MergeItemsGlobals$ { - /** @deprecated use `MergeItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = MergeItemsGlobals$inboundSchema; - /** @deprecated use `MergeItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = MergeItemsGlobals$outboundSchema; - /** @deprecated use `MergeItemsGlobals$Outbound` instead. */ - export type Outbound = MergeItemsGlobals$Outbound; -} - -export function mergeItemsGlobalsToJSON( - mergeItemsGlobals: MergeItemsGlobals, -): string { - return JSON.stringify( - MergeItemsGlobals$outboundSchema.parse(mergeItemsGlobals), - ); -} - -export function mergeItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MergeItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MergeItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const MergeItemsRequest$inboundSchema: z.ZodType< - MergeItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - idsPathParameter: z.string(), - idsQueryParameter: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MergeItemsRequest$Outbound = { accepts: string; @@ -315,19 +171,6 @@ export const MergeItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MergeItemsRequest$ { - /** @deprecated use `MergeItemsRequest$inboundSchema` instead. */ - export const inboundSchema = MergeItemsRequest$inboundSchema; - /** @deprecated use `MergeItemsRequest$outboundSchema` instead. */ - export const outboundSchema = MergeItemsRequest$outboundSchema; - /** @deprecated use `MergeItemsRequest$Outbound` instead. */ - export type Outbound = MergeItemsRequest$Outbound; -} - export function mergeItemsRequestToJSON( mergeItemsRequest: MergeItemsRequest, ): string { @@ -336,16 +179,6 @@ export function mergeItemsRequestToJSON( ); } -export function mergeItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MergeItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MergeItemsRequest' from JSON`, - ); -} - /** @internal */ export const MergeItemsResponse$inboundSchema: z.ZodType< MergeItemsResponse, @@ -363,53 +196,6 @@ export const MergeItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MergeItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const MergeItemsResponse$outboundSchema: z.ZodType< - MergeItemsResponse$Outbound, - z.ZodTypeDef, - MergeItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MergeItemsResponse$ { - /** @deprecated use `MergeItemsResponse$inboundSchema` instead. */ - export const inboundSchema = MergeItemsResponse$inboundSchema; - /** @deprecated use `MergeItemsResponse$outboundSchema` instead. */ - export const outboundSchema = MergeItemsResponse$outboundSchema; - /** @deprecated use `MergeItemsResponse$Outbound` instead. */ - export type Outbound = MergeItemsResponse$Outbound; -} - -export function mergeItemsResponseToJSON( - mergeItemsResponse: MergeItemsResponse, -): string { - return JSON.stringify( - MergeItemsResponse$outboundSchema.parse(mergeItemsResponse), - ); -} - export function mergeItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/modifydevice.ts b/src/sdk/models/operations/modifydevice.ts index 064c7394..ca8fff25 100644 --- a/src/sdk/models/operations/modifydevice.ts +++ b/src/sdk/models/operations/modifydevice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -164,150 +164,6 @@ export type ModifyDeviceResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ModifyDeviceGlobals$inboundSchema: z.ZodType< - ModifyDeviceGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ModifyDeviceGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ModifyDeviceGlobals$outboundSchema: z.ZodType< - ModifyDeviceGlobals$Outbound, - z.ZodTypeDef, - ModifyDeviceGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyDeviceGlobals$ { - /** @deprecated use `ModifyDeviceGlobals$inboundSchema` instead. */ - export const inboundSchema = ModifyDeviceGlobals$inboundSchema; - /** @deprecated use `ModifyDeviceGlobals$outboundSchema` instead. */ - export const outboundSchema = ModifyDeviceGlobals$outboundSchema; - /** @deprecated use `ModifyDeviceGlobals$Outbound` instead. */ - export type Outbound = ModifyDeviceGlobals$Outbound; -} - -export function modifyDeviceGlobalsToJSON( - modifyDeviceGlobals: ModifyDeviceGlobals, -): string { - return JSON.stringify( - ModifyDeviceGlobals$outboundSchema.parse(modifyDeviceGlobals), - ); -} - -export function modifyDeviceGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyDeviceGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyDeviceGlobals' from JSON`, - ); -} - -/** @internal */ -export const ModifyDeviceRequest$inboundSchema: z.ZodType< - ModifyDeviceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), - enabled: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ModifyDeviceRequest$Outbound = { accepts: string; @@ -359,19 +215,6 @@ export const ModifyDeviceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyDeviceRequest$ { - /** @deprecated use `ModifyDeviceRequest$inboundSchema` instead. */ - export const inboundSchema = ModifyDeviceRequest$inboundSchema; - /** @deprecated use `ModifyDeviceRequest$outboundSchema` instead. */ - export const outboundSchema = ModifyDeviceRequest$outboundSchema; - /** @deprecated use `ModifyDeviceRequest$Outbound` instead. */ - export type Outbound = ModifyDeviceRequest$Outbound; -} - export function modifyDeviceRequestToJSON( modifyDeviceRequest: ModifyDeviceRequest, ): string { @@ -380,16 +223,6 @@ export function modifyDeviceRequestToJSON( ); } -export function modifyDeviceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyDeviceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyDeviceRequest' from JSON`, - ); -} - /** @internal */ export const ModifyDeviceMediaContainer$inboundSchema: z.ZodType< ModifyDeviceMediaContainer, @@ -404,51 +237,6 @@ export const ModifyDeviceMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type ModifyDeviceMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const ModifyDeviceMediaContainer$outboundSchema: z.ZodType< - ModifyDeviceMediaContainer$Outbound, - z.ZodTypeDef, - ModifyDeviceMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyDeviceMediaContainer$ { - /** @deprecated use `ModifyDeviceMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ModifyDeviceMediaContainer$inboundSchema; - /** @deprecated use `ModifyDeviceMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ModifyDeviceMediaContainer$outboundSchema; - /** @deprecated use `ModifyDeviceMediaContainer$Outbound` instead. */ - export type Outbound = ModifyDeviceMediaContainer$Outbound; -} - -export function modifyDeviceMediaContainerToJSON( - modifyDeviceMediaContainer: ModifyDeviceMediaContainer, -): string { - return JSON.stringify( - ModifyDeviceMediaContainer$outboundSchema.parse(modifyDeviceMediaContainer), - ); -} - export function modifyDeviceMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -473,46 +261,6 @@ export const ModifyDeviceResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ModifyDeviceResponseBody$Outbound = { - MediaContainer?: ModifyDeviceMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ModifyDeviceResponseBody$outboundSchema: z.ZodType< - ModifyDeviceResponseBody$Outbound, - z.ZodTypeDef, - ModifyDeviceResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ModifyDeviceMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyDeviceResponseBody$ { - /** @deprecated use `ModifyDeviceResponseBody$inboundSchema` instead. */ - export const inboundSchema = ModifyDeviceResponseBody$inboundSchema; - /** @deprecated use `ModifyDeviceResponseBody$outboundSchema` instead. */ - export const outboundSchema = ModifyDeviceResponseBody$outboundSchema; - /** @deprecated use `ModifyDeviceResponseBody$Outbound` instead. */ - export type Outbound = ModifyDeviceResponseBody$Outbound; -} - -export function modifyDeviceResponseBodyToJSON( - modifyDeviceResponseBody: ModifyDeviceResponseBody, -): string { - return JSON.stringify( - ModifyDeviceResponseBody$outboundSchema.parse(modifyDeviceResponseBody), - ); -} - export function modifyDeviceResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -533,7 +281,7 @@ export const ModifyDeviceResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => ModifyDeviceResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -543,58 +291,6 @@ export const ModifyDeviceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ModifyDeviceResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ModifyDeviceResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ModifyDeviceResponse$outboundSchema: z.ZodType< - ModifyDeviceResponse$Outbound, - z.ZodTypeDef, - ModifyDeviceResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ModifyDeviceResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyDeviceResponse$ { - /** @deprecated use `ModifyDeviceResponse$inboundSchema` instead. */ - export const inboundSchema = ModifyDeviceResponse$inboundSchema; - /** @deprecated use `ModifyDeviceResponse$outboundSchema` instead. */ - export const outboundSchema = ModifyDeviceResponse$outboundSchema; - /** @deprecated use `ModifyDeviceResponse$Outbound` instead. */ - export type Outbound = ModifyDeviceResponse$Outbound; -} - -export function modifyDeviceResponseToJSON( - modifyDeviceResponse: ModifyDeviceResponse, -): string { - return JSON.stringify( - ModifyDeviceResponse$outboundSchema.parse(modifyDeviceResponse), - ); -} - export function modifyDeviceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/modifyplaylistgenerator.ts b/src/sdk/models/operations/modifyplaylistgenerator.ts index 846551c7..26737d73 100644 --- a/src/sdk/models/operations/modifyplaylistgenerator.ts +++ b/src/sdk/models/operations/modifyplaylistgenerator.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -172,127 +172,6 @@ export type ModifyPlaylistGeneratorResponse = { | undefined; }; -/** @internal */ -export const ModifyPlaylistGeneratorGlobals$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ModifyPlaylistGeneratorGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ModifyPlaylistGeneratorGlobals$outboundSchema: z.ZodType< - ModifyPlaylistGeneratorGlobals$Outbound, - z.ZodTypeDef, - ModifyPlaylistGeneratorGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorGlobals$ { - /** @deprecated use `ModifyPlaylistGeneratorGlobals$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorGlobals$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorGlobals$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorGlobals$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorGlobals$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorGlobals$Outbound; -} - -export function modifyPlaylistGeneratorGlobalsToJSON( - modifyPlaylistGeneratorGlobals: ModifyPlaylistGeneratorGlobals, -): string { - return JSON.stringify( - ModifyPlaylistGeneratorGlobals$outboundSchema.parse( - modifyPlaylistGeneratorGlobals, - ), - ); -} - -export function modifyPlaylistGeneratorGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorGlobals' from JSON`, - ); -} - -/** @internal */ -export const ModifyPlaylistGeneratorLocation$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorLocation, - z.ZodTypeDef, - unknown -> = z.object({ - uri: z.string().optional(), -}); - /** @internal */ export type ModifyPlaylistGeneratorLocation$Outbound = { uri?: string | undefined; @@ -307,19 +186,6 @@ export const ModifyPlaylistGeneratorLocation$outboundSchema: z.ZodType< uri: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorLocation$ { - /** @deprecated use `ModifyPlaylistGeneratorLocation$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorLocation$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorLocation$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorLocation$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorLocation$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorLocation$Outbound; -} - export function modifyPlaylistGeneratorLocationToJSON( modifyPlaylistGeneratorLocation: ModifyPlaylistGeneratorLocation, ): string { @@ -330,47 +196,10 @@ export function modifyPlaylistGeneratorLocationToJSON( ); } -export function modifyPlaylistGeneratorLocationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorLocation$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorLocation' from JSON`, - ); -} - -/** @internal */ -export const ModifyPlaylistGeneratorScope$inboundSchema: z.ZodNativeEnum< - typeof ModifyPlaylistGeneratorScope -> = z.nativeEnum(ModifyPlaylistGeneratorScope); - /** @internal */ export const ModifyPlaylistGeneratorScope$outboundSchema: z.ZodNativeEnum< typeof ModifyPlaylistGeneratorScope -> = ModifyPlaylistGeneratorScope$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorScope$ { - /** @deprecated use `ModifyPlaylistGeneratorScope$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorScope$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorScope$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorScope$outboundSchema; -} - -/** @internal */ -export const ModifyPlaylistGeneratorPolicy$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorPolicy, - z.ZodTypeDef, - unknown -> = z.object({ - value: z.number().int().optional(), - scope: ModifyPlaylistGeneratorScope$inboundSchema.optional(), - unwatched: shared.BoolInt$inboundSchema.optional(), -}); +> = z.nativeEnum(ModifyPlaylistGeneratorScope); /** @internal */ export type ModifyPlaylistGeneratorPolicy$Outbound = { @@ -390,19 +219,6 @@ export const ModifyPlaylistGeneratorPolicy$outboundSchema: z.ZodType< unwatched: shared.BoolInt$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorPolicy$ { - /** @deprecated use `ModifyPlaylistGeneratorPolicy$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorPolicy$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorPolicy$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorPolicy$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorPolicy$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorPolicy$Outbound; -} - export function modifyPlaylistGeneratorPolicyToJSON( modifyPlaylistGeneratorPolicy: ModifyPlaylistGeneratorPolicy, ): string { @@ -413,37 +229,6 @@ export function modifyPlaylistGeneratorPolicyToJSON( ); } -export function modifyPlaylistGeneratorPolicyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorPolicy$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorPolicy' from JSON`, - ); -} - -/** @internal */ -export const ModifyPlaylistGeneratorItem$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorItem, - z.ZodTypeDef, - unknown -> = z.object({ - Location: z.lazy(() => ModifyPlaylistGeneratorLocation$inboundSchema) - .optional(), - locationID: z.number().int().optional(), - Policy: z.lazy(() => ModifyPlaylistGeneratorPolicy$inboundSchema).optional(), - target: z.string().optional(), - targetTagID: z.number().int().optional(), - title: z.string().optional(), - type: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Location": "location", - "Policy": "policy", - }); -}); - /** @internal */ export type ModifyPlaylistGeneratorItem$Outbound = { Location?: ModifyPlaylistGeneratorLocation$Outbound | undefined; @@ -476,19 +261,6 @@ export const ModifyPlaylistGeneratorItem$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorItem$ { - /** @deprecated use `ModifyPlaylistGeneratorItem$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorItem$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorItem$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorItem$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorItem$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorItem$Outbound; -} - export function modifyPlaylistGeneratorItemToJSON( modifyPlaylistGeneratorItem: ModifyPlaylistGeneratorItem, ): string { @@ -499,52 +271,6 @@ export function modifyPlaylistGeneratorItemToJSON( ); } -export function modifyPlaylistGeneratorItemFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorItem$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorItem' from JSON`, - ); -} - -/** @internal */ -export const ModifyPlaylistGeneratorRequest$inboundSchema: z.ZodType< - ModifyPlaylistGeneratorRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), - Item: z.lazy(() => ModifyPlaylistGeneratorItem$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "Item": "item", - }); -}); - /** @internal */ export type ModifyPlaylistGeneratorRequest$Outbound = { accepts: string; @@ -599,19 +325,6 @@ export const ModifyPlaylistGeneratorRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorRequest$ { - /** @deprecated use `ModifyPlaylistGeneratorRequest$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorRequest$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorRequest$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorRequest$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorRequest$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorRequest$Outbound; -} - export function modifyPlaylistGeneratorRequestToJSON( modifyPlaylistGeneratorRequest: ModifyPlaylistGeneratorRequest, ): string { @@ -622,16 +335,6 @@ export function modifyPlaylistGeneratorRequestToJSON( ); } -export function modifyPlaylistGeneratorRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ModifyPlaylistGeneratorRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ModifyPlaylistGeneratorRequest' from JSON`, - ); -} - /** @internal */ export const ModifyPlaylistGeneratorResponse$inboundSchema: z.ZodType< ModifyPlaylistGeneratorResponse, @@ -652,61 +355,6 @@ export const ModifyPlaylistGeneratorResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ModifyPlaylistGeneratorResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ModifyPlaylistGeneratorResponse$outboundSchema: z.ZodType< - ModifyPlaylistGeneratorResponse$Outbound, - z.ZodTypeDef, - ModifyPlaylistGeneratorResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ModifyPlaylistGeneratorResponse$ { - /** @deprecated use `ModifyPlaylistGeneratorResponse$inboundSchema` instead. */ - export const inboundSchema = ModifyPlaylistGeneratorResponse$inboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorResponse$outboundSchema` instead. */ - export const outboundSchema = ModifyPlaylistGeneratorResponse$outboundSchema; - /** @deprecated use `ModifyPlaylistGeneratorResponse$Outbound` instead. */ - export type Outbound = ModifyPlaylistGeneratorResponse$Outbound; -} - -export function modifyPlaylistGeneratorResponseToJSON( - modifyPlaylistGeneratorResponse: ModifyPlaylistGeneratorResponse, -): string { - return JSON.stringify( - ModifyPlaylistGeneratorResponse$outboundSchema.parse( - modifyPlaylistGeneratorResponse, - ), - ); -} - export function modifyPlaylistGeneratorResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/movecollectionitem.ts b/src/sdk/models/operations/movecollectionitem.ts index c4bbdaea..75ff1939 100644 --- a/src/sdk/models/operations/movecollectionitem.ts +++ b/src/sdk/models/operations/movecollectionitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -134,151 +134,6 @@ export type MoveCollectionItemResponse = { mediaContainerWithMetadata?: shared.MediaContainerWithMetadata | undefined; }; -/** @internal */ -export const MoveCollectionItemGlobals$inboundSchema: z.ZodType< - MoveCollectionItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MoveCollectionItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MoveCollectionItemGlobals$outboundSchema: z.ZodType< - MoveCollectionItemGlobals$Outbound, - z.ZodTypeDef, - MoveCollectionItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveCollectionItemGlobals$ { - /** @deprecated use `MoveCollectionItemGlobals$inboundSchema` instead. */ - export const inboundSchema = MoveCollectionItemGlobals$inboundSchema; - /** @deprecated use `MoveCollectionItemGlobals$outboundSchema` instead. */ - export const outboundSchema = MoveCollectionItemGlobals$outboundSchema; - /** @deprecated use `MoveCollectionItemGlobals$Outbound` instead. */ - export type Outbound = MoveCollectionItemGlobals$Outbound; -} - -export function moveCollectionItemGlobalsToJSON( - moveCollectionItemGlobals: MoveCollectionItemGlobals, -): string { - return JSON.stringify( - MoveCollectionItemGlobals$outboundSchema.parse(moveCollectionItemGlobals), - ); -} - -export function moveCollectionItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MoveCollectionItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MoveCollectionItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const MoveCollectionItemRequest$inboundSchema: z.ZodType< - MoveCollectionItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - collectionId: z.number().int(), - itemId: z.number().int(), - after: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MoveCollectionItemRequest$Outbound = { accepts: string; @@ -332,19 +187,6 @@ export const MoveCollectionItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveCollectionItemRequest$ { - /** @deprecated use `MoveCollectionItemRequest$inboundSchema` instead. */ - export const inboundSchema = MoveCollectionItemRequest$inboundSchema; - /** @deprecated use `MoveCollectionItemRequest$outboundSchema` instead. */ - export const outboundSchema = MoveCollectionItemRequest$outboundSchema; - /** @deprecated use `MoveCollectionItemRequest$Outbound` instead. */ - export type Outbound = MoveCollectionItemRequest$Outbound; -} - export function moveCollectionItemRequestToJSON( moveCollectionItemRequest: MoveCollectionItemRequest, ): string { @@ -353,16 +195,6 @@ export function moveCollectionItemRequestToJSON( ); } -export function moveCollectionItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MoveCollectionItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MoveCollectionItemRequest' from JSON`, - ); -} - /** @internal */ export const MoveCollectionItemResponse$inboundSchema: z.ZodType< MoveCollectionItemResponse, @@ -383,59 +215,6 @@ export const MoveCollectionItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MoveCollectionItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const MoveCollectionItemResponse$outboundSchema: z.ZodType< - MoveCollectionItemResponse$Outbound, - z.ZodTypeDef, - MoveCollectionItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveCollectionItemResponse$ { - /** @deprecated use `MoveCollectionItemResponse$inboundSchema` instead. */ - export const inboundSchema = MoveCollectionItemResponse$inboundSchema; - /** @deprecated use `MoveCollectionItemResponse$outboundSchema` instead. */ - export const outboundSchema = MoveCollectionItemResponse$outboundSchema; - /** @deprecated use `MoveCollectionItemResponse$Outbound` instead. */ - export type Outbound = MoveCollectionItemResponse$Outbound; -} - -export function moveCollectionItemResponseToJSON( - moveCollectionItemResponse: MoveCollectionItemResponse, -): string { - return JSON.stringify( - MoveCollectionItemResponse$outboundSchema.parse(moveCollectionItemResponse), - ); -} - export function moveCollectionItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/movehub.ts b/src/sdk/models/operations/movehub.ts index 2c572faf..d3798b90 100644 --- a/src/sdk/models/operations/movehub.ts +++ b/src/sdk/models/operations/movehub.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -135,147 +135,6 @@ export type MoveHubResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const MoveHubGlobals$inboundSchema: z.ZodType< - MoveHubGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MoveHubGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MoveHubGlobals$outboundSchema: z.ZodType< - MoveHubGlobals$Outbound, - z.ZodTypeDef, - MoveHubGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveHubGlobals$ { - /** @deprecated use `MoveHubGlobals$inboundSchema` instead. */ - export const inboundSchema = MoveHubGlobals$inboundSchema; - /** @deprecated use `MoveHubGlobals$outboundSchema` instead. */ - export const outboundSchema = MoveHubGlobals$outboundSchema; - /** @deprecated use `MoveHubGlobals$Outbound` instead. */ - export type Outbound = MoveHubGlobals$Outbound; -} - -export function moveHubGlobalsToJSON(moveHubGlobals: MoveHubGlobals): string { - return JSON.stringify(MoveHubGlobals$outboundSchema.parse(moveHubGlobals)); -} - -export function moveHubGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MoveHubGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MoveHubGlobals' from JSON`, - ); -} - -/** @internal */ -export const MoveHubRequest$inboundSchema: z.ZodType< - MoveHubRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - identifier: z.string(), - after: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MoveHubRequest$Outbound = { accepts: string; @@ -329,33 +188,10 @@ export const MoveHubRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveHubRequest$ { - /** @deprecated use `MoveHubRequest$inboundSchema` instead. */ - export const inboundSchema = MoveHubRequest$inboundSchema; - /** @deprecated use `MoveHubRequest$outboundSchema` instead. */ - export const outboundSchema = MoveHubRequest$outboundSchema; - /** @deprecated use `MoveHubRequest$Outbound` instead. */ - export type Outbound = MoveHubRequest$Outbound; -} - export function moveHubRequestToJSON(moveHubRequest: MoveHubRequest): string { return JSON.stringify(MoveHubRequest$outboundSchema.parse(moveHubRequest)); } -export function moveHubRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MoveHubRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MoveHubRequest' from JSON`, - ); -} - /** @internal */ export const MoveHubResponse$inboundSchema: z.ZodType< MoveHubResponse, @@ -366,7 +202,7 @@ export const MoveHubResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), "get-responses-200": shared.GetResponses200$inboundSchema.optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -377,57 +213,6 @@ export const MoveHubResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MoveHubResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "get-responses-200"?: shared.GetResponses200$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const MoveHubResponse$outboundSchema: z.ZodType< - MoveHubResponse$Outbound, - z.ZodTypeDef, - MoveHubResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - getResponses200: shared.GetResponses200$outboundSchema.optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - getResponses200: "get-responses-200", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MoveHubResponse$ { - /** @deprecated use `MoveHubResponse$inboundSchema` instead. */ - export const inboundSchema = MoveHubResponse$inboundSchema; - /** @deprecated use `MoveHubResponse$outboundSchema` instead. */ - export const outboundSchema = MoveHubResponse$outboundSchema; - /** @deprecated use `MoveHubResponse$Outbound` instead. */ - export type Outbound = MoveHubResponse$Outbound; -} - -export function moveHubResponseToJSON( - moveHubResponse: MoveHubResponse, -): string { - return JSON.stringify(MoveHubResponse$outboundSchema.parse(moveHubResponse)); -} - export function moveHubResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/moveplaylistitem.ts b/src/sdk/models/operations/moveplaylistitem.ts index f82fedb4..9a473c12 100644 --- a/src/sdk/models/operations/moveplaylistitem.ts +++ b/src/sdk/models/operations/moveplaylistitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -136,151 +136,6 @@ export type MovePlaylistItemResponse = { | undefined; }; -/** @internal */ -export const MovePlaylistItemGlobals$inboundSchema: z.ZodType< - MovePlaylistItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MovePlaylistItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MovePlaylistItemGlobals$outboundSchema: z.ZodType< - MovePlaylistItemGlobals$Outbound, - z.ZodTypeDef, - MovePlaylistItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlaylistItemGlobals$ { - /** @deprecated use `MovePlaylistItemGlobals$inboundSchema` instead. */ - export const inboundSchema = MovePlaylistItemGlobals$inboundSchema; - /** @deprecated use `MovePlaylistItemGlobals$outboundSchema` instead. */ - export const outboundSchema = MovePlaylistItemGlobals$outboundSchema; - /** @deprecated use `MovePlaylistItemGlobals$Outbound` instead. */ - export type Outbound = MovePlaylistItemGlobals$Outbound; -} - -export function movePlaylistItemGlobalsToJSON( - movePlaylistItemGlobals: MovePlaylistItemGlobals, -): string { - return JSON.stringify( - MovePlaylistItemGlobals$outboundSchema.parse(movePlaylistItemGlobals), - ); -} - -export function movePlaylistItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlaylistItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlaylistItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const MovePlaylistItemRequest$inboundSchema: z.ZodType< - MovePlaylistItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - playlistItemId: z.number().int(), - after: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MovePlaylistItemRequest$Outbound = { accepts: string; @@ -334,19 +189,6 @@ export const MovePlaylistItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlaylistItemRequest$ { - /** @deprecated use `MovePlaylistItemRequest$inboundSchema` instead. */ - export const inboundSchema = MovePlaylistItemRequest$inboundSchema; - /** @deprecated use `MovePlaylistItemRequest$outboundSchema` instead. */ - export const outboundSchema = MovePlaylistItemRequest$outboundSchema; - /** @deprecated use `MovePlaylistItemRequest$Outbound` instead. */ - export type Outbound = MovePlaylistItemRequest$Outbound; -} - export function movePlaylistItemRequestToJSON( movePlaylistItemRequest: MovePlaylistItemRequest, ): string { @@ -355,16 +197,6 @@ export function movePlaylistItemRequestToJSON( ); } -export function movePlaylistItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlaylistItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlaylistItemRequest' from JSON`, - ); -} - /** @internal */ export const MovePlaylistItemResponse$inboundSchema: z.ZodType< MovePlaylistItemResponse, @@ -385,59 +217,6 @@ export const MovePlaylistItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MovePlaylistItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const MovePlaylistItemResponse$outboundSchema: z.ZodType< - MovePlaylistItemResponse$Outbound, - z.ZodTypeDef, - MovePlaylistItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlaylistItemResponse$ { - /** @deprecated use `MovePlaylistItemResponse$inboundSchema` instead. */ - export const inboundSchema = MovePlaylistItemResponse$inboundSchema; - /** @deprecated use `MovePlaylistItemResponse$outboundSchema` instead. */ - export const outboundSchema = MovePlaylistItemResponse$outboundSchema; - /** @deprecated use `MovePlaylistItemResponse$Outbound` instead. */ - export type Outbound = MovePlaylistItemResponse$Outbound; -} - -export function movePlaylistItemResponseToJSON( - movePlaylistItemResponse: MovePlaylistItemResponse, -): string { - return JSON.stringify( - MovePlaylistItemResponse$outboundSchema.parse(movePlaylistItemResponse), - ); -} - export function movePlaylistItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/moveplayqueueitem.ts b/src/sdk/models/operations/moveplayqueueitem.ts index d17acb81..1fa072c4 100644 --- a/src/sdk/models/operations/moveplayqueueitem.ts +++ b/src/sdk/models/operations/moveplayqueueitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -136,151 +136,6 @@ export type MovePlayQueueItemResponse = { | undefined; }; -/** @internal */ -export const MovePlayQueueItemGlobals$inboundSchema: z.ZodType< - MovePlayQueueItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type MovePlayQueueItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const MovePlayQueueItemGlobals$outboundSchema: z.ZodType< - MovePlayQueueItemGlobals$Outbound, - z.ZodTypeDef, - MovePlayQueueItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlayQueueItemGlobals$ { - /** @deprecated use `MovePlayQueueItemGlobals$inboundSchema` instead. */ - export const inboundSchema = MovePlayQueueItemGlobals$inboundSchema; - /** @deprecated use `MovePlayQueueItemGlobals$outboundSchema` instead. */ - export const outboundSchema = MovePlayQueueItemGlobals$outboundSchema; - /** @deprecated use `MovePlayQueueItemGlobals$Outbound` instead. */ - export type Outbound = MovePlayQueueItemGlobals$Outbound; -} - -export function movePlayQueueItemGlobalsToJSON( - movePlayQueueItemGlobals: MovePlayQueueItemGlobals, -): string { - return JSON.stringify( - MovePlayQueueItemGlobals$outboundSchema.parse(movePlayQueueItemGlobals), - ); -} - -export function movePlayQueueItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlayQueueItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlayQueueItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const MovePlayQueueItemRequest$inboundSchema: z.ZodType< - MovePlayQueueItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), - playQueueItemId: z.number().int(), - after: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type MovePlayQueueItemRequest$Outbound = { accepts: string; @@ -334,19 +189,6 @@ export const MovePlayQueueItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlayQueueItemRequest$ { - /** @deprecated use `MovePlayQueueItemRequest$inboundSchema` instead. */ - export const inboundSchema = MovePlayQueueItemRequest$inboundSchema; - /** @deprecated use `MovePlayQueueItemRequest$outboundSchema` instead. */ - export const outboundSchema = MovePlayQueueItemRequest$outboundSchema; - /** @deprecated use `MovePlayQueueItemRequest$Outbound` instead. */ - export type Outbound = MovePlayQueueItemRequest$Outbound; -} - export function movePlayQueueItemRequestToJSON( movePlayQueueItemRequest: MovePlayQueueItemRequest, ): string { @@ -355,16 +197,6 @@ export function movePlayQueueItemRequestToJSON( ); } -export function movePlayQueueItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MovePlayQueueItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MovePlayQueueItemRequest' from JSON`, - ); -} - /** @internal */ export const MovePlayQueueItemResponse$inboundSchema: z.ZodType< MovePlayQueueItemResponse, @@ -385,59 +217,6 @@ export const MovePlayQueueItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MovePlayQueueItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const MovePlayQueueItemResponse$outboundSchema: z.ZodType< - MovePlayQueueItemResponse$Outbound, - z.ZodTypeDef, - MovePlayQueueItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MovePlayQueueItemResponse$ { - /** @deprecated use `MovePlayQueueItemResponse$inboundSchema` instead. */ - export const inboundSchema = MovePlayQueueItemResponse$inboundSchema; - /** @deprecated use `MovePlayQueueItemResponse$outboundSchema` instead. */ - export const outboundSchema = MovePlayQueueItemResponse$outboundSchema; - /** @deprecated use `MovePlayQueueItemResponse$Outbound` instead. */ - export type Outbound = MovePlayQueueItemResponse$Outbound; -} - -export function movePlayQueueItemResponseToJSON( - movePlayQueueItemResponse: MovePlayQueueItemResponse, -): string { - return JSON.stringify( - MovePlayQueueItemResponse$outboundSchema.parse(movePlayQueueItemResponse), - ); -} - export function movePlayQueueItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/optimizedatabase.ts b/src/sdk/models/operations/optimizedatabase.ts index 2024647d..70c93bc8 100644 --- a/src/sdk/models/operations/optimizedatabase.ts +++ b/src/sdk/models/operations/optimizedatabase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type OptimizeDatabaseResponse = { rawResponse: Response; }; -/** @internal */ -export const OptimizeDatabaseGlobals$inboundSchema: z.ZodType< - OptimizeDatabaseGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type OptimizeDatabaseGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const OptimizeDatabaseGlobals$outboundSchema: z.ZodType< - OptimizeDatabaseGlobals$Outbound, - z.ZodTypeDef, - OptimizeDatabaseGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OptimizeDatabaseGlobals$ { - /** @deprecated use `OptimizeDatabaseGlobals$inboundSchema` instead. */ - export const inboundSchema = OptimizeDatabaseGlobals$inboundSchema; - /** @deprecated use `OptimizeDatabaseGlobals$outboundSchema` instead. */ - export const outboundSchema = OptimizeDatabaseGlobals$outboundSchema; - /** @deprecated use `OptimizeDatabaseGlobals$Outbound` instead. */ - export type Outbound = OptimizeDatabaseGlobals$Outbound; -} - -export function optimizeDatabaseGlobalsToJSON( - optimizeDatabaseGlobals: OptimizeDatabaseGlobals, -): string { - return JSON.stringify( - OptimizeDatabaseGlobals$outboundSchema.parse(optimizeDatabaseGlobals), - ); -} - -export function optimizeDatabaseGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OptimizeDatabaseGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OptimizeDatabaseGlobals' from JSON`, - ); -} - -/** @internal */ -export const OptimizeDatabaseRequest$inboundSchema: z.ZodType< - OptimizeDatabaseRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - async: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type OptimizeDatabaseRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const OptimizeDatabaseRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OptimizeDatabaseRequest$ { - /** @deprecated use `OptimizeDatabaseRequest$inboundSchema` instead. */ - export const inboundSchema = OptimizeDatabaseRequest$inboundSchema; - /** @deprecated use `OptimizeDatabaseRequest$outboundSchema` instead. */ - export const outboundSchema = OptimizeDatabaseRequest$outboundSchema; - /** @deprecated use `OptimizeDatabaseRequest$Outbound` instead. */ - export type Outbound = OptimizeDatabaseRequest$Outbound; -} - export function optimizeDatabaseRequestToJSON( optimizeDatabaseRequest: OptimizeDatabaseRequest, ): string { @@ -335,16 +179,6 @@ export function optimizeDatabaseRequestToJSON( ); } -export function optimizeDatabaseRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OptimizeDatabaseRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OptimizeDatabaseRequest' from JSON`, - ); -} - /** @internal */ export const OptimizeDatabaseResponse$inboundSchema: z.ZodType< OptimizeDatabaseResponse, @@ -362,53 +196,6 @@ export const OptimizeDatabaseResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OptimizeDatabaseResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const OptimizeDatabaseResponse$outboundSchema: z.ZodType< - OptimizeDatabaseResponse$Outbound, - z.ZodTypeDef, - OptimizeDatabaseResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OptimizeDatabaseResponse$ { - /** @deprecated use `OptimizeDatabaseResponse$inboundSchema` instead. */ - export const inboundSchema = OptimizeDatabaseResponse$inboundSchema; - /** @deprecated use `OptimizeDatabaseResponse$outboundSchema` instead. */ - export const outboundSchema = OptimizeDatabaseResponse$outboundSchema; - /** @deprecated use `OptimizeDatabaseResponse$Outbound` instead. */ - export type Outbound = OptimizeDatabaseResponse$Outbound; -} - -export function optimizeDatabaseResponseToJSON( - optimizeDatabaseResponse: OptimizeDatabaseResponse, -): string { - return JSON.stringify( - OptimizeDatabaseResponse$outboundSchema.parse(optimizeDatabaseResponse), - ); -} - export function optimizeDatabaseResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/processsubscriptions.ts b/src/sdk/models/operations/processsubscriptions.ts index d4a475fa..5970310b 100644 --- a/src/sdk/models/operations/processsubscriptions.ts +++ b/src/sdk/models/operations/processsubscriptions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,7 @@ export const ProcessSubscriptionsResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -43,58 +43,6 @@ export const ProcessSubscriptionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ProcessSubscriptionsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ProcessSubscriptionsResponse$outboundSchema: z.ZodType< - ProcessSubscriptionsResponse$Outbound, - z.ZodTypeDef, - ProcessSubscriptionsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProcessSubscriptionsResponse$ { - /** @deprecated use `ProcessSubscriptionsResponse$inboundSchema` instead. */ - export const inboundSchema = ProcessSubscriptionsResponse$inboundSchema; - /** @deprecated use `ProcessSubscriptionsResponse$outboundSchema` instead. */ - export const outboundSchema = ProcessSubscriptionsResponse$outboundSchema; - /** @deprecated use `ProcessSubscriptionsResponse$Outbound` instead. */ - export type Outbound = ProcessSubscriptionsResponse$Outbound; -} - -export function processSubscriptionsResponseToJSON( - processSubscriptionsResponse: ProcessSubscriptionsResponse, -): string { - return JSON.stringify( - ProcessSubscriptionsResponse$outboundSchema.parse( - processSubscriptionsResponse, - ), - ); -} - export function processSubscriptionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/refreshitemsmetadata.ts b/src/sdk/models/operations/refreshitemsmetadata.ts index e696a357..20210a48 100644 --- a/src/sdk/models/operations/refreshitemsmetadata.ts +++ b/src/sdk/models/operations/refreshitemsmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -121,153 +121,6 @@ export type RefreshItemsMetadataResponse = { rawResponse: Response; }; -/** @internal */ -export const RefreshItemsMetadataGlobals$inboundSchema: z.ZodType< - RefreshItemsMetadataGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RefreshItemsMetadataGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RefreshItemsMetadataGlobals$outboundSchema: z.ZodType< - RefreshItemsMetadataGlobals$Outbound, - z.ZodTypeDef, - RefreshItemsMetadataGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshItemsMetadataGlobals$ { - /** @deprecated use `RefreshItemsMetadataGlobals$inboundSchema` instead. */ - export const inboundSchema = RefreshItemsMetadataGlobals$inboundSchema; - /** @deprecated use `RefreshItemsMetadataGlobals$outboundSchema` instead. */ - export const outboundSchema = RefreshItemsMetadataGlobals$outboundSchema; - /** @deprecated use `RefreshItemsMetadataGlobals$Outbound` instead. */ - export type Outbound = RefreshItemsMetadataGlobals$Outbound; -} - -export function refreshItemsMetadataGlobalsToJSON( - refreshItemsMetadataGlobals: RefreshItemsMetadataGlobals, -): string { - return JSON.stringify( - RefreshItemsMetadataGlobals$outboundSchema.parse( - refreshItemsMetadataGlobals, - ), - ); -} - -export function refreshItemsMetadataGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshItemsMetadataGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshItemsMetadataGlobals' from JSON`, - ); -} - -/** @internal */ -export const RefreshItemsMetadataRequest$inboundSchema: z.ZodType< - RefreshItemsMetadataRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - agent: z.string().optional(), - markUpdated: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RefreshItemsMetadataRequest$Outbound = { accepts: string; @@ -321,19 +174,6 @@ export const RefreshItemsMetadataRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshItemsMetadataRequest$ { - /** @deprecated use `RefreshItemsMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = RefreshItemsMetadataRequest$inboundSchema; - /** @deprecated use `RefreshItemsMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = RefreshItemsMetadataRequest$outboundSchema; - /** @deprecated use `RefreshItemsMetadataRequest$Outbound` instead. */ - export type Outbound = RefreshItemsMetadataRequest$Outbound; -} - export function refreshItemsMetadataRequestToJSON( refreshItemsMetadataRequest: RefreshItemsMetadataRequest, ): string { @@ -344,16 +184,6 @@ export function refreshItemsMetadataRequestToJSON( ); } -export function refreshItemsMetadataRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshItemsMetadataRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshItemsMetadataRequest' from JSON`, - ); -} - /** @internal */ export const RefreshItemsMetadataResponse$inboundSchema: z.ZodType< RefreshItemsMetadataResponse, @@ -371,55 +201,6 @@ export const RefreshItemsMetadataResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RefreshItemsMetadataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RefreshItemsMetadataResponse$outboundSchema: z.ZodType< - RefreshItemsMetadataResponse$Outbound, - z.ZodTypeDef, - RefreshItemsMetadataResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshItemsMetadataResponse$ { - /** @deprecated use `RefreshItemsMetadataResponse$inboundSchema` instead. */ - export const inboundSchema = RefreshItemsMetadataResponse$inboundSchema; - /** @deprecated use `RefreshItemsMetadataResponse$outboundSchema` instead. */ - export const outboundSchema = RefreshItemsMetadataResponse$outboundSchema; - /** @deprecated use `RefreshItemsMetadataResponse$Outbound` instead. */ - export type Outbound = RefreshItemsMetadataResponse$Outbound; -} - -export function refreshItemsMetadataResponseToJSON( - refreshItemsMetadataResponse: RefreshItemsMetadataResponse, -): string { - return JSON.stringify( - RefreshItemsMetadataResponse$outboundSchema.parse( - refreshItemsMetadataResponse, - ), - ); -} - export function refreshItemsMetadataResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/refreshplaylist.ts b/src/sdk/models/operations/refreshplaylist.ts index 7ce59d93..9b5139e7 100644 --- a/src/sdk/models/operations/refreshplaylist.ts +++ b/src/sdk/models/operations/refreshplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -144,170 +144,9 @@ export type RefreshPlaylistResponse = { }; /** @internal */ -export const RefreshPlaylistGlobals$inboundSchema: z.ZodType< - RefreshPlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RefreshPlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RefreshPlaylistGlobals$outboundSchema: z.ZodType< - RefreshPlaylistGlobals$Outbound, - z.ZodTypeDef, - RefreshPlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshPlaylistGlobals$ { - /** @deprecated use `RefreshPlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = RefreshPlaylistGlobals$inboundSchema; - /** @deprecated use `RefreshPlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = RefreshPlaylistGlobals$outboundSchema; - /** @deprecated use `RefreshPlaylistGlobals$Outbound` instead. */ - export type Outbound = RefreshPlaylistGlobals$Outbound; -} - -export function refreshPlaylistGlobalsToJSON( - refreshPlaylistGlobals: RefreshPlaylistGlobals, -): string { - return JSON.stringify( - RefreshPlaylistGlobals$outboundSchema.parse(refreshPlaylistGlobals), - ); -} - -export function refreshPlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshPlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshPlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const Action$inboundSchema: z.ZodNativeEnum = z +export const Action$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Action); -/** @internal */ -export const Action$outboundSchema: z.ZodNativeEnum = - Action$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Action$ { - /** @deprecated use `Action$inboundSchema` instead. */ - export const inboundSchema = Action$inboundSchema; - /** @deprecated use `Action$outboundSchema` instead. */ - export const outboundSchema = Action$outboundSchema; -} - -/** @internal */ -export const RefreshPlaylistRequest$inboundSchema: z.ZodType< - RefreshPlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), - generatorId: z.number().int(), - metadataId: z.number().int(), - action: Action$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RefreshPlaylistRequest$Outbound = { accepts: string; @@ -363,19 +202,6 @@ export const RefreshPlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshPlaylistRequest$ { - /** @deprecated use `RefreshPlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = RefreshPlaylistRequest$inboundSchema; - /** @deprecated use `RefreshPlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = RefreshPlaylistRequest$outboundSchema; - /** @deprecated use `RefreshPlaylistRequest$Outbound` instead. */ - export type Outbound = RefreshPlaylistRequest$Outbound; -} - export function refreshPlaylistRequestToJSON( refreshPlaylistRequest: RefreshPlaylistRequest, ): string { @@ -384,16 +210,6 @@ export function refreshPlaylistRequestToJSON( ); } -export function refreshPlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshPlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshPlaylistRequest' from JSON`, - ); -} - /** @internal */ export const RefreshPlaylistResponse$inboundSchema: z.ZodType< RefreshPlaylistResponse, @@ -411,53 +227,6 @@ export const RefreshPlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RefreshPlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RefreshPlaylistResponse$outboundSchema: z.ZodType< - RefreshPlaylistResponse$Outbound, - z.ZodTypeDef, - RefreshPlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshPlaylistResponse$ { - /** @deprecated use `RefreshPlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = RefreshPlaylistResponse$inboundSchema; - /** @deprecated use `RefreshPlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = RefreshPlaylistResponse$outboundSchema; - /** @deprecated use `RefreshPlaylistResponse$Outbound` instead. */ - export type Outbound = RefreshPlaylistResponse$Outbound; -} - -export function refreshPlaylistResponseToJSON( - refreshPlaylistResponse: RefreshPlaylistResponse, -): string { - return JSON.stringify( - RefreshPlaylistResponse$outboundSchema.parse(refreshPlaylistResponse), - ); -} - export function refreshPlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/refreshproviders.ts b/src/sdk/models/operations/refreshproviders.ts index 72fee9f0..5e89f041 100644 --- a/src/sdk/models/operations/refreshproviders.ts +++ b/src/sdk/models/operations/refreshproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const RefreshProvidersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RefreshProvidersResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RefreshProvidersResponse$outboundSchema: z.ZodType< - RefreshProvidersResponse$Outbound, - z.ZodTypeDef, - RefreshProvidersResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshProvidersResponse$ { - /** @deprecated use `RefreshProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = RefreshProvidersResponse$inboundSchema; - /** @deprecated use `RefreshProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = RefreshProvidersResponse$outboundSchema; - /** @deprecated use `RefreshProvidersResponse$Outbound` instead. */ - export type Outbound = RefreshProvidersResponse$Outbound; -} - -export function refreshProvidersResponseToJSON( - refreshProvidersResponse: RefreshProvidersResponse, -): string { - return JSON.stringify( - RefreshProvidersResponse$outboundSchema.parse(refreshProvidersResponse), - ); -} - export function refreshProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/refreshsection.ts b/src/sdk/models/operations/refreshsection.ts index 467ab298..59ed2783 100644 --- a/src/sdk/models/operations/refreshsection.ts +++ b/src/sdk/models/operations/refreshsection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,151 +130,6 @@ export type RefreshSectionResponse = { rawResponse: Response; }; -/** @internal */ -export const RefreshSectionGlobals$inboundSchema: z.ZodType< - RefreshSectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RefreshSectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RefreshSectionGlobals$outboundSchema: z.ZodType< - RefreshSectionGlobals$Outbound, - z.ZodTypeDef, - RefreshSectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionGlobals$ { - /** @deprecated use `RefreshSectionGlobals$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionGlobals$inboundSchema; - /** @deprecated use `RefreshSectionGlobals$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionGlobals$outboundSchema; - /** @deprecated use `RefreshSectionGlobals$Outbound` instead. */ - export type Outbound = RefreshSectionGlobals$Outbound; -} - -export function refreshSectionGlobalsToJSON( - refreshSectionGlobals: RefreshSectionGlobals, -): string { - return JSON.stringify( - RefreshSectionGlobals$outboundSchema.parse(refreshSectionGlobals), - ); -} - -export function refreshSectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const RefreshSectionRequest$inboundSchema: z.ZodType< - RefreshSectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - force: shared.BoolInt$inboundSchema.optional(), - path: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RefreshSectionRequest$Outbound = { accepts: string; @@ -328,19 +183,6 @@ export const RefreshSectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionRequest$ { - /** @deprecated use `RefreshSectionRequest$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionRequest$inboundSchema; - /** @deprecated use `RefreshSectionRequest$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionRequest$outboundSchema; - /** @deprecated use `RefreshSectionRequest$Outbound` instead. */ - export type Outbound = RefreshSectionRequest$Outbound; -} - export function refreshSectionRequestToJSON( refreshSectionRequest: RefreshSectionRequest, ): string { @@ -349,16 +191,6 @@ export function refreshSectionRequestToJSON( ); } -export function refreshSectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionRequest' from JSON`, - ); -} - /** @internal */ export const RefreshSectionResponse$inboundSchema: z.ZodType< RefreshSectionResponse, @@ -376,53 +208,6 @@ export const RefreshSectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RefreshSectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RefreshSectionResponse$outboundSchema: z.ZodType< - RefreshSectionResponse$Outbound, - z.ZodTypeDef, - RefreshSectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionResponse$ { - /** @deprecated use `RefreshSectionResponse$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionResponse$inboundSchema; - /** @deprecated use `RefreshSectionResponse$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionResponse$outboundSchema; - /** @deprecated use `RefreshSectionResponse$Outbound` instead. */ - export type Outbound = RefreshSectionResponse$Outbound; -} - -export function refreshSectionResponseToJSON( - refreshSectionResponse: RefreshSectionResponse, -): string { - return JSON.stringify( - RefreshSectionResponse$outboundSchema.parse(refreshSectionResponse), - ); -} - export function refreshSectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/refreshsectionsmetadata.ts b/src/sdk/models/operations/refreshsectionsmetadata.ts index f475c16b..b8fa673e 100644 --- a/src/sdk/models/operations/refreshsectionsmetadata.ts +++ b/src/sdk/models/operations/refreshsectionsmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,151 +122,6 @@ export type RefreshSectionsMetadataResponse = { rawResponse: Response; }; -/** @internal */ -export const RefreshSectionsMetadataGlobals$inboundSchema: z.ZodType< - RefreshSectionsMetadataGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RefreshSectionsMetadataGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RefreshSectionsMetadataGlobals$outboundSchema: z.ZodType< - RefreshSectionsMetadataGlobals$Outbound, - z.ZodTypeDef, - RefreshSectionsMetadataGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionsMetadataGlobals$ { - /** @deprecated use `RefreshSectionsMetadataGlobals$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionsMetadataGlobals$inboundSchema; - /** @deprecated use `RefreshSectionsMetadataGlobals$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionsMetadataGlobals$outboundSchema; - /** @deprecated use `RefreshSectionsMetadataGlobals$Outbound` instead. */ - export type Outbound = RefreshSectionsMetadataGlobals$Outbound; -} - -export function refreshSectionsMetadataGlobalsToJSON( - refreshSectionsMetadataGlobals: RefreshSectionsMetadataGlobals, -): string { - return JSON.stringify( - RefreshSectionsMetadataGlobals$outboundSchema.parse( - refreshSectionsMetadataGlobals, - ), - ); -} - -export function refreshSectionsMetadataGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionsMetadataGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionsMetadataGlobals' from JSON`, - ); -} - -/** @internal */ -export const RefreshSectionsMetadataRequest$inboundSchema: z.ZodType< - RefreshSectionsMetadataRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - force: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RefreshSectionsMetadataRequest$Outbound = { accepts: string; @@ -316,19 +171,6 @@ export const RefreshSectionsMetadataRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionsMetadataRequest$ { - /** @deprecated use `RefreshSectionsMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionsMetadataRequest$inboundSchema; - /** @deprecated use `RefreshSectionsMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionsMetadataRequest$outboundSchema; - /** @deprecated use `RefreshSectionsMetadataRequest$Outbound` instead. */ - export type Outbound = RefreshSectionsMetadataRequest$Outbound; -} - export function refreshSectionsMetadataRequestToJSON( refreshSectionsMetadataRequest: RefreshSectionsMetadataRequest, ): string { @@ -339,16 +181,6 @@ export function refreshSectionsMetadataRequestToJSON( ); } -export function refreshSectionsMetadataRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RefreshSectionsMetadataRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RefreshSectionsMetadataRequest' from JSON`, - ); -} - /** @internal */ export const RefreshSectionsMetadataResponse$inboundSchema: z.ZodType< RefreshSectionsMetadataResponse, @@ -366,55 +198,6 @@ export const RefreshSectionsMetadataResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RefreshSectionsMetadataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RefreshSectionsMetadataResponse$outboundSchema: z.ZodType< - RefreshSectionsMetadataResponse$Outbound, - z.ZodTypeDef, - RefreshSectionsMetadataResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshSectionsMetadataResponse$ { - /** @deprecated use `RefreshSectionsMetadataResponse$inboundSchema` instead. */ - export const inboundSchema = RefreshSectionsMetadataResponse$inboundSchema; - /** @deprecated use `RefreshSectionsMetadataResponse$outboundSchema` instead. */ - export const outboundSchema = RefreshSectionsMetadataResponse$outboundSchema; - /** @deprecated use `RefreshSectionsMetadataResponse$Outbound` instead. */ - export type Outbound = RefreshSectionsMetadataResponse$Outbound; -} - -export function refreshSectionsMetadataResponseToJSON( - refreshSectionsMetadataResponse: RefreshSectionsMetadataResponse, -): string { - return JSON.stringify( - RefreshSectionsMetadataResponse$outboundSchema.parse( - refreshSectionsMetadataResponse, - ), - ); -} - export function refreshSectionsMetadataResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/reloadguide.ts b/src/sdk/models/operations/reloadguide.ts index f4ed80b0..24d37150 100644 --- a/src/sdk/models/operations/reloadguide.ts +++ b/src/sdk/models/operations/reloadguide.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -123,149 +123,6 @@ export type ReloadGuideResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ReloadGuideGlobals$inboundSchema: z.ZodType< - ReloadGuideGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ReloadGuideGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ReloadGuideGlobals$outboundSchema: z.ZodType< - ReloadGuideGlobals$Outbound, - z.ZodTypeDef, - ReloadGuideGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReloadGuideGlobals$ { - /** @deprecated use `ReloadGuideGlobals$inboundSchema` instead. */ - export const inboundSchema = ReloadGuideGlobals$inboundSchema; - /** @deprecated use `ReloadGuideGlobals$outboundSchema` instead. */ - export const outboundSchema = ReloadGuideGlobals$outboundSchema; - /** @deprecated use `ReloadGuideGlobals$Outbound` instead. */ - export type Outbound = ReloadGuideGlobals$Outbound; -} - -export function reloadGuideGlobalsToJSON( - reloadGuideGlobals: ReloadGuideGlobals, -): string { - return JSON.stringify( - ReloadGuideGlobals$outboundSchema.parse(reloadGuideGlobals), - ); -} - -export function reloadGuideGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReloadGuideGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReloadGuideGlobals' from JSON`, - ); -} - -/** @internal */ -export const ReloadGuideRequest$inboundSchema: z.ZodType< - ReloadGuideRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ReloadGuideRequest$Outbound = { accepts: string; @@ -315,19 +172,6 @@ export const ReloadGuideRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReloadGuideRequest$ { - /** @deprecated use `ReloadGuideRequest$inboundSchema` instead. */ - export const inboundSchema = ReloadGuideRequest$inboundSchema; - /** @deprecated use `ReloadGuideRequest$outboundSchema` instead. */ - export const outboundSchema = ReloadGuideRequest$outboundSchema; - /** @deprecated use `ReloadGuideRequest$Outbound` instead. */ - export type Outbound = ReloadGuideRequest$Outbound; -} - export function reloadGuideRequestToJSON( reloadGuideRequest: ReloadGuideRequest, ): string { @@ -336,16 +180,6 @@ export function reloadGuideRequestToJSON( ); } -export function reloadGuideRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReloadGuideRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReloadGuideRequest' from JSON`, - ); -} - /** @internal */ export const ReloadGuideResponse$inboundSchema: z.ZodType< ReloadGuideResponse, @@ -355,7 +189,7 @@ export const ReloadGuideResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -365,56 +199,6 @@ export const ReloadGuideResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ReloadGuideResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ReloadGuideResponse$outboundSchema: z.ZodType< - ReloadGuideResponse$Outbound, - z.ZodTypeDef, - ReloadGuideResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReloadGuideResponse$ { - /** @deprecated use `ReloadGuideResponse$inboundSchema` instead. */ - export const inboundSchema = ReloadGuideResponse$inboundSchema; - /** @deprecated use `ReloadGuideResponse$outboundSchema` instead. */ - export const outboundSchema = ReloadGuideResponse$outboundSchema; - /** @deprecated use `ReloadGuideResponse$Outbound` instead. */ - export type Outbound = ReloadGuideResponse$Outbound; -} - -export function reloadGuideResponseToJSON( - reloadGuideResponse: ReloadGuideResponse, -): string { - return JSON.stringify( - ReloadGuideResponse$outboundSchema.parse(reloadGuideResponse), - ); -} - export function reloadGuideResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/removedevice.ts b/src/sdk/models/operations/removedevice.ts index f669e1f6..841d81af 100644 --- a/src/sdk/models/operations/removedevice.ts +++ b/src/sdk/models/operations/removedevice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -160,149 +160,6 @@ export type RemoveDeviceResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const RemoveDeviceGlobals$inboundSchema: z.ZodType< - RemoveDeviceGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RemoveDeviceGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RemoveDeviceGlobals$outboundSchema: z.ZodType< - RemoveDeviceGlobals$Outbound, - z.ZodTypeDef, - RemoveDeviceGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceGlobals$ { - /** @deprecated use `RemoveDeviceGlobals$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceGlobals$inboundSchema; - /** @deprecated use `RemoveDeviceGlobals$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceGlobals$outboundSchema; - /** @deprecated use `RemoveDeviceGlobals$Outbound` instead. */ - export type Outbound = RemoveDeviceGlobals$Outbound; -} - -export function removeDeviceGlobalsToJSON( - removeDeviceGlobals: RemoveDeviceGlobals, -): string { - return JSON.stringify( - RemoveDeviceGlobals$outboundSchema.parse(removeDeviceGlobals), - ); -} - -export function removeDeviceGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDeviceGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDeviceGlobals' from JSON`, - ); -} - -/** @internal */ -export const RemoveDeviceRequest$inboundSchema: z.ZodType< - RemoveDeviceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RemoveDeviceRequest$Outbound = { accepts: string; @@ -352,19 +209,6 @@ export const RemoveDeviceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceRequest$ { - /** @deprecated use `RemoveDeviceRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceRequest$inboundSchema; - /** @deprecated use `RemoveDeviceRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceRequest$outboundSchema; - /** @deprecated use `RemoveDeviceRequest$Outbound` instead. */ - export type Outbound = RemoveDeviceRequest$Outbound; -} - export function removeDeviceRequestToJSON( removeDeviceRequest: RemoveDeviceRequest, ): string { @@ -373,16 +217,6 @@ export function removeDeviceRequestToJSON( ); } -export function removeDeviceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDeviceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDeviceRequest' from JSON`, - ); -} - /** @internal */ export const RemoveDeviceMediaContainer$inboundSchema: z.ZodType< RemoveDeviceMediaContainer, @@ -397,51 +231,6 @@ export const RemoveDeviceMediaContainer$inboundSchema: z.ZodType< status: z.number().int().optional(), }); -/** @internal */ -export type RemoveDeviceMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const RemoveDeviceMediaContainer$outboundSchema: z.ZodType< - RemoveDeviceMediaContainer$Outbound, - z.ZodTypeDef, - RemoveDeviceMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceMediaContainer$ { - /** @deprecated use `RemoveDeviceMediaContainer$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceMediaContainer$inboundSchema; - /** @deprecated use `RemoveDeviceMediaContainer$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceMediaContainer$outboundSchema; - /** @deprecated use `RemoveDeviceMediaContainer$Outbound` instead. */ - export type Outbound = RemoveDeviceMediaContainer$Outbound; -} - -export function removeDeviceMediaContainerToJSON( - removeDeviceMediaContainer: RemoveDeviceMediaContainer, -): string { - return JSON.stringify( - RemoveDeviceMediaContainer$outboundSchema.parse(removeDeviceMediaContainer), - ); -} - export function removeDeviceMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -466,46 +255,6 @@ export const RemoveDeviceResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceResponseBody$Outbound = { - MediaContainer?: RemoveDeviceMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const RemoveDeviceResponseBody$outboundSchema: z.ZodType< - RemoveDeviceResponseBody$Outbound, - z.ZodTypeDef, - RemoveDeviceResponseBody -> = z.object({ - mediaContainer: z.lazy(() => RemoveDeviceMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceResponseBody$ { - /** @deprecated use `RemoveDeviceResponseBody$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceResponseBody$inboundSchema; - /** @deprecated use `RemoveDeviceResponseBody$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceResponseBody$outboundSchema; - /** @deprecated use `RemoveDeviceResponseBody$Outbound` instead. */ - export type Outbound = RemoveDeviceResponseBody$Outbound; -} - -export function removeDeviceResponseBodyToJSON( - removeDeviceResponseBody: RemoveDeviceResponseBody, -): string { - return JSON.stringify( - RemoveDeviceResponseBody$outboundSchema.parse(removeDeviceResponseBody), - ); -} - export function removeDeviceResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -526,7 +275,7 @@ export const RemoveDeviceResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => RemoveDeviceResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -536,58 +285,6 @@ export const RemoveDeviceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: RemoveDeviceResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const RemoveDeviceResponse$outboundSchema: z.ZodType< - RemoveDeviceResponse$Outbound, - z.ZodTypeDef, - RemoveDeviceResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => RemoveDeviceResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceResponse$ { - /** @deprecated use `RemoveDeviceResponse$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceResponse$inboundSchema; - /** @deprecated use `RemoveDeviceResponse$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceResponse$outboundSchema; - /** @deprecated use `RemoveDeviceResponse$Outbound` instead. */ - export type Outbound = RemoveDeviceResponse$Outbound; -} - -export function removeDeviceResponseToJSON( - removeDeviceResponse: RemoveDeviceResponse, -): string { - return JSON.stringify( - RemoveDeviceResponse$outboundSchema.parse(removeDeviceResponse), - ); -} - export function removeDeviceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/removedevicefromdvr.ts b/src/sdk/models/operations/removedevicefromdvr.ts index 31d18077..c783259e 100644 --- a/src/sdk/models/operations/removedevicefromdvr.ts +++ b/src/sdk/models/operations/removedevicefromdvr.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,150 +179,6 @@ export type RemoveDeviceFromDVRResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const RemoveDeviceFromDVRGlobals$inboundSchema: z.ZodType< - RemoveDeviceFromDVRGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RemoveDeviceFromDVRGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RemoveDeviceFromDVRGlobals$outboundSchema: z.ZodType< - RemoveDeviceFromDVRGlobals$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRGlobals$ { - /** @deprecated use `RemoveDeviceFromDVRGlobals$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRGlobals$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRGlobals$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceFromDVRGlobals$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRGlobals$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRGlobals$Outbound; -} - -export function removeDeviceFromDVRGlobalsToJSON( - removeDeviceFromDVRGlobals: RemoveDeviceFromDVRGlobals, -): string { - return JSON.stringify( - RemoveDeviceFromDVRGlobals$outboundSchema.parse(removeDeviceFromDVRGlobals), - ); -} - -export function removeDeviceFromDVRGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDeviceFromDVRGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDeviceFromDVRGlobals' from JSON`, - ); -} - -/** @internal */ -export const RemoveDeviceFromDVRRequest$inboundSchema: z.ZodType< - RemoveDeviceFromDVRRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RemoveDeviceFromDVRRequest$Outbound = { accepts: string; @@ -374,19 +230,6 @@ export const RemoveDeviceFromDVRRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRRequest$ { - /** @deprecated use `RemoveDeviceFromDVRRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRRequest$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceFromDVRRequest$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRRequest$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRRequest$Outbound; -} - export function removeDeviceFromDVRRequestToJSON( removeDeviceFromDVRRequest: RemoveDeviceFromDVRRequest, ): string { @@ -395,16 +238,6 @@ export function removeDeviceFromDVRRequestToJSON( ); } -export function removeDeviceFromDVRRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDeviceFromDVRRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDeviceFromDVRRequest' from JSON`, - ); -} - /** @internal */ export const RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema: z.ZodType< @@ -419,56 +252,6 @@ export const RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema: status: z.number().int().optional(), }); -/** @internal */ -export type RemoveDeviceFromDVRMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const RemoveDeviceFromDVRMediaContainerMediaContainer$outboundSchema: - z.ZodType< - RemoveDeviceFromDVRMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRMediaContainerMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRMediaContainerMediaContainer$ { - /** @deprecated use `RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - RemoveDeviceFromDVRMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - RemoveDeviceFromDVRMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = - RemoveDeviceFromDVRMediaContainerMediaContainer$Outbound; -} - -export function removeDeviceFromDVRMediaContainerMediaContainerToJSON( - removeDeviceFromDVRMediaContainerMediaContainer: - RemoveDeviceFromDVRMediaContainerMediaContainer, -): string { - return JSON.stringify( - RemoveDeviceFromDVRMediaContainerMediaContainer$outboundSchema.parse( - removeDeviceFromDVRMediaContainerMediaContainer, - ), - ); -} - export function removeDeviceFromDVRMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -502,53 +285,6 @@ export const RemoveDeviceFromDVRDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceFromDVRDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const RemoveDeviceFromDVRDVR$outboundSchema: z.ZodType< - RemoveDeviceFromDVRDVR$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRDVR$ { - /** @deprecated use `RemoveDeviceFromDVRDVR$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRDVR$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRDVR$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceFromDVRDVR$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRDVR$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRDVR$Outbound; -} - -export function removeDeviceFromDVRDVRToJSON( - removeDeviceFromDVRDVR: RemoveDeviceFromDVRDVR, -): string { - return JSON.stringify( - RemoveDeviceFromDVRDVR$outboundSchema.parse(removeDeviceFromDVRDVR), - ); -} - export function removeDeviceFromDVRDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -576,55 +312,6 @@ export const RemoveDeviceFromDVRMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceFromDVRMediaContainer$Outbound = { - MediaContainer?: - | RemoveDeviceFromDVRMediaContainerMediaContainer$Outbound - | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const RemoveDeviceFromDVRMediaContainer$outboundSchema: z.ZodType< - RemoveDeviceFromDVRMediaContainer$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - RemoveDeviceFromDVRMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => RemoveDeviceFromDVRDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRMediaContainer$ { - /** @deprecated use `RemoveDeviceFromDVRMediaContainer$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRMediaContainer$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - RemoveDeviceFromDVRMediaContainer$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRMediaContainer$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRMediaContainer$Outbound; -} - -export function removeDeviceFromDVRMediaContainerToJSON( - removeDeviceFromDVRMediaContainer: RemoveDeviceFromDVRMediaContainer, -): string { - return JSON.stringify( - RemoveDeviceFromDVRMediaContainer$outboundSchema.parse( - removeDeviceFromDVRMediaContainer, - ), - ); -} - export function removeDeviceFromDVRMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -649,48 +336,6 @@ export const RemoveDeviceFromDVRResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceFromDVRResponseBody$Outbound = { - MediaContainer?: RemoveDeviceFromDVRMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const RemoveDeviceFromDVRResponseBody$outboundSchema: z.ZodType< - RemoveDeviceFromDVRResponseBody$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRResponseBody -> = z.object({ - mediaContainer: z.lazy(() => RemoveDeviceFromDVRMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRResponseBody$ { - /** @deprecated use `RemoveDeviceFromDVRResponseBody$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRResponseBody$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRResponseBody$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceFromDVRResponseBody$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRResponseBody$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRResponseBody$Outbound; -} - -export function removeDeviceFromDVRResponseBodyToJSON( - removeDeviceFromDVRResponseBody: RemoveDeviceFromDVRResponseBody, -): string { - return JSON.stringify( - RemoveDeviceFromDVRResponseBody$outboundSchema.parse( - removeDeviceFromDVRResponseBody, - ), - ); -} - export function removeDeviceFromDVRResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -712,7 +357,7 @@ export const RemoveDeviceFromDVRResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), object: z.lazy(() => RemoveDeviceFromDVRResponseBody$inboundSchema) .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -722,61 +367,6 @@ export const RemoveDeviceFromDVRResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDeviceFromDVRResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: RemoveDeviceFromDVRResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const RemoveDeviceFromDVRResponse$outboundSchema: z.ZodType< - RemoveDeviceFromDVRResponse$Outbound, - z.ZodTypeDef, - RemoveDeviceFromDVRResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => RemoveDeviceFromDVRResponseBody$outboundSchema) - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDeviceFromDVRResponse$ { - /** @deprecated use `RemoveDeviceFromDVRResponse$inboundSchema` instead. */ - export const inboundSchema = RemoveDeviceFromDVRResponse$inboundSchema; - /** @deprecated use `RemoveDeviceFromDVRResponse$outboundSchema` instead. */ - export const outboundSchema = RemoveDeviceFromDVRResponse$outboundSchema; - /** @deprecated use `RemoveDeviceFromDVRResponse$Outbound` instead. */ - export type Outbound = RemoveDeviceFromDVRResponse$Outbound; -} - -export function removeDeviceFromDVRResponseToJSON( - removeDeviceFromDVRResponse: RemoveDeviceFromDVRResponse, -): string { - return JSON.stringify( - RemoveDeviceFromDVRResponse$outboundSchema.parse( - removeDeviceFromDVRResponse, - ), - ); -} - export function removeDeviceFromDVRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/removedownloadqueueitems.ts b/src/sdk/models/operations/removedownloadqueueitems.ts index e5f5d4a1..24664572 100644 --- a/src/sdk/models/operations/removedownloadqueueitems.ts +++ b/src/sdk/models/operations/removedownloadqueueitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,152 +126,6 @@ export type RemoveDownloadQueueItemsResponse = { rawResponse: Response; }; -/** @internal */ -export const RemoveDownloadQueueItemsGlobals$inboundSchema: z.ZodType< - RemoveDownloadQueueItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type RemoveDownloadQueueItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RemoveDownloadQueueItemsGlobals$outboundSchema: z.ZodType< - RemoveDownloadQueueItemsGlobals$Outbound, - z.ZodTypeDef, - RemoveDownloadQueueItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDownloadQueueItemsGlobals$ { - /** @deprecated use `RemoveDownloadQueueItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = RemoveDownloadQueueItemsGlobals$inboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = RemoveDownloadQueueItemsGlobals$outboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsGlobals$Outbound` instead. */ - export type Outbound = RemoveDownloadQueueItemsGlobals$Outbound; -} - -export function removeDownloadQueueItemsGlobalsToJSON( - removeDownloadQueueItemsGlobals: RemoveDownloadQueueItemsGlobals, -): string { - return JSON.stringify( - RemoveDownloadQueueItemsGlobals$outboundSchema.parse( - removeDownloadQueueItemsGlobals, - ), - ); -} - -export function removeDownloadQueueItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDownloadQueueItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDownloadQueueItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const RemoveDownloadQueueItemsRequest$inboundSchema: z.ZodType< - RemoveDownloadQueueItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type RemoveDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const RemoveDownloadQueueItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDownloadQueueItemsRequest$ { - /** @deprecated use `RemoveDownloadQueueItemsRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveDownloadQueueItemsRequest$inboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveDownloadQueueItemsRequest$outboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsRequest$Outbound` instead. */ - export type Outbound = RemoveDownloadQueueItemsRequest$Outbound; -} - export function removeDownloadQueueItemsRequestToJSON( removeDownloadQueueItemsRequest: RemoveDownloadQueueItemsRequest, ): string { @@ -346,16 +187,6 @@ export function removeDownloadQueueItemsRequestToJSON( ); } -export function removeDownloadQueueItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveDownloadQueueItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveDownloadQueueItemsRequest' from JSON`, - ); -} - /** @internal */ export const RemoveDownloadQueueItemsResponse$inboundSchema: z.ZodType< RemoveDownloadQueueItemsResponse, @@ -373,55 +204,6 @@ export const RemoveDownloadQueueItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RemoveDownloadQueueItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RemoveDownloadQueueItemsResponse$outboundSchema: z.ZodType< - RemoveDownloadQueueItemsResponse$Outbound, - z.ZodTypeDef, - RemoveDownloadQueueItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveDownloadQueueItemsResponse$ { - /** @deprecated use `RemoveDownloadQueueItemsResponse$inboundSchema` instead. */ - export const inboundSchema = RemoveDownloadQueueItemsResponse$inboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsResponse$outboundSchema` instead. */ - export const outboundSchema = RemoveDownloadQueueItemsResponse$outboundSchema; - /** @deprecated use `RemoveDownloadQueueItemsResponse$Outbound` instead. */ - export type Outbound = RemoveDownloadQueueItemsResponse$Outbound; -} - -export function removeDownloadQueueItemsResponseToJSON( - removeDownloadQueueItemsResponse: RemoveDownloadQueueItemsResponse, -): string { - return JSON.stringify( - RemoveDownloadQueueItemsResponse$outboundSchema.parse( - removeDownloadQueueItemsResponse, - ), - ); -} - export function removeDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/reordersubscription.ts b/src/sdk/models/operations/reordersubscription.ts index 23eeee18..2711c2a1 100644 --- a/src/sdk/models/operations/reordersubscription.ts +++ b/src/sdk/models/operations/reordersubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -129,150 +129,6 @@ export type ReorderSubscriptionResponse = { | undefined; }; -/** @internal */ -export const ReorderSubscriptionGlobals$inboundSchema: z.ZodType< - ReorderSubscriptionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ReorderSubscriptionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ReorderSubscriptionGlobals$outboundSchema: z.ZodType< - ReorderSubscriptionGlobals$Outbound, - z.ZodTypeDef, - ReorderSubscriptionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReorderSubscriptionGlobals$ { - /** @deprecated use `ReorderSubscriptionGlobals$inboundSchema` instead. */ - export const inboundSchema = ReorderSubscriptionGlobals$inboundSchema; - /** @deprecated use `ReorderSubscriptionGlobals$outboundSchema` instead. */ - export const outboundSchema = ReorderSubscriptionGlobals$outboundSchema; - /** @deprecated use `ReorderSubscriptionGlobals$Outbound` instead. */ - export type Outbound = ReorderSubscriptionGlobals$Outbound; -} - -export function reorderSubscriptionGlobalsToJSON( - reorderSubscriptionGlobals: ReorderSubscriptionGlobals, -): string { - return JSON.stringify( - ReorderSubscriptionGlobals$outboundSchema.parse(reorderSubscriptionGlobals), - ); -} - -export function reorderSubscriptionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReorderSubscriptionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReorderSubscriptionGlobals' from JSON`, - ); -} - -/** @internal */ -export const ReorderSubscriptionRequest$inboundSchema: z.ZodType< - ReorderSubscriptionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - subscriptionId: z.number().int(), - after: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ReorderSubscriptionRequest$Outbound = { accepts: string; @@ -324,19 +180,6 @@ export const ReorderSubscriptionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReorderSubscriptionRequest$ { - /** @deprecated use `ReorderSubscriptionRequest$inboundSchema` instead. */ - export const inboundSchema = ReorderSubscriptionRequest$inboundSchema; - /** @deprecated use `ReorderSubscriptionRequest$outboundSchema` instead. */ - export const outboundSchema = ReorderSubscriptionRequest$outboundSchema; - /** @deprecated use `ReorderSubscriptionRequest$Outbound` instead. */ - export type Outbound = ReorderSubscriptionRequest$Outbound; -} - export function reorderSubscriptionRequestToJSON( reorderSubscriptionRequest: ReorderSubscriptionRequest, ): string { @@ -345,16 +188,6 @@ export function reorderSubscriptionRequestToJSON( ); } -export function reorderSubscriptionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReorderSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReorderSubscriptionRequest' from JSON`, - ); -} - /** @internal */ export const ReorderSubscriptionResponse$inboundSchema: z.ZodType< ReorderSubscriptionResponse, @@ -375,61 +208,6 @@ export const ReorderSubscriptionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ReorderSubscriptionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithSubscription?: - | shared.MediaContainerWithSubscription$Outbound - | undefined; -}; - -/** @internal */ -export const ReorderSubscriptionResponse$outboundSchema: z.ZodType< - ReorderSubscriptionResponse$Outbound, - z.ZodTypeDef, - ReorderSubscriptionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithSubscription: shared - .MediaContainerWithSubscription$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithSubscription: "MediaContainerWithSubscription", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReorderSubscriptionResponse$ { - /** @deprecated use `ReorderSubscriptionResponse$inboundSchema` instead. */ - export const inboundSchema = ReorderSubscriptionResponse$inboundSchema; - /** @deprecated use `ReorderSubscriptionResponse$outboundSchema` instead. */ - export const outboundSchema = ReorderSubscriptionResponse$outboundSchema; - /** @deprecated use `ReorderSubscriptionResponse$Outbound` instead. */ - export type Outbound = ReorderSubscriptionResponse$Outbound; -} - -export function reorderSubscriptionResponseToJSON( - reorderSubscriptionResponse: ReorderSubscriptionResponse, -): string { - return JSON.stringify( - ReorderSubscriptionResponse$outboundSchema.parse( - reorderSubscriptionResponse, - ), - ); -} - export function reorderSubscriptionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/report.ts b/src/sdk/models/operations/report.ts index 010e72b5..88eb4c79 100644 --- a/src/sdk/models/operations/report.ts +++ b/src/sdk/models/operations/report.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -315,178 +315,9 @@ export type ReportResponse = { }; /** @internal */ -export const ReportGlobals$inboundSchema: z.ZodType< - ReportGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ReportGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ReportGlobals$outboundSchema: z.ZodType< - ReportGlobals$Outbound, - z.ZodTypeDef, - ReportGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportGlobals$ { - /** @deprecated use `ReportGlobals$inboundSchema` instead. */ - export const inboundSchema = ReportGlobals$inboundSchema; - /** @deprecated use `ReportGlobals$outboundSchema` instead. */ - export const outboundSchema = ReportGlobals$outboundSchema; - /** @deprecated use `ReportGlobals$Outbound` instead. */ - export type Outbound = ReportGlobals$Outbound; -} - -export function reportGlobalsToJSON(reportGlobals: ReportGlobals): string { - return JSON.stringify(ReportGlobals$outboundSchema.parse(reportGlobals)); -} - -export function reportGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReportGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReportGlobals' from JSON`, - ); -} - -/** @internal */ -export const ReportState$inboundSchema: z.ZodNativeEnum = z +export const ReportState$outboundSchema: z.ZodNativeEnum = z .nativeEnum(ReportState); -/** @internal */ -export const ReportState$outboundSchema: z.ZodNativeEnum = - ReportState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportState$ { - /** @deprecated use `ReportState$inboundSchema` instead. */ - export const inboundSchema = ReportState$inboundSchema; - /** @deprecated use `ReportState$outboundSchema` instead. */ - export const outboundSchema = ReportState$outboundSchema; -} - -/** @internal */ -export const ReportRequest$inboundSchema: z.ZodType< - ReportRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - key: z.string().optional(), - ratingKey: z.string().optional(), - state: ReportState$inboundSchema.optional(), - playQueueItemID: z.string().optional(), - time: z.number().int().optional(), - duration: z.number().int().optional(), - continuing: shared.BoolInt$inboundSchema.optional(), - updated: z.number().int().optional(), - offline: shared.BoolInt$inboundSchema.optional(), - timeToFirstFrame: z.number().int().optional(), - timeStalled: z.number().int().optional(), - bandwidth: z.number().int().optional(), - bufferedTime: z.number().int().optional(), - bufferedSize: z.number().int().optional(), - "X-Plex-Session-Identifier": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "X-Plex-Session-Identifier": "xPlexSessionIdentifier", - }); -}); - /** @internal */ export type ReportRequest$Outbound = { accepts: string; @@ -565,33 +396,10 @@ export const ReportRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportRequest$ { - /** @deprecated use `ReportRequest$inboundSchema` instead. */ - export const inboundSchema = ReportRequest$inboundSchema; - /** @deprecated use `ReportRequest$outboundSchema` instead. */ - export const outboundSchema = ReportRequest$outboundSchema; - /** @deprecated use `ReportRequest$Outbound` instead. */ - export type Outbound = ReportRequest$Outbound; -} - export function reportRequestToJSON(reportRequest: ReportRequest): string { return JSON.stringify(ReportRequest$outboundSchema.parse(reportRequest)); } -export function reportRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReportRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReportRequest' from JSON`, - ); -} - /** @internal */ export const Bandwidth$inboundSchema: z.ZodType< Bandwidth, @@ -603,41 +411,6 @@ export const Bandwidth$inboundSchema: z.ZodType< time: z.number().int().optional(), }); -/** @internal */ -export type Bandwidth$Outbound = { - bandwidth?: number | undefined; - resolution?: string | undefined; - time?: number | undefined; -}; - -/** @internal */ -export const Bandwidth$outboundSchema: z.ZodType< - Bandwidth$Outbound, - z.ZodTypeDef, - Bandwidth -> = z.object({ - bandwidth: z.number().int().optional(), - resolution: z.string().optional(), - time: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Bandwidth$ { - /** @deprecated use `Bandwidth$inboundSchema` instead. */ - export const inboundSchema = Bandwidth$inboundSchema; - /** @deprecated use `Bandwidth$outboundSchema` instead. */ - export const outboundSchema = Bandwidth$outboundSchema; - /** @deprecated use `Bandwidth$Outbound` instead. */ - export type Outbound = Bandwidth$Outbound; -} - -export function bandwidthToJSON(bandwidth: Bandwidth): string { - return JSON.stringify(Bandwidth$outboundSchema.parse(bandwidth)); -} - export function bandwidthFromJSON( jsonString: string, ): SafeParseResult { @@ -661,41 +434,6 @@ export const Bandwidths$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Bandwidths$Outbound = { - Bandwidth?: Array | undefined; -}; - -/** @internal */ -export const Bandwidths$outboundSchema: z.ZodType< - Bandwidths$Outbound, - z.ZodTypeDef, - Bandwidths -> = z.object({ - bandwidth: z.array(z.lazy(() => Bandwidth$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - bandwidth: "Bandwidth", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Bandwidths$ { - /** @deprecated use `Bandwidths$inboundSchema` instead. */ - export const inboundSchema = Bandwidths$inboundSchema; - /** @deprecated use `Bandwidths$outboundSchema` instead. */ - export const outboundSchema = Bandwidths$outboundSchema; - /** @deprecated use `Bandwidths$Outbound` instead. */ - export type Outbound = Bandwidths$Outbound; -} - -export function bandwidthsToJSON(bandwidths: Bandwidths): string { - return JSON.stringify(Bandwidths$outboundSchema.parse(bandwidths)); -} - export function bandwidthsFromJSON( jsonString: string, ): SafeParseResult { @@ -773,153 +511,6 @@ export const ReportMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ReportMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - allowCameraUpload?: boolean | undefined; - allowChannelAccess?: boolean | undefined; - allowMediaDeletion?: boolean | undefined; - allowSharing?: boolean | undefined; - allowSync?: boolean | undefined; - allowTuners?: boolean | undefined; - backgroundProcessing?: boolean | undefined; - certificate?: boolean | undefined; - companionProxy?: boolean | undefined; - countryCode?: string | undefined; - diagnostics?: string | undefined; - eventStream?: boolean | undefined; - friendlyName?: string | undefined; - hubSearch?: boolean | undefined; - itemClusters?: boolean | undefined; - livetv?: number | undefined; - machineIdentifier?: any | undefined; - mediaProviders?: boolean | undefined; - multiuser?: boolean | undefined; - musicAnalysis?: number | undefined; - myPlex?: boolean | undefined; - myPlexMappingState?: any | undefined; - myPlexSigninState?: any | undefined; - myPlexSubscription?: boolean | undefined; - myPlexUsername?: string | undefined; - offlineTranscode?: any | undefined; - ownerFeatures?: string | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - pluginHost?: boolean | undefined; - pushNotifications?: boolean | undefined; - readOnlyLibraries?: boolean | undefined; - streamingBrainABRVersion?: number | undefined; - streamingBrainVersion?: number | undefined; - sync?: boolean | undefined; - transcoderActiveVideoSessions?: number | undefined; - transcoderAudio?: boolean | undefined; - transcoderLyrics?: boolean | undefined; - transcoderPhoto?: boolean | undefined; - transcoderSubtitles?: boolean | undefined; - transcoderVideo?: boolean | undefined; - transcoderVideoBitrates?: any | undefined; - transcoderVideoQualities?: string | undefined; - transcoderVideoResolutions?: any | undefined; - updatedAt?: number | undefined; - updater?: boolean | undefined; - version?: string | undefined; - voiceSearch?: boolean | undefined; - Bandwidths?: Bandwidths$Outbound | undefined; - terminationCode?: number | undefined; - terminationText?: string | undefined; -}; - -/** @internal */ -export const ReportMediaContainer$outboundSchema: z.ZodType< - ReportMediaContainer$Outbound, - z.ZodTypeDef, - ReportMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - bandwidths: z.lazy(() => Bandwidths$outboundSchema).optional(), - terminationCode: z.number().int().optional(), - terminationText: z.string().optional(), -}).transform((v) => { - return remap$(v, { - bandwidths: "Bandwidths", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportMediaContainer$ { - /** @deprecated use `ReportMediaContainer$inboundSchema` instead. */ - export const inboundSchema = ReportMediaContainer$inboundSchema; - /** @deprecated use `ReportMediaContainer$outboundSchema` instead. */ - export const outboundSchema = ReportMediaContainer$outboundSchema; - /** @deprecated use `ReportMediaContainer$Outbound` instead. */ - export type Outbound = ReportMediaContainer$Outbound; -} - -export function reportMediaContainerToJSON( - reportMediaContainer: ReportMediaContainer, -): string { - return JSON.stringify( - ReportMediaContainer$outboundSchema.parse(reportMediaContainer), - ); -} - export function reportMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -943,45 +534,6 @@ export const ReportResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ReportResponseBody$Outbound = { - MediaContainer?: ReportMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const ReportResponseBody$outboundSchema: z.ZodType< - ReportResponseBody$Outbound, - z.ZodTypeDef, - ReportResponseBody -> = z.object({ - mediaContainer: z.lazy(() => ReportMediaContainer$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportResponseBody$ { - /** @deprecated use `ReportResponseBody$inboundSchema` instead. */ - export const inboundSchema = ReportResponseBody$inboundSchema; - /** @deprecated use `ReportResponseBody$outboundSchema` instead. */ - export const outboundSchema = ReportResponseBody$outboundSchema; - /** @deprecated use `ReportResponseBody$Outbound` instead. */ - export type Outbound = ReportResponseBody$Outbound; -} - -export function reportResponseBodyToJSON( - reportResponseBody: ReportResponseBody, -): string { - return JSON.stringify( - ReportResponseBody$outboundSchema.parse(reportResponseBody), - ); -} - export function reportResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1010,51 +562,6 @@ export const ReportResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ReportResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: ReportResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const ReportResponse$outboundSchema: z.ZodType< - ReportResponse$Outbound, - z.ZodTypeDef, - ReportResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => ReportResponseBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReportResponse$ { - /** @deprecated use `ReportResponse$inboundSchema` instead. */ - export const inboundSchema = ReportResponse$inboundSchema; - /** @deprecated use `ReportResponse$outboundSchema` instead. */ - export const outboundSchema = ReportResponse$outboundSchema; - /** @deprecated use `ReportResponse$Outbound` instead. */ - export type Outbound = ReportResponse$Outbound; -} - -export function reportResponseToJSON(reportResponse: ReportResponse): string { - return JSON.stringify(ReportResponse$outboundSchema.parse(reportResponse)); -} - export function reportResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/resetplayqueue.ts b/src/sdk/models/operations/resetplayqueue.ts index 4b4cdcb6..467367e2 100644 --- a/src/sdk/models/operations/resetplayqueue.ts +++ b/src/sdk/models/operations/resetplayqueue.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,149 +128,6 @@ export type ResetPlayQueueResponse = { | undefined; }; -/** @internal */ -export const ResetPlayQueueGlobals$inboundSchema: z.ZodType< - ResetPlayQueueGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ResetPlayQueueGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ResetPlayQueueGlobals$outboundSchema: z.ZodType< - ResetPlayQueueGlobals$Outbound, - z.ZodTypeDef, - ResetPlayQueueGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetPlayQueueGlobals$ { - /** @deprecated use `ResetPlayQueueGlobals$inboundSchema` instead. */ - export const inboundSchema = ResetPlayQueueGlobals$inboundSchema; - /** @deprecated use `ResetPlayQueueGlobals$outboundSchema` instead. */ - export const outboundSchema = ResetPlayQueueGlobals$outboundSchema; - /** @deprecated use `ResetPlayQueueGlobals$Outbound` instead. */ - export type Outbound = ResetPlayQueueGlobals$Outbound; -} - -export function resetPlayQueueGlobalsToJSON( - resetPlayQueueGlobals: ResetPlayQueueGlobals, -): string { - return JSON.stringify( - ResetPlayQueueGlobals$outboundSchema.parse(resetPlayQueueGlobals), - ); -} - -export function resetPlayQueueGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetPlayQueueGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetPlayQueueGlobals' from JSON`, - ); -} - -/** @internal */ -export const ResetPlayQueueRequest$inboundSchema: z.ZodType< - ResetPlayQueueRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ResetPlayQueueRequest$Outbound = { accepts: string; @@ -320,19 +177,6 @@ export const ResetPlayQueueRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetPlayQueueRequest$ { - /** @deprecated use `ResetPlayQueueRequest$inboundSchema` instead. */ - export const inboundSchema = ResetPlayQueueRequest$inboundSchema; - /** @deprecated use `ResetPlayQueueRequest$outboundSchema` instead. */ - export const outboundSchema = ResetPlayQueueRequest$outboundSchema; - /** @deprecated use `ResetPlayQueueRequest$Outbound` instead. */ - export type Outbound = ResetPlayQueueRequest$Outbound; -} - export function resetPlayQueueRequestToJSON( resetPlayQueueRequest: ResetPlayQueueRequest, ): string { @@ -341,16 +185,6 @@ export function resetPlayQueueRequestToJSON( ); } -export function resetPlayQueueRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetPlayQueueRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetPlayQueueRequest' from JSON`, - ); -} - /** @internal */ export const ResetPlayQueueResponse$inboundSchema: z.ZodType< ResetPlayQueueResponse, @@ -371,59 +205,6 @@ export const ResetPlayQueueResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ResetPlayQueueResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ResetPlayQueueResponse$outboundSchema: z.ZodType< - ResetPlayQueueResponse$Outbound, - z.ZodTypeDef, - ResetPlayQueueResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetPlayQueueResponse$ { - /** @deprecated use `ResetPlayQueueResponse$inboundSchema` instead. */ - export const inboundSchema = ResetPlayQueueResponse$inboundSchema; - /** @deprecated use `ResetPlayQueueResponse$outboundSchema` instead. */ - export const outboundSchema = ResetPlayQueueResponse$outboundSchema; - /** @deprecated use `ResetPlayQueueResponse$Outbound` instead. */ - export type Outbound = ResetPlayQueueResponse$Outbound; -} - -export function resetPlayQueueResponseToJSON( - resetPlayQueueResponse: ResetPlayQueueResponse, -): string { - return JSON.stringify( - ResetPlayQueueResponse$outboundSchema.parse(resetPlayQueueResponse), - ); -} - export function resetPlayQueueResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/resetsectiondefaults.ts b/src/sdk/models/operations/resetsectiondefaults.ts index aa7b8a9c..99d3580e 100644 --- a/src/sdk/models/operations/resetsectiondefaults.ts +++ b/src/sdk/models/operations/resetsectiondefaults.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,151 +122,6 @@ export type ResetSectionDefaultsResponse = { rawResponse: Response; }; -/** @internal */ -export const ResetSectionDefaultsGlobals$inboundSchema: z.ZodType< - ResetSectionDefaultsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ResetSectionDefaultsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ResetSectionDefaultsGlobals$outboundSchema: z.ZodType< - ResetSectionDefaultsGlobals$Outbound, - z.ZodTypeDef, - ResetSectionDefaultsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetSectionDefaultsGlobals$ { - /** @deprecated use `ResetSectionDefaultsGlobals$inboundSchema` instead. */ - export const inboundSchema = ResetSectionDefaultsGlobals$inboundSchema; - /** @deprecated use `ResetSectionDefaultsGlobals$outboundSchema` instead. */ - export const outboundSchema = ResetSectionDefaultsGlobals$outboundSchema; - /** @deprecated use `ResetSectionDefaultsGlobals$Outbound` instead. */ - export type Outbound = ResetSectionDefaultsGlobals$Outbound; -} - -export function resetSectionDefaultsGlobalsToJSON( - resetSectionDefaultsGlobals: ResetSectionDefaultsGlobals, -): string { - return JSON.stringify( - ResetSectionDefaultsGlobals$outboundSchema.parse( - resetSectionDefaultsGlobals, - ), - ); -} - -export function resetSectionDefaultsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetSectionDefaultsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetSectionDefaultsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ResetSectionDefaultsRequest$inboundSchema: z.ZodType< - ResetSectionDefaultsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ResetSectionDefaultsRequest$Outbound = { accepts: string; @@ -316,19 +171,6 @@ export const ResetSectionDefaultsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetSectionDefaultsRequest$ { - /** @deprecated use `ResetSectionDefaultsRequest$inboundSchema` instead. */ - export const inboundSchema = ResetSectionDefaultsRequest$inboundSchema; - /** @deprecated use `ResetSectionDefaultsRequest$outboundSchema` instead. */ - export const outboundSchema = ResetSectionDefaultsRequest$outboundSchema; - /** @deprecated use `ResetSectionDefaultsRequest$Outbound` instead. */ - export type Outbound = ResetSectionDefaultsRequest$Outbound; -} - export function resetSectionDefaultsRequestToJSON( resetSectionDefaultsRequest: ResetSectionDefaultsRequest, ): string { @@ -339,16 +181,6 @@ export function resetSectionDefaultsRequestToJSON( ); } -export function resetSectionDefaultsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResetSectionDefaultsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResetSectionDefaultsRequest' from JSON`, - ); -} - /** @internal */ export const ResetSectionDefaultsResponse$inboundSchema: z.ZodType< ResetSectionDefaultsResponse, @@ -366,55 +198,6 @@ export const ResetSectionDefaultsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ResetSectionDefaultsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const ResetSectionDefaultsResponse$outboundSchema: z.ZodType< - ResetSectionDefaultsResponse$Outbound, - z.ZodTypeDef, - ResetSectionDefaultsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResetSectionDefaultsResponse$ { - /** @deprecated use `ResetSectionDefaultsResponse$inboundSchema` instead. */ - export const inboundSchema = ResetSectionDefaultsResponse$inboundSchema; - /** @deprecated use `ResetSectionDefaultsResponse$outboundSchema` instead. */ - export const outboundSchema = ResetSectionDefaultsResponse$outboundSchema; - /** @deprecated use `ResetSectionDefaultsResponse$Outbound` instead. */ - export type Outbound = ResetSectionDefaultsResponse$Outbound; -} - -export function resetSectionDefaultsResponseToJSON( - resetSectionDefaultsResponse: ResetSectionDefaultsResponse, -): string { - return JSON.stringify( - ResetSectionDefaultsResponse$outboundSchema.parse( - resetSectionDefaultsResponse, - ), - ); -} - export function resetSectionDefaultsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts b/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts index cfc209a4..2cef992e 100644 --- a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts +++ b/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,164 +126,6 @@ export type RestartProcessingDownloadQueueItemsResponse = { rawResponse: Response; }; -/** @internal */ -export const RestartProcessingDownloadQueueItemsGlobals$inboundSchema: - z.ZodType = - z.object({ - accepts: shared.Accepts$inboundSchema.default( - shared.Accepts.ApplicationXml, - ), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); - }); - -/** @internal */ -export type RestartProcessingDownloadQueueItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const RestartProcessingDownloadQueueItemsGlobals$outboundSchema: - z.ZodType< - RestartProcessingDownloadQueueItemsGlobals$Outbound, - z.ZodTypeDef, - RestartProcessingDownloadQueueItemsGlobals - > = z.object({ - accepts: shared.Accepts$outboundSchema.default( - shared.Accepts.ApplicationXml, - ), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), - }).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RestartProcessingDownloadQueueItemsGlobals$ { - /** @deprecated use `RestartProcessingDownloadQueueItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = - RestartProcessingDownloadQueueItemsGlobals$inboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = - RestartProcessingDownloadQueueItemsGlobals$outboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsGlobals$Outbound` instead. */ - export type Outbound = RestartProcessingDownloadQueueItemsGlobals$Outbound; -} - -export function restartProcessingDownloadQueueItemsGlobalsToJSON( - restartProcessingDownloadQueueItemsGlobals: - RestartProcessingDownloadQueueItemsGlobals, -): string { - return JSON.stringify( - RestartProcessingDownloadQueueItemsGlobals$outboundSchema.parse( - restartProcessingDownloadQueueItemsGlobals, - ), - ); -} - -export function restartProcessingDownloadQueueItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - RestartProcessingDownloadQueueItemsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RestartProcessingDownloadQueueItemsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RestartProcessingDownloadQueueItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const RestartProcessingDownloadQueueItemsRequest$inboundSchema: - z.ZodType = - z.object({ - accepts: shared.Accepts$inboundSchema.default( - shared.Accepts.ApplicationXml, - ), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - queueId: z.number().int(), - itemId: z.array(z.number().int()), - }).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); - }); - /** @internal */ export type RestartProcessingDownloadQueueItemsRequest$Outbound = { accepts: string; @@ -338,21 +180,6 @@ export const RestartProcessingDownloadQueueItemsRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RestartProcessingDownloadQueueItemsRequest$ { - /** @deprecated use `RestartProcessingDownloadQueueItemsRequest$inboundSchema` instead. */ - export const inboundSchema = - RestartProcessingDownloadQueueItemsRequest$inboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsRequest$outboundSchema` instead. */ - export const outboundSchema = - RestartProcessingDownloadQueueItemsRequest$outboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsRequest$Outbound` instead. */ - export type Outbound = RestartProcessingDownloadQueueItemsRequest$Outbound; -} - export function restartProcessingDownloadQueueItemsRequestToJSON( restartProcessingDownloadQueueItemsRequest: RestartProcessingDownloadQueueItemsRequest, @@ -364,22 +191,6 @@ export function restartProcessingDownloadQueueItemsRequestToJSON( ); } -export function restartProcessingDownloadQueueItemsRequestFromJSON( - jsonString: string, -): SafeParseResult< - RestartProcessingDownloadQueueItemsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RestartProcessingDownloadQueueItemsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RestartProcessingDownloadQueueItemsRequest' from JSON`, - ); -} - /** @internal */ export const RestartProcessingDownloadQueueItemsResponse$inboundSchema: z.ZodType< @@ -398,59 +209,6 @@ export const RestartProcessingDownloadQueueItemsResponse$inboundSchema: }); }); -/** @internal */ -export type RestartProcessingDownloadQueueItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const RestartProcessingDownloadQueueItemsResponse$outboundSchema: - z.ZodType< - RestartProcessingDownloadQueueItemsResponse$Outbound, - z.ZodTypeDef, - RestartProcessingDownloadQueueItemsResponse - > = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RestartProcessingDownloadQueueItemsResponse$ { - /** @deprecated use `RestartProcessingDownloadQueueItemsResponse$inboundSchema` instead. */ - export const inboundSchema = - RestartProcessingDownloadQueueItemsResponse$inboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsResponse$outboundSchema` instead. */ - export const outboundSchema = - RestartProcessingDownloadQueueItemsResponse$outboundSchema; - /** @deprecated use `RestartProcessingDownloadQueueItemsResponse$Outbound` instead. */ - export type Outbound = RestartProcessingDownloadQueueItemsResponse$Outbound; -} - -export function restartProcessingDownloadQueueItemsResponseToJSON( - restartProcessingDownloadQueueItemsResponse: - RestartProcessingDownloadQueueItemsResponse, -): string { - return JSON.stringify( - RestartProcessingDownloadQueueItemsResponse$outboundSchema.parse( - restartProcessingDownloadQueueItemsResponse, - ), - ); -} - export function restartProcessingDownloadQueueItemsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/sdk/models/operations/scan.ts b/src/sdk/models/operations/scan.ts index 7d6c3a92..a49b1d19 100644 --- a/src/sdk/models/operations/scan.ts +++ b/src/sdk/models/operations/scan.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,146 +131,6 @@ export type ScanResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const ScanGlobals$inboundSchema: z.ZodType< - ScanGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ScanGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ScanGlobals$outboundSchema: z.ZodType< - ScanGlobals$Outbound, - z.ZodTypeDef, - ScanGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScanGlobals$ { - /** @deprecated use `ScanGlobals$inboundSchema` instead. */ - export const inboundSchema = ScanGlobals$inboundSchema; - /** @deprecated use `ScanGlobals$outboundSchema` instead. */ - export const outboundSchema = ScanGlobals$outboundSchema; - /** @deprecated use `ScanGlobals$Outbound` instead. */ - export type Outbound = ScanGlobals$Outbound; -} - -export function scanGlobalsToJSON(scanGlobals: ScanGlobals): string { - return JSON.stringify(ScanGlobals$outboundSchema.parse(scanGlobals)); -} - -export function scanGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScanGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScanGlobals' from JSON`, - ); -} - -/** @internal */ -export const ScanRequest$inboundSchema: z.ZodType< - ScanRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), - source: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ScanRequest$Outbound = { accepts: string; @@ -322,33 +182,10 @@ export const ScanRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScanRequest$ { - /** @deprecated use `ScanRequest$inboundSchema` instead. */ - export const inboundSchema = ScanRequest$inboundSchema; - /** @deprecated use `ScanRequest$outboundSchema` instead. */ - export const outboundSchema = ScanRequest$outboundSchema; - /** @deprecated use `ScanRequest$Outbound` instead. */ - export type Outbound = ScanRequest$Outbound; -} - export function scanRequestToJSON(scanRequest: ScanRequest): string { return JSON.stringify(ScanRequest$outboundSchema.parse(scanRequest)); } -export function scanRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScanRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScanRequest' from JSON`, - ); -} - /** @internal */ export const ScanResponse$inboundSchema: z.ZodType< ScanResponse, @@ -360,7 +197,7 @@ export const ScanResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithDevice: shared.MediaContainerWithDevice$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -371,58 +208,6 @@ export const ScanResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ScanResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const ScanResponse$outboundSchema: z.ZodType< - ScanResponse$Outbound, - z.ZodTypeDef, - ScanResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScanResponse$ { - /** @deprecated use `ScanResponse$inboundSchema` instead. */ - export const inboundSchema = ScanResponse$inboundSchema; - /** @deprecated use `ScanResponse$outboundSchema` instead. */ - export const outboundSchema = ScanResponse$outboundSchema; - /** @deprecated use `ScanResponse$Outbound` instead. */ - export type Outbound = ScanResponse$Outbound; -} - -export function scanResponseToJSON(scanResponse: ScanResponse): string { - return JSON.stringify(ScanResponse$outboundSchema.parse(scanResponse)); -} - export function scanResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/searchhubs.ts b/src/sdk/models/operations/searchhubs.ts index 9751df03..3c35cae3 100644 --- a/src/sdk/models/operations/searchhubs.ts +++ b/src/sdk/models/operations/searchhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -167,151 +167,6 @@ export type SearchHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const SearchHubsGlobals$inboundSchema: z.ZodType< - SearchHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SearchHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SearchHubsGlobals$outboundSchema: z.ZodType< - SearchHubsGlobals$Outbound, - z.ZodTypeDef, - SearchHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchHubsGlobals$ { - /** @deprecated use `SearchHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = SearchHubsGlobals$inboundSchema; - /** @deprecated use `SearchHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = SearchHubsGlobals$outboundSchema; - /** @deprecated use `SearchHubsGlobals$Outbound` instead. */ - export type Outbound = SearchHubsGlobals$Outbound; -} - -export function searchHubsGlobalsToJSON( - searchHubsGlobals: SearchHubsGlobals, -): string { - return JSON.stringify( - SearchHubsGlobals$outboundSchema.parse(searchHubsGlobals), - ); -} - -export function searchHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SearchHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SearchHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const SearchHubsRequest$inboundSchema: z.ZodType< - SearchHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - query: z.string(), - sectionId: z.number().int().optional(), - limit: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SearchHubsRequest$Outbound = { accepts: string; @@ -365,19 +220,6 @@ export const SearchHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchHubsRequest$ { - /** @deprecated use `SearchHubsRequest$inboundSchema` instead. */ - export const inboundSchema = SearchHubsRequest$inboundSchema; - /** @deprecated use `SearchHubsRequest$outboundSchema` instead. */ - export const outboundSchema = SearchHubsRequest$outboundSchema; - /** @deprecated use `SearchHubsRequest$Outbound` instead. */ - export type Outbound = SearchHubsRequest$Outbound; -} - export function searchHubsRequestToJSON( searchHubsRequest: SearchHubsRequest, ): string { @@ -386,16 +228,6 @@ export function searchHubsRequestToJSON( ); } -export function searchHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SearchHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SearchHubsRequest' from JSON`, - ); -} - /** @internal */ export const SearchHubsMediaContainer$inboundSchema: z.ZodType< SearchHubsMediaContainer, @@ -413,53 +245,6 @@ export const SearchHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SearchHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const SearchHubsMediaContainer$outboundSchema: z.ZodType< - SearchHubsMediaContainer$Outbound, - z.ZodTypeDef, - SearchHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchHubsMediaContainer$ { - /** @deprecated use `SearchHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = SearchHubsMediaContainer$inboundSchema; - /** @deprecated use `SearchHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = SearchHubsMediaContainer$outboundSchema; - /** @deprecated use `SearchHubsMediaContainer$Outbound` instead. */ - export type Outbound = SearchHubsMediaContainer$Outbound; -} - -export function searchHubsMediaContainerToJSON( - searchHubsMediaContainer: SearchHubsMediaContainer, -): string { - return JSON.stringify( - SearchHubsMediaContainer$outboundSchema.parse(searchHubsMediaContainer), - ); -} - export function searchHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -484,46 +269,6 @@ export const SearchHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SearchHubsResponseBody$Outbound = { - MediaContainer?: SearchHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const SearchHubsResponseBody$outboundSchema: z.ZodType< - SearchHubsResponseBody$Outbound, - z.ZodTypeDef, - SearchHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => SearchHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchHubsResponseBody$ { - /** @deprecated use `SearchHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = SearchHubsResponseBody$inboundSchema; - /** @deprecated use `SearchHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = SearchHubsResponseBody$outboundSchema; - /** @deprecated use `SearchHubsResponseBody$Outbound` instead. */ - export type Outbound = SearchHubsResponseBody$Outbound; -} - -export function searchHubsResponseBodyToJSON( - searchHubsResponseBody: SearchHubsResponseBody, -): string { - return JSON.stringify( - SearchHubsResponseBody$outboundSchema.parse(searchHubsResponseBody), - ); -} - export function searchHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -544,7 +289,7 @@ export const SearchHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => SearchHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -554,58 +299,6 @@ export const SearchHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SearchHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: SearchHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const SearchHubsResponse$outboundSchema: z.ZodType< - SearchHubsResponse$Outbound, - z.ZodTypeDef, - SearchHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => SearchHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchHubsResponse$ { - /** @deprecated use `SearchHubsResponse$inboundSchema` instead. */ - export const inboundSchema = SearchHubsResponse$inboundSchema; - /** @deprecated use `SearchHubsResponse$outboundSchema` instead. */ - export const outboundSchema = SearchHubsResponse$outboundSchema; - /** @deprecated use `SearchHubsResponse$Outbound` instead. */ - export type Outbound = SearchHubsResponse$Outbound; -} - -export function searchHubsResponseToJSON( - searchHubsResponse: SearchHubsResponse, -): string { - return JSON.stringify( - SearchHubsResponse$outboundSchema.parse(searchHubsResponse), - ); -} - export function searchHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setchannelmap.ts b/src/sdk/models/operations/setchannelmap.ts index 81600c8b..f5fd4364 100644 --- a/src/sdk/models/operations/setchannelmap.ts +++ b/src/sdk/models/operations/setchannelmap.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -148,123 +148,6 @@ export type SetChannelmapResponse = { mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; }; -/** @internal */ -export const SetChannelmapGlobals$inboundSchema: z.ZodType< - SetChannelmapGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetChannelmapGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetChannelmapGlobals$outboundSchema: z.ZodType< - SetChannelmapGlobals$Outbound, - z.ZodTypeDef, - SetChannelmapGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetChannelmapGlobals$ { - /** @deprecated use `SetChannelmapGlobals$inboundSchema` instead. */ - export const inboundSchema = SetChannelmapGlobals$inboundSchema; - /** @deprecated use `SetChannelmapGlobals$outboundSchema` instead. */ - export const outboundSchema = SetChannelmapGlobals$outboundSchema; - /** @deprecated use `SetChannelmapGlobals$Outbound` instead. */ - export type Outbound = SetChannelmapGlobals$Outbound; -} - -export function setChannelmapGlobalsToJSON( - setChannelmapGlobals: SetChannelmapGlobals, -): string { - return JSON.stringify( - SetChannelmapGlobals$outboundSchema.parse(setChannelmapGlobals), - ); -} - -export function setChannelmapGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetChannelmapGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetChannelmapGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetChannelmapChannelMapping$inboundSchema: z.ZodType< - SetChannelmapChannelMapping, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type SetChannelmapChannelMapping$Outbound = {}; @@ -275,19 +158,6 @@ export const SetChannelmapChannelMapping$outboundSchema: z.ZodType< SetChannelmapChannelMapping > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetChannelmapChannelMapping$ { - /** @deprecated use `SetChannelmapChannelMapping$inboundSchema` instead. */ - export const inboundSchema = SetChannelmapChannelMapping$inboundSchema; - /** @deprecated use `SetChannelmapChannelMapping$outboundSchema` instead. */ - export const outboundSchema = SetChannelmapChannelMapping$outboundSchema; - /** @deprecated use `SetChannelmapChannelMapping$Outbound` instead. */ - export type Outbound = SetChannelmapChannelMapping$Outbound; -} - export function setChannelmapChannelMappingToJSON( setChannelmapChannelMapping: SetChannelmapChannelMapping, ): string { @@ -298,23 +168,6 @@ export function setChannelmapChannelMappingToJSON( ); } -export function setChannelmapChannelMappingFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetChannelmapChannelMapping$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetChannelmapChannelMapping' from JSON`, - ); -} - -/** @internal */ -export const ChannelMappingByKey$inboundSchema: z.ZodType< - ChannelMappingByKey, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type ChannelMappingByKey$Outbound = {}; @@ -325,19 +178,6 @@ export const ChannelMappingByKey$outboundSchema: z.ZodType< ChannelMappingByKey > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChannelMappingByKey$ { - /** @deprecated use `ChannelMappingByKey$inboundSchema` instead. */ - export const inboundSchema = ChannelMappingByKey$inboundSchema; - /** @deprecated use `ChannelMappingByKey$outboundSchema` instead. */ - export const outboundSchema = ChannelMappingByKey$outboundSchema; - /** @deprecated use `ChannelMappingByKey$Outbound` instead. */ - export type Outbound = ChannelMappingByKey$Outbound; -} - export function channelMappingByKeyToJSON( channelMappingByKey: ChannelMappingByKey, ): string { @@ -346,54 +186,6 @@ export function channelMappingByKeyToJSON( ); } -export function channelMappingByKeyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ChannelMappingByKey$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ChannelMappingByKey' from JSON`, - ); -} - -/** @internal */ -export const SetChannelmapRequest$inboundSchema: z.ZodType< - SetChannelmapRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), - channelMapping: z.lazy(() => SetChannelmapChannelMapping$inboundSchema) - .optional(), - channelMappingByKey: z.lazy(() => ChannelMappingByKey$inboundSchema) - .optional(), - channelsEnabled: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetChannelmapRequest$Outbound = { accepts: string; @@ -451,19 +243,6 @@ export const SetChannelmapRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetChannelmapRequest$ { - /** @deprecated use `SetChannelmapRequest$inboundSchema` instead. */ - export const inboundSchema = SetChannelmapRequest$inboundSchema; - /** @deprecated use `SetChannelmapRequest$outboundSchema` instead. */ - export const outboundSchema = SetChannelmapRequest$outboundSchema; - /** @deprecated use `SetChannelmapRequest$Outbound` instead. */ - export type Outbound = SetChannelmapRequest$Outbound; -} - export function setChannelmapRequestToJSON( setChannelmapRequest: SetChannelmapRequest, ): string { @@ -472,16 +251,6 @@ export function setChannelmapRequestToJSON( ); } -export function setChannelmapRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetChannelmapRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetChannelmapRequest' from JSON`, - ); -} - /** @internal */ export const SetChannelmapResponse$inboundSchema: z.ZodType< SetChannelmapResponse, @@ -502,59 +271,6 @@ export const SetChannelmapResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetChannelmapResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; -}; - -/** @internal */ -export const SetChannelmapResponse$outboundSchema: z.ZodType< - SetChannelmapResponse$Outbound, - z.ZodTypeDef, - SetChannelmapResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetChannelmapResponse$ { - /** @deprecated use `SetChannelmapResponse$inboundSchema` instead. */ - export const inboundSchema = SetChannelmapResponse$inboundSchema; - /** @deprecated use `SetChannelmapResponse$outboundSchema` instead. */ - export const outboundSchema = SetChannelmapResponse$outboundSchema; - /** @deprecated use `SetChannelmapResponse$Outbound` instead. */ - export type Outbound = SetChannelmapResponse$Outbound; -} - -export function setChannelmapResponseToJSON( - setChannelmapResponse: SetChannelmapResponse, -): string { - return JSON.stringify( - SetChannelmapResponse$outboundSchema.parse(setChannelmapResponse), - ); -} - export function setChannelmapResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setdevicepreferences.ts b/src/sdk/models/operations/setdevicepreferences.ts index 360e710b..e63b9b08 100644 --- a/src/sdk/models/operations/setdevicepreferences.ts +++ b/src/sdk/models/operations/setdevicepreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,152 +126,6 @@ export type SetDevicePreferencesResponse = { rawResponse: Response; }; -/** @internal */ -export const SetDevicePreferencesGlobals$inboundSchema: z.ZodType< - SetDevicePreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetDevicePreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetDevicePreferencesGlobals$outboundSchema: z.ZodType< - SetDevicePreferencesGlobals$Outbound, - z.ZodTypeDef, - SetDevicePreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDevicePreferencesGlobals$ { - /** @deprecated use `SetDevicePreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = SetDevicePreferencesGlobals$inboundSchema; - /** @deprecated use `SetDevicePreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = SetDevicePreferencesGlobals$outboundSchema; - /** @deprecated use `SetDevicePreferencesGlobals$Outbound` instead. */ - export type Outbound = SetDevicePreferencesGlobals$Outbound; -} - -export function setDevicePreferencesGlobalsToJSON( - setDevicePreferencesGlobals: SetDevicePreferencesGlobals, -): string { - return JSON.stringify( - SetDevicePreferencesGlobals$outboundSchema.parse( - setDevicePreferencesGlobals, - ), - ); -} - -export function setDevicePreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetDevicePreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetDevicePreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetDevicePreferencesRequest$inboundSchema: z.ZodType< - SetDevicePreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), - name: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetDevicePreferencesRequest$Outbound = { accepts: string; @@ -323,19 +177,6 @@ export const SetDevicePreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDevicePreferencesRequest$ { - /** @deprecated use `SetDevicePreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = SetDevicePreferencesRequest$inboundSchema; - /** @deprecated use `SetDevicePreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = SetDevicePreferencesRequest$outboundSchema; - /** @deprecated use `SetDevicePreferencesRequest$Outbound` instead. */ - export type Outbound = SetDevicePreferencesRequest$Outbound; -} - export function setDevicePreferencesRequestToJSON( setDevicePreferencesRequest: SetDevicePreferencesRequest, ): string { @@ -346,16 +187,6 @@ export function setDevicePreferencesRequestToJSON( ); } -export function setDevicePreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetDevicePreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetDevicePreferencesRequest' from JSON`, - ); -} - /** @internal */ export const SetDevicePreferencesResponse$inboundSchema: z.ZodType< SetDevicePreferencesResponse, @@ -373,55 +204,6 @@ export const SetDevicePreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetDevicePreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetDevicePreferencesResponse$outboundSchema: z.ZodType< - SetDevicePreferencesResponse$Outbound, - z.ZodTypeDef, - SetDevicePreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDevicePreferencesResponse$ { - /** @deprecated use `SetDevicePreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = SetDevicePreferencesResponse$inboundSchema; - /** @deprecated use `SetDevicePreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = SetDevicePreferencesResponse$outboundSchema; - /** @deprecated use `SetDevicePreferencesResponse$Outbound` instead. */ - export type Outbound = SetDevicePreferencesResponse$Outbound; -} - -export function setDevicePreferencesResponseToJSON( - setDevicePreferencesResponse: SetDevicePreferencesResponse, -): string { - return JSON.stringify( - SetDevicePreferencesResponse$outboundSchema.parse( - setDevicePreferencesResponse, - ), - ); -} - export function setDevicePreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setdvrpreferences.ts b/src/sdk/models/operations/setdvrpreferences.ts index d3367097..037ca667 100644 --- a/src/sdk/models/operations/setdvrpreferences.ts +++ b/src/sdk/models/operations/setdvrpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -179,150 +179,6 @@ export type SetDVRPreferencesResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const SetDVRPreferencesGlobals$inboundSchema: z.ZodType< - SetDVRPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetDVRPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetDVRPreferencesGlobals$outboundSchema: z.ZodType< - SetDVRPreferencesGlobals$Outbound, - z.ZodTypeDef, - SetDVRPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesGlobals$ { - /** @deprecated use `SetDVRPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesGlobals$inboundSchema; - /** @deprecated use `SetDVRPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesGlobals$outboundSchema; - /** @deprecated use `SetDVRPreferencesGlobals$Outbound` instead. */ - export type Outbound = SetDVRPreferencesGlobals$Outbound; -} - -export function setDVRPreferencesGlobalsToJSON( - setDVRPreferencesGlobals: SetDVRPreferencesGlobals, -): string { - return JSON.stringify( - SetDVRPreferencesGlobals$outboundSchema.parse(setDVRPreferencesGlobals), - ); -} - -export function setDVRPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetDVRPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetDVRPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetDVRPreferencesRequest$inboundSchema: z.ZodType< - SetDVRPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - name: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetDVRPreferencesRequest$Outbound = { accepts: string; @@ -374,19 +230,6 @@ export const SetDVRPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesRequest$ { - /** @deprecated use `SetDVRPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesRequest$inboundSchema; - /** @deprecated use `SetDVRPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesRequest$outboundSchema; - /** @deprecated use `SetDVRPreferencesRequest$Outbound` instead. */ - export type Outbound = SetDVRPreferencesRequest$Outbound; -} - export function setDVRPreferencesRequestToJSON( setDVRPreferencesRequest: SetDVRPreferencesRequest, ): string { @@ -395,16 +238,6 @@ export function setDVRPreferencesRequestToJSON( ); } -export function setDVRPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetDVRPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetDVRPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const SetDVRPreferencesMediaContainerMediaContainer$inboundSchema: z.ZodType< @@ -419,55 +252,6 @@ export const SetDVRPreferencesMediaContainerMediaContainer$inboundSchema: status: z.number().int().optional(), }); -/** @internal */ -export type SetDVRPreferencesMediaContainerMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const SetDVRPreferencesMediaContainerMediaContainer$outboundSchema: - z.ZodType< - SetDVRPreferencesMediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - SetDVRPreferencesMediaContainerMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesMediaContainerMediaContainer$ { - /** @deprecated use `SetDVRPreferencesMediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - SetDVRPreferencesMediaContainerMediaContainer$inboundSchema; - /** @deprecated use `SetDVRPreferencesMediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - SetDVRPreferencesMediaContainerMediaContainer$outboundSchema; - /** @deprecated use `SetDVRPreferencesMediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = SetDVRPreferencesMediaContainerMediaContainer$Outbound; -} - -export function setDVRPreferencesMediaContainerMediaContainerToJSON( - setDVRPreferencesMediaContainerMediaContainer: - SetDVRPreferencesMediaContainerMediaContainer, -): string { - return JSON.stringify( - SetDVRPreferencesMediaContainerMediaContainer$outboundSchema.parse( - setDVRPreferencesMediaContainerMediaContainer, - ), - ); -} - export function setDVRPreferencesMediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -501,53 +285,6 @@ export const SetDVRPreferencesDVR$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetDVRPreferencesDVR$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const SetDVRPreferencesDVR$outboundSchema: z.ZodType< - SetDVRPreferencesDVR$Outbound, - z.ZodTypeDef, - SetDVRPreferencesDVR -> = z.object({ - device: z.array(shared.Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesDVR$ { - /** @deprecated use `SetDVRPreferencesDVR$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesDVR$inboundSchema; - /** @deprecated use `SetDVRPreferencesDVR$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesDVR$outboundSchema; - /** @deprecated use `SetDVRPreferencesDVR$Outbound` instead. */ - export type Outbound = SetDVRPreferencesDVR$Outbound; -} - -export function setDVRPreferencesDVRToJSON( - setDVRPreferencesDVR: SetDVRPreferencesDVR, -): string { - return JSON.stringify( - SetDVRPreferencesDVR$outboundSchema.parse(setDVRPreferencesDVR), - ); -} - export function setDVRPreferencesDVRFromJSON( jsonString: string, ): SafeParseResult { @@ -575,54 +312,6 @@ export const SetDVRPreferencesMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetDVRPreferencesMediaContainer$Outbound = { - MediaContainer?: - | SetDVRPreferencesMediaContainerMediaContainer$Outbound - | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const SetDVRPreferencesMediaContainer$outboundSchema: z.ZodType< - SetDVRPreferencesMediaContainer$Outbound, - z.ZodTypeDef, - SetDVRPreferencesMediaContainer -> = z.object({ - mediaContainer: z.lazy(() => - SetDVRPreferencesMediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => SetDVRPreferencesDVR$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesMediaContainer$ { - /** @deprecated use `SetDVRPreferencesMediaContainer$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesMediaContainer$inboundSchema; - /** @deprecated use `SetDVRPreferencesMediaContainer$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesMediaContainer$outboundSchema; - /** @deprecated use `SetDVRPreferencesMediaContainer$Outbound` instead. */ - export type Outbound = SetDVRPreferencesMediaContainer$Outbound; -} - -export function setDVRPreferencesMediaContainerToJSON( - setDVRPreferencesMediaContainer: SetDVRPreferencesMediaContainer, -): string { - return JSON.stringify( - SetDVRPreferencesMediaContainer$outboundSchema.parse( - setDVRPreferencesMediaContainer, - ), - ); -} - export function setDVRPreferencesMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -647,48 +336,6 @@ export const SetDVRPreferencesResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetDVRPreferencesResponseBody$Outbound = { - MediaContainer?: SetDVRPreferencesMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const SetDVRPreferencesResponseBody$outboundSchema: z.ZodType< - SetDVRPreferencesResponseBody$Outbound, - z.ZodTypeDef, - SetDVRPreferencesResponseBody -> = z.object({ - mediaContainer: z.lazy(() => SetDVRPreferencesMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesResponseBody$ { - /** @deprecated use `SetDVRPreferencesResponseBody$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesResponseBody$inboundSchema; - /** @deprecated use `SetDVRPreferencesResponseBody$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesResponseBody$outboundSchema; - /** @deprecated use `SetDVRPreferencesResponseBody$Outbound` instead. */ - export type Outbound = SetDVRPreferencesResponseBody$Outbound; -} - -export function setDVRPreferencesResponseBodyToJSON( - setDVRPreferencesResponseBody: SetDVRPreferencesResponseBody, -): string { - return JSON.stringify( - SetDVRPreferencesResponseBody$outboundSchema.parse( - setDVRPreferencesResponseBody, - ), - ); -} - export function setDVRPreferencesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -709,7 +356,7 @@ export const SetDVRPreferencesResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => SetDVRPreferencesResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -719,58 +366,6 @@ export const SetDVRPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetDVRPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: SetDVRPreferencesResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const SetDVRPreferencesResponse$outboundSchema: z.ZodType< - SetDVRPreferencesResponse$Outbound, - z.ZodTypeDef, - SetDVRPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => SetDVRPreferencesResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetDVRPreferencesResponse$ { - /** @deprecated use `SetDVRPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = SetDVRPreferencesResponse$inboundSchema; - /** @deprecated use `SetDVRPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = SetDVRPreferencesResponse$outboundSchema; - /** @deprecated use `SetDVRPreferencesResponse$Outbound` instead. */ - export type Outbound = SetDVRPreferencesResponse$Outbound; -} - -export function setDVRPreferencesResponseToJSON( - setDVRPreferencesResponse: SetDVRPreferencesResponse, -): string { - return JSON.stringify( - SetDVRPreferencesResponse$outboundSchema.parse(setDVRPreferencesResponse), - ); -} - export function setDVRPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setitemartwork.ts b/src/sdk/models/operations/setitemartwork.ts index 8c9662a9..d913ab56 100644 --- a/src/sdk/models/operations/setitemartwork.ts +++ b/src/sdk/models/operations/setitemartwork.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,171 +133,10 @@ export type SetItemArtworkResponse = { rawResponse: Response; }; -/** @internal */ -export const SetItemArtworkGlobals$inboundSchema: z.ZodType< - SetItemArtworkGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetItemArtworkGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetItemArtworkGlobals$outboundSchema: z.ZodType< - SetItemArtworkGlobals$Outbound, - z.ZodTypeDef, - SetItemArtworkGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemArtworkGlobals$ { - /** @deprecated use `SetItemArtworkGlobals$inboundSchema` instead. */ - export const inboundSchema = SetItemArtworkGlobals$inboundSchema; - /** @deprecated use `SetItemArtworkGlobals$outboundSchema` instead. */ - export const outboundSchema = SetItemArtworkGlobals$outboundSchema; - /** @deprecated use `SetItemArtworkGlobals$Outbound` instead. */ - export type Outbound = SetItemArtworkGlobals$Outbound; -} - -export function setItemArtworkGlobalsToJSON( - setItemArtworkGlobals: SetItemArtworkGlobals, -): string { - return JSON.stringify( - SetItemArtworkGlobals$outboundSchema.parse(setItemArtworkGlobals), - ); -} - -export function setItemArtworkGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemArtworkGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemArtworkGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetItemArtworkElement$inboundSchema: z.ZodNativeEnum< - typeof SetItemArtworkElement -> = z.nativeEnum(SetItemArtworkElement); - /** @internal */ export const SetItemArtworkElement$outboundSchema: z.ZodNativeEnum< typeof SetItemArtworkElement -> = SetItemArtworkElement$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemArtworkElement$ { - /** @deprecated use `SetItemArtworkElement$inboundSchema` instead. */ - export const inboundSchema = SetItemArtworkElement$inboundSchema; - /** @deprecated use `SetItemArtworkElement$outboundSchema` instead. */ - export const outboundSchema = SetItemArtworkElement$outboundSchema; -} - -/** @internal */ -export const SetItemArtworkRequest$inboundSchema: z.ZodType< - SetItemArtworkRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - element: SetItemArtworkElement$inboundSchema, - url: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(SetItemArtworkElement); /** @internal */ export type SetItemArtworkRequest$Outbound = { @@ -352,19 +191,6 @@ export const SetItemArtworkRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemArtworkRequest$ { - /** @deprecated use `SetItemArtworkRequest$inboundSchema` instead. */ - export const inboundSchema = SetItemArtworkRequest$inboundSchema; - /** @deprecated use `SetItemArtworkRequest$outboundSchema` instead. */ - export const outboundSchema = SetItemArtworkRequest$outboundSchema; - /** @deprecated use `SetItemArtworkRequest$Outbound` instead. */ - export type Outbound = SetItemArtworkRequest$Outbound; -} - export function setItemArtworkRequestToJSON( setItemArtworkRequest: SetItemArtworkRequest, ): string { @@ -373,16 +199,6 @@ export function setItemArtworkRequestToJSON( ); } -export function setItemArtworkRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemArtworkRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemArtworkRequest' from JSON`, - ); -} - /** @internal */ export const SetItemArtworkResponse$inboundSchema: z.ZodType< SetItemArtworkResponse, @@ -400,53 +216,6 @@ export const SetItemArtworkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetItemArtworkResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetItemArtworkResponse$outboundSchema: z.ZodType< - SetItemArtworkResponse$Outbound, - z.ZodTypeDef, - SetItemArtworkResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemArtworkResponse$ { - /** @deprecated use `SetItemArtworkResponse$inboundSchema` instead. */ - export const inboundSchema = SetItemArtworkResponse$inboundSchema; - /** @deprecated use `SetItemArtworkResponse$outboundSchema` instead. */ - export const outboundSchema = SetItemArtworkResponse$outboundSchema; - /** @deprecated use `SetItemArtworkResponse$Outbound` instead. */ - export type Outbound = SetItemArtworkResponse$Outbound; -} - -export function setItemArtworkResponseToJSON( - setItemArtworkResponse: SetItemArtworkResponse, -): string { - return JSON.stringify( - SetItemArtworkResponse$outboundSchema.parse(setItemArtworkResponse), - ); -} - export function setItemArtworkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setitempreferences.ts b/src/sdk/models/operations/setitempreferences.ts index e08d9976..20d28b86 100644 --- a/src/sdk/models/operations/setitempreferences.ts +++ b/src/sdk/models/operations/setitempreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,123 +122,6 @@ export type SetItemPreferencesResponse = { rawResponse: Response; }; -/** @internal */ -export const SetItemPreferencesGlobals$inboundSchema: z.ZodType< - SetItemPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetItemPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetItemPreferencesGlobals$outboundSchema: z.ZodType< - SetItemPreferencesGlobals$Outbound, - z.ZodTypeDef, - SetItemPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemPreferencesGlobals$ { - /** @deprecated use `SetItemPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = SetItemPreferencesGlobals$inboundSchema; - /** @deprecated use `SetItemPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = SetItemPreferencesGlobals$outboundSchema; - /** @deprecated use `SetItemPreferencesGlobals$Outbound` instead. */ - export type Outbound = SetItemPreferencesGlobals$Outbound; -} - -export function setItemPreferencesGlobalsToJSON( - setItemPreferencesGlobals: SetItemPreferencesGlobals, -): string { - return JSON.stringify( - SetItemPreferencesGlobals$outboundSchema.parse(setItemPreferencesGlobals), - ); -} - -export function setItemPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetItemPreferencesArgs$inboundSchema: z.ZodType< - SetItemPreferencesArgs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type SetItemPreferencesArgs$Outbound = {}; @@ -249,19 +132,6 @@ export const SetItemPreferencesArgs$outboundSchema: z.ZodType< SetItemPreferencesArgs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemPreferencesArgs$ { - /** @deprecated use `SetItemPreferencesArgs$inboundSchema` instead. */ - export const inboundSchema = SetItemPreferencesArgs$inboundSchema; - /** @deprecated use `SetItemPreferencesArgs$outboundSchema` instead. */ - export const outboundSchema = SetItemPreferencesArgs$outboundSchema; - /** @deprecated use `SetItemPreferencesArgs$Outbound` instead. */ - export type Outbound = SetItemPreferencesArgs$Outbound; -} - export function setItemPreferencesArgsToJSON( setItemPreferencesArgs: SetItemPreferencesArgs, ): string { @@ -270,50 +140,6 @@ export function setItemPreferencesArgsToJSON( ); } -export function setItemPreferencesArgsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemPreferencesArgs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemPreferencesArgs' from JSON`, - ); -} - -/** @internal */ -export const SetItemPreferencesRequest$inboundSchema: z.ZodType< - SetItemPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - args: z.lazy(() => SetItemPreferencesArgs$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetItemPreferencesRequest$Outbound = { accepts: string; @@ -365,19 +191,6 @@ export const SetItemPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemPreferencesRequest$ { - /** @deprecated use `SetItemPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = SetItemPreferencesRequest$inboundSchema; - /** @deprecated use `SetItemPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = SetItemPreferencesRequest$outboundSchema; - /** @deprecated use `SetItemPreferencesRequest$Outbound` instead. */ - export type Outbound = SetItemPreferencesRequest$Outbound; -} - export function setItemPreferencesRequestToJSON( setItemPreferencesRequest: SetItemPreferencesRequest, ): string { @@ -386,16 +199,6 @@ export function setItemPreferencesRequestToJSON( ); } -export function setItemPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetItemPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetItemPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const SetItemPreferencesResponse$inboundSchema: z.ZodType< SetItemPreferencesResponse, @@ -413,53 +216,6 @@ export const SetItemPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetItemPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetItemPreferencesResponse$outboundSchema: z.ZodType< - SetItemPreferencesResponse$Outbound, - z.ZodTypeDef, - SetItemPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetItemPreferencesResponse$ { - /** @deprecated use `SetItemPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = SetItemPreferencesResponse$inboundSchema; - /** @deprecated use `SetItemPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = SetItemPreferencesResponse$outboundSchema; - /** @deprecated use `SetItemPreferencesResponse$Outbound` instead. */ - export type Outbound = SetItemPreferencesResponse$Outbound; -} - -export function setItemPreferencesResponseToJSON( - setItemPreferencesResponse: SetItemPreferencesResponse, -): string { - return JSON.stringify( - SetItemPreferencesResponse$outboundSchema.parse(setItemPreferencesResponse), - ); -} - export function setItemPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setpreferences.ts b/src/sdk/models/operations/setpreferences.ts index 4a052ab2..e0582e90 100644 --- a/src/sdk/models/operations/setpreferences.ts +++ b/src/sdk/models/operations/setpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -121,123 +121,6 @@ export type SetPreferencesResponse = { rawResponse: Response; }; -/** @internal */ -export const SetPreferencesGlobals$inboundSchema: z.ZodType< - SetPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetPreferencesGlobals$outboundSchema: z.ZodType< - SetPreferencesGlobals$Outbound, - z.ZodTypeDef, - SetPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetPreferencesGlobals$ { - /** @deprecated use `SetPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = SetPreferencesGlobals$inboundSchema; - /** @deprecated use `SetPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = SetPreferencesGlobals$outboundSchema; - /** @deprecated use `SetPreferencesGlobals$Outbound` instead. */ - export type Outbound = SetPreferencesGlobals$Outbound; -} - -export function setPreferencesGlobalsToJSON( - setPreferencesGlobals: SetPreferencesGlobals, -): string { - return JSON.stringify( - SetPreferencesGlobals$outboundSchema.parse(setPreferencesGlobals), - ); -} - -export function setPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetPreferencesPrefs$inboundSchema: z.ZodType< - SetPreferencesPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type SetPreferencesPrefs$Outbound = {}; @@ -248,19 +131,6 @@ export const SetPreferencesPrefs$outboundSchema: z.ZodType< SetPreferencesPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetPreferencesPrefs$ { - /** @deprecated use `SetPreferencesPrefs$inboundSchema` instead. */ - export const inboundSchema = SetPreferencesPrefs$inboundSchema; - /** @deprecated use `SetPreferencesPrefs$outboundSchema` instead. */ - export const outboundSchema = SetPreferencesPrefs$outboundSchema; - /** @deprecated use `SetPreferencesPrefs$Outbound` instead. */ - export type Outbound = SetPreferencesPrefs$Outbound; -} - export function setPreferencesPrefsToJSON( setPreferencesPrefs: SetPreferencesPrefs, ): string { @@ -269,49 +139,6 @@ export function setPreferencesPrefsToJSON( ); } -export function setPreferencesPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetPreferencesPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetPreferencesPrefs' from JSON`, - ); -} - -/** @internal */ -export const SetPreferencesRequest$inboundSchema: z.ZodType< - SetPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - prefs: z.lazy(() => SetPreferencesPrefs$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetPreferencesRequest$Outbound = { accepts: string; @@ -361,19 +188,6 @@ export const SetPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetPreferencesRequest$ { - /** @deprecated use `SetPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = SetPreferencesRequest$inboundSchema; - /** @deprecated use `SetPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = SetPreferencesRequest$outboundSchema; - /** @deprecated use `SetPreferencesRequest$Outbound` instead. */ - export type Outbound = SetPreferencesRequest$Outbound; -} - export function setPreferencesRequestToJSON( setPreferencesRequest: SetPreferencesRequest, ): string { @@ -382,16 +196,6 @@ export function setPreferencesRequestToJSON( ); } -export function setPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const SetPreferencesResponse$inboundSchema: z.ZodType< SetPreferencesResponse, @@ -409,53 +213,6 @@ export const SetPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetPreferencesResponse$outboundSchema: z.ZodType< - SetPreferencesResponse$Outbound, - z.ZodTypeDef, - SetPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetPreferencesResponse$ { - /** @deprecated use `SetPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = SetPreferencesResponse$inboundSchema; - /** @deprecated use `SetPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = SetPreferencesResponse$outboundSchema; - /** @deprecated use `SetPreferencesResponse$Outbound` instead. */ - export type Outbound = SetPreferencesResponse$Outbound; -} - -export function setPreferencesResponseToJSON( - setPreferencesResponse: SetPreferencesResponse, -): string { - return JSON.stringify( - SetPreferencesResponse$outboundSchema.parse(setPreferencesResponse), - ); -} - export function setPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setrating.ts b/src/sdk/models/operations/setrating.ts index 52d83014..5999b3ee 100644 --- a/src/sdk/models/operations/setrating.ts +++ b/src/sdk/models/operations/setrating.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -134,152 +134,6 @@ export type SetRatingResponse = { rawResponse: Response; }; -/** @internal */ -export const SetRatingGlobals$inboundSchema: z.ZodType< - SetRatingGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetRatingGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetRatingGlobals$outboundSchema: z.ZodType< - SetRatingGlobals$Outbound, - z.ZodTypeDef, - SetRatingGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetRatingGlobals$ { - /** @deprecated use `SetRatingGlobals$inboundSchema` instead. */ - export const inboundSchema = SetRatingGlobals$inboundSchema; - /** @deprecated use `SetRatingGlobals$outboundSchema` instead. */ - export const outboundSchema = SetRatingGlobals$outboundSchema; - /** @deprecated use `SetRatingGlobals$Outbound` instead. */ - export type Outbound = SetRatingGlobals$Outbound; -} - -export function setRatingGlobalsToJSON( - setRatingGlobals: SetRatingGlobals, -): string { - return JSON.stringify( - SetRatingGlobals$outboundSchema.parse(setRatingGlobals), - ); -} - -export function setRatingGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetRatingGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetRatingGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetRatingRequest$inboundSchema: z.ZodType< - SetRatingRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - identifier: z.string(), - key: z.string(), - rating: z.number(), - ratedAt: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetRatingRequest$Outbound = { accepts: string; @@ -335,19 +189,6 @@ export const SetRatingRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetRatingRequest$ { - /** @deprecated use `SetRatingRequest$inboundSchema` instead. */ - export const inboundSchema = SetRatingRequest$inboundSchema; - /** @deprecated use `SetRatingRequest$outboundSchema` instead. */ - export const outboundSchema = SetRatingRequest$outboundSchema; - /** @deprecated use `SetRatingRequest$Outbound` instead. */ - export type Outbound = SetRatingRequest$Outbound; -} - export function setRatingRequestToJSON( setRatingRequest: SetRatingRequest, ): string { @@ -356,16 +197,6 @@ export function setRatingRequestToJSON( ); } -export function setRatingRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetRatingRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetRatingRequest' from JSON`, - ); -} - /** @internal */ export const SetRatingResponse$inboundSchema: z.ZodType< SetRatingResponse, @@ -383,53 +214,6 @@ export const SetRatingResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetRatingResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetRatingResponse$outboundSchema: z.ZodType< - SetRatingResponse$Outbound, - z.ZodTypeDef, - SetRatingResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetRatingResponse$ { - /** @deprecated use `SetRatingResponse$inboundSchema` instead. */ - export const inboundSchema = SetRatingResponse$inboundSchema; - /** @deprecated use `SetRatingResponse$outboundSchema` instead. */ - export const outboundSchema = SetRatingResponse$outboundSchema; - /** @deprecated use `SetRatingResponse$Outbound` instead. */ - export type Outbound = SetRatingResponse$Outbound; -} - -export function setRatingResponseToJSON( - setRatingResponse: SetRatingResponse, -): string { - return JSON.stringify( - SetRatingResponse$outboundSchema.parse(setRatingResponse), - ); -} - export function setRatingResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setsectionpreferences.ts b/src/sdk/models/operations/setsectionpreferences.ts index cac81dce..69f9d816 100644 --- a/src/sdk/models/operations/setsectionpreferences.ts +++ b/src/sdk/models/operations/setsectionpreferences.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -125,125 +125,6 @@ export type SetSectionPreferencesResponse = { rawResponse: Response; }; -/** @internal */ -export const SetSectionPreferencesGlobals$inboundSchema: z.ZodType< - SetSectionPreferencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetSectionPreferencesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetSectionPreferencesGlobals$outboundSchema: z.ZodType< - SetSectionPreferencesGlobals$Outbound, - z.ZodTypeDef, - SetSectionPreferencesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetSectionPreferencesGlobals$ { - /** @deprecated use `SetSectionPreferencesGlobals$inboundSchema` instead. */ - export const inboundSchema = SetSectionPreferencesGlobals$inboundSchema; - /** @deprecated use `SetSectionPreferencesGlobals$outboundSchema` instead. */ - export const outboundSchema = SetSectionPreferencesGlobals$outboundSchema; - /** @deprecated use `SetSectionPreferencesGlobals$Outbound` instead. */ - export type Outbound = SetSectionPreferencesGlobals$Outbound; -} - -export function setSectionPreferencesGlobalsToJSON( - setSectionPreferencesGlobals: SetSectionPreferencesGlobals, -): string { - return JSON.stringify( - SetSectionPreferencesGlobals$outboundSchema.parse( - setSectionPreferencesGlobals, - ), - ); -} - -export function setSectionPreferencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetSectionPreferencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetSectionPreferencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetSectionPreferencesPrefs$inboundSchema: z.ZodType< - SetSectionPreferencesPrefs, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type SetSectionPreferencesPrefs$Outbound = {}; @@ -254,19 +135,6 @@ export const SetSectionPreferencesPrefs$outboundSchema: z.ZodType< SetSectionPreferencesPrefs > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetSectionPreferencesPrefs$ { - /** @deprecated use `SetSectionPreferencesPrefs$inboundSchema` instead. */ - export const inboundSchema = SetSectionPreferencesPrefs$inboundSchema; - /** @deprecated use `SetSectionPreferencesPrefs$outboundSchema` instead. */ - export const outboundSchema = SetSectionPreferencesPrefs$outboundSchema; - /** @deprecated use `SetSectionPreferencesPrefs$Outbound` instead. */ - export type Outbound = SetSectionPreferencesPrefs$Outbound; -} - export function setSectionPreferencesPrefsToJSON( setSectionPreferencesPrefs: SetSectionPreferencesPrefs, ): string { @@ -275,50 +143,6 @@ export function setSectionPreferencesPrefsToJSON( ); } -export function setSectionPreferencesPrefsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetSectionPreferencesPrefs$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetSectionPreferencesPrefs' from JSON`, - ); -} - -/** @internal */ -export const SetSectionPreferencesRequest$inboundSchema: z.ZodType< - SetSectionPreferencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - prefs: z.lazy(() => SetSectionPreferencesPrefs$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetSectionPreferencesRequest$Outbound = { accepts: string; @@ -370,19 +194,6 @@ export const SetSectionPreferencesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetSectionPreferencesRequest$ { - /** @deprecated use `SetSectionPreferencesRequest$inboundSchema` instead. */ - export const inboundSchema = SetSectionPreferencesRequest$inboundSchema; - /** @deprecated use `SetSectionPreferencesRequest$outboundSchema` instead. */ - export const outboundSchema = SetSectionPreferencesRequest$outboundSchema; - /** @deprecated use `SetSectionPreferencesRequest$Outbound` instead. */ - export type Outbound = SetSectionPreferencesRequest$Outbound; -} - export function setSectionPreferencesRequestToJSON( setSectionPreferencesRequest: SetSectionPreferencesRequest, ): string { @@ -393,16 +204,6 @@ export function setSectionPreferencesRequestToJSON( ); } -export function setSectionPreferencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetSectionPreferencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetSectionPreferencesRequest' from JSON`, - ); -} - /** @internal */ export const SetSectionPreferencesResponse$inboundSchema: z.ZodType< SetSectionPreferencesResponse, @@ -420,55 +221,6 @@ export const SetSectionPreferencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetSectionPreferencesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetSectionPreferencesResponse$outboundSchema: z.ZodType< - SetSectionPreferencesResponse$Outbound, - z.ZodTypeDef, - SetSectionPreferencesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetSectionPreferencesResponse$ { - /** @deprecated use `SetSectionPreferencesResponse$inboundSchema` instead. */ - export const inboundSchema = SetSectionPreferencesResponse$inboundSchema; - /** @deprecated use `SetSectionPreferencesResponse$outboundSchema` instead. */ - export const outboundSchema = SetSectionPreferencesResponse$outboundSchema; - /** @deprecated use `SetSectionPreferencesResponse$Outbound` instead. */ - export type Outbound = SetSectionPreferencesResponse$Outbound; -} - -export function setSectionPreferencesResponseToJSON( - setSectionPreferencesResponse: SetSectionPreferencesResponse, -): string { - return JSON.stringify( - SetSectionPreferencesResponse$outboundSchema.parse( - setSectionPreferencesResponse, - ), - ); -} - export function setSectionPreferencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setstreamoffset.ts b/src/sdk/models/operations/setstreamoffset.ts index d1f2265e..1e186003 100644 --- a/src/sdk/models/operations/setstreamoffset.ts +++ b/src/sdk/models/operations/setstreamoffset.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,151 +130,6 @@ export type SetStreamOffsetResponse = { rawResponse: Response; }; -/** @internal */ -export const SetStreamOffsetGlobals$inboundSchema: z.ZodType< - SetStreamOffsetGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetStreamOffsetGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetStreamOffsetGlobals$outboundSchema: z.ZodType< - SetStreamOffsetGlobals$Outbound, - z.ZodTypeDef, - SetStreamOffsetGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamOffsetGlobals$ { - /** @deprecated use `SetStreamOffsetGlobals$inboundSchema` instead. */ - export const inboundSchema = SetStreamOffsetGlobals$inboundSchema; - /** @deprecated use `SetStreamOffsetGlobals$outboundSchema` instead. */ - export const outboundSchema = SetStreamOffsetGlobals$outboundSchema; - /** @deprecated use `SetStreamOffsetGlobals$Outbound` instead. */ - export type Outbound = SetStreamOffsetGlobals$Outbound; -} - -export function setStreamOffsetGlobalsToJSON( - setStreamOffsetGlobals: SetStreamOffsetGlobals, -): string { - return JSON.stringify( - SetStreamOffsetGlobals$outboundSchema.parse(setStreamOffsetGlobals), - ); -} - -export function setStreamOffsetGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamOffsetGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamOffsetGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetStreamOffsetRequest$inboundSchema: z.ZodType< - SetStreamOffsetRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - streamId: z.number().int(), - ext: z.string(), - offset: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetStreamOffsetRequest$Outbound = { accepts: string; @@ -328,19 +183,6 @@ export const SetStreamOffsetRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamOffsetRequest$ { - /** @deprecated use `SetStreamOffsetRequest$inboundSchema` instead. */ - export const inboundSchema = SetStreamOffsetRequest$inboundSchema; - /** @deprecated use `SetStreamOffsetRequest$outboundSchema` instead. */ - export const outboundSchema = SetStreamOffsetRequest$outboundSchema; - /** @deprecated use `SetStreamOffsetRequest$Outbound` instead. */ - export type Outbound = SetStreamOffsetRequest$Outbound; -} - export function setStreamOffsetRequestToJSON( setStreamOffsetRequest: SetStreamOffsetRequest, ): string { @@ -349,16 +191,6 @@ export function setStreamOffsetRequestToJSON( ); } -export function setStreamOffsetRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamOffsetRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamOffsetRequest' from JSON`, - ); -} - /** @internal */ export const SetStreamOffsetResponse$inboundSchema: z.ZodType< SetStreamOffsetResponse, @@ -376,53 +208,6 @@ export const SetStreamOffsetResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetStreamOffsetResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetStreamOffsetResponse$outboundSchema: z.ZodType< - SetStreamOffsetResponse$Outbound, - z.ZodTypeDef, - SetStreamOffsetResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamOffsetResponse$ { - /** @deprecated use `SetStreamOffsetResponse$inboundSchema` instead. */ - export const inboundSchema = SetStreamOffsetResponse$inboundSchema; - /** @deprecated use `SetStreamOffsetResponse$outboundSchema` instead. */ - export const outboundSchema = SetStreamOffsetResponse$outboundSchema; - /** @deprecated use `SetStreamOffsetResponse$Outbound` instead. */ - export type Outbound = SetStreamOffsetResponse$Outbound; -} - -export function setStreamOffsetResponseToJSON( - setStreamOffsetResponse: SetStreamOffsetResponse, -): string { - return JSON.stringify( - SetStreamOffsetResponse$outboundSchema.parse(setStreamOffsetResponse), - ); -} - export function setStreamOffsetResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setstreamselection.ts b/src/sdk/models/operations/setstreamselection.ts index 2702600a..adcae351 100644 --- a/src/sdk/models/operations/setstreamselection.ts +++ b/src/sdk/models/operations/setstreamselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -134,152 +134,6 @@ export type SetStreamSelectionResponse = { rawResponse: Response; }; -/** @internal */ -export const SetStreamSelectionGlobals$inboundSchema: z.ZodType< - SetStreamSelectionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SetStreamSelectionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SetStreamSelectionGlobals$outboundSchema: z.ZodType< - SetStreamSelectionGlobals$Outbound, - z.ZodTypeDef, - SetStreamSelectionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamSelectionGlobals$ { - /** @deprecated use `SetStreamSelectionGlobals$inboundSchema` instead. */ - export const inboundSchema = SetStreamSelectionGlobals$inboundSchema; - /** @deprecated use `SetStreamSelectionGlobals$outboundSchema` instead. */ - export const outboundSchema = SetStreamSelectionGlobals$outboundSchema; - /** @deprecated use `SetStreamSelectionGlobals$Outbound` instead. */ - export type Outbound = SetStreamSelectionGlobals$Outbound; -} - -export function setStreamSelectionGlobalsToJSON( - setStreamSelectionGlobals: SetStreamSelectionGlobals, -): string { - return JSON.stringify( - SetStreamSelectionGlobals$outboundSchema.parse(setStreamSelectionGlobals), - ); -} - -export function setStreamSelectionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamSelectionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamSelectionGlobals' from JSON`, - ); -} - -/** @internal */ -export const SetStreamSelectionRequest$inboundSchema: z.ZodType< - SetStreamSelectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - partId: z.number().int(), - audioStreamID: z.number().int().optional(), - subtitleStreamID: z.number().int().optional(), - allParts: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SetStreamSelectionRequest$Outbound = { accepts: string; @@ -335,19 +189,6 @@ export const SetStreamSelectionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamSelectionRequest$ { - /** @deprecated use `SetStreamSelectionRequest$inboundSchema` instead. */ - export const inboundSchema = SetStreamSelectionRequest$inboundSchema; - /** @deprecated use `SetStreamSelectionRequest$outboundSchema` instead. */ - export const outboundSchema = SetStreamSelectionRequest$outboundSchema; - /** @deprecated use `SetStreamSelectionRequest$Outbound` instead. */ - export type Outbound = SetStreamSelectionRequest$Outbound; -} - export function setStreamSelectionRequestToJSON( setStreamSelectionRequest: SetStreamSelectionRequest, ): string { @@ -356,16 +197,6 @@ export function setStreamSelectionRequestToJSON( ); } -export function setStreamSelectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SetStreamSelectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SetStreamSelectionRequest' from JSON`, - ); -} - /** @internal */ export const SetStreamSelectionResponse$inboundSchema: z.ZodType< SetStreamSelectionResponse, @@ -383,53 +214,6 @@ export const SetStreamSelectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SetStreamSelectionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SetStreamSelectionResponse$outboundSchema: z.ZodType< - SetStreamSelectionResponse$Outbound, - z.ZodTypeDef, - SetStreamSelectionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetStreamSelectionResponse$ { - /** @deprecated use `SetStreamSelectionResponse$inboundSchema` instead. */ - export const inboundSchema = SetStreamSelectionResponse$inboundSchema; - /** @deprecated use `SetStreamSelectionResponse$outboundSchema` instead. */ - export const outboundSchema = SetStreamSelectionResponse$outboundSchema; - /** @deprecated use `SetStreamSelectionResponse$Outbound` instead. */ - export type Outbound = SetStreamSelectionResponse$Outbound; -} - -export function setStreamSelectionResponseToJSON( - setStreamSelectionResponse: SetStreamSelectionResponse, -): string { - return JSON.stringify( - SetStreamSelectionResponse$outboundSchema.parse(setStreamSelectionResponse), - ); -} - export function setStreamSelectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/shuffle.ts b/src/sdk/models/operations/shuffle.ts index 2259b679..1c3a0ead 100644 --- a/src/sdk/models/operations/shuffle.ts +++ b/src/sdk/models/operations/shuffle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,145 +128,6 @@ export type ShuffleResponse = { | undefined; }; -/** @internal */ -export const ShuffleGlobals$inboundSchema: z.ZodType< - ShuffleGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type ShuffleGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const ShuffleGlobals$outboundSchema: z.ZodType< - ShuffleGlobals$Outbound, - z.ZodTypeDef, - ShuffleGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ShuffleGlobals$ { - /** @deprecated use `ShuffleGlobals$inboundSchema` instead. */ - export const inboundSchema = ShuffleGlobals$inboundSchema; - /** @deprecated use `ShuffleGlobals$outboundSchema` instead. */ - export const outboundSchema = ShuffleGlobals$outboundSchema; - /** @deprecated use `ShuffleGlobals$Outbound` instead. */ - export type Outbound = ShuffleGlobals$Outbound; -} - -export function shuffleGlobalsToJSON(shuffleGlobals: ShuffleGlobals): string { - return JSON.stringify(ShuffleGlobals$outboundSchema.parse(shuffleGlobals)); -} - -export function shuffleGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ShuffleGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ShuffleGlobals' from JSON`, - ); -} - -/** @internal */ -export const ShuffleRequest$inboundSchema: z.ZodType< - ShuffleRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type ShuffleRequest$Outbound = { accepts: string; @@ -316,33 +177,10 @@ export const ShuffleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ShuffleRequest$ { - /** @deprecated use `ShuffleRequest$inboundSchema` instead. */ - export const inboundSchema = ShuffleRequest$inboundSchema; - /** @deprecated use `ShuffleRequest$outboundSchema` instead. */ - export const outboundSchema = ShuffleRequest$outboundSchema; - /** @deprecated use `ShuffleRequest$Outbound` instead. */ - export type Outbound = ShuffleRequest$Outbound; -} - export function shuffleRequestToJSON(shuffleRequest: ShuffleRequest): string { return JSON.stringify(ShuffleRequest$outboundSchema.parse(shuffleRequest)); } -export function shuffleRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ShuffleRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ShuffleRequest' from JSON`, - ); -} - /** @internal */ export const ShuffleResponse$inboundSchema: z.ZodType< ShuffleResponse, @@ -363,57 +201,6 @@ export const ShuffleResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ShuffleResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const ShuffleResponse$outboundSchema: z.ZodType< - ShuffleResponse$Outbound, - z.ZodTypeDef, - ShuffleResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ShuffleResponse$ { - /** @deprecated use `ShuffleResponse$inboundSchema` instead. */ - export const inboundSchema = ShuffleResponse$inboundSchema; - /** @deprecated use `ShuffleResponse$outboundSchema` instead. */ - export const outboundSchema = ShuffleResponse$outboundSchema; - /** @deprecated use `ShuffleResponse$Outbound` instead. */ - export type Outbound = ShuffleResponse$Outbound; -} - -export function shuffleResponseToJSON( - shuffleResponse: ShuffleResponse, -): string { - return JSON.stringify(ShuffleResponse$outboundSchema.parse(shuffleResponse)); -} - export function shuffleResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/splititem.ts b/src/sdk/models/operations/splititem.ts index c121f14e..bfa93767 100644 --- a/src/sdk/models/operations/splititem.ts +++ b/src/sdk/models/operations/splititem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -119,149 +119,6 @@ export type SplitItemResponse = { rawResponse: Response; }; -/** @internal */ -export const SplitItemGlobals$inboundSchema: z.ZodType< - SplitItemGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type SplitItemGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const SplitItemGlobals$outboundSchema: z.ZodType< - SplitItemGlobals$Outbound, - z.ZodTypeDef, - SplitItemGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SplitItemGlobals$ { - /** @deprecated use `SplitItemGlobals$inboundSchema` instead. */ - export const inboundSchema = SplitItemGlobals$inboundSchema; - /** @deprecated use `SplitItemGlobals$outboundSchema` instead. */ - export const outboundSchema = SplitItemGlobals$outboundSchema; - /** @deprecated use `SplitItemGlobals$Outbound` instead. */ - export type Outbound = SplitItemGlobals$Outbound; -} - -export function splitItemGlobalsToJSON( - splitItemGlobals: SplitItemGlobals, -): string { - return JSON.stringify( - SplitItemGlobals$outboundSchema.parse(splitItemGlobals), - ); -} - -export function splitItemGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SplitItemGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SplitItemGlobals' from JSON`, - ); -} - -/** @internal */ -export const SplitItemRequest$inboundSchema: z.ZodType< - SplitItemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type SplitItemRequest$Outbound = { accepts: string; @@ -311,19 +168,6 @@ export const SplitItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SplitItemRequest$ { - /** @deprecated use `SplitItemRequest$inboundSchema` instead. */ - export const inboundSchema = SplitItemRequest$inboundSchema; - /** @deprecated use `SplitItemRequest$outboundSchema` instead. */ - export const outboundSchema = SplitItemRequest$outboundSchema; - /** @deprecated use `SplitItemRequest$Outbound` instead. */ - export type Outbound = SplitItemRequest$Outbound; -} - export function splitItemRequestToJSON( splitItemRequest: SplitItemRequest, ): string { @@ -332,16 +176,6 @@ export function splitItemRequestToJSON( ); } -export function splitItemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SplitItemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SplitItemRequest' from JSON`, - ); -} - /** @internal */ export const SplitItemResponse$inboundSchema: z.ZodType< SplitItemResponse, @@ -359,53 +193,6 @@ export const SplitItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SplitItemResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const SplitItemResponse$outboundSchema: z.ZodType< - SplitItemResponse$Outbound, - z.ZodTypeDef, - SplitItemResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SplitItemResponse$ { - /** @deprecated use `SplitItemResponse$inboundSchema` instead. */ - export const inboundSchema = SplitItemResponse$inboundSchema; - /** @deprecated use `SplitItemResponse$outboundSchema` instead. */ - export const outboundSchema = SplitItemResponse$outboundSchema; - /** @deprecated use `SplitItemResponse$Outbound` instead. */ - export type Outbound = SplitItemResponse$Outbound; -} - -export function splitItemResponseToJSON( - splitItemResponse: SplitItemResponse, -): string { - return JSON.stringify( - SplitItemResponse$outboundSchema.parse(splitItemResponse), - ); -} - export function splitItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/startanalysis.ts b/src/sdk/models/operations/startanalysis.ts index adfa0c7c..28b7802f 100644 --- a/src/sdk/models/operations/startanalysis.ts +++ b/src/sdk/models/operations/startanalysis.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type StartAnalysisResponse = { rawResponse: Response; }; -/** @internal */ -export const StartAnalysisGlobals$inboundSchema: z.ZodType< - StartAnalysisGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StartAnalysisGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StartAnalysisGlobals$outboundSchema: z.ZodType< - StartAnalysisGlobals$Outbound, - z.ZodTypeDef, - StartAnalysisGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartAnalysisGlobals$ { - /** @deprecated use `StartAnalysisGlobals$inboundSchema` instead. */ - export const inboundSchema = StartAnalysisGlobals$inboundSchema; - /** @deprecated use `StartAnalysisGlobals$outboundSchema` instead. */ - export const outboundSchema = StartAnalysisGlobals$outboundSchema; - /** @deprecated use `StartAnalysisGlobals$Outbound` instead. */ - export type Outbound = StartAnalysisGlobals$Outbound; -} - -export function startAnalysisGlobalsToJSON( - startAnalysisGlobals: StartAnalysisGlobals, -): string { - return JSON.stringify( - StartAnalysisGlobals$outboundSchema.parse(startAnalysisGlobals), - ); -} - -export function startAnalysisGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartAnalysisGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartAnalysisGlobals' from JSON`, - ); -} - -/** @internal */ -export const StartAnalysisRequest$inboundSchema: z.ZodType< - StartAnalysisRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type StartAnalysisRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const StartAnalysisRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartAnalysisRequest$ { - /** @deprecated use `StartAnalysisRequest$inboundSchema` instead. */ - export const inboundSchema = StartAnalysisRequest$inboundSchema; - /** @deprecated use `StartAnalysisRequest$outboundSchema` instead. */ - export const outboundSchema = StartAnalysisRequest$outboundSchema; - /** @deprecated use `StartAnalysisRequest$Outbound` instead. */ - export type Outbound = StartAnalysisRequest$Outbound; -} - export function startAnalysisRequestToJSON( startAnalysisRequest: StartAnalysisRequest, ): string { @@ -335,16 +179,6 @@ export function startAnalysisRequestToJSON( ); } -export function startAnalysisRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartAnalysisRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartAnalysisRequest' from JSON`, - ); -} - /** @internal */ export const StartAnalysisResponse$inboundSchema: z.ZodType< StartAnalysisResponse, @@ -362,53 +196,6 @@ export const StartAnalysisResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StartAnalysisResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StartAnalysisResponse$outboundSchema: z.ZodType< - StartAnalysisResponse$Outbound, - z.ZodTypeDef, - StartAnalysisResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartAnalysisResponse$ { - /** @deprecated use `StartAnalysisResponse$inboundSchema` instead. */ - export const inboundSchema = StartAnalysisResponse$inboundSchema; - /** @deprecated use `StartAnalysisResponse$outboundSchema` instead. */ - export const outboundSchema = StartAnalysisResponse$outboundSchema; - /** @deprecated use `StartAnalysisResponse$Outbound` instead. */ - export type Outbound = StartAnalysisResponse$Outbound; -} - -export function startAnalysisResponseToJSON( - startAnalysisResponse: StartAnalysisResponse, -): string { - return JSON.stringify( - StartAnalysisResponse$outboundSchema.parse(startAnalysisResponse), - ); -} - export function startAnalysisResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/startbifgeneration.ts b/src/sdk/models/operations/startbifgeneration.ts index f2f74704..c762201b 100644 --- a/src/sdk/models/operations/startbifgeneration.ts +++ b/src/sdk/models/operations/startbifgeneration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -120,150 +120,6 @@ export type StartBifGenerationResponse = { rawResponse: Response; }; -/** @internal */ -export const StartBifGenerationGlobals$inboundSchema: z.ZodType< - StartBifGenerationGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StartBifGenerationGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StartBifGenerationGlobals$outboundSchema: z.ZodType< - StartBifGenerationGlobals$Outbound, - z.ZodTypeDef, - StartBifGenerationGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartBifGenerationGlobals$ { - /** @deprecated use `StartBifGenerationGlobals$inboundSchema` instead. */ - export const inboundSchema = StartBifGenerationGlobals$inboundSchema; - /** @deprecated use `StartBifGenerationGlobals$outboundSchema` instead. */ - export const outboundSchema = StartBifGenerationGlobals$outboundSchema; - /** @deprecated use `StartBifGenerationGlobals$Outbound` instead. */ - export type Outbound = StartBifGenerationGlobals$Outbound; -} - -export function startBifGenerationGlobalsToJSON( - startBifGenerationGlobals: StartBifGenerationGlobals, -): string { - return JSON.stringify( - StartBifGenerationGlobals$outboundSchema.parse(startBifGenerationGlobals), - ); -} - -export function startBifGenerationGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartBifGenerationGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartBifGenerationGlobals' from JSON`, - ); -} - -/** @internal */ -export const StartBifGenerationRequest$inboundSchema: z.ZodType< - StartBifGenerationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - force: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type StartBifGenerationRequest$Outbound = { accepts: string; @@ -315,19 +171,6 @@ export const StartBifGenerationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartBifGenerationRequest$ { - /** @deprecated use `StartBifGenerationRequest$inboundSchema` instead. */ - export const inboundSchema = StartBifGenerationRequest$inboundSchema; - /** @deprecated use `StartBifGenerationRequest$outboundSchema` instead. */ - export const outboundSchema = StartBifGenerationRequest$outboundSchema; - /** @deprecated use `StartBifGenerationRequest$Outbound` instead. */ - export type Outbound = StartBifGenerationRequest$Outbound; -} - export function startBifGenerationRequestToJSON( startBifGenerationRequest: StartBifGenerationRequest, ): string { @@ -336,16 +179,6 @@ export function startBifGenerationRequestToJSON( ); } -export function startBifGenerationRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartBifGenerationRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartBifGenerationRequest' from JSON`, - ); -} - /** @internal */ export const StartBifGenerationResponse$inboundSchema: z.ZodType< StartBifGenerationResponse, @@ -363,53 +196,6 @@ export const StartBifGenerationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StartBifGenerationResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StartBifGenerationResponse$outboundSchema: z.ZodType< - StartBifGenerationResponse$Outbound, - z.ZodTypeDef, - StartBifGenerationResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartBifGenerationResponse$ { - /** @deprecated use `StartBifGenerationResponse$inboundSchema` instead. */ - export const inboundSchema = StartBifGenerationResponse$inboundSchema; - /** @deprecated use `StartBifGenerationResponse$outboundSchema` instead. */ - export const outboundSchema = StartBifGenerationResponse$outboundSchema; - /** @deprecated use `StartBifGenerationResponse$Outbound` instead. */ - export type Outbound = StartBifGenerationResponse$Outbound; -} - -export function startBifGenerationResponseToJSON( - startBifGenerationResponse: StartBifGenerationResponse, -): string { - return JSON.stringify( - StartBifGenerationResponse$outboundSchema.parse(startBifGenerationResponse), - ); -} - export function startBifGenerationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/starttask.ts b/src/sdk/models/operations/starttask.ts index 82698d85..1fd01b1d 100644 --- a/src/sdk/models/operations/starttask.ts +++ b/src/sdk/models/operations/starttask.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -150,169 +150,10 @@ export type StartTaskResponse = { rawResponse: Response; }; -/** @internal */ -export const StartTaskGlobals$inboundSchema: z.ZodType< - StartTaskGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StartTaskGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StartTaskGlobals$outboundSchema: z.ZodType< - StartTaskGlobals$Outbound, - z.ZodTypeDef, - StartTaskGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTaskGlobals$ { - /** @deprecated use `StartTaskGlobals$inboundSchema` instead. */ - export const inboundSchema = StartTaskGlobals$inboundSchema; - /** @deprecated use `StartTaskGlobals$outboundSchema` instead. */ - export const outboundSchema = StartTaskGlobals$outboundSchema; - /** @deprecated use `StartTaskGlobals$Outbound` instead. */ - export type Outbound = StartTaskGlobals$Outbound; -} - -export function startTaskGlobalsToJSON( - startTaskGlobals: StartTaskGlobals, -): string { - return JSON.stringify( - StartTaskGlobals$outboundSchema.parse(startTaskGlobals), - ); -} - -export function startTaskGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTaskGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTaskGlobals' from JSON`, - ); -} - -/** @internal */ -export const StartTaskTask$inboundSchema: z.ZodNativeEnum< - typeof StartTaskTask -> = z.nativeEnum(StartTaskTask); - /** @internal */ export const StartTaskTask$outboundSchema: z.ZodNativeEnum< typeof StartTaskTask -> = StartTaskTask$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTaskTask$ { - /** @deprecated use `StartTaskTask$inboundSchema` instead. */ - export const inboundSchema = StartTaskTask$inboundSchema; - /** @deprecated use `StartTaskTask$outboundSchema` instead. */ - export const outboundSchema = StartTaskTask$outboundSchema; -} - -/** @internal */ -export const StartTaskRequest$inboundSchema: z.ZodType< - StartTaskRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - task: StartTaskTask$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(StartTaskTask); /** @internal */ export type StartTaskRequest$Outbound = { @@ -363,19 +204,6 @@ export const StartTaskRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTaskRequest$ { - /** @deprecated use `StartTaskRequest$inboundSchema` instead. */ - export const inboundSchema = StartTaskRequest$inboundSchema; - /** @deprecated use `StartTaskRequest$outboundSchema` instead. */ - export const outboundSchema = StartTaskRequest$outboundSchema; - /** @deprecated use `StartTaskRequest$Outbound` instead. */ - export type Outbound = StartTaskRequest$Outbound; -} - export function startTaskRequestToJSON( startTaskRequest: StartTaskRequest, ): string { @@ -384,16 +212,6 @@ export function startTaskRequestToJSON( ); } -export function startTaskRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTaskRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTaskRequest' from JSON`, - ); -} - /** @internal */ export const StartTaskResponse$inboundSchema: z.ZodType< StartTaskResponse, @@ -411,53 +229,6 @@ export const StartTaskResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StartTaskResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StartTaskResponse$outboundSchema: z.ZodType< - StartTaskResponse$Outbound, - z.ZodTypeDef, - StartTaskResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTaskResponse$ { - /** @deprecated use `StartTaskResponse$inboundSchema` instead. */ - export const inboundSchema = StartTaskResponse$inboundSchema; - /** @deprecated use `StartTaskResponse$outboundSchema` instead. */ - export const outboundSchema = StartTaskResponse$outboundSchema; - /** @deprecated use `StartTaskResponse$Outbound` instead. */ - export type Outbound = StartTaskResponse$Outbound; -} - -export function startTaskResponseToJSON( - startTaskResponse: StartTaskResponse, -): string { - return JSON.stringify( - StartTaskResponse$outboundSchema.parse(startTaskResponse), - ); -} - export function startTaskResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/starttasks.ts b/src/sdk/models/operations/starttasks.ts index cb8c5947..0887c947 100644 --- a/src/sdk/models/operations/starttasks.ts +++ b/src/sdk/models/operations/starttasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const StartTasksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StartTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StartTasksResponse$outboundSchema: z.ZodType< - StartTasksResponse$Outbound, - z.ZodTypeDef, - StartTasksResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTasksResponse$ { - /** @deprecated use `StartTasksResponse$inboundSchema` instead. */ - export const inboundSchema = StartTasksResponse$inboundSchema; - /** @deprecated use `StartTasksResponse$outboundSchema` instead. */ - export const outboundSchema = StartTasksResponse$outboundSchema; - /** @deprecated use `StartTasksResponse$Outbound` instead. */ - export type Outbound = StartTasksResponse$Outbound; -} - -export function startTasksResponseToJSON( - startTasksResponse: StartTasksResponse, -): string { - return JSON.stringify( - StartTasksResponse$outboundSchema.parse(startTasksResponse), - ); -} - export function startTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/starttranscodesession.ts b/src/sdk/models/operations/starttranscodesession.ts index cbaaa294..867fe4e5 100644 --- a/src/sdk/models/operations/starttranscodesession.ts +++ b/src/sdk/models/operations/starttranscodesession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -304,265 +304,23 @@ export type StartTranscodeSessionResponse = { }; /** @internal */ -export const StartTranscodeSessionGlobals$inboundSchema: z.ZodType< - StartTranscodeSessionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StartTranscodeSessionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StartTranscodeSessionGlobals$outboundSchema: z.ZodType< - StartTranscodeSessionGlobals$Outbound, - z.ZodTypeDef, - StartTranscodeSessionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionGlobals$ { - /** @deprecated use `StartTranscodeSessionGlobals$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionGlobals$inboundSchema; - /** @deprecated use `StartTranscodeSessionGlobals$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionGlobals$outboundSchema; - /** @deprecated use `StartTranscodeSessionGlobals$Outbound` instead. */ - export type Outbound = StartTranscodeSessionGlobals$Outbound; -} - -export function startTranscodeSessionGlobalsToJSON( - startTranscodeSessionGlobals: StartTranscodeSessionGlobals, -): string { - return JSON.stringify( - StartTranscodeSessionGlobals$outboundSchema.parse( - startTranscodeSessionGlobals, - ), - ); -} - -export function startTranscodeSessionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTranscodeSessionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTranscodeSessionGlobals' from JSON`, - ); -} - -/** @internal */ -export const Extension$inboundSchema: z.ZodNativeEnum = z +export const Extension$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Extension); -/** @internal */ -export const Extension$outboundSchema: z.ZodNativeEnum = - Extension$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Extension$ { - /** @deprecated use `Extension$inboundSchema` instead. */ - export const inboundSchema = Extension$inboundSchema; - /** @deprecated use `Extension$outboundSchema` instead. */ - export const outboundSchema = Extension$outboundSchema; -} - -/** @internal */ -export const StartTranscodeSessionLocation$inboundSchema: z.ZodNativeEnum< - typeof StartTranscodeSessionLocation -> = z.nativeEnum(StartTranscodeSessionLocation); - /** @internal */ export const StartTranscodeSessionLocation$outboundSchema: z.ZodNativeEnum< typeof StartTranscodeSessionLocation -> = StartTranscodeSessionLocation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionLocation$ { - /** @deprecated use `StartTranscodeSessionLocation$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionLocation$inboundSchema; - /** @deprecated use `StartTranscodeSessionLocation$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionLocation$outboundSchema; -} - -/** @internal */ -export const StartTranscodeSessionProtocol$inboundSchema: z.ZodNativeEnum< - typeof StartTranscodeSessionProtocol -> = z.nativeEnum(StartTranscodeSessionProtocol); +> = z.nativeEnum(StartTranscodeSessionLocation); /** @internal */ export const StartTranscodeSessionProtocol$outboundSchema: z.ZodNativeEnum< typeof StartTranscodeSessionProtocol -> = StartTranscodeSessionProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionProtocol$ { - /** @deprecated use `StartTranscodeSessionProtocol$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionProtocol$inboundSchema; - /** @deprecated use `StartTranscodeSessionProtocol$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionProtocol$outboundSchema; -} - -/** @internal */ -export const StartTranscodeSessionSubtitles$inboundSchema: z.ZodNativeEnum< - typeof StartTranscodeSessionSubtitles -> = z.nativeEnum(StartTranscodeSessionSubtitles); +> = z.nativeEnum(StartTranscodeSessionProtocol); /** @internal */ export const StartTranscodeSessionSubtitles$outboundSchema: z.ZodNativeEnum< typeof StartTranscodeSessionSubtitles -> = StartTranscodeSessionSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionSubtitles$ { - /** @deprecated use `StartTranscodeSessionSubtitles$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionSubtitles$inboundSchema; - /** @deprecated use `StartTranscodeSessionSubtitles$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionSubtitles$outboundSchema; -} - -/** @internal */ -export const StartTranscodeSessionRequest$inboundSchema: z.ZodType< - StartTranscodeSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - transcodeType: shared.TranscodeType$inboundSchema, - transcodeSessionId: z.string().optional(), - extension: Extension$inboundSchema, - advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: shared.BoolInt$inboundSchema.optional(), - autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), - directPlay: shared.BoolInt$inboundSchema.optional(), - directStream: shared.BoolInt$inboundSchema.optional(), - directStreamAudio: shared.BoolInt$inboundSchema.optional(), - disableResolutionRotation: shared.BoolInt$inboundSchema.optional(), - hasMDE: shared.BoolInt$inboundSchema.optional(), - location: StartTranscodeSessionLocation$inboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - offset: z.number().optional(), - partIndex: z.number().int().optional(), - path: z.string().optional(), - peakBitrate: z.number().int().optional(), - photoResolution: z.string().optional(), - protocol: StartTranscodeSessionProtocol$inboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), - subtitles: StartTranscodeSessionSubtitles$inboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), - "X-Plex-Client-Profile-Extra": z.string().optional(), - "X-Plex-Client-Profile-Name": z.string().optional(), - "X-Plex-Session-Identifier": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", - "X-Plex-Client-Profile-Name": "xPlexClientProfileName", - "X-Plex-Session-Identifier": "xPlexSessionIdentifier", - }); -}); +> = z.nativeEnum(StartTranscodeSessionSubtitles); /** @internal */ export type StartTranscodeSessionRequest$Outbound = { @@ -678,19 +436,6 @@ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionRequest$ { - /** @deprecated use `StartTranscodeSessionRequest$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionRequest$inboundSchema; - /** @deprecated use `StartTranscodeSessionRequest$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionRequest$outboundSchema; - /** @deprecated use `StartTranscodeSessionRequest$Outbound` instead. */ - export type Outbound = StartTranscodeSessionRequest$Outbound; -} - export function startTranscodeSessionRequestToJSON( startTranscodeSessionRequest: StartTranscodeSessionRequest, ): string { @@ -701,16 +446,6 @@ export function startTranscodeSessionRequestToJSON( ); } -export function startTranscodeSessionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StartTranscodeSessionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StartTranscodeSessionRequest' from JSON`, - ); -} - /** @internal */ export const StartTranscodeSessionResponse$inboundSchema: z.ZodType< StartTranscodeSessionResponse, @@ -730,58 +465,6 @@ export const StartTranscodeSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StartTranscodeSessionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "response-stream"?: ReadableStream | undefined; -}; - -/** @internal */ -export const StartTranscodeSessionResponse$outboundSchema: z.ZodType< - StartTranscodeSessionResponse$Outbound, - z.ZodTypeDef, - StartTranscodeSessionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseStream: z.instanceof(ReadableStream).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - responseStream: "response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTranscodeSessionResponse$ { - /** @deprecated use `StartTranscodeSessionResponse$inboundSchema` instead. */ - export const inboundSchema = StartTranscodeSessionResponse$inboundSchema; - /** @deprecated use `StartTranscodeSessionResponse$outboundSchema` instead. */ - export const outboundSchema = StartTranscodeSessionResponse$outboundSchema; - /** @deprecated use `StartTranscodeSessionResponse$Outbound` instead. */ - export type Outbound = StartTranscodeSessionResponse$Outbound; -} - -export function startTranscodeSessionResponseToJSON( - startTranscodeSessionResponse: StartTranscodeSessionResponse, -): string { - return JSON.stringify( - StartTranscodeSessionResponse$outboundSchema.parse( - startTranscodeSessionResponse, - ), - ); -} - export function startTranscodeSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/stopallrefreshes.ts b/src/sdk/models/operations/stopallrefreshes.ts index 29ac7363..a73bbdda 100644 --- a/src/sdk/models/operations/stopallrefreshes.ts +++ b/src/sdk/models/operations/stopallrefreshes.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -25,9 +25,7 @@ export type StopAllRefreshesResponse = { /** * OK */ - requestHandlerSlashGetResponses200?: - | shared.RequestHandlerSlashGetResponses200 - | undefined; + librarySections?: shared.LibrarySections | undefined; }; /** @internal */ @@ -39,72 +37,16 @@ export const StopAllRefreshesResponse$inboundSchema: z.ZodType< ContentType: z.string(), StatusCode: z.number().int(), RawResponse: z.instanceof(Response), - "requestHandler_slash-get-responses-200": shared - .RequestHandlerSlashGetResponses200$inboundSchema.optional(), + LibrarySections: shared.LibrarySections$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "ContentType": "contentType", "StatusCode": "statusCode", "RawResponse": "rawResponse", - "requestHandler_slash-get-responses-200": - "requestHandlerSlashGetResponses200", + "LibrarySections": "librarySections", }); }); -/** @internal */ -export type StopAllRefreshesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "requestHandler_slash-get-responses-200"?: - | shared.RequestHandlerSlashGetResponses200$Outbound - | undefined; -}; - -/** @internal */ -export const StopAllRefreshesResponse$outboundSchema: z.ZodType< - StopAllRefreshesResponse$Outbound, - z.ZodTypeDef, - StopAllRefreshesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - requestHandlerSlashGetResponses200: shared - .RequestHandlerSlashGetResponses200$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - requestHandlerSlashGetResponses200: - "requestHandler_slash-get-responses-200", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopAllRefreshesResponse$ { - /** @deprecated use `StopAllRefreshesResponse$inboundSchema` instead. */ - export const inboundSchema = StopAllRefreshesResponse$inboundSchema; - /** @deprecated use `StopAllRefreshesResponse$outboundSchema` instead. */ - export const outboundSchema = StopAllRefreshesResponse$outboundSchema; - /** @deprecated use `StopAllRefreshesResponse$Outbound` instead. */ - export type Outbound = StopAllRefreshesResponse$Outbound; -} - -export function stopAllRefreshesResponseToJSON( - stopAllRefreshesResponse: StopAllRefreshesResponse, -): string { - return JSON.stringify( - StopAllRefreshesResponse$outboundSchema.parse(stopAllRefreshesResponse), - ); -} - export function stopAllRefreshesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/stopdvrreload.ts b/src/sdk/models/operations/stopdvrreload.ts index ab51e919..6babd479 100644 --- a/src/sdk/models/operations/stopdvrreload.ts +++ b/src/sdk/models/operations/stopdvrreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type StopDVRReloadResponse = { rawResponse: Response; }; -/** @internal */ -export const StopDVRReloadGlobals$inboundSchema: z.ZodType< - StopDVRReloadGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StopDVRReloadGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StopDVRReloadGlobals$outboundSchema: z.ZodType< - StopDVRReloadGlobals$Outbound, - z.ZodTypeDef, - StopDVRReloadGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopDVRReloadGlobals$ { - /** @deprecated use `StopDVRReloadGlobals$inboundSchema` instead. */ - export const inboundSchema = StopDVRReloadGlobals$inboundSchema; - /** @deprecated use `StopDVRReloadGlobals$outboundSchema` instead. */ - export const outboundSchema = StopDVRReloadGlobals$outboundSchema; - /** @deprecated use `StopDVRReloadGlobals$Outbound` instead. */ - export type Outbound = StopDVRReloadGlobals$Outbound; -} - -export function stopDVRReloadGlobalsToJSON( - stopDVRReloadGlobals: StopDVRReloadGlobals, -): string { - return JSON.stringify( - StopDVRReloadGlobals$outboundSchema.parse(stopDVRReloadGlobals), - ); -} - -export function stopDVRReloadGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopDVRReloadGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopDVRReloadGlobals' from JSON`, - ); -} - -/** @internal */ -export const StopDVRReloadRequest$inboundSchema: z.ZodType< - StopDVRReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type StopDVRReloadRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const StopDVRReloadRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopDVRReloadRequest$ { - /** @deprecated use `StopDVRReloadRequest$inboundSchema` instead. */ - export const inboundSchema = StopDVRReloadRequest$inboundSchema; - /** @deprecated use `StopDVRReloadRequest$outboundSchema` instead. */ - export const outboundSchema = StopDVRReloadRequest$outboundSchema; - /** @deprecated use `StopDVRReloadRequest$Outbound` instead. */ - export type Outbound = StopDVRReloadRequest$Outbound; -} - export function stopDVRReloadRequestToJSON( stopDVRReloadRequest: StopDVRReloadRequest, ): string { @@ -335,16 +179,6 @@ export function stopDVRReloadRequestToJSON( ); } -export function stopDVRReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopDVRReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopDVRReloadRequest' from JSON`, - ); -} - /** @internal */ export const StopDVRReloadResponse$inboundSchema: z.ZodType< StopDVRReloadResponse, @@ -362,53 +196,6 @@ export const StopDVRReloadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StopDVRReloadResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StopDVRReloadResponse$outboundSchema: z.ZodType< - StopDVRReloadResponse$Outbound, - z.ZodTypeDef, - StopDVRReloadResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopDVRReloadResponse$ { - /** @deprecated use `StopDVRReloadResponse$inboundSchema` instead. */ - export const inboundSchema = StopDVRReloadResponse$inboundSchema; - /** @deprecated use `StopDVRReloadResponse$outboundSchema` instead. */ - export const outboundSchema = StopDVRReloadResponse$outboundSchema; - /** @deprecated use `StopDVRReloadResponse$Outbound` instead. */ - export type Outbound = StopDVRReloadResponse$Outbound; -} - -export function stopDVRReloadResponseToJSON( - stopDVRReloadResponse: StopDVRReloadResponse, -): string { - return JSON.stringify( - StopDVRReloadResponse$outboundSchema.parse(stopDVRReloadResponse), - ); -} - export function stopDVRReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/stopscan.ts b/src/sdk/models/operations/stopscan.ts index ee82e4b9..79ab0188 100644 --- a/src/sdk/models/operations/stopscan.ts +++ b/src/sdk/models/operations/stopscan.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,147 +126,6 @@ export type StopScanResponse = { mediaContainerWithDevice?: shared.MediaContainerWithDevice | undefined; }; -/** @internal */ -export const StopScanGlobals$inboundSchema: z.ZodType< - StopScanGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StopScanGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StopScanGlobals$outboundSchema: z.ZodType< - StopScanGlobals$Outbound, - z.ZodTypeDef, - StopScanGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopScanGlobals$ { - /** @deprecated use `StopScanGlobals$inboundSchema` instead. */ - export const inboundSchema = StopScanGlobals$inboundSchema; - /** @deprecated use `StopScanGlobals$outboundSchema` instead. */ - export const outboundSchema = StopScanGlobals$outboundSchema; - /** @deprecated use `StopScanGlobals$Outbound` instead. */ - export type Outbound = StopScanGlobals$Outbound; -} - -export function stopScanGlobalsToJSON( - stopScanGlobals: StopScanGlobals, -): string { - return JSON.stringify(StopScanGlobals$outboundSchema.parse(stopScanGlobals)); -} - -export function stopScanGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopScanGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopScanGlobals' from JSON`, - ); -} - -/** @internal */ -export const StopScanRequest$inboundSchema: z.ZodType< - StopScanRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - deviceId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type StopScanRequest$Outbound = { accepts: string; @@ -316,35 +175,12 @@ export const StopScanRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopScanRequest$ { - /** @deprecated use `StopScanRequest$inboundSchema` instead. */ - export const inboundSchema = StopScanRequest$inboundSchema; - /** @deprecated use `StopScanRequest$outboundSchema` instead. */ - export const outboundSchema = StopScanRequest$outboundSchema; - /** @deprecated use `StopScanRequest$Outbound` instead. */ - export type Outbound = StopScanRequest$Outbound; -} - export function stopScanRequestToJSON( stopScanRequest: StopScanRequest, ): string { return JSON.stringify(StopScanRequest$outboundSchema.parse(stopScanRequest)); } -export function stopScanRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopScanRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopScanRequest' from JSON`, - ); -} - /** @internal */ export const StopScanResponse$inboundSchema: z.ZodType< StopScanResponse, @@ -365,59 +201,6 @@ export const StopScanResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StopScanResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithDevice?: - | shared.MediaContainerWithDevice$Outbound - | undefined; -}; - -/** @internal */ -export const StopScanResponse$outboundSchema: z.ZodType< - StopScanResponse$Outbound, - z.ZodTypeDef, - StopScanResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithDevice: shared.MediaContainerWithDevice$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithDevice: "MediaContainerWithDevice", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopScanResponse$ { - /** @deprecated use `StopScanResponse$inboundSchema` instead. */ - export const inboundSchema = StopScanResponse$inboundSchema; - /** @deprecated use `StopScanResponse$outboundSchema` instead. */ - export const outboundSchema = StopScanResponse$outboundSchema; - /** @deprecated use `StopScanResponse$Outbound` instead. */ - export type Outbound = StopScanResponse$Outbound; -} - -export function stopScanResponseToJSON( - stopScanResponse: StopScanResponse, -): string { - return JSON.stringify( - StopScanResponse$outboundSchema.parse(stopScanResponse), - ); -} - export function stopScanResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/stoptask.ts b/src/sdk/models/operations/stoptask.ts index bc8196d1..4262df05 100644 --- a/src/sdk/models/operations/stoptask.ts +++ b/src/sdk/models/operations/stoptask.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -150,165 +150,9 @@ export type StopTaskResponse = { rawResponse: Response; }; -/** @internal */ -export const StopTaskGlobals$inboundSchema: z.ZodType< - StopTaskGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type StopTaskGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const StopTaskGlobals$outboundSchema: z.ZodType< - StopTaskGlobals$Outbound, - z.ZodTypeDef, - StopTaskGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTaskGlobals$ { - /** @deprecated use `StopTaskGlobals$inboundSchema` instead. */ - export const inboundSchema = StopTaskGlobals$inboundSchema; - /** @deprecated use `StopTaskGlobals$outboundSchema` instead. */ - export const outboundSchema = StopTaskGlobals$outboundSchema; - /** @deprecated use `StopTaskGlobals$Outbound` instead. */ - export type Outbound = StopTaskGlobals$Outbound; -} - -export function stopTaskGlobalsToJSON( - stopTaskGlobals: StopTaskGlobals, -): string { - return JSON.stringify(StopTaskGlobals$outboundSchema.parse(stopTaskGlobals)); -} - -export function stopTaskGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopTaskGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopTaskGlobals' from JSON`, - ); -} - -/** @internal */ -export const StopTaskTask$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(StopTaskTask); - /** @internal */ export const StopTaskTask$outboundSchema: z.ZodNativeEnum = - StopTaskTask$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTaskTask$ { - /** @deprecated use `StopTaskTask$inboundSchema` instead. */ - export const inboundSchema = StopTaskTask$inboundSchema; - /** @deprecated use `StopTaskTask$outboundSchema` instead. */ - export const outboundSchema = StopTaskTask$outboundSchema; -} - -/** @internal */ -export const StopTaskRequest$inboundSchema: z.ZodType< - StopTaskRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - task: StopTaskTask$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); + z.nativeEnum(StopTaskTask); /** @internal */ export type StopTaskRequest$Outbound = { @@ -359,35 +203,12 @@ export const StopTaskRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTaskRequest$ { - /** @deprecated use `StopTaskRequest$inboundSchema` instead. */ - export const inboundSchema = StopTaskRequest$inboundSchema; - /** @deprecated use `StopTaskRequest$outboundSchema` instead. */ - export const outboundSchema = StopTaskRequest$outboundSchema; - /** @deprecated use `StopTaskRequest$Outbound` instead. */ - export type Outbound = StopTaskRequest$Outbound; -} - export function stopTaskRequestToJSON( stopTaskRequest: StopTaskRequest, ): string { return JSON.stringify(StopTaskRequest$outboundSchema.parse(stopTaskRequest)); } -export function stopTaskRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StopTaskRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StopTaskRequest' from JSON`, - ); -} - /** @internal */ export const StopTaskResponse$inboundSchema: z.ZodType< StopTaskResponse, @@ -405,53 +226,6 @@ export const StopTaskResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StopTaskResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StopTaskResponse$outboundSchema: z.ZodType< - StopTaskResponse$Outbound, - z.ZodTypeDef, - StopTaskResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTaskResponse$ { - /** @deprecated use `StopTaskResponse$inboundSchema` instead. */ - export const inboundSchema = StopTaskResponse$inboundSchema; - /** @deprecated use `StopTaskResponse$outboundSchema` instead. */ - export const outboundSchema = StopTaskResponse$outboundSchema; - /** @deprecated use `StopTaskResponse$Outbound` instead. */ - export type Outbound = StopTaskResponse$Outbound; -} - -export function stopTaskResponseToJSON( - stopTaskResponse: StopTaskResponse, -): string { - return JSON.stringify( - StopTaskResponse$outboundSchema.parse(stopTaskResponse), - ); -} - export function stopTaskResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/stoptasks.ts b/src/sdk/models/operations/stoptasks.ts index 89f28038..543abbb3 100644 --- a/src/sdk/models/operations/stoptasks.ts +++ b/src/sdk/models/operations/stoptasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const StopTasksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type StopTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StopTasksResponse$outboundSchema: z.ZodType< - StopTasksResponse$Outbound, - z.ZodTypeDef, - StopTasksResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTasksResponse$ { - /** @deprecated use `StopTasksResponse$inboundSchema` instead. */ - export const inboundSchema = StopTasksResponse$inboundSchema; - /** @deprecated use `StopTasksResponse$outboundSchema` instead. */ - export const outboundSchema = StopTasksResponse$outboundSchema; - /** @deprecated use `StopTasksResponse$Outbound` instead. */ - export type Outbound = StopTasksResponse$Outbound; -} - -export function stopTasksResponseToJSON( - stopTasksResponse: StopTasksResponse, -): string { - return JSON.stringify( - StopTasksResponse$outboundSchema.parse(stopTasksResponse), - ); -} - export function stopTasksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/terminatesession.ts b/src/sdk/models/operations/terminatesession.ts index 0a4542c3..eb023672 100644 --- a/src/sdk/models/operations/terminatesession.ts +++ b/src/sdk/models/operations/terminatesession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type TerminateSessionResponse = { rawResponse: Response; }; -/** @internal */ -export const TerminateSessionGlobals$inboundSchema: z.ZodType< - TerminateSessionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type TerminateSessionGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const TerminateSessionGlobals$outboundSchema: z.ZodType< - TerminateSessionGlobals$Outbound, - z.ZodTypeDef, - TerminateSessionGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TerminateSessionGlobals$ { - /** @deprecated use `TerminateSessionGlobals$inboundSchema` instead. */ - export const inboundSchema = TerminateSessionGlobals$inboundSchema; - /** @deprecated use `TerminateSessionGlobals$outboundSchema` instead. */ - export const outboundSchema = TerminateSessionGlobals$outboundSchema; - /** @deprecated use `TerminateSessionGlobals$Outbound` instead. */ - export type Outbound = TerminateSessionGlobals$Outbound; -} - -export function terminateSessionGlobalsToJSON( - terminateSessionGlobals: TerminateSessionGlobals, -): string { - return JSON.stringify( - TerminateSessionGlobals$outboundSchema.parse(terminateSessionGlobals), - ); -} - -export function terminateSessionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TerminateSessionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TerminateSessionGlobals' from JSON`, - ); -} - -/** @internal */ -export const TerminateSessionRequest$inboundSchema: z.ZodType< - TerminateSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sessionId: z.string(), - reason: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type TerminateSessionRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const TerminateSessionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TerminateSessionRequest$ { - /** @deprecated use `TerminateSessionRequest$inboundSchema` instead. */ - export const inboundSchema = TerminateSessionRequest$inboundSchema; - /** @deprecated use `TerminateSessionRequest$outboundSchema` instead. */ - export const outboundSchema = TerminateSessionRequest$outboundSchema; - /** @deprecated use `TerminateSessionRequest$Outbound` instead. */ - export type Outbound = TerminateSessionRequest$Outbound; -} - export function terminateSessionRequestToJSON( terminateSessionRequest: TerminateSessionRequest, ): string { @@ -342,16 +185,6 @@ export function terminateSessionRequestToJSON( ); } -export function terminateSessionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TerminateSessionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TerminateSessionRequest' from JSON`, - ); -} - /** @internal */ export const TerminateSessionResponse$inboundSchema: z.ZodType< TerminateSessionResponse, @@ -369,53 +202,6 @@ export const TerminateSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TerminateSessionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const TerminateSessionResponse$outboundSchema: z.ZodType< - TerminateSessionResponse$Outbound, - z.ZodTypeDef, - TerminateSessionResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TerminateSessionResponse$ { - /** @deprecated use `TerminateSessionResponse$inboundSchema` instead. */ - export const inboundSchema = TerminateSessionResponse$inboundSchema; - /** @deprecated use `TerminateSessionResponse$outboundSchema` instead. */ - export const outboundSchema = TerminateSessionResponse$outboundSchema; - /** @deprecated use `TerminateSessionResponse$Outbound` instead. */ - export type Outbound = TerminateSessionResponse$Outbound; -} - -export function terminateSessionResponseToJSON( - terminateSessionResponse: TerminateSessionResponse, -): string { - return JSON.stringify( - TerminateSessionResponse$outboundSchema.parse(terminateSessionResponse), - ); -} - export function terminateSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/transcodeimage.ts b/src/sdk/models/operations/transcodeimage.ts index 5f1137fa..5e34085d 100644 --- a/src/sdk/models/operations/transcodeimage.ts +++ b/src/sdk/models/operations/transcodeimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -223,200 +223,13 @@ export type TranscodeImageResponse = { }; /** @internal */ -export const TranscodeImageGlobals$inboundSchema: z.ZodType< - TranscodeImageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type TranscodeImageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const TranscodeImageGlobals$outboundSchema: z.ZodType< - TranscodeImageGlobals$Outbound, - z.ZodTypeDef, - TranscodeImageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeImageGlobals$ { - /** @deprecated use `TranscodeImageGlobals$inboundSchema` instead. */ - export const inboundSchema = TranscodeImageGlobals$inboundSchema; - /** @deprecated use `TranscodeImageGlobals$outboundSchema` instead. */ - export const outboundSchema = TranscodeImageGlobals$outboundSchema; - /** @deprecated use `TranscodeImageGlobals$Outbound` instead. */ - export type Outbound = TranscodeImageGlobals$Outbound; -} - -export function transcodeImageGlobalsToJSON( - transcodeImageGlobals: TranscodeImageGlobals, -): string { - return JSON.stringify( - TranscodeImageGlobals$outboundSchema.parse(transcodeImageGlobals), - ); -} - -export function transcodeImageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TranscodeImageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TranscodeImageGlobals' from JSON`, - ); -} - -/** @internal */ -export const Format$inboundSchema: z.ZodNativeEnum = z +export const Format$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); -/** @internal */ -export const Format$outboundSchema: z.ZodNativeEnum = - Format$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; -} - -/** @internal */ -export const ChromaSubsampling$inboundSchema: z.ZodNativeEnum< - typeof ChromaSubsampling -> = z.nativeEnum(ChromaSubsampling); - /** @internal */ export const ChromaSubsampling$outboundSchema: z.ZodNativeEnum< typeof ChromaSubsampling -> = ChromaSubsampling$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChromaSubsampling$ { - /** @deprecated use `ChromaSubsampling$inboundSchema` instead. */ - export const inboundSchema = ChromaSubsampling$inboundSchema; - /** @deprecated use `ChromaSubsampling$outboundSchema` instead. */ - export const outboundSchema = ChromaSubsampling$outboundSchema; -} - -/** @internal */ -export const TranscodeImageRequest$inboundSchema: z.ZodType< - TranscodeImageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - url: z.string().optional(), - format: Format$inboundSchema.optional(), - width: z.number().int().optional(), - height: z.number().int().optional(), - quality: z.number().int().optional(), - background: z.string().optional(), - upscale: shared.BoolInt$inboundSchema.optional(), - minSize: shared.BoolInt$inboundSchema.optional(), - rotate: shared.BoolInt$inboundSchema.optional(), - blur: z.number().int().optional(), - saturation: z.number().int().optional(), - opacity: z.number().int().optional(), - chromaSubsampling: ChromaSubsampling$inboundSchema.optional(), - blendColor: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(ChromaSubsampling); /** @internal */ export type TranscodeImageRequest$Outbound = { @@ -493,19 +306,6 @@ export const TranscodeImageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeImageRequest$ { - /** @deprecated use `TranscodeImageRequest$inboundSchema` instead. */ - export const inboundSchema = TranscodeImageRequest$inboundSchema; - /** @deprecated use `TranscodeImageRequest$outboundSchema` instead. */ - export const outboundSchema = TranscodeImageRequest$outboundSchema; - /** @deprecated use `TranscodeImageRequest$Outbound` instead. */ - export type Outbound = TranscodeImageRequest$Outbound; -} - export function transcodeImageRequestToJSON( transcodeImageRequest: TranscodeImageRequest, ): string { @@ -514,16 +314,6 @@ export function transcodeImageRequestToJSON( ); } -export function transcodeImageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TranscodeImageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TranscodeImageRequest' from JSON`, - ); -} - /** @internal */ export const TranscodeImageResponse$inboundSchema: z.ZodType< TranscodeImageResponse, @@ -552,69 +342,6 @@ export const TranscodeImageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TranscodeImageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - "200_image/jpeg_response-stream"?: ReadableStream | undefined; - "200_image/png_response-stream"?: ReadableStream | undefined; - "200_image/x-portable-pixmap_response-stream"?: - | ReadableStream - | undefined; -}; - -/** @internal */ -export const TranscodeImageResponse$outboundSchema: z.ZodType< - TranscodeImageResponse$Outbound, - z.ZodTypeDef, - TranscodeImageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - twoHundredImageJpegResponseStream: z.instanceof(ReadableStream) - .optional(), - twoHundredImagePngResponseStream: z.instanceof(ReadableStream) - .optional(), - twoHundredImageXPortablePixmapResponseStream: z.instanceof( - ReadableStream, - ).optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - twoHundredImageJpegResponseStream: "200_image/jpeg_response-stream", - twoHundredImagePngResponseStream: "200_image/png_response-stream", - twoHundredImageXPortablePixmapResponseStream: - "200_image/x-portable-pixmap_response-stream", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeImageResponse$ { - /** @deprecated use `TranscodeImageResponse$inboundSchema` instead. */ - export const inboundSchema = TranscodeImageResponse$inboundSchema; - /** @deprecated use `TranscodeImageResponse$outboundSchema` instead. */ - export const outboundSchema = TranscodeImageResponse$outboundSchema; - /** @deprecated use `TranscodeImageResponse$Outbound` instead. */ - export type Outbound = TranscodeImageResponse$Outbound; -} - -export function transcodeImageResponseToJSON( - transcodeImageResponse: TranscodeImageResponse, -): string { - return JSON.stringify( - TranscodeImageResponse$outboundSchema.parse(transcodeImageResponse), - ); -} - export function transcodeImageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/transcodesubtitles.ts b/src/sdk/models/operations/transcodesubtitles.ts index 4782c088..0fbf7b82 100644 --- a/src/sdk/models/operations/transcodesubtitles.ts +++ b/src/sdk/models/operations/transcodesubtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -284,243 +284,19 @@ export type TranscodeSubtitlesResponse = { }; /** @internal */ -export const TranscodeSubtitlesGlobals$inboundSchema: z.ZodType< - TranscodeSubtitlesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type TranscodeSubtitlesGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const TranscodeSubtitlesGlobals$outboundSchema: z.ZodType< - TranscodeSubtitlesGlobals$Outbound, - z.ZodTypeDef, - TranscodeSubtitlesGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesGlobals$ { - /** @deprecated use `TranscodeSubtitlesGlobals$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesGlobals$inboundSchema; - /** @deprecated use `TranscodeSubtitlesGlobals$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesGlobals$outboundSchema; - /** @deprecated use `TranscodeSubtitlesGlobals$Outbound` instead. */ - export type Outbound = TranscodeSubtitlesGlobals$Outbound; -} - -export function transcodeSubtitlesGlobalsToJSON( - transcodeSubtitlesGlobals: TranscodeSubtitlesGlobals, -): string { - return JSON.stringify( - TranscodeSubtitlesGlobals$outboundSchema.parse(transcodeSubtitlesGlobals), - ); -} - -export function transcodeSubtitlesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TranscodeSubtitlesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TranscodeSubtitlesGlobals' from JSON`, - ); -} - -/** @internal */ -export const TranscodeSubtitlesLocation$inboundSchema: z.ZodNativeEnum< +export const TranscodeSubtitlesLocation$outboundSchema: z.ZodNativeEnum< typeof TranscodeSubtitlesLocation > = z.nativeEnum(TranscodeSubtitlesLocation); /** @internal */ -export const TranscodeSubtitlesLocation$outboundSchema: z.ZodNativeEnum< - typeof TranscodeSubtitlesLocation -> = TranscodeSubtitlesLocation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesLocation$ { - /** @deprecated use `TranscodeSubtitlesLocation$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesLocation$inboundSchema; - /** @deprecated use `TranscodeSubtitlesLocation$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesLocation$outboundSchema; -} - -/** @internal */ -export const TranscodeSubtitlesProtocol$inboundSchema: z.ZodNativeEnum< +export const TranscodeSubtitlesProtocol$outboundSchema: z.ZodNativeEnum< typeof TranscodeSubtitlesProtocol > = z.nativeEnum(TranscodeSubtitlesProtocol); -/** @internal */ -export const TranscodeSubtitlesProtocol$outboundSchema: z.ZodNativeEnum< - typeof TranscodeSubtitlesProtocol -> = TranscodeSubtitlesProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesProtocol$ { - /** @deprecated use `TranscodeSubtitlesProtocol$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesProtocol$inboundSchema; - /** @deprecated use `TranscodeSubtitlesProtocol$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesProtocol$outboundSchema; -} - -/** @internal */ -export const TranscodeSubtitlesSubtitles$inboundSchema: z.ZodNativeEnum< - typeof TranscodeSubtitlesSubtitles -> = z.nativeEnum(TranscodeSubtitlesSubtitles); - /** @internal */ export const TranscodeSubtitlesSubtitles$outboundSchema: z.ZodNativeEnum< typeof TranscodeSubtitlesSubtitles -> = TranscodeSubtitlesSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesSubtitles$ { - /** @deprecated use `TranscodeSubtitlesSubtitles$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesSubtitles$inboundSchema; - /** @deprecated use `TranscodeSubtitlesSubtitles$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesSubtitles$outboundSchema; -} - -/** @internal */ -export const TranscodeSubtitlesRequest$inboundSchema: z.ZodType< - TranscodeSubtitlesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - transcodeType: shared.TranscodeType$inboundSchema, - transcodeSessionId: z.string().optional(), - advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), - audioBoost: z.number().int().optional(), - audioChannelCount: z.number().int().optional(), - autoAdjustQuality: shared.BoolInt$inboundSchema.optional(), - autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), - directPlay: shared.BoolInt$inboundSchema.optional(), - directStream: shared.BoolInt$inboundSchema.optional(), - directStreamAudio: shared.BoolInt$inboundSchema.optional(), - disableResolutionRotation: shared.BoolInt$inboundSchema.optional(), - hasMDE: shared.BoolInt$inboundSchema.optional(), - location: TranscodeSubtitlesLocation$inboundSchema.optional(), - mediaBufferSize: z.number().int().optional(), - mediaIndex: z.number().int().optional(), - musicBitrate: z.number().int().optional(), - offset: z.number().optional(), - partIndex: z.number().int().optional(), - path: z.string().optional(), - peakBitrate: z.number().int().optional(), - photoResolution: z.string().optional(), - protocol: TranscodeSubtitlesProtocol$inboundSchema.optional(), - secondsPerSegment: z.number().int().optional(), - subtitleSize: z.number().int().optional(), - subtitles: TranscodeSubtitlesSubtitles$inboundSchema.optional(), - videoBitrate: z.number().int().optional(), - videoQuality: z.number().int().optional(), - videoResolution: z.string().optional(), - "X-Plex-Client-Profile-Extra": z.string().optional(), - "X-Plex-Client-Profile-Name": z.string().optional(), - "X-Plex-Session-Identifier": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", - "X-Plex-Client-Profile-Name": "xPlexClientProfileName", - "X-Plex-Session-Identifier": "xPlexSessionIdentifier", - }); -}); +> = z.nativeEnum(TranscodeSubtitlesSubtitles); /** @internal */ export type TranscodeSubtitlesRequest$Outbound = { @@ -634,19 +410,6 @@ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesRequest$ { - /** @deprecated use `TranscodeSubtitlesRequest$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesRequest$inboundSchema; - /** @deprecated use `TranscodeSubtitlesRequest$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesRequest$outboundSchema; - /** @deprecated use `TranscodeSubtitlesRequest$Outbound` instead. */ - export type Outbound = TranscodeSubtitlesRequest$Outbound; -} - export function transcodeSubtitlesRequestToJSON( transcodeSubtitlesRequest: TranscodeSubtitlesRequest, ): string { @@ -655,16 +418,6 @@ export function transcodeSubtitlesRequestToJSON( ); } -export function transcodeSubtitlesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TranscodeSubtitlesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TranscodeSubtitlesRequest' from JSON`, - ); -} - /** @internal */ export const TranscodeSubtitlesResponse$inboundSchema: z.ZodType< TranscodeSubtitlesResponse, @@ -682,53 +435,6 @@ export const TranscodeSubtitlesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TranscodeSubtitlesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const TranscodeSubtitlesResponse$outboundSchema: z.ZodType< - TranscodeSubtitlesResponse$Outbound, - z.ZodTypeDef, - TranscodeSubtitlesResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSubtitlesResponse$ { - /** @deprecated use `TranscodeSubtitlesResponse$inboundSchema` instead. */ - export const inboundSchema = TranscodeSubtitlesResponse$inboundSchema; - /** @deprecated use `TranscodeSubtitlesResponse$outboundSchema` instead. */ - export const outboundSchema = TranscodeSubtitlesResponse$outboundSchema; - /** @deprecated use `TranscodeSubtitlesResponse$Outbound` instead. */ - export type Outbound = TranscodeSubtitlesResponse$Outbound; -} - -export function transcodeSubtitlesResponseToJSON( - transcodeSubtitlesResponse: TranscodeSubtitlesResponse, -): string { - return JSON.stringify( - TranscodeSubtitlesResponse$outboundSchema.parse(transcodeSubtitlesResponse), - ); -} - export function transcodeSubtitlesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/triggerfallback.ts b/src/sdk/models/operations/triggerfallback.ts index 05398128..49bb2c28 100644 --- a/src/sdk/models/operations/triggerfallback.ts +++ b/src/sdk/models/operations/triggerfallback.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type TriggerFallbackResponse = { rawResponse: Response; }; -/** @internal */ -export const TriggerFallbackGlobals$inboundSchema: z.ZodType< - TriggerFallbackGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type TriggerFallbackGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const TriggerFallbackGlobals$outboundSchema: z.ZodType< - TriggerFallbackGlobals$Outbound, - z.ZodTypeDef, - TriggerFallbackGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TriggerFallbackGlobals$ { - /** @deprecated use `TriggerFallbackGlobals$inboundSchema` instead. */ - export const inboundSchema = TriggerFallbackGlobals$inboundSchema; - /** @deprecated use `TriggerFallbackGlobals$outboundSchema` instead. */ - export const outboundSchema = TriggerFallbackGlobals$outboundSchema; - /** @deprecated use `TriggerFallbackGlobals$Outbound` instead. */ - export type Outbound = TriggerFallbackGlobals$Outbound; -} - -export function triggerFallbackGlobalsToJSON( - triggerFallbackGlobals: TriggerFallbackGlobals, -): string { - return JSON.stringify( - TriggerFallbackGlobals$outboundSchema.parse(triggerFallbackGlobals), - ); -} - -export function triggerFallbackGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TriggerFallbackGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TriggerFallbackGlobals' from JSON`, - ); -} - -/** @internal */ -export const TriggerFallbackRequest$inboundSchema: z.ZodType< - TriggerFallbackRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - transcodeType: shared.TranscodeType$inboundSchema, - transcodeSessionId: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type TriggerFallbackRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const TriggerFallbackRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TriggerFallbackRequest$ { - /** @deprecated use `TriggerFallbackRequest$inboundSchema` instead. */ - export const inboundSchema = TriggerFallbackRequest$inboundSchema; - /** @deprecated use `TriggerFallbackRequest$outboundSchema` instead. */ - export const outboundSchema = TriggerFallbackRequest$outboundSchema; - /** @deprecated use `TriggerFallbackRequest$Outbound` instead. */ - export type Outbound = TriggerFallbackRequest$Outbound; -} - export function triggerFallbackRequestToJSON( triggerFallbackRequest: TriggerFallbackRequest, ): string { @@ -342,16 +185,6 @@ export function triggerFallbackRequestToJSON( ); } -export function triggerFallbackRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TriggerFallbackRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TriggerFallbackRequest' from JSON`, - ); -} - /** @internal */ export const TriggerFallbackResponse$inboundSchema: z.ZodType< TriggerFallbackResponse, @@ -369,53 +202,6 @@ export const TriggerFallbackResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TriggerFallbackResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const TriggerFallbackResponse$outboundSchema: z.ZodType< - TriggerFallbackResponse$Outbound, - z.ZodTypeDef, - TriggerFallbackResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TriggerFallbackResponse$ { - /** @deprecated use `TriggerFallbackResponse$inboundSchema` instead. */ - export const inboundSchema = TriggerFallbackResponse$inboundSchema; - /** @deprecated use `TriggerFallbackResponse$outboundSchema` instead. */ - export const outboundSchema = TriggerFallbackResponse$outboundSchema; - /** @deprecated use `TriggerFallbackResponse$Outbound` instead. */ - export type Outbound = TriggerFallbackResponse$Outbound; -} - -export function triggerFallbackResponseToJSON( - triggerFallbackResponse: TriggerFallbackResponse, -): string { - return JSON.stringify( - TriggerFallbackResponse$outboundSchema.parse(triggerFallbackResponse), - ); -} - export function triggerFallbackResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/tunechannel.ts b/src/sdk/models/operations/tunechannel.ts index 84131f7d..a4b74864 100644 --- a/src/sdk/models/operations/tunechannel.ts +++ b/src/sdk/models/operations/tunechannel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -131,150 +131,6 @@ export type TuneChannelResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const TuneChannelGlobals$inboundSchema: z.ZodType< - TuneChannelGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type TuneChannelGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const TuneChannelGlobals$outboundSchema: z.ZodType< - TuneChannelGlobals$Outbound, - z.ZodTypeDef, - TuneChannelGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TuneChannelGlobals$ { - /** @deprecated use `TuneChannelGlobals$inboundSchema` instead. */ - export const inboundSchema = TuneChannelGlobals$inboundSchema; - /** @deprecated use `TuneChannelGlobals$outboundSchema` instead. */ - export const outboundSchema = TuneChannelGlobals$outboundSchema; - /** @deprecated use `TuneChannelGlobals$Outbound` instead. */ - export type Outbound = TuneChannelGlobals$Outbound; -} - -export function tuneChannelGlobalsToJSON( - tuneChannelGlobals: TuneChannelGlobals, -): string { - return JSON.stringify( - TuneChannelGlobals$outboundSchema.parse(tuneChannelGlobals), - ); -} - -export function tuneChannelGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TuneChannelGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TuneChannelGlobals' from JSON`, - ); -} - -/** @internal */ -export const TuneChannelRequest$inboundSchema: z.ZodType< - TuneChannelRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - dvrId: z.number().int(), - channel: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type TuneChannelRequest$Outbound = { accepts: string; @@ -326,19 +182,6 @@ export const TuneChannelRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TuneChannelRequest$ { - /** @deprecated use `TuneChannelRequest$inboundSchema` instead. */ - export const inboundSchema = TuneChannelRequest$inboundSchema; - /** @deprecated use `TuneChannelRequest$outboundSchema` instead. */ - export const outboundSchema = TuneChannelRequest$outboundSchema; - /** @deprecated use `TuneChannelRequest$Outbound` instead. */ - export type Outbound = TuneChannelRequest$Outbound; -} - export function tuneChannelRequestToJSON( tuneChannelRequest: TuneChannelRequest, ): string { @@ -347,16 +190,6 @@ export function tuneChannelRequestToJSON( ); } -export function tuneChannelRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TuneChannelRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TuneChannelRequest' from JSON`, - ); -} - /** @internal */ export const TuneChannelResponse$inboundSchema: z.ZodType< TuneChannelResponse, @@ -368,7 +201,7 @@ export const TuneChannelResponse$inboundSchema: z.ZodType< RawResponse: z.instanceof(Response), MediaContainerWithMetadata: shared.MediaContainerWithMetadata$inboundSchema .optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -379,62 +212,6 @@ export const TuneChannelResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TuneChannelResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithMetadata?: - | shared.MediaContainerWithMetadata$Outbound - | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const TuneChannelResponse$outboundSchema: z.ZodType< - TuneChannelResponse$Outbound, - z.ZodTypeDef, - TuneChannelResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithMetadata: shared.MediaContainerWithMetadata$outboundSchema - .optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithMetadata: "MediaContainerWithMetadata", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TuneChannelResponse$ { - /** @deprecated use `TuneChannelResponse$inboundSchema` instead. */ - export const inboundSchema = TuneChannelResponse$inboundSchema; - /** @deprecated use `TuneChannelResponse$outboundSchema` instead. */ - export const outboundSchema = TuneChannelResponse$outboundSchema; - /** @deprecated use `TuneChannelResponse$Outbound` instead. */ - export type Outbound = TuneChannelResponse$Outbound; -} - -export function tuneChannelResponseToJSON( - tuneChannelResponse: TuneChannelResponse, -): string { - return JSON.stringify( - TuneChannelResponse$outboundSchema.parse(tuneChannelResponse), - ); -} - export function tuneChannelResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/unmatch.ts b/src/sdk/models/operations/unmatch.ts index 3af0606c..c3e3c741 100644 --- a/src/sdk/models/operations/unmatch.ts +++ b/src/sdk/models/operations/unmatch.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -119,145 +119,6 @@ export type UnmatchResponse = { rawResponse: Response; }; -/** @internal */ -export const UnmatchGlobals$inboundSchema: z.ZodType< - UnmatchGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UnmatchGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UnmatchGlobals$outboundSchema: z.ZodType< - UnmatchGlobals$Outbound, - z.ZodTypeDef, - UnmatchGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnmatchGlobals$ { - /** @deprecated use `UnmatchGlobals$inboundSchema` instead. */ - export const inboundSchema = UnmatchGlobals$inboundSchema; - /** @deprecated use `UnmatchGlobals$outboundSchema` instead. */ - export const outboundSchema = UnmatchGlobals$outboundSchema; - /** @deprecated use `UnmatchGlobals$Outbound` instead. */ - export type Outbound = UnmatchGlobals$Outbound; -} - -export function unmatchGlobalsToJSON(unmatchGlobals: UnmatchGlobals): string { - return JSON.stringify(UnmatchGlobals$outboundSchema.parse(unmatchGlobals)); -} - -export function unmatchGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnmatchGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnmatchGlobals' from JSON`, - ); -} - -/** @internal */ -export const UnmatchRequest$inboundSchema: z.ZodType< - UnmatchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UnmatchRequest$Outbound = { accepts: string; @@ -307,33 +168,10 @@ export const UnmatchRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnmatchRequest$ { - /** @deprecated use `UnmatchRequest$inboundSchema` instead. */ - export const inboundSchema = UnmatchRequest$inboundSchema; - /** @deprecated use `UnmatchRequest$outboundSchema` instead. */ - export const outboundSchema = UnmatchRequest$outboundSchema; - /** @deprecated use `UnmatchRequest$Outbound` instead. */ - export type Outbound = UnmatchRequest$Outbound; -} - export function unmatchRequestToJSON(unmatchRequest: UnmatchRequest): string { return JSON.stringify(UnmatchRequest$outboundSchema.parse(unmatchRequest)); } -export function unmatchRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnmatchRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnmatchRequest' from JSON`, - ); -} - /** @internal */ export const UnmatchResponse$inboundSchema: z.ZodType< UnmatchResponse, @@ -351,51 +189,6 @@ export const UnmatchResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnmatchResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UnmatchResponse$outboundSchema: z.ZodType< - UnmatchResponse$Outbound, - z.ZodTypeDef, - UnmatchResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnmatchResponse$ { - /** @deprecated use `UnmatchResponse$inboundSchema` instead. */ - export const inboundSchema = UnmatchResponse$inboundSchema; - /** @deprecated use `UnmatchResponse$outboundSchema` instead. */ - export const outboundSchema = UnmatchResponse$outboundSchema; - /** @deprecated use `UnmatchResponse$Outbound` instead. */ - export type Outbound = UnmatchResponse$Outbound; -} - -export function unmatchResponseToJSON( - unmatchResponse: UnmatchResponse, -): string { - return JSON.stringify(UnmatchResponse$outboundSchema.parse(unmatchResponse)); -} - export function unmatchResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/unscrobble.ts b/src/sdk/models/operations/unscrobble.ts index a9a5f4fe..7cfdb5df 100644 --- a/src/sdk/models/operations/unscrobble.ts +++ b/src/sdk/models/operations/unscrobble.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,151 +130,6 @@ export type UnscrobbleResponse = { rawResponse: Response; }; -/** @internal */ -export const UnscrobbleGlobals$inboundSchema: z.ZodType< - UnscrobbleGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UnscrobbleGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UnscrobbleGlobals$outboundSchema: z.ZodType< - UnscrobbleGlobals$Outbound, - z.ZodTypeDef, - UnscrobbleGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnscrobbleGlobals$ { - /** @deprecated use `UnscrobbleGlobals$inboundSchema` instead. */ - export const inboundSchema = UnscrobbleGlobals$inboundSchema; - /** @deprecated use `UnscrobbleGlobals$outboundSchema` instead. */ - export const outboundSchema = UnscrobbleGlobals$outboundSchema; - /** @deprecated use `UnscrobbleGlobals$Outbound` instead. */ - export type Outbound = UnscrobbleGlobals$Outbound; -} - -export function unscrobbleGlobalsToJSON( - unscrobbleGlobals: UnscrobbleGlobals, -): string { - return JSON.stringify( - UnscrobbleGlobals$outboundSchema.parse(unscrobbleGlobals), - ); -} - -export function unscrobbleGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnscrobbleGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnscrobbleGlobals' from JSON`, - ); -} - -/** @internal */ -export const UnscrobbleRequest$inboundSchema: z.ZodType< - UnscrobbleRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - identifier: z.string(), - key: z.string().optional(), - uri: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UnscrobbleRequest$Outbound = { accepts: string; @@ -328,19 +183,6 @@ export const UnscrobbleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnscrobbleRequest$ { - /** @deprecated use `UnscrobbleRequest$inboundSchema` instead. */ - export const inboundSchema = UnscrobbleRequest$inboundSchema; - /** @deprecated use `UnscrobbleRequest$outboundSchema` instead. */ - export const outboundSchema = UnscrobbleRequest$outboundSchema; - /** @deprecated use `UnscrobbleRequest$Outbound` instead. */ - export type Outbound = UnscrobbleRequest$Outbound; -} - export function unscrobbleRequestToJSON( unscrobbleRequest: UnscrobbleRequest, ): string { @@ -349,16 +191,6 @@ export function unscrobbleRequestToJSON( ); } -export function unscrobbleRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnscrobbleRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnscrobbleRequest' from JSON`, - ); -} - /** @internal */ export const UnscrobbleResponse$inboundSchema: z.ZodType< UnscrobbleResponse, @@ -376,53 +208,6 @@ export const UnscrobbleResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnscrobbleResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UnscrobbleResponse$outboundSchema: z.ZodType< - UnscrobbleResponse$Outbound, - z.ZodTypeDef, - UnscrobbleResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnscrobbleResponse$ { - /** @deprecated use `UnscrobbleResponse$inboundSchema` instead. */ - export const inboundSchema = UnscrobbleResponse$inboundSchema; - /** @deprecated use `UnscrobbleResponse$outboundSchema` instead. */ - export const outboundSchema = UnscrobbleResponse$outboundSchema; - /** @deprecated use `UnscrobbleResponse$Outbound` instead. */ - export type Outbound = UnscrobbleResponse$Outbound; -} - -export function unscrobbleResponseToJSON( - unscrobbleResponse: UnscrobbleResponse, -): string { - return JSON.stringify( - UnscrobbleResponse$outboundSchema.parse(unscrobbleResponse), - ); -} - export function unscrobbleResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/unshuffle.ts b/src/sdk/models/operations/unshuffle.ts index a4d2f46e..d908891f 100644 --- a/src/sdk/models/operations/unshuffle.ts +++ b/src/sdk/models/operations/unshuffle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -128,149 +128,6 @@ export type UnshuffleResponse = { | undefined; }; -/** @internal */ -export const UnshuffleGlobals$inboundSchema: z.ZodType< - UnshuffleGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UnshuffleGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UnshuffleGlobals$outboundSchema: z.ZodType< - UnshuffleGlobals$Outbound, - z.ZodTypeDef, - UnshuffleGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnshuffleGlobals$ { - /** @deprecated use `UnshuffleGlobals$inboundSchema` instead. */ - export const inboundSchema = UnshuffleGlobals$inboundSchema; - /** @deprecated use `UnshuffleGlobals$outboundSchema` instead. */ - export const outboundSchema = UnshuffleGlobals$outboundSchema; - /** @deprecated use `UnshuffleGlobals$Outbound` instead. */ - export type Outbound = UnshuffleGlobals$Outbound; -} - -export function unshuffleGlobalsToJSON( - unshuffleGlobals: UnshuffleGlobals, -): string { - return JSON.stringify( - UnshuffleGlobals$outboundSchema.parse(unshuffleGlobals), - ); -} - -export function unshuffleGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnshuffleGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnshuffleGlobals' from JSON`, - ); -} - -/** @internal */ -export const UnshuffleRequest$inboundSchema: z.ZodType< - UnshuffleRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playQueueId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UnshuffleRequest$Outbound = { accepts: string; @@ -320,19 +177,6 @@ export const UnshuffleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnshuffleRequest$ { - /** @deprecated use `UnshuffleRequest$inboundSchema` instead. */ - export const inboundSchema = UnshuffleRequest$inboundSchema; - /** @deprecated use `UnshuffleRequest$outboundSchema` instead. */ - export const outboundSchema = UnshuffleRequest$outboundSchema; - /** @deprecated use `UnshuffleRequest$Outbound` instead. */ - export type Outbound = UnshuffleRequest$Outbound; -} - export function unshuffleRequestToJSON( unshuffleRequest: UnshuffleRequest, ): string { @@ -341,16 +185,6 @@ export function unshuffleRequestToJSON( ); } -export function unshuffleRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnshuffleRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnshuffleRequest' from JSON`, - ); -} - /** @internal */ export const UnshuffleResponse$inboundSchema: z.ZodType< UnshuffleResponse, @@ -371,59 +205,6 @@ export const UnshuffleResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnshuffleResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - MediaContainerWithPlaylistMetadata?: - | shared.MediaContainerWithPlaylistMetadata$Outbound - | undefined; -}; - -/** @internal */ -export const UnshuffleResponse$outboundSchema: z.ZodType< - UnshuffleResponse$Outbound, - z.ZodTypeDef, - UnshuffleResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - mediaContainerWithPlaylistMetadata: shared - .MediaContainerWithPlaylistMetadata$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - mediaContainerWithPlaylistMetadata: "MediaContainerWithPlaylistMetadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnshuffleResponse$ { - /** @deprecated use `UnshuffleResponse$inboundSchema` instead. */ - export const inboundSchema = UnshuffleResponse$inboundSchema; - /** @deprecated use `UnshuffleResponse$outboundSchema` instead. */ - export const outboundSchema = UnshuffleResponse$outboundSchema; - /** @deprecated use `UnshuffleResponse$Outbound` instead. */ - export type Outbound = UnshuffleResponse$Outbound; -} - -export function unshuffleResponseToJSON( - unshuffleResponse: UnshuffleResponse, -): string { - return JSON.stringify( - UnshuffleResponse$outboundSchema.parse(unshuffleResponse), - ); -} - export function unshuffleResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updatehubvisibility.ts b/src/sdk/models/operations/updatehubvisibility.ts index 342d6c9c..1cf804be 100644 --- a/src/sdk/models/operations/updatehubvisibility.ts +++ b/src/sdk/models/operations/updatehubvisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -138,153 +138,6 @@ export type UpdateHubVisibilityResponse = { rawResponse: Response; }; -/** @internal */ -export const UpdateHubVisibilityGlobals$inboundSchema: z.ZodType< - UpdateHubVisibilityGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UpdateHubVisibilityGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UpdateHubVisibilityGlobals$outboundSchema: z.ZodType< - UpdateHubVisibilityGlobals$Outbound, - z.ZodTypeDef, - UpdateHubVisibilityGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateHubVisibilityGlobals$ { - /** @deprecated use `UpdateHubVisibilityGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdateHubVisibilityGlobals$inboundSchema; - /** @deprecated use `UpdateHubVisibilityGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdateHubVisibilityGlobals$outboundSchema; - /** @deprecated use `UpdateHubVisibilityGlobals$Outbound` instead. */ - export type Outbound = UpdateHubVisibilityGlobals$Outbound; -} - -export function updateHubVisibilityGlobalsToJSON( - updateHubVisibilityGlobals: UpdateHubVisibilityGlobals, -): string { - return JSON.stringify( - UpdateHubVisibilityGlobals$outboundSchema.parse(updateHubVisibilityGlobals), - ); -} - -export function updateHubVisibilityGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateHubVisibilityGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateHubVisibilityGlobals' from JSON`, - ); -} - -/** @internal */ -export const UpdateHubVisibilityRequest$inboundSchema: z.ZodType< - UpdateHubVisibilityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.number().int(), - identifier: z.string(), - promotedToRecommended: shared.BoolInt$inboundSchema.optional(), - promotedToOwnHome: shared.BoolInt$inboundSchema.optional(), - promotedToSharedHome: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UpdateHubVisibilityRequest$Outbound = { accepts: string; @@ -342,19 +195,6 @@ export const UpdateHubVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateHubVisibilityRequest$ { - /** @deprecated use `UpdateHubVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateHubVisibilityRequest$inboundSchema; - /** @deprecated use `UpdateHubVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateHubVisibilityRequest$outboundSchema; - /** @deprecated use `UpdateHubVisibilityRequest$Outbound` instead. */ - export type Outbound = UpdateHubVisibilityRequest$Outbound; -} - export function updateHubVisibilityRequestToJSON( updateHubVisibilityRequest: UpdateHubVisibilityRequest, ): string { @@ -363,16 +203,6 @@ export function updateHubVisibilityRequestToJSON( ); } -export function updateHubVisibilityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateHubVisibilityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateHubVisibilityRequest' from JSON`, - ); -} - /** @internal */ export const UpdateHubVisibilityResponse$inboundSchema: z.ZodType< UpdateHubVisibilityResponse, @@ -390,55 +220,6 @@ export const UpdateHubVisibilityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateHubVisibilityResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdateHubVisibilityResponse$outboundSchema: z.ZodType< - UpdateHubVisibilityResponse$Outbound, - z.ZodTypeDef, - UpdateHubVisibilityResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateHubVisibilityResponse$ { - /** @deprecated use `UpdateHubVisibilityResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateHubVisibilityResponse$inboundSchema; - /** @deprecated use `UpdateHubVisibilityResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateHubVisibilityResponse$outboundSchema; - /** @deprecated use `UpdateHubVisibilityResponse$Outbound` instead. */ - export type Outbound = UpdateHubVisibilityResponse$Outbound; -} - -export function updateHubVisibilityResponseToJSON( - updateHubVisibilityResponse: UpdateHubVisibilityResponse, -): string { - return JSON.stringify( - UpdateHubVisibilityResponse$outboundSchema.parse( - updateHubVisibilityResponse, - ), - ); -} - export function updateHubVisibilityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updateitemartwork.ts b/src/sdk/models/operations/updateitemartwork.ts index 838c529d..255208c5 100644 --- a/src/sdk/models/operations/updateitemartwork.ts +++ b/src/sdk/models/operations/updateitemartwork.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,171 +133,10 @@ export type UpdateItemArtworkResponse = { rawResponse: Response; }; -/** @internal */ -export const UpdateItemArtworkGlobals$inboundSchema: z.ZodType< - UpdateItemArtworkGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UpdateItemArtworkGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UpdateItemArtworkGlobals$outboundSchema: z.ZodType< - UpdateItemArtworkGlobals$Outbound, - z.ZodTypeDef, - UpdateItemArtworkGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemArtworkGlobals$ { - /** @deprecated use `UpdateItemArtworkGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdateItemArtworkGlobals$inboundSchema; - /** @deprecated use `UpdateItemArtworkGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdateItemArtworkGlobals$outboundSchema; - /** @deprecated use `UpdateItemArtworkGlobals$Outbound` instead. */ - export type Outbound = UpdateItemArtworkGlobals$Outbound; -} - -export function updateItemArtworkGlobalsToJSON( - updateItemArtworkGlobals: UpdateItemArtworkGlobals, -): string { - return JSON.stringify( - UpdateItemArtworkGlobals$outboundSchema.parse(updateItemArtworkGlobals), - ); -} - -export function updateItemArtworkGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemArtworkGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemArtworkGlobals' from JSON`, - ); -} - -/** @internal */ -export const UpdateItemArtworkElement$inboundSchema: z.ZodNativeEnum< - typeof UpdateItemArtworkElement -> = z.nativeEnum(UpdateItemArtworkElement); - /** @internal */ export const UpdateItemArtworkElement$outboundSchema: z.ZodNativeEnum< typeof UpdateItemArtworkElement -> = UpdateItemArtworkElement$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemArtworkElement$ { - /** @deprecated use `UpdateItemArtworkElement$inboundSchema` instead. */ - export const inboundSchema = UpdateItemArtworkElement$inboundSchema; - /** @deprecated use `UpdateItemArtworkElement$outboundSchema` instead. */ - export const outboundSchema = UpdateItemArtworkElement$outboundSchema; -} - -/** @internal */ -export const UpdateItemArtworkRequest$inboundSchema: z.ZodType< - UpdateItemArtworkRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - ids: z.string(), - element: UpdateItemArtworkElement$inboundSchema, - url: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(UpdateItemArtworkElement); /** @internal */ export type UpdateItemArtworkRequest$Outbound = { @@ -352,19 +191,6 @@ export const UpdateItemArtworkRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemArtworkRequest$ { - /** @deprecated use `UpdateItemArtworkRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateItemArtworkRequest$inboundSchema; - /** @deprecated use `UpdateItemArtworkRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateItemArtworkRequest$outboundSchema; - /** @deprecated use `UpdateItemArtworkRequest$Outbound` instead. */ - export type Outbound = UpdateItemArtworkRequest$Outbound; -} - export function updateItemArtworkRequestToJSON( updateItemArtworkRequest: UpdateItemArtworkRequest, ): string { @@ -373,16 +199,6 @@ export function updateItemArtworkRequestToJSON( ); } -export function updateItemArtworkRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemArtworkRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemArtworkRequest' from JSON`, - ); -} - /** @internal */ export const UpdateItemArtworkResponse$inboundSchema: z.ZodType< UpdateItemArtworkResponse, @@ -400,53 +216,6 @@ export const UpdateItemArtworkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateItemArtworkResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdateItemArtworkResponse$outboundSchema: z.ZodType< - UpdateItemArtworkResponse$Outbound, - z.ZodTypeDef, - UpdateItemArtworkResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemArtworkResponse$ { - /** @deprecated use `UpdateItemArtworkResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateItemArtworkResponse$inboundSchema; - /** @deprecated use `UpdateItemArtworkResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateItemArtworkResponse$outboundSchema; - /** @deprecated use `UpdateItemArtworkResponse$Outbound` instead. */ - export type Outbound = UpdateItemArtworkResponse$Outbound; -} - -export function updateItemArtworkResponseToJSON( - updateItemArtworkResponse: UpdateItemArtworkResponse, -): string { - return JSON.stringify( - UpdateItemArtworkResponse$outboundSchema.parse(updateItemArtworkResponse), - ); -} - export function updateItemArtworkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updateitems.ts b/src/sdk/models/operations/updateitems.ts index 3552f268..c59601b5 100644 --- a/src/sdk/models/operations/updateitems.ts +++ b/src/sdk/models/operations/updateitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -171,173 +171,6 @@ export type UpdateItemsResponse = { rawResponse: Response; }; -/** @internal */ -export const UpdateItemsGlobals$inboundSchema: z.ZodType< - UpdateItemsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UpdateItemsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UpdateItemsGlobals$outboundSchema: z.ZodType< - UpdateItemsGlobals$Outbound, - z.ZodTypeDef, - UpdateItemsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemsGlobals$ { - /** @deprecated use `UpdateItemsGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdateItemsGlobals$inboundSchema; - /** @deprecated use `UpdateItemsGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdateItemsGlobals$outboundSchema; - /** @deprecated use `UpdateItemsGlobals$Outbound` instead. */ - export type Outbound = UpdateItemsGlobals$Outbound; -} - -export function updateItemsGlobalsToJSON( - updateItemsGlobals: UpdateItemsGlobals, -): string { - return JSON.stringify( - UpdateItemsGlobals$outboundSchema.parse(updateItemsGlobals), - ); -} - -export function updateItemsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemsGlobals' from JSON`, - ); -} - -/** @internal */ -export const UpdateItemsRequest$inboundSchema: z.ZodType< - UpdateItemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - sectionId: z.string(), - type: z.string().optional(), - filters: z.string().optional(), - "field.value": z.string().optional(), - "field.locked": shared.BoolInt$inboundSchema.optional(), - "title.value": z.string().optional(), - "artist.title.value": z.string().optional(), - "artist.title.id": z.string().optional(), - "album.title.value": z.string().optional(), - "album.title.id": z.string().optional(), - "tagtype[idx].tag.tag": z.string().optional(), - "tagtype[idx].tagging.object": z.string().optional(), - "tagtype[].tag.tag-": z.string().optional(), - "tagtype[].tag": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - "field.value": "fieldValue", - "field.locked": "fieldLocked", - "title.value": "titleValue", - "artist.title.value": "artistTitleValue", - "artist.title.id": "artistTitleId", - "album.title.value": "albumTitleValue", - "album.title.id": "albumTitleId", - "tagtype[idx].tag.tag": "tagtypeIdxTagTag", - "tagtype[idx].tagging.object": "tagtypeIdxTaggingObject", - "tagtype[].tag.tag-": "tagtypeTagTag", - "tagtype[].tag": "tagtypeTag", - }); -}); - /** @internal */ export type UpdateItemsRequest$Outbound = { accepts: string; @@ -424,19 +257,6 @@ export const UpdateItemsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemsRequest$ { - /** @deprecated use `UpdateItemsRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateItemsRequest$inboundSchema; - /** @deprecated use `UpdateItemsRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateItemsRequest$outboundSchema; - /** @deprecated use `UpdateItemsRequest$Outbound` instead. */ - export type Outbound = UpdateItemsRequest$Outbound; -} - export function updateItemsRequestToJSON( updateItemsRequest: UpdateItemsRequest, ): string { @@ -445,16 +265,6 @@ export function updateItemsRequestToJSON( ); } -export function updateItemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateItemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateItemsRequest' from JSON`, - ); -} - /** @internal */ export const UpdateItemsResponse$inboundSchema: z.ZodType< UpdateItemsResponse, @@ -472,53 +282,6 @@ export const UpdateItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateItemsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdateItemsResponse$outboundSchema: z.ZodType< - UpdateItemsResponse$Outbound, - z.ZodTypeDef, - UpdateItemsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateItemsResponse$ { - /** @deprecated use `UpdateItemsResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateItemsResponse$inboundSchema; - /** @deprecated use `UpdateItemsResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateItemsResponse$outboundSchema; - /** @deprecated use `UpdateItemsResponse$Outbound` instead. */ - export type Outbound = UpdateItemsResponse$Outbound; -} - -export function updateItemsResponseToJSON( - updateItemsResponse: UpdateItemsResponse, -): string { - return JSON.stringify( - UpdateItemsResponse$outboundSchema.parse(updateItemsResponse), - ); -} - export function updateItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updateplaylist.ts b/src/sdk/models/operations/updateplaylist.ts index 382f2bbc..6e8740b7 100644 --- a/src/sdk/models/operations/updateplaylist.ts +++ b/src/sdk/models/operations/updateplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,149 +122,6 @@ export type UpdatePlaylistResponse = { rawResponse: Response; }; -/** @internal */ -export const UpdatePlaylistGlobals$inboundSchema: z.ZodType< - UpdatePlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UpdatePlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UpdatePlaylistGlobals$outboundSchema: z.ZodType< - UpdatePlaylistGlobals$Outbound, - z.ZodTypeDef, - UpdatePlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePlaylistGlobals$ { - /** @deprecated use `UpdatePlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdatePlaylistGlobals$inboundSchema; - /** @deprecated use `UpdatePlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdatePlaylistGlobals$outboundSchema; - /** @deprecated use `UpdatePlaylistGlobals$Outbound` instead. */ - export type Outbound = UpdatePlaylistGlobals$Outbound; -} - -export function updatePlaylistGlobalsToJSON( - updatePlaylistGlobals: UpdatePlaylistGlobals, -): string { - return JSON.stringify( - UpdatePlaylistGlobals$outboundSchema.parse(updatePlaylistGlobals), - ); -} - -export function updatePlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdatePlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdatePlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const UpdatePlaylistRequest$inboundSchema: z.ZodType< - UpdatePlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - playlistId: z.number().int(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UpdatePlaylistRequest$Outbound = { accepts: string; @@ -314,19 +171,6 @@ export const UpdatePlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePlaylistRequest$ { - /** @deprecated use `UpdatePlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = UpdatePlaylistRequest$inboundSchema; - /** @deprecated use `UpdatePlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = UpdatePlaylistRequest$outboundSchema; - /** @deprecated use `UpdatePlaylistRequest$Outbound` instead. */ - export type Outbound = UpdatePlaylistRequest$Outbound; -} - export function updatePlaylistRequestToJSON( updatePlaylistRequest: UpdatePlaylistRequest, ): string { @@ -335,16 +179,6 @@ export function updatePlaylistRequestToJSON( ); } -export function updatePlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdatePlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdatePlaylistRequest' from JSON`, - ); -} - /** @internal */ export const UpdatePlaylistResponse$inboundSchema: z.ZodType< UpdatePlaylistResponse, @@ -362,53 +196,6 @@ export const UpdatePlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdatePlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdatePlaylistResponse$outboundSchema: z.ZodType< - UpdatePlaylistResponse$Outbound, - z.ZodTypeDef, - UpdatePlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePlaylistResponse$ { - /** @deprecated use `UpdatePlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePlaylistResponse$inboundSchema; - /** @deprecated use `UpdatePlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePlaylistResponse$outboundSchema; - /** @deprecated use `UpdatePlaylistResponse$Outbound` instead. */ - export type Outbound = UpdatePlaylistResponse$Outbound; -} - -export function updatePlaylistResponseToJSON( - updatePlaylistResponse: UpdatePlaylistResponse, -): string { - return JSON.stringify( - UpdatePlaylistResponse$outboundSchema.parse(updatePlaylistResponse), - ); -} - export function updatePlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/uploadplaylist.ts b/src/sdk/models/operations/uploadplaylist.ts index 23e2514a..f5a42811 100644 --- a/src/sdk/models/operations/uploadplaylist.ts +++ b/src/sdk/models/operations/uploadplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -126,150 +126,6 @@ export type UploadPlaylistResponse = { rawResponse: Response; }; -/** @internal */ -export const UploadPlaylistGlobals$inboundSchema: z.ZodType< - UploadPlaylistGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type UploadPlaylistGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const UploadPlaylistGlobals$outboundSchema: z.ZodType< - UploadPlaylistGlobals$Outbound, - z.ZodTypeDef, - UploadPlaylistGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadPlaylistGlobals$ { - /** @deprecated use `UploadPlaylistGlobals$inboundSchema` instead. */ - export const inboundSchema = UploadPlaylistGlobals$inboundSchema; - /** @deprecated use `UploadPlaylistGlobals$outboundSchema` instead. */ - export const outboundSchema = UploadPlaylistGlobals$outboundSchema; - /** @deprecated use `UploadPlaylistGlobals$Outbound` instead. */ - export type Outbound = UploadPlaylistGlobals$Outbound; -} - -export function uploadPlaylistGlobalsToJSON( - uploadPlaylistGlobals: UploadPlaylistGlobals, -): string { - return JSON.stringify( - UploadPlaylistGlobals$outboundSchema.parse(uploadPlaylistGlobals), - ); -} - -export function uploadPlaylistGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UploadPlaylistGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UploadPlaylistGlobals' from JSON`, - ); -} - -/** @internal */ -export const UploadPlaylistRequest$inboundSchema: z.ZodType< - UploadPlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - path: z.string().optional(), - force: shared.BoolInt$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type UploadPlaylistRequest$Outbound = { accepts: string; @@ -321,19 +177,6 @@ export const UploadPlaylistRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadPlaylistRequest$ { - /** @deprecated use `UploadPlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = UploadPlaylistRequest$inboundSchema; - /** @deprecated use `UploadPlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = UploadPlaylistRequest$outboundSchema; - /** @deprecated use `UploadPlaylistRequest$Outbound` instead. */ - export type Outbound = UploadPlaylistRequest$Outbound; -} - export function uploadPlaylistRequestToJSON( uploadPlaylistRequest: UploadPlaylistRequest, ): string { @@ -342,16 +185,6 @@ export function uploadPlaylistRequestToJSON( ); } -export function uploadPlaylistRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UploadPlaylistRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UploadPlaylistRequest' from JSON`, - ); -} - /** @internal */ export const UploadPlaylistResponse$inboundSchema: z.ZodType< UploadPlaylistResponse, @@ -369,53 +202,6 @@ export const UploadPlaylistResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UploadPlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UploadPlaylistResponse$outboundSchema: z.ZodType< - UploadPlaylistResponse$Outbound, - z.ZodTypeDef, - UploadPlaylistResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadPlaylistResponse$ { - /** @deprecated use `UploadPlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = UploadPlaylistResponse$inboundSchema; - /** @deprecated use `UploadPlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = UploadPlaylistResponse$outboundSchema; - /** @deprecated use `UploadPlaylistResponse$Outbound` instead. */ - export type Outbound = UploadPlaylistResponse$Outbound; -} - -export function uploadPlaylistResponseToJSON( - uploadPlaylistResponse: UploadPlaylistResponse, -): string { - return JSON.stringify( - UploadPlaylistResponse$outboundSchema.parse(uploadPlaylistResponse), - ); -} - export function uploadPlaylistResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/voicesearchhubs.ts b/src/sdk/models/operations/voicesearchhubs.ts index 7b710252..491389d4 100644 --- a/src/sdk/models/operations/voicesearchhubs.ts +++ b/src/sdk/models/operations/voicesearchhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -167,151 +167,6 @@ export type VoiceSearchHubsResponse = { headers: { [k: string]: Array }; }; -/** @internal */ -export const VoiceSearchHubsGlobals$inboundSchema: z.ZodType< - VoiceSearchHubsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type VoiceSearchHubsGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const VoiceSearchHubsGlobals$outboundSchema: z.ZodType< - VoiceSearchHubsGlobals$Outbound, - z.ZodTypeDef, - VoiceSearchHubsGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VoiceSearchHubsGlobals$ { - /** @deprecated use `VoiceSearchHubsGlobals$inboundSchema` instead. */ - export const inboundSchema = VoiceSearchHubsGlobals$inboundSchema; - /** @deprecated use `VoiceSearchHubsGlobals$outboundSchema` instead. */ - export const outboundSchema = VoiceSearchHubsGlobals$outboundSchema; - /** @deprecated use `VoiceSearchHubsGlobals$Outbound` instead. */ - export type Outbound = VoiceSearchHubsGlobals$Outbound; -} - -export function voiceSearchHubsGlobalsToJSON( - voiceSearchHubsGlobals: VoiceSearchHubsGlobals, -): string { - return JSON.stringify( - VoiceSearchHubsGlobals$outboundSchema.parse(voiceSearchHubsGlobals), - ); -} - -export function voiceSearchHubsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VoiceSearchHubsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VoiceSearchHubsGlobals' from JSON`, - ); -} - -/** @internal */ -export const VoiceSearchHubsRequest$inboundSchema: z.ZodType< - VoiceSearchHubsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - query: z.string(), - type: z.number().int().optional(), - limit: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - /** @internal */ export type VoiceSearchHubsRequest$Outbound = { accepts: string; @@ -365,19 +220,6 @@ export const VoiceSearchHubsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VoiceSearchHubsRequest$ { - /** @deprecated use `VoiceSearchHubsRequest$inboundSchema` instead. */ - export const inboundSchema = VoiceSearchHubsRequest$inboundSchema; - /** @deprecated use `VoiceSearchHubsRequest$outboundSchema` instead. */ - export const outboundSchema = VoiceSearchHubsRequest$outboundSchema; - /** @deprecated use `VoiceSearchHubsRequest$Outbound` instead. */ - export type Outbound = VoiceSearchHubsRequest$Outbound; -} - export function voiceSearchHubsRequestToJSON( voiceSearchHubsRequest: VoiceSearchHubsRequest, ): string { @@ -386,16 +228,6 @@ export function voiceSearchHubsRequestToJSON( ); } -export function voiceSearchHubsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VoiceSearchHubsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VoiceSearchHubsRequest' from JSON`, - ); -} - /** @internal */ export const VoiceSearchHubsMediaContainer$inboundSchema: z.ZodType< VoiceSearchHubsMediaContainer, @@ -413,55 +245,6 @@ export const VoiceSearchHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VoiceSearchHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const VoiceSearchHubsMediaContainer$outboundSchema: z.ZodType< - VoiceSearchHubsMediaContainer$Outbound, - z.ZodTypeDef, - VoiceSearchHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(shared.Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VoiceSearchHubsMediaContainer$ { - /** @deprecated use `VoiceSearchHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = VoiceSearchHubsMediaContainer$inboundSchema; - /** @deprecated use `VoiceSearchHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = VoiceSearchHubsMediaContainer$outboundSchema; - /** @deprecated use `VoiceSearchHubsMediaContainer$Outbound` instead. */ - export type Outbound = VoiceSearchHubsMediaContainer$Outbound; -} - -export function voiceSearchHubsMediaContainerToJSON( - voiceSearchHubsMediaContainer: VoiceSearchHubsMediaContainer, -): string { - return JSON.stringify( - VoiceSearchHubsMediaContainer$outboundSchema.parse( - voiceSearchHubsMediaContainer, - ), - ); -} - export function voiceSearchHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -486,48 +269,6 @@ export const VoiceSearchHubsResponseBody$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VoiceSearchHubsResponseBody$Outbound = { - MediaContainer?: VoiceSearchHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const VoiceSearchHubsResponseBody$outboundSchema: z.ZodType< - VoiceSearchHubsResponseBody$Outbound, - z.ZodTypeDef, - VoiceSearchHubsResponseBody -> = z.object({ - mediaContainer: z.lazy(() => VoiceSearchHubsMediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VoiceSearchHubsResponseBody$ { - /** @deprecated use `VoiceSearchHubsResponseBody$inboundSchema` instead. */ - export const inboundSchema = VoiceSearchHubsResponseBody$inboundSchema; - /** @deprecated use `VoiceSearchHubsResponseBody$outboundSchema` instead. */ - export const outboundSchema = VoiceSearchHubsResponseBody$outboundSchema; - /** @deprecated use `VoiceSearchHubsResponseBody$Outbound` instead. */ - export type Outbound = VoiceSearchHubsResponseBody$Outbound; -} - -export function voiceSearchHubsResponseBodyToJSON( - voiceSearchHubsResponseBody: VoiceSearchHubsResponseBody, -): string { - return JSON.stringify( - VoiceSearchHubsResponseBody$outboundSchema.parse( - voiceSearchHubsResponseBody, - ), - ); -} - export function voiceSearchHubsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -548,7 +289,7 @@ export const VoiceSearchHubsResponse$inboundSchema: z.ZodType< StatusCode: z.number().int(), RawResponse: z.instanceof(Response), object: z.lazy(() => VoiceSearchHubsResponseBody$inboundSchema).optional(), - Headers: z.record(z.array(z.string())), + Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "ContentType": "contentType", @@ -558,58 +299,6 @@ export const VoiceSearchHubsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VoiceSearchHubsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: VoiceSearchHubsResponseBody$Outbound | undefined; - Headers: { [k: string]: Array }; -}; - -/** @internal */ -export const VoiceSearchHubsResponse$outboundSchema: z.ZodType< - VoiceSearchHubsResponse$Outbound, - z.ZodTypeDef, - VoiceSearchHubsResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => VoiceSearchHubsResponseBody$outboundSchema).optional(), - headers: z.record(z.array(z.string())), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - headers: "Headers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VoiceSearchHubsResponse$ { - /** @deprecated use `VoiceSearchHubsResponse$inboundSchema` instead. */ - export const inboundSchema = VoiceSearchHubsResponse$inboundSchema; - /** @deprecated use `VoiceSearchHubsResponse$outboundSchema` instead. */ - export const outboundSchema = VoiceSearchHubsResponse$outboundSchema; - /** @deprecated use `VoiceSearchHubsResponse$Outbound` instead. */ - export type Outbound = VoiceSearchHubsResponse$Outbound; -} - -export function voiceSearchHubsResponseToJSON( - voiceSearchHubsResponse: VoiceSearchHubsResponse, -): string { - return JSON.stringify( - VoiceSearchHubsResponse$outboundSchema.parse(voiceSearchHubsResponse), - ); -} - export function voiceSearchHubsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/writelog.ts b/src/sdk/models/operations/writelog.ts index 58dc2643..4f4c766d 100644 --- a/src/sdk/models/operations/writelog.ts +++ b/src/sdk/models/operations/writelog.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,53 +40,6 @@ export const WriteLogResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WriteLogResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const WriteLogResponse$outboundSchema: z.ZodType< - WriteLogResponse$Outbound, - z.ZodTypeDef, - WriteLogResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteLogResponse$ { - /** @deprecated use `WriteLogResponse$inboundSchema` instead. */ - export const inboundSchema = WriteLogResponse$inboundSchema; - /** @deprecated use `WriteLogResponse$outboundSchema` instead. */ - export const outboundSchema = WriteLogResponse$outboundSchema; - /** @deprecated use `WriteLogResponse$Outbound` instead. */ - export type Outbound = WriteLogResponse$Outbound; -} - -export function writeLogResponseToJSON( - writeLogResponse: WriteLogResponse, -): string { - return JSON.stringify( - WriteLogResponse$outboundSchema.parse(writeLogResponse), - ); -} - export function writeLogResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/writemessage.ts b/src/sdk/models/operations/writemessage.ts index 92b9a633..9eca931d 100644 --- a/src/sdk/models/operations/writemessage.ts +++ b/src/sdk/models/operations/writemessage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -155,171 +155,10 @@ export type WriteMessageResponse = { rawResponse: Response; }; -/** @internal */ -export const WriteMessageGlobals$inboundSchema: z.ZodType< - WriteMessageGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); - -/** @internal */ -export type WriteMessageGlobals$Outbound = { - accepts: string; - "Client-Identifier"?: string | undefined; - Product?: string | undefined; - Version?: string | undefined; - Platform?: string | undefined; - "Platform-Version"?: string | undefined; - Device?: string | undefined; - Model?: string | undefined; - "Device-Vendor"?: string | undefined; - "Device-Name"?: string | undefined; - Marketplace?: string | undefined; -}; - -/** @internal */ -export const WriteMessageGlobals$outboundSchema: z.ZodType< - WriteMessageGlobals$Outbound, - z.ZodTypeDef, - WriteMessageGlobals -> = z.object({ - accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), - clientIdentifier: z.string().optional(), - product: z.string().optional(), - version: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - device: z.string().optional(), - model: z.string().optional(), - deviceVendor: z.string().optional(), - deviceName: z.string().optional(), - marketplace: z.string().optional(), -}).transform((v) => { - return remap$(v, { - clientIdentifier: "Client-Identifier", - product: "Product", - version: "Version", - platform: "Platform", - platformVersion: "Platform-Version", - device: "Device", - model: "Model", - deviceVendor: "Device-Vendor", - deviceName: "Device-Name", - marketplace: "Marketplace", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteMessageGlobals$ { - /** @deprecated use `WriteMessageGlobals$inboundSchema` instead. */ - export const inboundSchema = WriteMessageGlobals$inboundSchema; - /** @deprecated use `WriteMessageGlobals$outboundSchema` instead. */ - export const outboundSchema = WriteMessageGlobals$outboundSchema; - /** @deprecated use `WriteMessageGlobals$Outbound` instead. */ - export type Outbound = WriteMessageGlobals$Outbound; -} - -export function writeMessageGlobalsToJSON( - writeMessageGlobals: WriteMessageGlobals, -): string { - return JSON.stringify( - WriteMessageGlobals$outboundSchema.parse(writeMessageGlobals), - ); -} - -export function writeMessageGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WriteMessageGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WriteMessageGlobals' from JSON`, - ); -} - -/** @internal */ -export const WriteMessageLevel$inboundSchema: z.ZodNativeEnum< - typeof WriteMessageLevel -> = z.nativeEnum(WriteMessageLevel); - /** @internal */ export const WriteMessageLevel$outboundSchema: z.ZodNativeEnum< typeof WriteMessageLevel -> = WriteMessageLevel$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteMessageLevel$ { - /** @deprecated use `WriteMessageLevel$inboundSchema` instead. */ - export const inboundSchema = WriteMessageLevel$inboundSchema; - /** @deprecated use `WriteMessageLevel$outboundSchema` instead. */ - export const outboundSchema = WriteMessageLevel$outboundSchema; -} - -/** @internal */ -export const WriteMessageRequest$inboundSchema: z.ZodType< - WriteMessageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), - "Client-Identifier": z.string().optional(), - Product: z.string().optional(), - Version: z.string().optional(), - Platform: z.string().optional(), - "Platform-Version": z.string().optional(), - Device: z.string().optional(), - Model: z.string().optional(), - "Device-Vendor": z.string().optional(), - "Device-Name": z.string().optional(), - Marketplace: z.string().optional(), - level: WriteMessageLevel$inboundSchema.optional(), - message: z.string().optional(), - source: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Client-Identifier": "clientIdentifier", - "Product": "product", - "Version": "version", - "Platform": "platform", - "Platform-Version": "platformVersion", - "Device": "device", - "Model": "model", - "Device-Vendor": "deviceVendor", - "Device-Name": "deviceName", - "Marketplace": "marketplace", - }); -}); +> = z.nativeEnum(WriteMessageLevel); /** @internal */ export type WriteMessageRequest$Outbound = { @@ -374,19 +213,6 @@ export const WriteMessageRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteMessageRequest$ { - /** @deprecated use `WriteMessageRequest$inboundSchema` instead. */ - export const inboundSchema = WriteMessageRequest$inboundSchema; - /** @deprecated use `WriteMessageRequest$outboundSchema` instead. */ - export const outboundSchema = WriteMessageRequest$outboundSchema; - /** @deprecated use `WriteMessageRequest$Outbound` instead. */ - export type Outbound = WriteMessageRequest$Outbound; -} - export function writeMessageRequestToJSON( writeMessageRequest: WriteMessageRequest, ): string { @@ -395,16 +221,6 @@ export function writeMessageRequestToJSON( ); } -export function writeMessageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WriteMessageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WriteMessageRequest' from JSON`, - ); -} - /** @internal */ export const WriteMessageResponse$inboundSchema: z.ZodType< WriteMessageResponse, @@ -422,53 +238,6 @@ export const WriteMessageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WriteMessageResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const WriteMessageResponse$outboundSchema: z.ZodType< - WriteMessageResponse$Outbound, - z.ZodTypeDef, - WriteMessageResponse -> = z.object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - rawResponse: "RawResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteMessageResponse$ { - /** @deprecated use `WriteMessageResponse$inboundSchema` instead. */ - export const inboundSchema = WriteMessageResponse$inboundSchema; - /** @deprecated use `WriteMessageResponse$outboundSchema` instead. */ - export const outboundSchema = WriteMessageResponse$outboundSchema; - /** @deprecated use `WriteMessageResponse$Outbound` instead. */ - export type Outbound = WriteMessageResponse$Outbound; -} - -export function writeMessageResponseToJSON( - writeMessageResponse: WriteMessageResponse, -): string { - return JSON.stringify( - WriteMessageResponse$outboundSchema.parse(writeMessageResponse), - ); -} - export function writeMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/accepts.ts b/src/sdk/models/shared/accepts.ts index dff54fd3..c6961fee 100644 --- a/src/sdk/models/shared/accepts.ts +++ b/src/sdk/models/shared/accepts.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum Accepts { ApplicationJson = "application/json", @@ -10,20 +10,5 @@ export enum Accepts { } /** @internal */ -export const Accepts$inboundSchema: z.ZodNativeEnum = z +export const Accepts$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Accepts); - -/** @internal */ -export const Accepts$outboundSchema: z.ZodNativeEnum = - Accepts$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Accepts$ { - /** @deprecated use `Accepts$inboundSchema` instead. */ - export const inboundSchema = Accepts$inboundSchema; - /** @deprecated use `Accepts$outboundSchema` instead. */ - export const outboundSchema = Accepts$outboundSchema; -} diff --git a/src/sdk/models/shared/advancedsubtitles.ts b/src/sdk/models/shared/advancedsubtitles.ts index 02c08ce2..3fca43e7 100644 --- a/src/sdk/models/shared/advancedsubtitles.ts +++ b/src/sdk/models/shared/advancedsubtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum AdvancedSubtitles { Burn = "burn", @@ -10,23 +10,7 @@ export enum AdvancedSubtitles { Unknown = "unknown", } -/** @internal */ -export const AdvancedSubtitles$inboundSchema: z.ZodNativeEnum< - typeof AdvancedSubtitles -> = z.nativeEnum(AdvancedSubtitles); - /** @internal */ export const AdvancedSubtitles$outboundSchema: z.ZodNativeEnum< typeof AdvancedSubtitles -> = AdvancedSubtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdvancedSubtitles$ { - /** @deprecated use `AdvancedSubtitles$inboundSchema` instead. */ - export const inboundSchema = AdvancedSubtitles$inboundSchema; - /** @deprecated use `AdvancedSubtitles$outboundSchema` instead. */ - export const outboundSchema = AdvancedSubtitles$outboundSchema; -} +> = z.nativeEnum(AdvancedSubtitles); diff --git a/src/sdk/models/shared/boolint.ts b/src/sdk/models/shared/boolint.ts index df8b8475..bea1b9ae 100644 --- a/src/sdk/models/shared/boolint.ts +++ b/src/sdk/models/shared/boolint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum BoolInt { Zero = 0, @@ -10,20 +10,5 @@ export enum BoolInt { } /** @internal */ -export const BoolInt$inboundSchema: z.ZodNativeEnum = z +export const BoolInt$outboundSchema: z.ZodNativeEnum = z .nativeEnum(BoolInt); - -/** @internal */ -export const BoolInt$outboundSchema: z.ZodNativeEnum = - BoolInt$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BoolInt$ { - /** @deprecated use `BoolInt$inboundSchema` instead. */ - export const inboundSchema = BoolInt$inboundSchema; - /** @deprecated use `BoolInt$outboundSchema` instead. */ - export const outboundSchema = BoolInt$outboundSchema; -} diff --git a/src/sdk/models/shared/channel.ts b/src/sdk/models/shared/channel.ts index 16444ebf..07d47613 100644 --- a/src/sdk/models/shared/channel.ts +++ b/src/sdk/models/shared/channel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -31,51 +31,6 @@ export const Channel$inboundSchema: z.ZodType = thumb: z.string().optional(), }); -/** @internal */ -export type Channel$Outbound = { - title?: string | undefined; - callSign?: string | undefined; - channelVcn?: string | undefined; - hd?: boolean | undefined; - identifier?: string | undefined; - key?: string | undefined; - language?: string | undefined; - thumb?: string | undefined; -}; - -/** @internal */ -export const Channel$outboundSchema: z.ZodType< - Channel$Outbound, - z.ZodTypeDef, - Channel -> = z.object({ - title: z.string().optional(), - callSign: z.string().optional(), - channelVcn: z.string().optional(), - hd: z.boolean().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - language: z.string().optional(), - thumb: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Channel$ { - /** @deprecated use `Channel$inboundSchema` instead. */ - export const inboundSchema = Channel$inboundSchema; - /** @deprecated use `Channel$outboundSchema` instead. */ - export const outboundSchema = Channel$outboundSchema; - /** @deprecated use `Channel$Outbound` instead. */ - export type Outbound = Channel$Outbound; -} - -export function channelToJSON(channel: Channel): string { - return JSON.stringify(Channel$outboundSchema.parse(channel)); -} - export function channelFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/channelmapping.ts b/src/sdk/models/shared/channelmapping.ts index 17af4440..f4f223e6 100644 --- a/src/sdk/models/shared/channelmapping.ts +++ b/src/sdk/models/shared/channelmapping.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -26,43 +26,6 @@ export const ChannelMapping$inboundSchema: z.ZodType< lineupIdentifier: z.string().optional(), }); -/** @internal */ -export type ChannelMapping$Outbound = { - channelKey?: string | undefined; - deviceIdentifier?: string | undefined; - enabled?: string | undefined; - lineupIdentifier?: string | undefined; -}; - -/** @internal */ -export const ChannelMapping$outboundSchema: z.ZodType< - ChannelMapping$Outbound, - z.ZodTypeDef, - ChannelMapping -> = z.object({ - channelKey: z.string().optional(), - deviceIdentifier: z.string().optional(), - enabled: z.string().optional(), - lineupIdentifier: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChannelMapping$ { - /** @deprecated use `ChannelMapping$inboundSchema` instead. */ - export const inboundSchema = ChannelMapping$inboundSchema; - /** @deprecated use `ChannelMapping$outboundSchema` instead. */ - export const outboundSchema = ChannelMapping$outboundSchema; - /** @deprecated use `ChannelMapping$Outbound` instead. */ - export type Outbound = ChannelMapping$Outbound; -} - -export function channelMappingToJSON(channelMapping: ChannelMapping): string { - return JSON.stringify(ChannelMapping$outboundSchema.parse(channelMapping)); -} - export function channelMappingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/composite.ts b/src/sdk/models/shared/composite.ts index 524deb56..369249df 100644 --- a/src/sdk/models/shared/composite.ts +++ b/src/sdk/models/shared/composite.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; /** * The image type @@ -80,82 +77,18 @@ export type Composite = { }; /** @internal */ -export const Format$inboundSchema: z.ZodNativeEnum = z +export const Format$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); /** @internal */ -export const Format$outboundSchema: z.ZodNativeEnum = - Format$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; -} - -/** @internal */ -export const Crop$inboundSchema: z.ZodNativeEnum = z.nativeEnum( +export const Crop$outboundSchema: z.ZodNativeEnum = z.nativeEnum( Crop, ); /** @internal */ -export const Crop$outboundSchema: z.ZodNativeEnum = - Crop$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Crop$ { - /** @deprecated use `Crop$inboundSchema` instead. */ - export const inboundSchema = Crop$inboundSchema; - /** @deprecated use `Crop$outboundSchema` instead. */ - export const outboundSchema = Crop$outboundSchema; -} - -/** @internal */ -export const MediaEnum$inboundSchema: z.ZodNativeEnum = z +export const MediaEnum$outboundSchema: z.ZodNativeEnum = z .nativeEnum(MediaEnum); -/** @internal */ -export const MediaEnum$outboundSchema: z.ZodNativeEnum = - MediaEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaEnum$ { - /** @deprecated use `MediaEnum$inboundSchema` instead. */ - export const inboundSchema = MediaEnum$inboundSchema; - /** @deprecated use `MediaEnum$outboundSchema` instead. */ - export const outboundSchema = MediaEnum$outboundSchema; -} - -/** @internal */ -export const Composite$inboundSchema: z.ZodType< - Composite, - z.ZodTypeDef, - unknown -> = z.object({ - type: z.number().int().optional(), - format: Format$inboundSchema.optional(), - backgroundColor: z.string().optional(), - border: z.number().int().optional(), - cols: z.number().int().optional(), - crop: Crop$inboundSchema.optional(), - height: z.number().int().optional(), - media: MediaEnum$inboundSchema.optional(), - repeat: z.boolean().optional(), - rows: z.number().int().optional(), - width: z.number().int().optional(), -}); - /** @internal */ export type Composite$Outbound = { type?: number | undefined; @@ -190,29 +123,6 @@ export const Composite$outboundSchema: z.ZodType< width: z.number().int().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Composite$ { - /** @deprecated use `Composite$inboundSchema` instead. */ - export const inboundSchema = Composite$inboundSchema; - /** @deprecated use `Composite$outboundSchema` instead. */ - export const outboundSchema = Composite$outboundSchema; - /** @deprecated use `Composite$Outbound` instead. */ - export type Outbound = Composite$Outbound; -} - export function compositeToJSON(composite: Composite): string { return JSON.stringify(Composite$outboundSchema.parse(composite)); } - -export function compositeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Composite$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Composite' from JSON`, - ); -} diff --git a/src/sdk/models/shared/device.ts b/src/sdk/models/shared/device.ts index 9bad37f0..261474e0 100644 --- a/src/sdk/models/shared/device.ts +++ b/src/sdk/models/shared/device.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChannelMapping, ChannelMapping$inboundSchema, - ChannelMapping$Outbound, - ChannelMapping$outboundSchema, } from "./channelmapping.js"; export type Device = { @@ -52,65 +50,6 @@ export const Device$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Device$Outbound = { - ChannelMapping?: Array | undefined; - key?: string | undefined; - lastSeenAt?: number | undefined; - make?: string | undefined; - model?: string | undefined; - modelNumber?: string | undefined; - protocol?: string | undefined; - sources?: string | undefined; - state?: string | undefined; - status?: string | undefined; - tuners?: string | undefined; - uri?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const Device$outboundSchema: z.ZodType< - Device$Outbound, - z.ZodTypeDef, - Device -> = z.object({ - channelMapping: z.array(ChannelMapping$outboundSchema).optional(), - key: z.string().optional(), - lastSeenAt: z.number().int().optional(), - make: z.string().optional(), - model: z.string().optional(), - modelNumber: z.string().optional(), - protocol: z.string().optional(), - sources: z.string().optional(), - state: z.string().optional(), - status: z.string().optional(), - tuners: z.string().optional(), - uri: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - channelMapping: "ChannelMapping", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Device$ { - /** @deprecated use `Device$inboundSchema` instead. */ - export const inboundSchema = Device$inboundSchema; - /** @deprecated use `Device$outboundSchema` instead. */ - export const outboundSchema = Device$outboundSchema; - /** @deprecated use `Device$Outbound` instead. */ - export type Outbound = Device$Outbound; -} - -export function deviceToJSON(device: Device): string { - return JSON.stringify(Device$outboundSchema.parse(device)); -} - export function deviceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/directory.ts b/src/sdk/models/shared/directory.ts index c584cacf..3b73eff4 100644 --- a/src/sdk/models/shared/directory.ts +++ b/src/sdk/models/shared/directory.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -36,7 +36,7 @@ export type Directory = { share?: number | undefined; thumb?: string | undefined; titleBar?: string | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -53,47 +53,6 @@ export const DirectoryPivot$inboundSchema: z.ZodType< symbol: z.string().optional(), }); -/** @internal */ -export type DirectoryPivot$Outbound = { - title?: string | undefined; - type?: string | undefined; - context?: string | undefined; - id?: string | undefined; - key?: string | undefined; - symbol?: string | undefined; -}; - -/** @internal */ -export const DirectoryPivot$outboundSchema: z.ZodType< - DirectoryPivot$Outbound, - z.ZodTypeDef, - DirectoryPivot -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DirectoryPivot$ { - /** @deprecated use `DirectoryPivot$inboundSchema` instead. */ - export const inboundSchema = DirectoryPivot$inboundSchema; - /** @deprecated use `DirectoryPivot$outboundSchema` instead. */ - export const outboundSchema = DirectoryPivot$outboundSchema; - /** @deprecated use `DirectoryPivot$Outbound` instead. */ - export type Outbound = DirectoryPivot$Outbound; -} - -export function directoryPivotToJSON(directoryPivot: DirectoryPivot): string { - return JSON.stringify(DirectoryPivot$outboundSchema.parse(directoryPivot)); -} - export function directoryPivotFromJSON( jsonString: string, ): SafeParseResult { @@ -135,75 +94,6 @@ export const Directory$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Directory$Outbound = { - title?: string | undefined; - type?: string | undefined; - art?: string | undefined; - content?: boolean | undefined; - filter?: string | undefined; - hasPrefs?: boolean | undefined; - hasStoreServices?: boolean | undefined; - hubKey?: string | undefined; - identifier?: string | undefined; - key?: string | undefined; - lastAccessedAt?: number | undefined; - Pivot?: Array | undefined; - share?: number | undefined; - thumb?: string | undefined; - titleBar?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Directory$outboundSchema: z.ZodType< - Directory$Outbound, - z.ZodTypeDef, - Directory -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - pivot: z.array(z.lazy(() => DirectoryPivot$outboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - pivot: "Pivot", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Directory$ { - /** @deprecated use `Directory$inboundSchema` instead. */ - export const inboundSchema = Directory$inboundSchema; - /** @deprecated use `Directory$outboundSchema` instead. */ - export const outboundSchema = Directory$outboundSchema; - /** @deprecated use `Directory$Outbound` instead. */ - export type Outbound = Directory$Outbound; -} - -export function directoryToJSON(directory: Directory): string { - return JSON.stringify(Directory$outboundSchema.parse(directory)); -} - export function directoryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts b/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts index e4d3bd2a..38da3671 100644 --- a/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts +++ b/src/sdk/models/shared/dvrrequesthandlerslashgetresponses200.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Device, - Device$inboundSchema, - Device$Outbound, - Device$outboundSchema, -} from "./device.js"; +import { Device, Device$inboundSchema } from "./device.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -81,56 +76,6 @@ export const DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$i status: z.number().int().optional(), }); -/** @internal */ -export type DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$Outbound = - { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - status?: number | undefined; - }; - -/** @internal */ -export const DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$outboundSchema: - z.ZodType< - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$Outbound, - z.ZodTypeDef, - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - status: z.number().int().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$ { - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$inboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$outboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$Outbound` instead. */ - export type Outbound = - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$Outbound; -} - -export function dvrRequestHandlerSlashGetResponses200MediaContainerMediaContainerToJSON( - dvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer: - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer, -): string { - return JSON.stringify( - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$outboundSchema - .parse(dvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer), - ); -} - export function dvrRequestHandlerSlashGetResponses200MediaContainerMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -160,46 +105,6 @@ export const Dvr$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Dvr$Outbound = { - Device?: Array | undefined; - key?: string | undefined; - language?: string | undefined; - lineup?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const Dvr$outboundSchema: z.ZodType = z - .object({ - device: z.array(Device$outboundSchema).optional(), - key: z.string().optional(), - language: z.string().optional(), - lineup: z.string().optional(), - uuid: z.string().optional(), - }).transform((v) => { - return remap$(v, { - device: "Device", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Dvr$ { - /** @deprecated use `Dvr$inboundSchema` instead. */ - export const inboundSchema = Dvr$inboundSchema; - /** @deprecated use `Dvr$outboundSchema` instead. */ - export const outboundSchema = Dvr$outboundSchema; - /** @deprecated use `Dvr$Outbound` instead. */ - export type Outbound = Dvr$Outbound; -} - -export function dvrToJSON(dvr: Dvr): string { - return JSON.stringify(Dvr$outboundSchema.parse(dvr)); -} - export function dvrFromJSON( jsonString: string, ): SafeParseResult { @@ -228,59 +133,6 @@ export const DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema: }); }); -/** @internal */ -export type DvrRequestHandlerSlashGetResponses200MediaContainer$Outbound = { - MediaContainer?: - | DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$Outbound - | undefined; - DVR?: Array | undefined; -}; - -/** @internal */ -export const DvrRequestHandlerSlashGetResponses200MediaContainer$outboundSchema: - z.ZodType< - DvrRequestHandlerSlashGetResponses200MediaContainer$Outbound, - z.ZodTypeDef, - DvrRequestHandlerSlashGetResponses200MediaContainer - > = z.object({ - mediaContainer: z.lazy(() => - DvrRequestHandlerSlashGetResponses200MediaContainerMediaContainer$outboundSchema - ).optional(), - dvr: z.array(z.lazy(() => Dvr$outboundSchema)).optional(), - }).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - dvr: "DVR", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DvrRequestHandlerSlashGetResponses200MediaContainer$ { - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = - DvrRequestHandlerSlashGetResponses200MediaContainer$inboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = - DvrRequestHandlerSlashGetResponses200MediaContainer$outboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200MediaContainer$Outbound` instead. */ - export type Outbound = - DvrRequestHandlerSlashGetResponses200MediaContainer$Outbound; -} - -export function dvrRequestHandlerSlashGetResponses200MediaContainerToJSON( - dvrRequestHandlerSlashGetResponses200MediaContainer: - DvrRequestHandlerSlashGetResponses200MediaContainer, -): string { - return JSON.stringify( - DvrRequestHandlerSlashGetResponses200MediaContainer$outboundSchema.parse( - dvrRequestHandlerSlashGetResponses200MediaContainer, - ), - ); -} - export function dvrRequestHandlerSlashGetResponses200MediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -312,53 +164,6 @@ export const DvrRequestHandlerSlashGetResponses200$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DvrRequestHandlerSlashGetResponses200$Outbound = { - MediaContainer?: - | DvrRequestHandlerSlashGetResponses200MediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const DvrRequestHandlerSlashGetResponses200$outboundSchema: z.ZodType< - DvrRequestHandlerSlashGetResponses200$Outbound, - z.ZodTypeDef, - DvrRequestHandlerSlashGetResponses200 -> = z.object({ - mediaContainer: z.lazy(() => - DvrRequestHandlerSlashGetResponses200MediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DvrRequestHandlerSlashGetResponses200$ { - /** @deprecated use `DvrRequestHandlerSlashGetResponses200$inboundSchema` instead. */ - export const inboundSchema = - DvrRequestHandlerSlashGetResponses200$inboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200$outboundSchema` instead. */ - export const outboundSchema = - DvrRequestHandlerSlashGetResponses200$outboundSchema; - /** @deprecated use `DvrRequestHandlerSlashGetResponses200$Outbound` instead. */ - export type Outbound = DvrRequestHandlerSlashGetResponses200$Outbound; -} - -export function dvrRequestHandlerSlashGetResponses200ToJSON( - dvrRequestHandlerSlashGetResponses200: DvrRequestHandlerSlashGetResponses200, -): string { - return JSON.stringify( - DvrRequestHandlerSlashGetResponses200$outboundSchema.parse( - dvrRequestHandlerSlashGetResponses200, - ), - ); -} - export function dvrRequestHandlerSlashGetResponses200FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/filter.ts b/src/sdk/models/shared/filter.ts index 81869132..dd22749b 100644 --- a/src/sdk/models/shared/filter.ts +++ b/src/sdk/models/shared/filter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -54,7 +54,7 @@ export type Filter = { * This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. */ filterType?: string | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -71,47 +71,6 @@ export const FilterPivot$inboundSchema: z.ZodType< symbol: z.string().optional(), }); -/** @internal */ -export type FilterPivot$Outbound = { - title?: string | undefined; - type?: string | undefined; - context?: string | undefined; - id?: string | undefined; - key?: string | undefined; - symbol?: string | undefined; -}; - -/** @internal */ -export const FilterPivot$outboundSchema: z.ZodType< - FilterPivot$Outbound, - z.ZodTypeDef, - FilterPivot -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilterPivot$ { - /** @deprecated use `FilterPivot$inboundSchema` instead. */ - export const inboundSchema = FilterPivot$inboundSchema; - /** @deprecated use `FilterPivot$outboundSchema` instead. */ - export const outboundSchema = FilterPivot$outboundSchema; - /** @deprecated use `FilterPivot$Outbound` instead. */ - export type Outbound = FilterPivot$Outbound; -} - -export function filterPivotToJSON(filterPivot: FilterPivot): string { - return JSON.stringify(FilterPivot$outboundSchema.parse(filterPivot)); -} - export function filterPivotFromJSON( jsonString: string, ): SafeParseResult { @@ -151,77 +110,6 @@ export const Filter$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Filter$Outbound = { - title?: string | undefined; - type?: string | undefined; - art?: string | undefined; - content?: boolean | undefined; - filter?: string | undefined; - hasPrefs?: boolean | undefined; - hasStoreServices?: boolean | undefined; - hubKey?: string | undefined; - identifier?: string | undefined; - key?: string | undefined; - lastAccessedAt?: number | undefined; - Pivot?: Array | undefined; - share?: number | undefined; - thumb?: string | undefined; - titleBar?: string | undefined; - filterType?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Filter$outboundSchema: z.ZodType< - Filter$Outbound, - z.ZodTypeDef, - Filter -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - pivot: z.array(z.lazy(() => FilterPivot$outboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - filterType: z.string().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - pivot: "Pivot", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Filter$ { - /** @deprecated use `Filter$inboundSchema` instead. */ - export const inboundSchema = Filter$inboundSchema; - /** @deprecated use `Filter$outboundSchema` instead. */ - export const outboundSchema = Filter$outboundSchema; - /** @deprecated use `Filter$Outbound` instead. */ - export type Outbound = Filter$Outbound; -} - -export function filterToJSON(filter: Filter): string { - return JSON.stringify(Filter$outboundSchema.parse(filter)); -} - export function filterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/getresponses200.ts b/src/sdk/models/shared/getresponses200.ts index 8b292866..8b4b419f 100644 --- a/src/sdk/models/shared/getresponses200.ts +++ b/src/sdk/models/shared/getresponses200.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -120,43 +120,11 @@ export const HomeVisibility$inboundSchema: z.ZodNativeEnum< typeof HomeVisibility > = z.nativeEnum(HomeVisibility); -/** @internal */ -export const HomeVisibility$outboundSchema: z.ZodNativeEnum< - typeof HomeVisibility -> = HomeVisibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HomeVisibility$ { - /** @deprecated use `HomeVisibility$inboundSchema` instead. */ - export const inboundSchema = HomeVisibility$inboundSchema; - /** @deprecated use `HomeVisibility$outboundSchema` instead. */ - export const outboundSchema = HomeVisibility$outboundSchema; -} - /** @internal */ export const RecommendationsVisibility$inboundSchema: z.ZodNativeEnum< typeof RecommendationsVisibility > = z.nativeEnum(RecommendationsVisibility); -/** @internal */ -export const RecommendationsVisibility$outboundSchema: z.ZodNativeEnum< - typeof RecommendationsVisibility -> = RecommendationsVisibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RecommendationsVisibility$ { - /** @deprecated use `RecommendationsVisibility$inboundSchema` instead. */ - export const inboundSchema = RecommendationsVisibility$inboundSchema; - /** @deprecated use `RecommendationsVisibility$outboundSchema` instead. */ - export const outboundSchema = RecommendationsVisibility$outboundSchema; -} - /** @internal */ export const HubResponse$inboundSchema: z.ZodType< HubResponse, @@ -172,50 +140,6 @@ export const HubResponse$inboundSchema: z.ZodType< title: z.string().optional(), }); -/** @internal */ -export type HubResponse$Outbound = { - homeVisibility?: string | undefined; - identifier?: string | undefined; - promotedToOwnHome?: boolean | undefined; - promotedToRecommended?: boolean | undefined; - promotedToSharedHome?: boolean | undefined; - recommendationsVisibility?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const HubResponse$outboundSchema: z.ZodType< - HubResponse$Outbound, - z.ZodTypeDef, - HubResponse -> = z.object({ - homeVisibility: HomeVisibility$outboundSchema.optional(), - identifier: z.string().optional(), - promotedToOwnHome: z.boolean().optional(), - promotedToRecommended: z.boolean().optional(), - promotedToSharedHome: z.boolean().optional(), - recommendationsVisibility: RecommendationsVisibility$outboundSchema - .optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HubResponse$ { - /** @deprecated use `HubResponse$inboundSchema` instead. */ - export const inboundSchema = HubResponse$inboundSchema; - /** @deprecated use `HubResponse$outboundSchema` instead. */ - export const outboundSchema = HubResponse$outboundSchema; - /** @deprecated use `HubResponse$Outbound` instead. */ - export type Outbound = HubResponse$Outbound; -} - -export function hubResponseToJSON(hubResponse: HubResponse): string { - return JSON.stringify(HubResponse$outboundSchema.parse(hubResponse)); -} - export function hubResponseFromJSON( jsonString: string, ): SafeParseResult { @@ -243,55 +167,6 @@ export const GetResponses200MediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetResponses200MediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const GetResponses200MediaContainer$outboundSchema: z.ZodType< - GetResponses200MediaContainer$Outbound, - z.ZodTypeDef, - GetResponses200MediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(z.lazy(() => HubResponse$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResponses200MediaContainer$ { - /** @deprecated use `GetResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = GetResponses200MediaContainer$inboundSchema; - /** @deprecated use `GetResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = GetResponses200MediaContainer$outboundSchema; - /** @deprecated use `GetResponses200MediaContainer$Outbound` instead. */ - export type Outbound = GetResponses200MediaContainer$Outbound; -} - -export function getResponses200MediaContainerToJSON( - getResponses200MediaContainer: GetResponses200MediaContainer, -): string { - return JSON.stringify( - GetResponses200MediaContainer$outboundSchema.parse( - getResponses200MediaContainer, - ), - ); -} - export function getResponses200MediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -316,44 +191,6 @@ export const GetResponses200$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetResponses200$Outbound = { - MediaContainer?: GetResponses200MediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const GetResponses200$outboundSchema: z.ZodType< - GetResponses200$Outbound, - z.ZodTypeDef, - GetResponses200 -> = z.object({ - mediaContainer: z.lazy(() => GetResponses200MediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResponses200$ { - /** @deprecated use `GetResponses200$inboundSchema` instead. */ - export const inboundSchema = GetResponses200$inboundSchema; - /** @deprecated use `GetResponses200$outboundSchema` instead. */ - export const outboundSchema = GetResponses200$outboundSchema; - /** @deprecated use `GetResponses200$Outbound` instead. */ - export type Outbound = GetResponses200$Outbound; -} - -export function getResponses200ToJSON( - getResponses200: GetResponses200, -): string { - return JSON.stringify(GetResponses200$outboundSchema.parse(getResponses200)); -} - export function getResponses200FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/historyallgetresponses200.ts b/src/sdk/models/shared/historyallgetresponses200.ts index f50077c5..61791c72 100644 --- a/src/sdk/models/shared/historyallgetresponses200.ts +++ b/src/sdk/models/shared/historyallgetresponses200.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -106,61 +106,6 @@ export const MetadatumResponse$inboundSchema: z.ZodType< viewedAt: z.number().int().optional(), }); -/** @internal */ -export type MetadatumResponse$Outbound = { - accountID?: number | undefined; - deviceID?: number | undefined; - historyKey?: string | undefined; - key?: string | undefined; - librarySectionID?: string | undefined; - originallyAvailableAt?: string | undefined; - ratingKey?: string | undefined; - thumb?: string | undefined; - title?: string | undefined; - type?: string | undefined; - viewedAt?: number | undefined; -}; - -/** @internal */ -export const MetadatumResponse$outboundSchema: z.ZodType< - MetadatumResponse$Outbound, - z.ZodTypeDef, - MetadatumResponse -> = z.object({ - accountID: z.number().int().optional(), - deviceID: z.number().int().optional(), - historyKey: z.string().optional(), - key: z.string().optional(), - librarySectionID: z.string().optional(), - originallyAvailableAt: z.string().optional(), - ratingKey: z.string().optional(), - thumb: z.string().optional(), - title: z.string().optional(), - type: z.string().optional(), - viewedAt: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MetadatumResponse$ { - /** @deprecated use `MetadatumResponse$inboundSchema` instead. */ - export const inboundSchema = MetadatumResponse$inboundSchema; - /** @deprecated use `MetadatumResponse$outboundSchema` instead. */ - export const outboundSchema = MetadatumResponse$outboundSchema; - /** @deprecated use `MetadatumResponse$Outbound` instead. */ - export type Outbound = MetadatumResponse$Outbound; -} - -export function metadatumResponseToJSON( - metadatumResponse: MetadatumResponse, -): string { - return JSON.stringify( - MetadatumResponse$outboundSchema.parse(metadatumResponse), - ); -} - export function metadatumResponseFromJSON( jsonString: string, ): SafeParseResult { @@ -188,58 +133,6 @@ export const HistoryAllGetResponses200MediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HistoryAllGetResponses200MediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Array | undefined; -}; - -/** @internal */ -export const HistoryAllGetResponses200MediaContainer$outboundSchema: z.ZodType< - HistoryAllGetResponses200MediaContainer$Outbound, - z.ZodTypeDef, - HistoryAllGetResponses200MediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array(z.lazy(() => MetadatumResponse$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HistoryAllGetResponses200MediaContainer$ { - /** @deprecated use `HistoryAllGetResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = - HistoryAllGetResponses200MediaContainer$inboundSchema; - /** @deprecated use `HistoryAllGetResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = - HistoryAllGetResponses200MediaContainer$outboundSchema; - /** @deprecated use `HistoryAllGetResponses200MediaContainer$Outbound` instead. */ - export type Outbound = HistoryAllGetResponses200MediaContainer$Outbound; -} - -export function historyAllGetResponses200MediaContainerToJSON( - historyAllGetResponses200MediaContainer: - HistoryAllGetResponses200MediaContainer, -): string { - return JSON.stringify( - HistoryAllGetResponses200MediaContainer$outboundSchema.parse( - historyAllGetResponses200MediaContainer, - ), - ); -} - export function historyAllGetResponses200MediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -271,47 +164,6 @@ export const HistoryAllGetResponses200$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HistoryAllGetResponses200$Outbound = { - MediaContainer?: HistoryAllGetResponses200MediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const HistoryAllGetResponses200$outboundSchema: z.ZodType< - HistoryAllGetResponses200$Outbound, - z.ZodTypeDef, - HistoryAllGetResponses200 -> = z.object({ - mediaContainer: z.lazy(() => - HistoryAllGetResponses200MediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HistoryAllGetResponses200$ { - /** @deprecated use `HistoryAllGetResponses200$inboundSchema` instead. */ - export const inboundSchema = HistoryAllGetResponses200$inboundSchema; - /** @deprecated use `HistoryAllGetResponses200$outboundSchema` instead. */ - export const outboundSchema = HistoryAllGetResponses200$outboundSchema; - /** @deprecated use `HistoryAllGetResponses200$Outbound` instead. */ - export type Outbound = HistoryAllGetResponses200$Outbound; -} - -export function historyAllGetResponses200ToJSON( - historyAllGetResponses200: HistoryAllGetResponses200, -): string { - return JSON.stringify( - HistoryAllGetResponses200$outboundSchema.parse(historyAllGetResponses200), - ); -} - export function historyAllGetResponses200FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/hub.ts b/src/sdk/models/shared/hub.ts index ff129842..82d4ff4f 100644 --- a/src/sdk/models/shared/hub.ts +++ b/src/sdk/models/shared/hub.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,12 +10,7 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Metadata, - Metadata$inboundSchema, - Metadata$Outbound, - Metadata$outboundSchema, -} from "./metadata.js"; +import { Metadata, Metadata$inboundSchema } from "./metadata.js"; export type Hub = { /** @@ -66,7 +61,7 @@ export type Hub = { */ subtype?: string | undefined; totalSize?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -96,70 +91,6 @@ export const Hub$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Hub$Outbound = { - title?: string | undefined; - type?: string | undefined; - context?: string | undefined; - hubIdentifier?: string | undefined; - hubKey?: string | undefined; - key?: string | undefined; - Metadata?: Array | undefined; - more?: boolean | undefined; - promoted?: boolean | undefined; - random?: boolean | undefined; - size?: number | undefined; - style?: string | undefined; - subtype?: string | undefined; - totalSize?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Hub$outboundSchema: z.ZodType = z - .object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - hubIdentifier: z.string().optional(), - hubKey: z.string().optional(), - key: z.string().optional(), - metadata: z.array(Metadata$outboundSchema).optional(), - more: z.boolean().optional(), - promoted: z.boolean().optional(), - random: z.boolean().optional(), - size: z.number().int().optional(), - style: z.string().optional(), - subtype: z.string().optional(), - totalSize: z.number().int().optional(), - additionalProperties: z.record(z.any()), - }).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - metadata: "Metadata", - additionalProperties: null, - }), - }; - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Hub$ { - /** @deprecated use `Hub$inboundSchema` instead. */ - export const inboundSchema = Hub$inboundSchema; - /** @deprecated use `Hub$outboundSchema` instead. */ - export const outboundSchema = Hub$outboundSchema; - /** @deprecated use `Hub$Outbound` instead. */ - export type Outbound = Hub$Outbound; -} - -export function hubToJSON(hub: Hub): string { - return JSON.stringify(Hub$outboundSchema.parse(hub)); -} - export function hubFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/image.ts b/src/sdk/models/shared/image.ts index 850a5271..d30d2a4d 100644 --- a/src/sdk/models/shared/image.ts +++ b/src/sdk/models/shared/image.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -42,21 +42,6 @@ export type Image = { export const ImageType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ImageType); -/** @internal */ -export const ImageType$outboundSchema: z.ZodNativeEnum = - ImageType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ImageType$ { - /** @deprecated use `ImageType$inboundSchema` instead. */ - export const inboundSchema = ImageType$inboundSchema; - /** @deprecated use `ImageType$outboundSchema` instead. */ - export const outboundSchema = ImageType$outboundSchema; -} - /** @internal */ export const Image$inboundSchema: z.ZodType = z .object({ @@ -65,41 +50,6 @@ export const Image$inboundSchema: z.ZodType = z url: z.string().optional(), }); -/** @internal */ -export type Image$Outbound = { - type?: string | undefined; - alt?: string | undefined; - url?: string | undefined; -}; - -/** @internal */ -export const Image$outboundSchema: z.ZodType< - Image$Outbound, - z.ZodTypeDef, - Image -> = z.object({ - type: ImageType$outboundSchema.optional(), - alt: z.string().optional(), - url: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Image$ { - /** @deprecated use `Image$inboundSchema` instead. */ - export const inboundSchema = Image$inboundSchema; - /** @deprecated use `Image$outboundSchema` instead. */ - export const outboundSchema = Image$outboundSchema; - /** @deprecated use `Image$Outbound` instead. */ - export type Outbound = Image$Outbound; -} - -export function imageToJSON(image: Image): string { - return JSON.stringify(Image$outboundSchema.parse(image)); -} - export function imageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/index.ts b/src/sdk/models/shared/index.ts index 7f92fa67..e7e12835 100644 --- a/src/sdk/models/shared/index.ts +++ b/src/sdk/models/shared/index.ts @@ -18,6 +18,7 @@ export * from "./hub.js"; export * from "./image.js"; export * from "./items.js"; export * from "./librarysection.js"; +export * from "./librarysections.js"; export * from "./lineup.js"; export * from "./locationparameter.js"; export * from "./media.js"; @@ -41,7 +42,6 @@ export * from "./part.js"; export * from "./player.js"; export * from "./postresponses200.js"; export * from "./protocol.js"; -export * from "./requesthandlerslashgetresponses200.js"; export * from "./security.js"; export * from "./session.js"; export * from "./setting.js"; diff --git a/src/sdk/models/shared/items.ts b/src/sdk/models/shared/items.ts index b4ef055e..15fc27f8 100644 --- a/src/sdk/models/shared/items.ts +++ b/src/sdk/models/shared/items.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,36 +10,11 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Filter, - Filter$inboundSchema, - Filter$Outbound, - Filter$outboundSchema, -} from "./filter.js"; -import { - Image, - Image$inboundSchema, - Image$Outbound, - Image$outboundSchema, -} from "./image.js"; -import { - Media, - Media$inboundSchema, - Media$Outbound, - Media$outboundSchema, -} from "./media.js"; -import { - Sort, - Sort$inboundSchema, - Sort$Outbound, - Sort$outboundSchema, -} from "./sort.js"; -import { - Tag, - Tag$inboundSchema, - Tag$Outbound, - Tag$outboundSchema, -} from "./tag.js"; +import { Filter, Filter$inboundSchema } from "./filter.js"; +import { Image, Image$inboundSchema } from "./image.js"; +import { Media, Media$inboundSchema } from "./media.js"; +import { Sort, Sort$inboundSchema } from "./sort.js"; +import { Tag, Tag$inboundSchema } from "./tag.js"; /** * Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie. @@ -290,7 +265,7 @@ export type Items = { */ year?: number | undefined; metadataItem?: Array | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -386,193 +361,6 @@ export const Items$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Items$Outbound = { - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - MetadataItem?: Array | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Items$outboundSchema: z.ZodType< - Items$Outbound, - z.ZodTypeDef, - Items -> = z.object({ - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(Tag$outboundSchema).optional(), - director: z.array(Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(Filter$outboundSchema).optional(), - genre: z.array(Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(Tag$outboundSchema).optional(), - year: z.number().int().optional(), - metadataItem: z.array(z.lazy(() => Items$outboundSchema)).optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - metadataItem: "MetadataItem", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Items$ { - /** @deprecated use `Items$inboundSchema` instead. */ - export const inboundSchema = Items$inboundSchema; - /** @deprecated use `Items$outboundSchema` instead. */ - export const outboundSchema = Items$outboundSchema; - /** @deprecated use `Items$Outbound` instead. */ - export type Outbound = Items$Outbound; -} - -export function itemsToJSON(items: Items): string { - return JSON.stringify(Items$outboundSchema.parse(items)); -} - export function itemsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/librarysection.ts b/src/sdk/models/shared/librarysection.ts index 461f9cf1..9410133c 100644 --- a/src/sdk/models/shared/librarysection.ts +++ b/src/sdk/models/shared/librarysection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -58,43 +58,6 @@ export const LibrarySectionLocation$inboundSchema: z.ZodType< path: z.any().optional(), }); -/** @internal */ -export type LibrarySectionLocation$Outbound = { - id?: number | undefined; - path?: any | undefined; -}; - -/** @internal */ -export const LibrarySectionLocation$outboundSchema: z.ZodType< - LibrarySectionLocation$Outbound, - z.ZodTypeDef, - LibrarySectionLocation -> = z.object({ - id: z.number().int().optional(), - path: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LibrarySectionLocation$ { - /** @deprecated use `LibrarySectionLocation$inboundSchema` instead. */ - export const inboundSchema = LibrarySectionLocation$inboundSchema; - /** @deprecated use `LibrarySectionLocation$outboundSchema` instead. */ - export const outboundSchema = LibrarySectionLocation$outboundSchema; - /** @deprecated use `LibrarySectionLocation$Outbound` instead. */ - export type Outbound = LibrarySectionLocation$Outbound; -} - -export function librarySectionLocationToJSON( - librarySectionLocation: LibrarySectionLocation, -): string { - return JSON.stringify( - LibrarySectionLocation$outboundSchema.parse(librarySectionLocation), - ); -} - export function librarySectionLocationFromJSON( jsonString: string, ): SafeParseResult { @@ -138,80 +101,6 @@ export const LibrarySection$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LibrarySection$Outbound = { - title?: string | undefined; - type?: string | undefined; - agent?: string | undefined; - allowSync?: boolean | undefined; - art?: string | undefined; - composite?: string | undefined; - content?: boolean | undefined; - contentChangedAt?: number | undefined; - createdAt?: number | undefined; - directory?: boolean | undefined; - filters?: boolean | undefined; - hidden?: boolean | undefined; - key?: string | undefined; - language?: string | undefined; - Location?: Array | undefined; - refreshing?: boolean | undefined; - scannedAt?: number | undefined; - scanner?: string | undefined; - thumb?: string | undefined; - updatedAt?: number | undefined; -}; - -/** @internal */ -export const LibrarySection$outboundSchema: z.ZodType< - LibrarySection$Outbound, - z.ZodTypeDef, - LibrarySection -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - agent: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - composite: z.string().optional(), - content: z.boolean().optional(), - contentChangedAt: z.number().int().optional(), - createdAt: z.number().int().optional(), - directory: z.boolean().optional(), - filters: z.boolean().optional(), - hidden: z.boolean().optional(), - key: z.string().optional(), - language: z.string().optional(), - location: z.array(z.lazy(() => LibrarySectionLocation$outboundSchema)) - .optional(), - refreshing: z.boolean().optional(), - scannedAt: z.number().int().optional(), - scanner: z.string().optional(), - thumb: z.string().optional(), - updatedAt: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - location: "Location", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LibrarySection$ { - /** @deprecated use `LibrarySection$inboundSchema` instead. */ - export const inboundSchema = LibrarySection$inboundSchema; - /** @deprecated use `LibrarySection$outboundSchema` instead. */ - export const outboundSchema = LibrarySection$outboundSchema; - /** @deprecated use `LibrarySection$Outbound` instead. */ - export type Outbound = LibrarySection$Outbound; -} - -export function librarySectionToJSON(librarySection: LibrarySection): string { - return JSON.stringify(LibrarySection$outboundSchema.parse(librarySection)); -} - export function librarySectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/librarysections.ts b/src/sdk/models/shared/librarysections.ts new file mode 100644 index 00000000..ada3fafa --- /dev/null +++ b/src/sdk/models/shared/librarysections.ts @@ -0,0 +1,227 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { safeParse } from "../../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type DirectoryResponse = { + count?: number | undefined; + /** + * The key where this directory is found + */ + key?: string | undefined; + title?: string | undefined; +}; + +/** + * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. + * + * @remarks + * Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) + * The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track. + */ +export type LibrarySectionsMediaContainer = { + identifier?: string | undefined; + /** + * The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header. + * + * @remarks + */ + offset?: number | undefined; + size?: number | undefined; + /** + * The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header. + * + * @remarks + */ + totalSize?: number | undefined; + allowCameraUpload?: boolean | undefined; + allowChannelAccess?: boolean | undefined; + allowMediaDeletion?: boolean | undefined; + allowSharing?: boolean | undefined; + allowSync?: boolean | undefined; + allowTuners?: boolean | undefined; + backgroundProcessing?: boolean | undefined; + certificate?: boolean | undefined; + companionProxy?: boolean | undefined; + countryCode?: string | undefined; + diagnostics?: string | undefined; + eventStream?: boolean | undefined; + friendlyName?: string | undefined; + hubSearch?: boolean | undefined; + itemClusters?: boolean | undefined; + livetv?: number | undefined; + machineIdentifier?: any | undefined; + mediaProviders?: boolean | undefined; + multiuser?: boolean | undefined; + musicAnalysis?: number | undefined; + myPlex?: boolean | undefined; + myPlexMappingState?: any | undefined; + myPlexSigninState?: any | undefined; + myPlexSubscription?: boolean | undefined; + myPlexUsername?: string | undefined; + offlineTranscode?: any | undefined; + /** + * A comma-separated list of features which are enabled for the server owner + */ + ownerFeatures?: string | undefined; + platform?: string | undefined; + platformVersion?: string | undefined; + pluginHost?: boolean | undefined; + pushNotifications?: boolean | undefined; + readOnlyLibraries?: boolean | undefined; + streamingBrainABRVersion?: number | undefined; + streamingBrainVersion?: number | undefined; + sync?: boolean | undefined; + transcoderActiveVideoSessions?: number | undefined; + transcoderAudio?: boolean | undefined; + transcoderLyrics?: boolean | undefined; + transcoderPhoto?: boolean | undefined; + transcoderSubtitles?: boolean | undefined; + transcoderVideo?: boolean | undefined; + /** + * The suggested video quality bitrates to present to the user + */ + transcoderVideoBitrates?: any | undefined; + transcoderVideoQualities?: string | undefined; + /** + * The suggested video resolutions to the above quality bitrates + */ + transcoderVideoResolutions?: any | undefined; + updatedAt?: number | undefined; + updater?: boolean | undefined; + version?: string | undefined; + voiceSearch?: boolean | undefined; + directory?: Array | undefined; +}; + +/** + * OK + */ +export type LibrarySections = { + mediaContainer?: LibrarySectionsMediaContainer | undefined; +}; + +/** @internal */ +export const DirectoryResponse$inboundSchema: z.ZodType< + DirectoryResponse, + z.ZodTypeDef, + unknown +> = z.object({ + count: z.number().int().optional(), + key: z.string().optional(), + title: z.string().optional(), +}); + +export function directoryResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DirectoryResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DirectoryResponse' from JSON`, + ); +} + +/** @internal */ +export const LibrarySectionsMediaContainer$inboundSchema: z.ZodType< + LibrarySectionsMediaContainer, + z.ZodTypeDef, + unknown +> = z.object({ + identifier: z.string().optional(), + offset: z.number().int().optional(), + size: z.number().int().optional(), + totalSize: z.number().int().optional(), + allowCameraUpload: z.boolean().optional(), + allowChannelAccess: z.boolean().optional(), + allowMediaDeletion: z.boolean().optional(), + allowSharing: z.boolean().optional(), + allowSync: z.boolean().optional(), + allowTuners: z.boolean().optional(), + backgroundProcessing: z.boolean().optional(), + certificate: z.boolean().optional(), + companionProxy: z.boolean().optional(), + countryCode: z.string().optional(), + diagnostics: z.string().optional(), + eventStream: z.boolean().optional(), + friendlyName: z.string().optional(), + hubSearch: z.boolean().optional(), + itemClusters: z.boolean().optional(), + livetv: z.number().int().optional(), + machineIdentifier: z.any().optional(), + mediaProviders: z.boolean().optional(), + multiuser: z.boolean().optional(), + musicAnalysis: z.number().int().optional(), + myPlex: z.boolean().optional(), + myPlexMappingState: z.any().optional(), + myPlexSigninState: z.any().optional(), + myPlexSubscription: z.boolean().optional(), + myPlexUsername: z.string().optional(), + offlineTranscode: z.any().optional(), + ownerFeatures: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + pluginHost: z.boolean().optional(), + pushNotifications: z.boolean().optional(), + readOnlyLibraries: z.boolean().optional(), + streamingBrainABRVersion: z.number().int().optional(), + streamingBrainVersion: z.number().int().optional(), + sync: z.boolean().optional(), + transcoderActiveVideoSessions: z.number().int().optional(), + transcoderAudio: z.boolean().optional(), + transcoderLyrics: z.boolean().optional(), + transcoderPhoto: z.boolean().optional(), + transcoderSubtitles: z.boolean().optional(), + transcoderVideo: z.boolean().optional(), + transcoderVideoBitrates: z.any().optional(), + transcoderVideoQualities: z.string().optional(), + transcoderVideoResolutions: z.any().optional(), + updatedAt: z.number().int().optional(), + updater: z.boolean().optional(), + version: z.string().optional(), + voiceSearch: z.boolean().optional(), + Directory: z.array(z.lazy(() => DirectoryResponse$inboundSchema)).optional(), +}).transform((v) => { + return remap$(v, { + "Directory": "directory", + }); +}); + +export function librarySectionsMediaContainerFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LibrarySectionsMediaContainer$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LibrarySectionsMediaContainer' from JSON`, + ); +} + +/** @internal */ +export const LibrarySections$inboundSchema: z.ZodType< + LibrarySections, + z.ZodTypeDef, + unknown +> = z.object({ + MediaContainer: z.lazy(() => LibrarySectionsMediaContainer$inboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + "MediaContainer": "mediaContainer", + }); +}); + +export function librarySectionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LibrarySections$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LibrarySections' from JSON`, + ); +} diff --git a/src/sdk/models/shared/lineup.ts b/src/sdk/models/shared/lineup.ts index 6e7cedbf..0d25f4d6 100644 --- a/src/sdk/models/shared/lineup.ts +++ b/src/sdk/models/shared/lineup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -54,21 +54,6 @@ export type Lineup = { export const LineupType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(LineupType); -/** @internal */ -export const LineupType$outboundSchema: z.ZodNativeEnum = - LineupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LineupType$ { - /** @deprecated use `LineupType$inboundSchema` instead. */ - export const inboundSchema = LineupType$inboundSchema; - /** @deprecated use `LineupType$outboundSchema` instead. */ - export const outboundSchema = LineupType$outboundSchema; -} - /** @internal */ export const Lineup$inboundSchema: z.ZodType = z .object({ @@ -79,45 +64,6 @@ export const Lineup$inboundSchema: z.ZodType = z uuid: z.string().optional(), }); -/** @internal */ -export type Lineup$Outbound = { - title?: string | undefined; - type?: string | undefined; - lineupType?: number | undefined; - location?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const Lineup$outboundSchema: z.ZodType< - Lineup$Outbound, - z.ZodTypeDef, - Lineup -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - lineupType: LineupType$outboundSchema.optional(), - location: z.string().optional(), - uuid: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Lineup$ { - /** @deprecated use `Lineup$inboundSchema` instead. */ - export const inboundSchema = Lineup$inboundSchema; - /** @deprecated use `Lineup$outboundSchema` instead. */ - export const outboundSchema = Lineup$outboundSchema; - /** @deprecated use `Lineup$Outbound` instead. */ - export type Outbound = Lineup$Outbound; -} - -export function lineupToJSON(lineup: Lineup): string { - return JSON.stringify(Lineup$outboundSchema.parse(lineup)); -} - export function lineupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/locationparameter.ts b/src/sdk/models/shared/locationparameter.ts index f9d3d587..ae9caa59 100644 --- a/src/sdk/models/shared/locationparameter.ts +++ b/src/sdk/models/shared/locationparameter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum LocationParameter { Lan = "lan", @@ -10,23 +10,7 @@ export enum LocationParameter { Cellular = "cellular", } -/** @internal */ -export const LocationParameter$inboundSchema: z.ZodNativeEnum< - typeof LocationParameter -> = z.nativeEnum(LocationParameter); - /** @internal */ export const LocationParameter$outboundSchema: z.ZodNativeEnum< typeof LocationParameter -> = LocationParameter$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LocationParameter$ { - /** @deprecated use `LocationParameter$inboundSchema` instead. */ - export const inboundSchema = LocationParameter$inboundSchema; - /** @deprecated use `LocationParameter$outboundSchema` instead. */ - export const outboundSchema = LocationParameter$outboundSchema; -} +> = z.nativeEnum(LocationParameter); diff --git a/src/sdk/models/shared/media.ts b/src/sdk/models/shared/media.ts index 5ab9a19d..f50aa274 100644 --- a/src/sdk/models/shared/media.ts +++ b/src/sdk/models/shared/media.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,12 +10,7 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Part, - Part$inboundSchema, - Part$Outbound, - Part$outboundSchema, -} from "./part.js"; +import { Part, Part$inboundSchema } from "./part.js"; /** * `Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element. @@ -41,7 +36,7 @@ export type Media = { videoProfile?: any | undefined; videoResolution?: any | undefined; width?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -75,81 +70,6 @@ export const Media$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Media$Outbound = { - aspectRatio?: number | undefined; - audioChannels?: number | undefined; - audioCodec?: any | undefined; - audioProfile?: any | undefined; - bitrate?: number | undefined; - container?: any | undefined; - duration?: number | undefined; - has64bitOffsets?: boolean | undefined; - hasVoiceActivity?: boolean | undefined; - height?: number | undefined; - id?: number | undefined; - optimizedForStreaming?: boolean | undefined; - Part?: Array | undefined; - videoCodec?: any | undefined; - videoFrameRate?: any | undefined; - videoProfile?: any | undefined; - videoResolution?: any | undefined; - width?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Media$outboundSchema: z.ZodType< - Media$Outbound, - z.ZodTypeDef, - Media -> = z.object({ - aspectRatio: z.number().optional(), - audioChannels: z.number().int().optional(), - audioCodec: z.any().optional(), - audioProfile: z.any().optional(), - bitrate: z.number().int().optional(), - container: z.any().optional(), - duration: z.number().int().optional(), - has64bitOffsets: z.boolean().optional(), - hasVoiceActivity: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int().optional(), - optimizedForStreaming: z.boolean().optional(), - part: z.array(Part$outboundSchema).optional(), - videoCodec: z.any().optional(), - videoFrameRate: z.any().optional(), - videoProfile: z.any().optional(), - videoResolution: z.any().optional(), - width: z.number().int().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - part: "Part", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Media$ { - /** @deprecated use `Media$inboundSchema` instead. */ - export const inboundSchema = Media$inboundSchema; - /** @deprecated use `Media$outboundSchema` instead. */ - export const outboundSchema = Media$outboundSchema; - /** @deprecated use `Media$Outbound` instead. */ - export type Outbound = Media$Outbound; -} - -export function mediaToJSON(media: Media): string { - return JSON.stringify(Media$outboundSchema.parse(media)); -} - export function mediaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainer.ts b/src/sdk/models/shared/mediacontainer.ts index 52f024c9..82304888 100644 --- a/src/sdk/models/shared/mediacontainer.ts +++ b/src/sdk/models/shared/mediacontainer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -43,43 +43,6 @@ export const MediaContainer$inboundSchema: z.ZodType< totalSize: z.number().int().optional(), }); -/** @internal */ -export type MediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; -}; - -/** @internal */ -export const MediaContainer$outboundSchema: z.ZodType< - MediaContainer$Outbound, - z.ZodTypeDef, - MediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainer$ { - /** @deprecated use `MediaContainer$inboundSchema` instead. */ - export const inboundSchema = MediaContainer$inboundSchema; - /** @deprecated use `MediaContainer$outboundSchema` instead. */ - export const outboundSchema = MediaContainer$outboundSchema; - /** @deprecated use `MediaContainer$Outbound` instead. */ - export type Outbound = MediaContainer$Outbound; -} - -export function mediaContainerToJSON(mediaContainer: MediaContainer): string { - return JSON.stringify(MediaContainer$outboundSchema.parse(mediaContainer)); -} - export function mediaContainerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithartwork.ts b/src/sdk/models/shared/mediacontainerwithartwork.ts index 9bed5633..be3d1269 100644 --- a/src/sdk/models/shared/mediacontainerwithartwork.ts +++ b/src/sdk/models/shared/mediacontainerwithartwork.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -25,7 +25,7 @@ export type MediaContainerWithArtworkMetadatum = { * The path to the artwork */ key?: string | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -62,22 +62,6 @@ export const MediaContainerWithArtworkType$inboundSchema: z.ZodNativeEnum< typeof MediaContainerWithArtworkType > = z.nativeEnum(MediaContainerWithArtworkType); -/** @internal */ -export const MediaContainerWithArtworkType$outboundSchema: z.ZodNativeEnum< - typeof MediaContainerWithArtworkType -> = MediaContainerWithArtworkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithArtworkType$ { - /** @deprecated use `MediaContainerWithArtworkType$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithArtworkType$inboundSchema; - /** @deprecated use `MediaContainerWithArtworkType$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithArtworkType$outboundSchema; -} - /** @internal */ export const MediaContainerWithArtworkMetadatum$inboundSchema: z.ZodType< MediaContainerWithArtworkMetadatum, @@ -93,57 +77,6 @@ export const MediaContainerWithArtworkMetadatum$inboundSchema: z.ZodType< true, ); -/** @internal */ -export type MediaContainerWithArtworkMetadatum$Outbound = { - title?: string | undefined; - type?: string | undefined; - key?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithArtworkMetadatum$outboundSchema: z.ZodType< - MediaContainerWithArtworkMetadatum$Outbound, - z.ZodTypeDef, - MediaContainerWithArtworkMetadatum -> = z.object({ - title: z.string().optional(), - type: MediaContainerWithArtworkType$outboundSchema.optional(), - key: z.string().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithArtworkMetadatum$ { - /** @deprecated use `MediaContainerWithArtworkMetadatum$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithArtworkMetadatum$inboundSchema; - /** @deprecated use `MediaContainerWithArtworkMetadatum$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithArtworkMetadatum$outboundSchema; - /** @deprecated use `MediaContainerWithArtworkMetadatum$Outbound` instead. */ - export type Outbound = MediaContainerWithArtworkMetadatum$Outbound; -} - -export function mediaContainerWithArtworkMetadatumToJSON( - mediaContainerWithArtworkMetadatum: MediaContainerWithArtworkMetadatum, -): string { - return JSON.stringify( - MediaContainerWithArtworkMetadatum$outboundSchema.parse( - mediaContainerWithArtworkMetadatum, - ), - ); -} - export function mediaContainerWithArtworkMetadatumFromJSON( jsonString: string, ): SafeParseResult { @@ -174,60 +107,6 @@ export const MediaContainerWithArtworkMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithArtworkMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithArtworkMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithArtworkMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithArtworkMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array( - z.lazy(() => MediaContainerWithArtworkMetadatum$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithArtworkMediaContainer$ { - /** @deprecated use `MediaContainerWithArtworkMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithArtworkMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithArtworkMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithArtworkMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithArtworkMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithArtworkMediaContainer$Outbound; -} - -export function mediaContainerWithArtworkMediaContainerToJSON( - mediaContainerWithArtworkMediaContainer: - MediaContainerWithArtworkMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithArtworkMediaContainer$outboundSchema.parse( - mediaContainerWithArtworkMediaContainer, - ), - ); -} - export function mediaContainerWithArtworkMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -259,47 +138,6 @@ export const MediaContainerWithArtwork$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithArtwork$Outbound = { - MediaContainer?: MediaContainerWithArtworkMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const MediaContainerWithArtwork$outboundSchema: z.ZodType< - MediaContainerWithArtwork$Outbound, - z.ZodTypeDef, - MediaContainerWithArtwork -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithArtworkMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithArtwork$ { - /** @deprecated use `MediaContainerWithArtwork$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithArtwork$inboundSchema; - /** @deprecated use `MediaContainerWithArtwork$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithArtwork$outboundSchema; - /** @deprecated use `MediaContainerWithArtwork$Outbound` instead. */ - export type Outbound = MediaContainerWithArtwork$Outbound; -} - -export function mediaContainerWithArtworkToJSON( - mediaContainerWithArtwork: MediaContainerWithArtwork, -): string { - return JSON.stringify( - MediaContainerWithArtwork$outboundSchema.parse(mediaContainerWithArtwork), - ); -} - export function mediaContainerWithArtworkFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithdecision.ts b/src/sdk/models/shared/mediacontainerwithdecision.ts index 046bc375..77e08f93 100644 --- a/src/sdk/models/shared/mediacontainerwithdecision.ts +++ b/src/sdk/models/shared/mediacontainerwithdecision.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,30 +10,10 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Filter, - Filter$inboundSchema, - Filter$Outbound, - Filter$outboundSchema, -} from "./filter.js"; -import { - Image, - Image$inboundSchema, - Image$Outbound, - Image$outboundSchema, -} from "./image.js"; -import { - Sort, - Sort$inboundSchema, - Sort$Outbound, - Sort$outboundSchema, -} from "./sort.js"; -import { - Tag, - Tag$inboundSchema, - Tag$Outbound, - Tag$outboundSchema, -} from "./tag.js"; +import { Filter, Filter$inboundSchema } from "./filter.js"; +import { Image, Image$inboundSchema } from "./image.js"; +import { Sort, Sort$inboundSchema } from "./sort.js"; +import { Tag, Tag$inboundSchema } from "./tag.js"; export enum StreamDecision { Copy = "copy", @@ -113,7 +93,7 @@ export type MediaContainerWithDecisionStream = { width?: number | undefined; decision?: StreamDecision | undefined; location?: MediaContainerWithDecisionLocation | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export enum Decision { @@ -156,7 +136,7 @@ export type MediaContainerWithDecisionPart = { videoProfile?: any | undefined; decision?: Decision | undefined; selected?: boolean | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -186,7 +166,7 @@ export type MediaContainerWithDecisionMedia = { abr?: boolean | undefined; resourceSession?: string | undefined; selected?: boolean | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -437,7 +417,7 @@ export type MediaContainerWithDecisionMetadatum = { * When present, the year associated with the item's release (e.g. release year for a movie). */ year?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -502,44 +482,11 @@ export const StreamDecision$inboundSchema: z.ZodNativeEnum< typeof StreamDecision > = z.nativeEnum(StreamDecision); -/** @internal */ -export const StreamDecision$outboundSchema: z.ZodNativeEnum< - typeof StreamDecision -> = StreamDecision$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StreamDecision$ { - /** @deprecated use `StreamDecision$inboundSchema` instead. */ - export const inboundSchema = StreamDecision$inboundSchema; - /** @deprecated use `StreamDecision$outboundSchema` instead. */ - export const outboundSchema = StreamDecision$outboundSchema; -} - /** @internal */ export const MediaContainerWithDecisionLocation$inboundSchema: z.ZodNativeEnum< typeof MediaContainerWithDecisionLocation > = z.nativeEnum(MediaContainerWithDecisionLocation); -/** @internal */ -export const MediaContainerWithDecisionLocation$outboundSchema: z.ZodNativeEnum< - typeof MediaContainerWithDecisionLocation -> = MediaContainerWithDecisionLocation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionLocation$ { - /** @deprecated use `MediaContainerWithDecisionLocation$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDecisionLocation$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionLocation$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithDecisionLocation$outboundSchema; -} - /** @internal */ export const MediaContainerWithDecisionStream$inboundSchema: z.ZodType< MediaContainerWithDecisionStream, @@ -583,112 +530,6 @@ export const MediaContainerWithDecisionStream$inboundSchema: z.ZodType< true, ); -/** @internal */ -export type MediaContainerWithDecisionStream$Outbound = { - default?: boolean | undefined; - audioChannelLayout?: any | undefined; - bitDepth?: number | undefined; - bitrate?: number | undefined; - canAutoSync?: boolean | undefined; - chromaLocation?: any | undefined; - chromaSubsampling?: any | undefined; - codec?: any | undefined; - colorPrimaries?: any | undefined; - colorRange?: any | undefined; - colorSpace?: any | undefined; - colorTrc?: any | undefined; - displayTitle?: any | undefined; - frameRate?: number | undefined; - hasScalingMatrix?: any | undefined; - height?: number | undefined; - id?: number | undefined; - index?: number | undefined; - key?: any | undefined; - language?: any | undefined; - languageCode?: any | undefined; - level?: number | undefined; - profile?: any | undefined; - refFrames?: number | undefined; - samplingRate?: number | undefined; - selected?: boolean | undefined; - streamIdentifier?: number | undefined; - streamType?: number | undefined; - width?: number | undefined; - decision?: string | undefined; - location?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithDecisionStream$outboundSchema: z.ZodType< - MediaContainerWithDecisionStream$Outbound, - z.ZodTypeDef, - MediaContainerWithDecisionStream -> = z.object({ - default: z.boolean().optional(), - audioChannelLayout: z.any().optional(), - bitDepth: z.number().int().optional(), - bitrate: z.number().int().optional(), - canAutoSync: z.boolean().optional(), - chromaLocation: z.any().optional(), - chromaSubsampling: z.any().optional(), - codec: z.any().optional(), - colorPrimaries: z.any().optional(), - colorRange: z.any().optional(), - colorSpace: z.any().optional(), - colorTrc: z.any().optional(), - displayTitle: z.any().optional(), - frameRate: z.number().optional(), - hasScalingMatrix: z.any().optional(), - height: z.number().int().optional(), - id: z.number().int().optional(), - index: z.number().int().optional(), - key: z.any().optional(), - language: z.any().optional(), - languageCode: z.any().optional(), - level: z.number().int().optional(), - profile: z.any().optional(), - refFrames: z.number().int().optional(), - samplingRate: z.number().int().optional(), - selected: z.boolean().optional(), - streamIdentifier: z.number().int().optional(), - streamType: z.number().int().optional(), - width: z.number().int().optional(), - decision: StreamDecision$outboundSchema.optional(), - location: MediaContainerWithDecisionLocation$outboundSchema.optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionStream$ { - /** @deprecated use `MediaContainerWithDecisionStream$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDecisionStream$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionStream$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDecisionStream$outboundSchema; - /** @deprecated use `MediaContainerWithDecisionStream$Outbound` instead. */ - export type Outbound = MediaContainerWithDecisionStream$Outbound; -} - -export function mediaContainerWithDecisionStreamToJSON( - mediaContainerWithDecisionStream: MediaContainerWithDecisionStream, -): string { - return JSON.stringify( - MediaContainerWithDecisionStream$outboundSchema.parse( - mediaContainerWithDecisionStream, - ), - ); -} - export function mediaContainerWithDecisionStreamFromJSON( jsonString: string, ): SafeParseResult { @@ -703,21 +544,6 @@ export function mediaContainerWithDecisionStreamFromJSON( export const Decision$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Decision); -/** @internal */ -export const Decision$outboundSchema: z.ZodNativeEnum = - Decision$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Decision$ { - /** @deprecated use `Decision$inboundSchema` instead. */ - export const inboundSchema = Decision$inboundSchema; - /** @deprecated use `Decision$outboundSchema` instead. */ - export const outboundSchema = Decision$outboundSchema; -} - /** @internal */ export const MediaContainerWithDecisionPart$inboundSchema: z.ZodType< MediaContainerWithDecisionPart, @@ -749,78 +575,6 @@ export const MediaContainerWithDecisionPart$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDecisionPart$Outbound = { - audioProfile?: any | undefined; - container?: any | undefined; - duration?: number | undefined; - file?: any | undefined; - has64bitOffsets?: boolean | undefined; - id?: number | undefined; - key?: any | undefined; - optimizedForStreaming?: boolean | undefined; - size?: number | undefined; - Stream?: Array | undefined; - videoProfile?: any | undefined; - decision?: string | undefined; - selected?: boolean | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithDecisionPart$outboundSchema: z.ZodType< - MediaContainerWithDecisionPart$Outbound, - z.ZodTypeDef, - MediaContainerWithDecisionPart -> = z.object({ - audioProfile: z.any().optional(), - container: z.any().optional(), - duration: z.number().int().optional(), - file: z.any().optional(), - has64bitOffsets: z.boolean().optional(), - id: z.number().int().optional(), - key: z.any().optional(), - optimizedForStreaming: z.boolean().optional(), - size: z.number().int().optional(), - stream: z.array(z.lazy(() => MediaContainerWithDecisionStream$outboundSchema)) - .optional(), - videoProfile: z.any().optional(), - decision: Decision$outboundSchema.optional(), - selected: z.boolean().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - stream: "Stream", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionPart$ { - /** @deprecated use `MediaContainerWithDecisionPart$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDecisionPart$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionPart$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDecisionPart$outboundSchema; - /** @deprecated use `MediaContainerWithDecisionPart$Outbound` instead. */ - export type Outbound = MediaContainerWithDecisionPart$Outbound; -} - -export function mediaContainerWithDecisionPartToJSON( - mediaContainerWithDecisionPart: MediaContainerWithDecisionPart, -): string { - return JSON.stringify( - MediaContainerWithDecisionPart$outboundSchema.parse( - mediaContainerWithDecisionPart, - ), - ); -} - export function mediaContainerWithDecisionPartFromJSON( jsonString: string, ): SafeParseResult { @@ -869,94 +623,6 @@ export const MediaContainerWithDecisionMedia$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDecisionMedia$Outbound = { - aspectRatio?: number | undefined; - audioChannels?: number | undefined; - audioCodec?: any | undefined; - audioProfile?: any | undefined; - bitrate?: number | undefined; - container?: any | undefined; - duration?: number | undefined; - has64bitOffsets?: boolean | undefined; - hasVoiceActivity?: boolean | undefined; - height?: number | undefined; - id?: number | undefined; - optimizedForStreaming?: boolean | undefined; - Part?: Array | undefined; - videoCodec?: any | undefined; - videoFrameRate?: any | undefined; - videoProfile?: any | undefined; - videoResolution?: any | undefined; - width?: number | undefined; - abr?: boolean | undefined; - resourceSession?: string | undefined; - selected?: boolean | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithDecisionMedia$outboundSchema: z.ZodType< - MediaContainerWithDecisionMedia$Outbound, - z.ZodTypeDef, - MediaContainerWithDecisionMedia -> = z.object({ - aspectRatio: z.number().optional(), - audioChannels: z.number().int().optional(), - audioCodec: z.any().optional(), - audioProfile: z.any().optional(), - bitrate: z.number().int().optional(), - container: z.any().optional(), - duration: z.number().int().optional(), - has64bitOffsets: z.boolean().optional(), - hasVoiceActivity: z.boolean().optional(), - height: z.number().int().optional(), - id: z.number().int().optional(), - optimizedForStreaming: z.boolean().optional(), - part: z.array(z.lazy(() => MediaContainerWithDecisionPart$outboundSchema)) - .optional(), - videoCodec: z.any().optional(), - videoFrameRate: z.any().optional(), - videoProfile: z.any().optional(), - videoResolution: z.any().optional(), - width: z.number().int().optional(), - abr: z.boolean().optional(), - resourceSession: z.string().optional(), - selected: z.boolean().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - part: "Part", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionMedia$ { - /** @deprecated use `MediaContainerWithDecisionMedia$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDecisionMedia$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionMedia$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDecisionMedia$outboundSchema; - /** @deprecated use `MediaContainerWithDecisionMedia$Outbound` instead. */ - export type Outbound = MediaContainerWithDecisionMedia$Outbound; -} - -export function mediaContainerWithDecisionMediaToJSON( - mediaContainerWithDecisionMedia: MediaContainerWithDecisionMedia, -): string { - return JSON.stringify( - MediaContainerWithDecisionMedia$outboundSchema.parse( - mediaContainerWithDecisionMedia, - ), - ); -} - export function mediaContainerWithDecisionMediaFromJSON( jsonString: string, ): SafeParseResult { @@ -1062,199 +728,6 @@ export const MediaContainerWithDecisionMetadatum$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDecisionMetadatum$Outbound = { - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithDecisionMetadatum$outboundSchema: z.ZodType< - MediaContainerWithDecisionMetadatum$Outbound, - z.ZodTypeDef, - MediaContainerWithDecisionMetadatum -> = z.object({ - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(Tag$outboundSchema).optional(), - director: z.array(Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(Filter$outboundSchema).optional(), - genre: z.array(Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(z.lazy(() => MediaContainerWithDecisionMedia$outboundSchema)) - .optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(Tag$outboundSchema).optional(), - year: z.number().int().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionMetadatum$ { - /** @deprecated use `MediaContainerWithDecisionMetadatum$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithDecisionMetadatum$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionMetadatum$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithDecisionMetadatum$outboundSchema; - /** @deprecated use `MediaContainerWithDecisionMetadatum$Outbound` instead. */ - export type Outbound = MediaContainerWithDecisionMetadatum$Outbound; -} - -export function mediaContainerWithDecisionMetadatumToJSON( - mediaContainerWithDecisionMetadatum: MediaContainerWithDecisionMetadatum, -): string { - return JSON.stringify( - MediaContainerWithDecisionMetadatum$outboundSchema.parse( - mediaContainerWithDecisionMetadatum, - ), - ); -} - export function mediaContainerWithDecisionMetadatumFromJSON( jsonString: string, ): SafeParseResult { @@ -1294,78 +767,6 @@ export const MediaContainerWithDecisionMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDecisionMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - availableBandwidth?: number | undefined; - directPlayDecisionCode?: number | undefined; - directPlayDecisionText?: string | undefined; - generalDecisionCode?: number | undefined; - generalDecisionText?: string | undefined; - mdeDecisionCode?: number | undefined; - mdeDecisionText?: string | undefined; - Metadata?: Array | undefined; - transcodeDecisionCode?: number | undefined; - transcodeDecisionText?: string | undefined; -}; - -/** @internal */ -export const MediaContainerWithDecisionMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithDecisionMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithDecisionMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - availableBandwidth: z.number().int().optional(), - directPlayDecisionCode: z.number().int().optional(), - directPlayDecisionText: z.string().optional(), - generalDecisionCode: z.number().int().optional(), - generalDecisionText: z.string().optional(), - mdeDecisionCode: z.number().int().optional(), - mdeDecisionText: z.string().optional(), - metadata: z.array( - z.lazy(() => MediaContainerWithDecisionMetadatum$outboundSchema), - ).optional(), - transcodeDecisionCode: z.number().int().optional(), - transcodeDecisionText: z.string().optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecisionMediaContainer$ { - /** @deprecated use `MediaContainerWithDecisionMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithDecisionMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithDecisionMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithDecisionMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithDecisionMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithDecisionMediaContainer$Outbound; -} - -export function mediaContainerWithDecisionMediaContainerToJSON( - mediaContainerWithDecisionMediaContainer: - MediaContainerWithDecisionMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithDecisionMediaContainer$outboundSchema.parse( - mediaContainerWithDecisionMediaContainer, - ), - ); -} - export function mediaContainerWithDecisionMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -1397,49 +798,6 @@ export const MediaContainerWithDecision$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDecision$Outbound = { - MediaContainer?: - | MediaContainerWithDecisionMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithDecision$outboundSchema: z.ZodType< - MediaContainerWithDecision$Outbound, - z.ZodTypeDef, - MediaContainerWithDecision -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithDecisionMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDecision$ { - /** @deprecated use `MediaContainerWithDecision$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDecision$inboundSchema; - /** @deprecated use `MediaContainerWithDecision$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDecision$outboundSchema; - /** @deprecated use `MediaContainerWithDecision$Outbound` instead. */ - export type Outbound = MediaContainerWithDecision$Outbound; -} - -export function mediaContainerWithDecisionToJSON( - mediaContainerWithDecision: MediaContainerWithDecision, -): string { - return JSON.stringify( - MediaContainerWithDecision$outboundSchema.parse(mediaContainerWithDecision), - ); -} - export function mediaContainerWithDecisionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithdevice.ts b/src/sdk/models/shared/mediacontainerwithdevice.ts index bfd02649..1c650d52 100644 --- a/src/sdk/models/shared/mediacontainerwithdevice.ts +++ b/src/sdk/models/shared/mediacontainerwithdevice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChannelMapping, ChannelMapping$inboundSchema, - ChannelMapping$Outbound, - ChannelMapping$outboundSchema, } from "./channelmapping.js"; export type MediaContainerWithDeviceDevice = { @@ -84,71 +82,6 @@ export const MediaContainerWithDeviceDevice$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDeviceDevice$Outbound = { - ChannelMapping?: Array | undefined; - key?: string | undefined; - lastSeenAt?: number | undefined; - make?: string | undefined; - model?: string | undefined; - modelNumber?: string | undefined; - protocol?: string | undefined; - sources?: string | undefined; - state?: string | undefined; - status?: string | undefined; - tuners?: string | undefined; - uri?: string | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const MediaContainerWithDeviceDevice$outboundSchema: z.ZodType< - MediaContainerWithDeviceDevice$Outbound, - z.ZodTypeDef, - MediaContainerWithDeviceDevice -> = z.object({ - channelMapping: z.array(ChannelMapping$outboundSchema).optional(), - key: z.string().optional(), - lastSeenAt: z.number().int().optional(), - make: z.string().optional(), - model: z.string().optional(), - modelNumber: z.string().optional(), - protocol: z.string().optional(), - sources: z.string().optional(), - state: z.string().optional(), - status: z.string().optional(), - tuners: z.string().optional(), - uri: z.string().optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - channelMapping: "ChannelMapping", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDeviceDevice$ { - /** @deprecated use `MediaContainerWithDeviceDevice$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDeviceDevice$inboundSchema; - /** @deprecated use `MediaContainerWithDeviceDevice$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDeviceDevice$outboundSchema; - /** @deprecated use `MediaContainerWithDeviceDevice$Outbound` instead. */ - export type Outbound = MediaContainerWithDeviceDevice$Outbound; -} - -export function mediaContainerWithDeviceDeviceToJSON( - mediaContainerWithDeviceDevice: MediaContainerWithDeviceDevice, -): string { - return JSON.stringify( - MediaContainerWithDeviceDevice$outboundSchema.parse( - mediaContainerWithDeviceDevice, - ), - ); -} - export function mediaContainerWithDeviceDeviceFromJSON( jsonString: string, ): SafeParseResult { @@ -177,59 +110,6 @@ export const MediaContainerWithDeviceMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDeviceMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Device?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithDeviceMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithDeviceMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithDeviceMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - device: z.array(z.lazy(() => MediaContainerWithDeviceDevice$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - device: "Device", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDeviceMediaContainer$ { - /** @deprecated use `MediaContainerWithDeviceMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithDeviceMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithDeviceMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithDeviceMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithDeviceMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithDeviceMediaContainer$Outbound; -} - -export function mediaContainerWithDeviceMediaContainerToJSON( - mediaContainerWithDeviceMediaContainer: - MediaContainerWithDeviceMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithDeviceMediaContainer$outboundSchema.parse( - mediaContainerWithDeviceMediaContainer, - ), - ); -} - export function mediaContainerWithDeviceMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -256,47 +136,6 @@ export const MediaContainerWithDevice$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDevice$Outbound = { - MediaContainer?: MediaContainerWithDeviceMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const MediaContainerWithDevice$outboundSchema: z.ZodType< - MediaContainerWithDevice$Outbound, - z.ZodTypeDef, - MediaContainerWithDevice -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithDeviceMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDevice$ { - /** @deprecated use `MediaContainerWithDevice$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDevice$inboundSchema; - /** @deprecated use `MediaContainerWithDevice$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDevice$outboundSchema; - /** @deprecated use `MediaContainerWithDevice$Outbound` instead. */ - export type Outbound = MediaContainerWithDevice$Outbound; -} - -export function mediaContainerWithDeviceToJSON( - mediaContainerWithDevice: MediaContainerWithDevice, -): string { - return JSON.stringify( - MediaContainerWithDevice$outboundSchema.parse(mediaContainerWithDevice), - ); -} - export function mediaContainerWithDeviceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithdirectory.ts b/src/sdk/models/shared/mediacontainerwithdirectory.ts index 35f535f2..37fde71d 100644 --- a/src/sdk/models/shared/mediacontainerwithdirectory.ts +++ b/src/sdk/models/shared/mediacontainerwithdirectory.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Directory, - Directory$inboundSchema, - Directory$Outbound, - Directory$outboundSchema, -} from "./directory.js"; +import { Directory, Directory$inboundSchema } from "./directory.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -60,59 +55,6 @@ export const MediaContainerWithDirectoryMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDirectoryMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithDirectoryMediaContainer$outboundSchema: - z.ZodType< - MediaContainerWithDirectoryMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithDirectoryMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - directory: z.array(Directory$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - directory: "Directory", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDirectoryMediaContainer$ { - /** @deprecated use `MediaContainerWithDirectoryMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithDirectoryMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithDirectoryMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithDirectoryMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithDirectoryMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithDirectoryMediaContainer$Outbound; -} - -export function mediaContainerWithDirectoryMediaContainerToJSON( - mediaContainerWithDirectoryMediaContainer: - MediaContainerWithDirectoryMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithDirectoryMediaContainer$outboundSchema.parse( - mediaContainerWithDirectoryMediaContainer, - ), - ); -} - export function mediaContainerWithDirectoryMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -144,51 +86,6 @@ export const MediaContainerWithDirectory$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithDirectory$Outbound = { - MediaContainer?: - | MediaContainerWithDirectoryMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithDirectory$outboundSchema: z.ZodType< - MediaContainerWithDirectory$Outbound, - z.ZodTypeDef, - MediaContainerWithDirectory -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithDirectoryMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithDirectory$ { - /** @deprecated use `MediaContainerWithDirectory$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithDirectory$inboundSchema; - /** @deprecated use `MediaContainerWithDirectory$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithDirectory$outboundSchema; - /** @deprecated use `MediaContainerWithDirectory$Outbound` instead. */ - export type Outbound = MediaContainerWithDirectory$Outbound; -} - -export function mediaContainerWithDirectoryToJSON( - mediaContainerWithDirectory: MediaContainerWithDirectory, -): string { - return JSON.stringify( - MediaContainerWithDirectory$outboundSchema.parse( - mediaContainerWithDirectory, - ), - ); -} - export function mediaContainerWithDirectoryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithhubs.ts b/src/sdk/models/shared/mediacontainerwithhubs.ts index bce38ab4..966bb831 100644 --- a/src/sdk/models/shared/mediacontainerwithhubs.ts +++ b/src/sdk/models/shared/mediacontainerwithhubs.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Hub, - Hub$inboundSchema, - Hub$Outbound, - Hub$outboundSchema, -} from "./hub.js"; +import { Hub, Hub$inboundSchema } from "./hub.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -63,57 +58,6 @@ export const MediaContainerWithHubsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithHubsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Hub?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithHubsMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithHubsMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithHubsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - hub: z.array(Hub$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - hub: "Hub", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithHubsMediaContainer$ { - /** @deprecated use `MediaContainerWithHubsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithHubsMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithHubsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithHubsMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithHubsMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithHubsMediaContainer$Outbound; -} - -export function mediaContainerWithHubsMediaContainerToJSON( - mediaContainerWithHubsMediaContainer: MediaContainerWithHubsMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithHubsMediaContainer$outboundSchema.parse( - mediaContainerWithHubsMediaContainer, - ), - ); -} - export function mediaContainerWithHubsMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -140,47 +84,6 @@ export const MediaContainerWithHubs$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithHubs$Outbound = { - MediaContainer?: MediaContainerWithHubsMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const MediaContainerWithHubs$outboundSchema: z.ZodType< - MediaContainerWithHubs$Outbound, - z.ZodTypeDef, - MediaContainerWithHubs -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithHubsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithHubs$ { - /** @deprecated use `MediaContainerWithHubs$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithHubs$inboundSchema; - /** @deprecated use `MediaContainerWithHubs$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithHubs$outboundSchema; - /** @deprecated use `MediaContainerWithHubs$Outbound` instead. */ - export type Outbound = MediaContainerWithHubs$Outbound; -} - -export function mediaContainerWithHubsToJSON( - mediaContainerWithHubs: MediaContainerWithHubs, -): string { - return JSON.stringify( - MediaContainerWithHubs$outboundSchema.parse(mediaContainerWithHubs), - ); -} - export function mediaContainerWithHubsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithlineup.ts b/src/sdk/models/shared/mediacontainerwithlineup.ts index e60c8b85..c943ba67 100644 --- a/src/sdk/models/shared/mediacontainerwithlineup.ts +++ b/src/sdk/models/shared/mediacontainerwithlineup.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Lineup, - Lineup$inboundSchema, - Lineup$Outbound, - Lineup$outboundSchema, -} from "./lineup.js"; +import { Lineup, Lineup$inboundSchema } from "./lineup.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -65,60 +60,6 @@ export const MediaContainerWithLineupMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithLineupMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Lineup?: Array | undefined; - uuid?: string | undefined; -}; - -/** @internal */ -export const MediaContainerWithLineupMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithLineupMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithLineupMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - lineup: z.array(Lineup$outboundSchema).optional(), - uuid: z.string().optional(), -}).transform((v) => { - return remap$(v, { - lineup: "Lineup", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithLineupMediaContainer$ { - /** @deprecated use `MediaContainerWithLineupMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithLineupMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithLineupMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithLineupMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithLineupMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithLineupMediaContainer$Outbound; -} - -export function mediaContainerWithLineupMediaContainerToJSON( - mediaContainerWithLineupMediaContainer: - MediaContainerWithLineupMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithLineupMediaContainer$outboundSchema.parse( - mediaContainerWithLineupMediaContainer, - ), - ); -} - export function mediaContainerWithLineupMediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -145,47 +86,6 @@ export const MediaContainerWithLineup$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithLineup$Outbound = { - MediaContainer?: MediaContainerWithLineupMediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const MediaContainerWithLineup$outboundSchema: z.ZodType< - MediaContainerWithLineup$Outbound, - z.ZodTypeDef, - MediaContainerWithLineup -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithLineupMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithLineup$ { - /** @deprecated use `MediaContainerWithLineup$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithLineup$inboundSchema; - /** @deprecated use `MediaContainerWithLineup$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithLineup$outboundSchema; - /** @deprecated use `MediaContainerWithLineup$Outbound` instead. */ - export type Outbound = MediaContainerWithLineup$Outbound; -} - -export function mediaContainerWithLineupToJSON( - mediaContainerWithLineup: MediaContainerWithLineup, -): string { - return JSON.stringify( - MediaContainerWithLineup$outboundSchema.parse(mediaContainerWithLineup), - ); -} - export function mediaContainerWithLineupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithmetadata.ts b/src/sdk/models/shared/mediacontainerwithmetadata.ts index b142464b..c2127616 100644 --- a/src/sdk/models/shared/mediacontainerwithmetadata.ts +++ b/src/sdk/models/shared/mediacontainerwithmetadata.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Metadata, - Metadata$inboundSchema, - Metadata$Outbound, - Metadata$outboundSchema, -} from "./metadata.js"; +import { Metadata, Metadata$inboundSchema } from "./metadata.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -60,58 +55,6 @@ export const MediaContainerWithMetadataMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithMetadataMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithMetadataMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithMetadataMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithMetadataMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array(Metadata$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithMetadataMediaContainer$ { - /** @deprecated use `MediaContainerWithMetadataMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithMetadataMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithMetadataMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithMetadataMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithMetadataMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithMetadataMediaContainer$Outbound; -} - -export function mediaContainerWithMetadataMediaContainerToJSON( - mediaContainerWithMetadataMediaContainer: - MediaContainerWithMetadataMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithMetadataMediaContainer$outboundSchema.parse( - mediaContainerWithMetadataMediaContainer, - ), - ); -} - export function mediaContainerWithMetadataMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -143,49 +86,6 @@ export const MediaContainerWithMetadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithMetadata$Outbound = { - MediaContainer?: - | MediaContainerWithMetadataMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithMetadata$outboundSchema: z.ZodType< - MediaContainerWithMetadata$Outbound, - z.ZodTypeDef, - MediaContainerWithMetadata -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithMetadataMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithMetadata$ { - /** @deprecated use `MediaContainerWithMetadata$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithMetadata$inboundSchema; - /** @deprecated use `MediaContainerWithMetadata$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithMetadata$outboundSchema; - /** @deprecated use `MediaContainerWithMetadata$Outbound` instead. */ - export type Outbound = MediaContainerWithMetadata$Outbound; -} - -export function mediaContainerWithMetadataToJSON( - mediaContainerWithMetadata: MediaContainerWithMetadata, -): string { - return JSON.stringify( - MediaContainerWithMetadata$outboundSchema.parse(mediaContainerWithMetadata), - ); -} - export function mediaContainerWithMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts b/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts index dd5cecc6..d5ee5977 100644 --- a/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts +++ b/src/sdk/models/shared/mediacontainerwithnestedmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,42 +10,12 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Filter, - Filter$inboundSchema, - Filter$Outbound, - Filter$outboundSchema, -} from "./filter.js"; -import { - Image, - Image$inboundSchema, - Image$Outbound, - Image$outboundSchema, -} from "./image.js"; -import { - Items, - Items$inboundSchema, - Items$Outbound, - Items$outboundSchema, -} from "./items.js"; -import { - Media, - Media$inboundSchema, - Media$Outbound, - Media$outboundSchema, -} from "./media.js"; -import { - Sort, - Sort$inboundSchema, - Sort$Outbound, - Sort$outboundSchema, -} from "./sort.js"; -import { - Tag, - Tag$inboundSchema, - Tag$Outbound, - Tag$outboundSchema, -} from "./tag.js"; +import { Filter, Filter$inboundSchema } from "./filter.js"; +import { Image, Image$inboundSchema } from "./image.js"; +import { Items, Items$inboundSchema } from "./items.js"; +import { Media, Media$inboundSchema } from "./media.js"; +import { Sort, Sort$inboundSchema } from "./sort.js"; +import { Tag, Tag$inboundSchema } from "./tag.js"; /** * Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie. @@ -296,7 +266,7 @@ export type MetadataItem = { */ year?: number | undefined; metadataItem?: Array | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -424,193 +394,6 @@ export const MetadataItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MetadataItem$Outbound = { - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - MetadataItem?: Array | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MetadataItem$outboundSchema: z.ZodType< - MetadataItem$Outbound, - z.ZodTypeDef, - MetadataItem -> = z.object({ - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(Tag$outboundSchema).optional(), - director: z.array(Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(Filter$outboundSchema).optional(), - genre: z.array(Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(Tag$outboundSchema).optional(), - year: z.number().int().optional(), - metadataItem: z.array(Items$outboundSchema).optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - metadataItem: "MetadataItem", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MetadataItem$ { - /** @deprecated use `MetadataItem$inboundSchema` instead. */ - export const inboundSchema = MetadataItem$inboundSchema; - /** @deprecated use `MetadataItem$outboundSchema` instead. */ - export const outboundSchema = MetadataItem$outboundSchema; - /** @deprecated use `MetadataItem$Outbound` instead. */ - export type Outbound = MetadataItem$Outbound; -} - -export function metadataItemToJSON(metadataItem: MetadataItem): string { - return JSON.stringify(MetadataItem$outboundSchema.parse(metadataItem)); -} - export function metadataItemFromJSON( jsonString: string, ): SafeParseResult { @@ -639,60 +422,6 @@ export const MediaContainerWithNestedMetadataMediaContainer$inboundSchema: }); }); -/** @internal */ -export type MediaContainerWithNestedMetadataMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - MetadataItem?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithNestedMetadataMediaContainer$outboundSchema: - z.ZodType< - MediaContainerWithNestedMetadataMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithNestedMetadataMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadataItem: z.array(z.lazy(() => MetadataItem$outboundSchema)).optional(), - }).transform((v) => { - return remap$(v, { - metadataItem: "MetadataItem", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithNestedMetadataMediaContainer$ { - /** @deprecated use `MediaContainerWithNestedMetadataMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithNestedMetadataMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithNestedMetadataMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithNestedMetadataMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithNestedMetadataMediaContainer$Outbound` instead. */ - export type Outbound = - MediaContainerWithNestedMetadataMediaContainer$Outbound; -} - -export function mediaContainerWithNestedMetadataMediaContainerToJSON( - mediaContainerWithNestedMetadataMediaContainer: - MediaContainerWithNestedMetadataMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithNestedMetadataMediaContainer$outboundSchema.parse( - mediaContainerWithNestedMetadataMediaContainer, - ), - ); -} - export function mediaContainerWithNestedMetadataMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -724,51 +453,6 @@ export const MediaContainerWithNestedMetadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithNestedMetadata$Outbound = { - MediaContainer?: - | MediaContainerWithNestedMetadataMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithNestedMetadata$outboundSchema: z.ZodType< - MediaContainerWithNestedMetadata$Outbound, - z.ZodTypeDef, - MediaContainerWithNestedMetadata -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithNestedMetadataMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithNestedMetadata$ { - /** @deprecated use `MediaContainerWithNestedMetadata$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithNestedMetadata$inboundSchema; - /** @deprecated use `MediaContainerWithNestedMetadata$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithNestedMetadata$outboundSchema; - /** @deprecated use `MediaContainerWithNestedMetadata$Outbound` instead. */ - export type Outbound = MediaContainerWithNestedMetadata$Outbound; -} - -export function mediaContainerWithNestedMetadataToJSON( - mediaContainerWithNestedMetadata: MediaContainerWithNestedMetadata, -): string { - return JSON.stringify( - MediaContainerWithNestedMetadata$outboundSchema.parse( - mediaContainerWithNestedMetadata, - ), - ); -} - export function mediaContainerWithNestedMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts b/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts index e53504d9..9c09c3fc 100644 --- a/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts +++ b/src/sdk/models/shared/mediacontainerwithplaylistmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,36 +10,11 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Filter, - Filter$inboundSchema, - Filter$Outbound, - Filter$outboundSchema, -} from "./filter.js"; -import { - Image, - Image$inboundSchema, - Image$Outbound, - Image$outboundSchema, -} from "./image.js"; -import { - Media, - Media$inboundSchema, - Media$Outbound, - Media$outboundSchema, -} from "./media.js"; -import { - Sort, - Sort$inboundSchema, - Sort$Outbound, - Sort$outboundSchema, -} from "./sort.js"; -import { - Tag, - Tag$inboundSchema, - Tag$Outbound, - Tag$outboundSchema, -} from "./tag.js"; +import { Filter, Filter$inboundSchema } from "./filter.js"; +import { Image, Image$inboundSchema } from "./image.js"; +import { Media, Media$inboundSchema } from "./media.js"; +import { Sort, Sort$inboundSchema } from "./sort.js"; +import { Tag, Tag$inboundSchema } from "./tag.js"; /** * The type of the playlist. @@ -314,7 +289,7 @@ export type MediaContainerWithPlaylistMetadataMetadatum = { * When present, the year associated with the item's release (e.g. release year for a movie). */ year?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -350,21 +325,6 @@ export type MediaContainerWithPlaylistMetadata = { export const PlaylistType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(PlaylistType); -/** @internal */ -export const PlaylistType$outboundSchema: z.ZodNativeEnum = - PlaylistType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PlaylistType$ { - /** @deprecated use `PlaylistType$inboundSchema` instead. */ - export const inboundSchema = PlaylistType$inboundSchema; - /** @deprecated use `PlaylistType$outboundSchema` instead. */ - export const outboundSchema = PlaylistType$outboundSchema; -} - /** @internal */ export const MediaContainerWithPlaylistMetadataMetadatum$inboundSchema: z.ZodType< @@ -464,208 +424,6 @@ export const MediaContainerWithPlaylistMetadataMetadatum$inboundSchema: }); }); -/** @internal */ -export type MediaContainerWithPlaylistMetadataMetadatum$Outbound = { - readOnly?: boolean | undefined; - composite?: any | undefined; - duration?: number | undefined; - key?: any | undefined; - leafCount?: number | undefined; - playlistType?: string | undefined; - smart?: boolean | undefined; - specialPlaylistType?: string | undefined; - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - lastViewedAt?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const MediaContainerWithPlaylistMetadataMetadatum$outboundSchema: - z.ZodType< - MediaContainerWithPlaylistMetadataMetadatum$Outbound, - z.ZodTypeDef, - MediaContainerWithPlaylistMetadataMetadatum - > = z.object({ - readOnly: z.boolean().optional(), - composite: z.any().optional(), - duration: z.number().int().optional(), - key: z.any().optional(), - leafCount: z.number().int().optional(), - playlistType: PlaylistType$outboundSchema.optional(), - smart: z.boolean().optional(), - specialPlaylistType: z.string().optional(), - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(Tag$outboundSchema).optional(), - director: z.array(Tag$outboundSchema).optional(), - filter: z.array(Filter$outboundSchema).optional(), - genre: z.array(Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(Image$outboundSchema).optional(), - index: z.number().int().optional(), - lastViewedAt: z.number().int().optional(), - media: z.array(Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(Tag$outboundSchema).optional(), - year: z.number().int().optional(), - additionalProperties: z.record(z.any()), - }).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - additionalProperties: null, - }), - }; - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithPlaylistMetadataMetadatum$ { - /** @deprecated use `MediaContainerWithPlaylistMetadataMetadatum$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithPlaylistMetadataMetadatum$inboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadataMetadatum$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithPlaylistMetadataMetadatum$outboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadataMetadatum$Outbound` instead. */ - export type Outbound = MediaContainerWithPlaylistMetadataMetadatum$Outbound; -} - -export function mediaContainerWithPlaylistMetadataMetadatumToJSON( - mediaContainerWithPlaylistMetadataMetadatum: - MediaContainerWithPlaylistMetadataMetadatum, -): string { - return JSON.stringify( - MediaContainerWithPlaylistMetadataMetadatum$outboundSchema.parse( - mediaContainerWithPlaylistMetadataMetadatum, - ), - ); -} - export function mediaContainerWithPlaylistMetadataMetadatumFromJSON( jsonString: string, ): SafeParseResult< @@ -702,64 +460,6 @@ export const MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema: }); }); -/** @internal */ -export type MediaContainerWithPlaylistMetadataMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Metadata?: - | Array - | undefined; -}; - -/** @internal */ -export const MediaContainerWithPlaylistMetadataMediaContainer$outboundSchema: - z.ZodType< - MediaContainerWithPlaylistMetadataMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithPlaylistMetadataMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - metadata: z.array( - z.lazy(() => MediaContainerWithPlaylistMetadataMetadatum$outboundSchema), - ).optional(), - }).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithPlaylistMetadataMediaContainer$ { - /** @deprecated use `MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithPlaylistMetadataMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadataMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithPlaylistMetadataMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadataMediaContainer$Outbound` instead. */ - export type Outbound = - MediaContainerWithPlaylistMetadataMediaContainer$Outbound; -} - -export function mediaContainerWithPlaylistMetadataMediaContainerToJSON( - mediaContainerWithPlaylistMetadataMediaContainer: - MediaContainerWithPlaylistMetadataMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithPlaylistMetadataMediaContainer$outboundSchema.parse( - mediaContainerWithPlaylistMetadataMediaContainer, - ), - ); -} - export function mediaContainerWithPlaylistMetadataMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -791,52 +491,6 @@ export const MediaContainerWithPlaylistMetadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithPlaylistMetadata$Outbound = { - MediaContainer?: - | MediaContainerWithPlaylistMetadataMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithPlaylistMetadata$outboundSchema: z.ZodType< - MediaContainerWithPlaylistMetadata$Outbound, - z.ZodTypeDef, - MediaContainerWithPlaylistMetadata -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithPlaylistMetadataMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithPlaylistMetadata$ { - /** @deprecated use `MediaContainerWithPlaylistMetadata$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithPlaylistMetadata$inboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadata$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithPlaylistMetadata$outboundSchema; - /** @deprecated use `MediaContainerWithPlaylistMetadata$Outbound` instead. */ - export type Outbound = MediaContainerWithPlaylistMetadata$Outbound; -} - -export function mediaContainerWithPlaylistMetadataToJSON( - mediaContainerWithPlaylistMetadata: MediaContainerWithPlaylistMetadata, -): string { - return JSON.stringify( - MediaContainerWithPlaylistMetadata$outboundSchema.parse( - mediaContainerWithPlaylistMetadata, - ), - ); -} - export function mediaContainerWithPlaylistMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithsettings.ts b/src/sdk/models/shared/mediacontainerwithsettings.ts index e680b936..a68cf142 100644 --- a/src/sdk/models/shared/mediacontainerwithsettings.ts +++ b/src/sdk/models/shared/mediacontainerwithsettings.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Setting, - Setting$inboundSchema, - Setting$Outbound, - Setting$outboundSchema, -} from "./setting.js"; +import { Setting, Setting$inboundSchema } from "./setting.js"; /** * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. @@ -60,58 +55,6 @@ export const MediaContainerWithSettingsMediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithSettingsMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - Setting?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithSettingsMediaContainer$outboundSchema: z.ZodType< - MediaContainerWithSettingsMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithSettingsMediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - setting: z.array(Setting$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - setting: "Setting", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithSettingsMediaContainer$ { - /** @deprecated use `MediaContainerWithSettingsMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithSettingsMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithSettingsMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithSettingsMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithSettingsMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithSettingsMediaContainer$Outbound; -} - -export function mediaContainerWithSettingsMediaContainerToJSON( - mediaContainerWithSettingsMediaContainer: - MediaContainerWithSettingsMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithSettingsMediaContainer$outboundSchema.parse( - mediaContainerWithSettingsMediaContainer, - ), - ); -} - export function mediaContainerWithSettingsMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -143,49 +86,6 @@ export const MediaContainerWithSettings$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithSettings$Outbound = { - MediaContainer?: - | MediaContainerWithSettingsMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithSettings$outboundSchema: z.ZodType< - MediaContainerWithSettings$Outbound, - z.ZodTypeDef, - MediaContainerWithSettings -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithSettingsMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithSettings$ { - /** @deprecated use `MediaContainerWithSettings$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithSettings$inboundSchema; - /** @deprecated use `MediaContainerWithSettings$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithSettings$outboundSchema; - /** @deprecated use `MediaContainerWithSettings$Outbound` instead. */ - export type Outbound = MediaContainerWithSettings$Outbound; -} - -export function mediaContainerWithSettingsToJSON( - mediaContainerWithSettings: MediaContainerWithSettings, -): string { - return JSON.stringify( - MediaContainerWithSettings$outboundSchema.parse(mediaContainerWithSettings), - ); -} - export function mediaContainerWithSettingsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediacontainerwithsubscription.ts b/src/sdk/models/shared/mediacontainerwithsubscription.ts index 960de29d..bc0f817c 100644 --- a/src/sdk/models/shared/mediacontainerwithsubscription.ts +++ b/src/sdk/models/shared/mediacontainerwithsubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MediaSubscription, MediaSubscription$inboundSchema, - MediaSubscription$Outbound, - MediaSubscription$outboundSchema, } from "./mediasubscription.js"; /** @@ -61,59 +59,6 @@ export const MediaContainerWithSubscriptionMediaContainer$inboundSchema: }); }); -/** @internal */ -export type MediaContainerWithSubscriptionMediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - MediaSubscription?: Array | undefined; -}; - -/** @internal */ -export const MediaContainerWithSubscriptionMediaContainer$outboundSchema: - z.ZodType< - MediaContainerWithSubscriptionMediaContainer$Outbound, - z.ZodTypeDef, - MediaContainerWithSubscriptionMediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - mediaSubscription: z.array(MediaSubscription$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - mediaSubscription: "MediaSubscription", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithSubscriptionMediaContainer$ { - /** @deprecated use `MediaContainerWithSubscriptionMediaContainer$inboundSchema` instead. */ - export const inboundSchema = - MediaContainerWithSubscriptionMediaContainer$inboundSchema; - /** @deprecated use `MediaContainerWithSubscriptionMediaContainer$outboundSchema` instead. */ - export const outboundSchema = - MediaContainerWithSubscriptionMediaContainer$outboundSchema; - /** @deprecated use `MediaContainerWithSubscriptionMediaContainer$Outbound` instead. */ - export type Outbound = MediaContainerWithSubscriptionMediaContainer$Outbound; -} - -export function mediaContainerWithSubscriptionMediaContainerToJSON( - mediaContainerWithSubscriptionMediaContainer: - MediaContainerWithSubscriptionMediaContainer, -): string { - return JSON.stringify( - MediaContainerWithSubscriptionMediaContainer$outboundSchema.parse( - mediaContainerWithSubscriptionMediaContainer, - ), - ); -} - export function mediaContainerWithSubscriptionMediaContainerFromJSON( jsonString: string, ): SafeParseResult< @@ -145,51 +90,6 @@ export const MediaContainerWithSubscription$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaContainerWithSubscription$Outbound = { - MediaContainer?: - | MediaContainerWithSubscriptionMediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const MediaContainerWithSubscription$outboundSchema: z.ZodType< - MediaContainerWithSubscription$Outbound, - z.ZodTypeDef, - MediaContainerWithSubscription -> = z.object({ - mediaContainer: z.lazy(() => - MediaContainerWithSubscriptionMediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaContainerWithSubscription$ { - /** @deprecated use `MediaContainerWithSubscription$inboundSchema` instead. */ - export const inboundSchema = MediaContainerWithSubscription$inboundSchema; - /** @deprecated use `MediaContainerWithSubscription$outboundSchema` instead. */ - export const outboundSchema = MediaContainerWithSubscription$outboundSchema; - /** @deprecated use `MediaContainerWithSubscription$Outbound` instead. */ - export type Outbound = MediaContainerWithSubscription$Outbound; -} - -export function mediaContainerWithSubscriptionToJSON( - mediaContainerWithSubscription: MediaContainerWithSubscription, -): string { - return JSON.stringify( - MediaContainerWithSubscription$outboundSchema.parse( - mediaContainerWithSubscription, - ), - ); -} - export function mediaContainerWithSubscriptionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediagraboperation.ts b/src/sdk/models/shared/mediagraboperation.ts index 8ee892fc..32ed7a69 100644 --- a/src/sdk/models/shared/mediagraboperation.ts +++ b/src/sdk/models/shared/mediagraboperation.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Metadata, - Metadata$inboundSchema, - Metadata$Outbound, - Metadata$outboundSchema, -} from "./metadata.js"; +import { Metadata, Metadata$inboundSchema } from "./metadata.js"; export enum Status { Inactive = "inactive", @@ -57,21 +52,6 @@ export type MediaGrabOperation = { export const Status$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Status); -/** @internal */ -export const Status$outboundSchema: z.ZodNativeEnum = - Status$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Status$ { - /** @deprecated use `Status$inboundSchema` instead. */ - export const inboundSchema = Status$inboundSchema; - /** @deprecated use `Status$outboundSchema` instead. */ - export const outboundSchema = Status$outboundSchema; -} - /** @internal */ export const MediaGrabOperation$inboundSchema: z.ZodType< MediaGrabOperation, @@ -95,65 +75,6 @@ export const MediaGrabOperation$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaGrabOperation$Outbound = { - currentSize?: number | undefined; - grabberIdentifier?: string | undefined; - grabberProtocol?: string | undefined; - id?: string | undefined; - key?: string | undefined; - mediaIndex?: number | undefined; - mediaSubscriptionID?: number | undefined; - Metadata?: Metadata$Outbound | undefined; - percent?: number | undefined; - provider?: string | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const MediaGrabOperation$outboundSchema: z.ZodType< - MediaGrabOperation$Outbound, - z.ZodTypeDef, - MediaGrabOperation -> = z.object({ - currentSize: z.number().int().optional(), - grabberIdentifier: z.string().optional(), - grabberProtocol: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - mediaIndex: z.number().int().optional(), - mediaSubscriptionID: z.number().int().optional(), - metadata: Metadata$outboundSchema.optional(), - percent: z.number().optional(), - provider: z.string().optional(), - status: Status$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - metadata: "Metadata", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaGrabOperation$ { - /** @deprecated use `MediaGrabOperation$inboundSchema` instead. */ - export const inboundSchema = MediaGrabOperation$inboundSchema; - /** @deprecated use `MediaGrabOperation$outboundSchema` instead. */ - export const outboundSchema = MediaGrabOperation$outboundSchema; - /** @deprecated use `MediaGrabOperation$Outbound` instead. */ - export type Outbound = MediaGrabOperation$Outbound; -} - -export function mediaGrabOperationToJSON( - mediaGrabOperation: MediaGrabOperation, -): string { - return JSON.stringify( - MediaGrabOperation$outboundSchema.parse(mediaGrabOperation), - ); -} - export function mediaGrabOperationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/mediaquery.ts b/src/sdk/models/shared/mediaquery.ts index d5659147..5714a45f 100644 --- a/src/sdk/models/shared/mediaquery.ts +++ b/src/sdk/models/shared/mediaquery.ts @@ -2,20 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type MediaQuery = {}; -/** @internal */ -export const MediaQuery$inboundSchema: z.ZodType< - MediaQuery, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MediaQuery$Outbound = {}; @@ -26,29 +16,6 @@ export const MediaQuery$outboundSchema: z.ZodType< MediaQuery > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaQuery$ { - /** @deprecated use `MediaQuery$inboundSchema` instead. */ - export const inboundSchema = MediaQuery$inboundSchema; - /** @deprecated use `MediaQuery$outboundSchema` instead. */ - export const outboundSchema = MediaQuery$outboundSchema; - /** @deprecated use `MediaQuery$Outbound` instead. */ - export type Outbound = MediaQuery$Outbound; -} - export function mediaQueryToJSON(mediaQuery: MediaQuery): string { return JSON.stringify(MediaQuery$outboundSchema.parse(mediaQuery)); } - -export function mediaQueryFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MediaQuery$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MediaQuery' from JSON`, - ); -} diff --git a/src/sdk/models/shared/mediasubscription.ts b/src/sdk/models/shared/mediasubscription.ts index 1bab7ed3..d2af4153 100644 --- a/src/sdk/models/shared/mediasubscription.ts +++ b/src/sdk/models/shared/mediasubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,15 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MediaGrabOperation, MediaGrabOperation$inboundSchema, - MediaGrabOperation$Outbound, - MediaGrabOperation$outboundSchema, } from "./mediagraboperation.js"; -import { - Setting, - Setting$inboundSchema, - Setting$Outbound, - Setting$outboundSchema, -} from "./setting.js"; +import { Setting, Setting$inboundSchema } from "./setting.js"; export enum AiringsType { NewAiringsOnly = "New Airings Only", @@ -77,21 +70,6 @@ export type MediaSubscription = { export const AiringsType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AiringsType); -/** @internal */ -export const AiringsType$outboundSchema: z.ZodNativeEnum = - AiringsType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiringsType$ { - /** @deprecated use `AiringsType$inboundSchema` instead. */ - export const inboundSchema = AiringsType$inboundSchema; - /** @deprecated use `AiringsType$outboundSchema` instead. */ - export const outboundSchema = AiringsType$outboundSchema; -} - /** @internal */ export const MediaSubscription$inboundSchema: z.ZodType< MediaSubscription, @@ -124,79 +102,6 @@ export const MediaSubscription$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MediaSubscription$Outbound = { - title?: string | undefined; - type?: number | undefined; - airingsType?: string | undefined; - createdAt?: number | undefined; - Directory?: { [k: string]: any } | undefined; - durationTotal?: number | undefined; - key?: string | undefined; - librarySectionTitle?: string | undefined; - locationPath?: string | undefined; - MediaGrabOperation?: Array | undefined; - Playlist?: { [k: string]: any } | undefined; - Setting?: Array | undefined; - storageTotal?: number | undefined; - targetLibrarySectionID?: number | undefined; - targetSectionLocationID?: number | undefined; - Video?: { [k: string]: any } | undefined; -}; - -/** @internal */ -export const MediaSubscription$outboundSchema: z.ZodType< - MediaSubscription$Outbound, - z.ZodTypeDef, - MediaSubscription -> = z.object({ - title: z.string().optional(), - type: z.number().int().optional(), - airingsType: AiringsType$outboundSchema.optional(), - createdAt: z.number().int().optional(), - directory: z.record(z.any()).optional(), - durationTotal: z.number().int().optional(), - key: z.string().optional(), - librarySectionTitle: z.string().optional(), - locationPath: z.string().optional(), - mediaGrabOperation: z.array(MediaGrabOperation$outboundSchema).optional(), - playlist: z.record(z.any()).optional(), - setting: z.array(Setting$outboundSchema).optional(), - storageTotal: z.number().int().optional(), - targetLibrarySectionID: z.number().int().optional(), - targetSectionLocationID: z.number().int().optional(), - video: z.record(z.any()).optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - mediaGrabOperation: "MediaGrabOperation", - playlist: "Playlist", - setting: "Setting", - video: "Video", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MediaSubscription$ { - /** @deprecated use `MediaSubscription$inboundSchema` instead. */ - export const inboundSchema = MediaSubscription$inboundSchema; - /** @deprecated use `MediaSubscription$outboundSchema` instead. */ - export const outboundSchema = MediaSubscription$outboundSchema; - /** @deprecated use `MediaSubscription$Outbound` instead. */ - export type Outbound = MediaSubscription$Outbound; -} - -export function mediaSubscriptionToJSON( - mediaSubscription: MediaSubscription, -): string { - return JSON.stringify( - MediaSubscription$outboundSchema.parse(mediaSubscription), - ); -} - export function mediaSubscriptionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/metadata.ts b/src/sdk/models/shared/metadata.ts index 215a9e8c..325a8745 100644 --- a/src/sdk/models/shared/metadata.ts +++ b/src/sdk/models/shared/metadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,36 +10,11 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Filter, - Filter$inboundSchema, - Filter$Outbound, - Filter$outboundSchema, -} from "./filter.js"; -import { - Image, - Image$inboundSchema, - Image$Outbound, - Image$outboundSchema, -} from "./image.js"; -import { - Media, - Media$inboundSchema, - Media$Outbound, - Media$outboundSchema, -} from "./media.js"; -import { - Sort, - Sort$inboundSchema, - Sort$Outbound, - Sort$outboundSchema, -} from "./sort.js"; -import { - Tag, - Tag$inboundSchema, - Tag$Outbound, - Tag$outboundSchema, -} from "./tag.js"; +import { Filter, Filter$inboundSchema } from "./filter.js"; +import { Image, Image$inboundSchema } from "./image.js"; +import { Media, Media$inboundSchema } from "./media.js"; +import { Sort, Sort$inboundSchema } from "./sort.js"; +import { Tag, Tag$inboundSchema } from "./tag.js"; /** * Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie. @@ -289,7 +264,7 @@ export type Metadata = { * When present, the year associated with the item's release (e.g. release year for a movie). */ year?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -386,190 +361,6 @@ export const Metadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Metadata$Outbound = { - title?: any | undefined; - type?: any | undefined; - absoluteIndex?: number | undefined; - addedAt?: number | undefined; - art?: any | undefined; - audienceRating?: number | undefined; - audienceRatingImage?: any | undefined; - Autotag?: Array | undefined; - banner?: any | undefined; - chapterSource?: any | undefined; - composite?: any | undefined; - contentRating?: any | undefined; - Country?: Array | undefined; - Director?: Array | undefined; - duration?: number | undefined; - Filter?: Array | undefined; - Genre?: Array | undefined; - grandparentArt?: string | undefined; - grandparentHero?: string | undefined; - grandparentKey?: string | undefined; - grandparentRatingKey?: string | undefined; - grandparentTheme?: string | undefined; - grandparentThumb?: string | undefined; - grandparentTitle?: string | undefined; - Guid?: Array | undefined; - hero?: any | undefined; - Image?: Array | undefined; - index?: number | undefined; - key?: any | undefined; - lastViewedAt?: number | undefined; - leafCount?: number | undefined; - Media?: Array | undefined; - originallyAvailableAt?: any | undefined; - originalTitle?: any | undefined; - parentHero?: string | undefined; - parentIndex?: number | undefined; - parentKey?: string | undefined; - parentRatingKey?: string | undefined; - parentThumb?: string | undefined; - parentTitle?: string | undefined; - primaryExtraKey?: any | undefined; - prompt?: string | undefined; - rating?: number | undefined; - Rating?: Array | undefined; - ratingCount?: number | undefined; - ratingImage?: any | undefined; - ratingKey?: any | undefined; - Role?: Array | undefined; - search?: boolean | undefined; - secondary?: boolean | undefined; - skipChildren?: boolean | undefined; - skipParent?: boolean | undefined; - Sort?: Array | undefined; - studio?: any | undefined; - subtype?: any | undefined; - summary?: any | undefined; - tagline?: any | undefined; - theme?: any | undefined; - thumb?: any | undefined; - titleSort?: any | undefined; - updatedAt?: number | undefined; - userRating?: number | undefined; - viewCount?: number | undefined; - viewedLeafCount?: number | undefined; - viewOffset?: number | undefined; - Writer?: Array | undefined; - year?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Metadata$outboundSchema: z.ZodType< - Metadata$Outbound, - z.ZodTypeDef, - Metadata -> = z.object({ - title: z.any().optional(), - type: z.any().optional(), - absoluteIndex: z.number().int().optional(), - addedAt: z.number().int().optional(), - art: z.any().optional(), - audienceRating: z.number().optional(), - audienceRatingImage: z.any().optional(), - autotag: z.array(Tag$outboundSchema).optional(), - banner: z.any().optional(), - chapterSource: z.any().optional(), - composite: z.any().optional(), - contentRating: z.any().optional(), - country: z.array(Tag$outboundSchema).optional(), - director: z.array(Tag$outboundSchema).optional(), - duration: z.number().int().optional(), - filter: z.array(Filter$outboundSchema).optional(), - genre: z.array(Tag$outboundSchema).optional(), - grandparentArt: z.string().optional(), - grandparentHero: z.string().optional(), - grandparentKey: z.string().optional(), - grandparentRatingKey: z.string().optional(), - grandparentTheme: z.string().optional(), - grandparentThumb: z.string().optional(), - grandparentTitle: z.string().optional(), - guid: z.array(Tag$outboundSchema).optional(), - hero: z.any().optional(), - image: z.array(Image$outboundSchema).optional(), - index: z.number().int().optional(), - key: z.any().optional(), - lastViewedAt: z.number().int().optional(), - leafCount: z.number().int().optional(), - media: z.array(Media$outboundSchema).optional(), - originallyAvailableAt: z.any().optional(), - originalTitle: z.any().optional(), - parentHero: z.string().optional(), - parentIndex: z.number().int().optional(), - parentKey: z.string().optional(), - parentRatingKey: z.string().optional(), - parentThumb: z.string().optional(), - parentTitle: z.string().optional(), - primaryExtraKey: z.any().optional(), - prompt: z.string().optional(), - rating: z.number().optional(), - ratingArray: z.array(Tag$outboundSchema).optional(), - ratingCount: z.number().int().optional(), - ratingImage: z.any().optional(), - ratingKey: z.any().optional(), - role: z.array(Tag$outboundSchema).optional(), - search: z.boolean().optional(), - secondary: z.boolean().optional(), - skipChildren: z.boolean().optional(), - skipParent: z.boolean().optional(), - sort: z.array(Sort$outboundSchema).optional(), - studio: z.any().optional(), - subtype: z.any().optional(), - summary: z.any().optional(), - tagline: z.any().optional(), - theme: z.any().optional(), - thumb: z.any().optional(), - titleSort: z.any().optional(), - updatedAt: z.number().int().optional(), - userRating: z.number().optional(), - viewCount: z.number().int().optional(), - viewedLeafCount: z.number().int().optional(), - viewOffset: z.number().int().optional(), - writer: z.array(Tag$outboundSchema).optional(), - year: z.number().int().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - autotag: "Autotag", - country: "Country", - director: "Director", - filter: "Filter", - genre: "Genre", - guid: "Guid", - image: "Image", - media: "Media", - ratingArray: "Rating", - role: "Role", - sort: "Sort", - writer: "Writer", - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Metadata$ { - /** @deprecated use `Metadata$inboundSchema` instead. */ - export const inboundSchema = Metadata$inboundSchema; - /** @deprecated use `Metadata$outboundSchema` instead. */ - export const outboundSchema = Metadata$outboundSchema; - /** @deprecated use `Metadata$Outbound` instead. */ - export type Outbound = Metadata$Outbound; -} - -export function metadataToJSON(metadata: Metadata): string { - return JSON.stringify(Metadata$outboundSchema.parse(metadata)); -} - export function metadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/part.ts b/src/sdk/models/shared/part.ts index 54764634..e297d7ff 100644 --- a/src/sdk/models/shared/part.ts +++ b/src/sdk/models/shared/part.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -10,12 +10,7 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Stream, - Stream$inboundSchema, - Stream$Outbound, - Stream$outboundSchema, -} from "./stream.js"; +import { Stream, Stream$inboundSchema } from "./stream.js"; /** * `Part` represents a particular file or "part" of a media item. The part is the playable unit of the media hierarchy. Suppose that a movie library contains a movie that is broken up into files, reminiscent of a movie split across two BDs. The metadata item represents information about the movie, the media item represents this instance of the movie at this resolution and quality, and the part items represent the two playable files. If another media were added which contained the joining of these two parts transcoded down to a lower resolution, then this metadata would contain 2 medias, one with 2 parts and one with 1 part. @@ -49,7 +44,7 @@ export type Part = { size?: number | undefined; stream?: Array | undefined; videoProfile?: any | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -76,64 +71,6 @@ export const Part$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Part$Outbound = { - audioProfile?: any | undefined; - container?: any | undefined; - duration?: number | undefined; - file?: any | undefined; - has64bitOffsets?: boolean | undefined; - id?: number | undefined; - key?: any | undefined; - optimizedForStreaming?: boolean | undefined; - size?: number | undefined; - Stream?: Array | undefined; - videoProfile?: any | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Part$outboundSchema: z.ZodType = - z.object({ - audioProfile: z.any().optional(), - container: z.any().optional(), - duration: z.number().int().optional(), - file: z.any().optional(), - has64bitOffsets: z.boolean().optional(), - id: z.number().int().optional(), - key: z.any().optional(), - optimizedForStreaming: z.boolean().optional(), - size: z.number().int().optional(), - stream: z.array(Stream$outboundSchema).optional(), - videoProfile: z.any().optional(), - additionalProperties: z.record(z.any()), - }).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - stream: "Stream", - additionalProperties: null, - }), - }; - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Part$ { - /** @deprecated use `Part$inboundSchema` instead. */ - export const inboundSchema = Part$inboundSchema; - /** @deprecated use `Part$outboundSchema` instead. */ - export const outboundSchema = Part$outboundSchema; - /** @deprecated use `Part$Outbound` instead. */ - export type Outbound = Part$Outbound; -} - -export function partToJSON(part: Part): string { - return JSON.stringify(Part$outboundSchema.parse(part)); -} - export function partFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/player.ts b/src/sdk/models/shared/player.ts index fa9c6ba2..0d45ae7a 100644 --- a/src/sdk/models/shared/player.ts +++ b/src/sdk/models/shared/player.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -93,65 +93,6 @@ export const Player$inboundSchema: z.ZodType = z version: z.string().optional(), }); -/** @internal */ -export type Player$Outbound = { - title?: string | undefined; - address?: string | undefined; - local?: boolean | undefined; - machineIdentifier?: string | undefined; - model?: string | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - product?: string | undefined; - relayed?: boolean | undefined; - remotePublicAddress?: string | undefined; - secure?: boolean | undefined; - state?: string | undefined; - userID?: number | undefined; - vendor?: string | undefined; - version?: string | undefined; -}; - -/** @internal */ -export const Player$outboundSchema: z.ZodType< - Player$Outbound, - z.ZodTypeDef, - Player -> = z.object({ - title: z.string().optional(), - address: z.string().optional(), - local: z.boolean().optional(), - machineIdentifier: z.string().optional(), - model: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - product: z.string().optional(), - relayed: z.boolean().optional(), - remotePublicAddress: z.string().optional(), - secure: z.boolean().optional(), - state: z.string().optional(), - userID: z.number().int().optional(), - vendor: z.string().optional(), - version: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Player$ { - /** @deprecated use `Player$inboundSchema` instead. */ - export const inboundSchema = Player$inboundSchema; - /** @deprecated use `Player$outboundSchema` instead. */ - export const outboundSchema = Player$outboundSchema; - /** @deprecated use `Player$Outbound` instead. */ - export type Outbound = Player$Outbound; -} - -export function playerToJSON(player: Player): string { - return JSON.stringify(Player$outboundSchema.parse(player)); -} - export function playerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/postresponses200.ts b/src/sdk/models/shared/postresponses200.ts index c39061d1..30238e4e 100644 --- a/src/sdk/models/shared/postresponses200.ts +++ b/src/sdk/models/shared/postresponses200.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -47,7 +47,7 @@ export type PostResponses200MediaContainer = { startTimeOffset?: number | undefined; title?: string | undefined; type?: TypeResponse | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -61,21 +61,6 @@ export type PostResponses200 = { export const TypeResponse$inboundSchema: z.ZodNativeEnum = z.nativeEnum(TypeResponse); -/** @internal */ -export const TypeResponse$outboundSchema: z.ZodNativeEnum = - TypeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TypeResponse$ { - /** @deprecated use `TypeResponse$inboundSchema` instead. */ - export const inboundSchema = TypeResponse$inboundSchema; - /** @deprecated use `TypeResponse$outboundSchema` instead. */ - export const outboundSchema = TypeResponse$outboundSchema; -} - /** @internal */ export const PostResponses200MediaContainer$inboundSchema: z.ZodType< PostResponses200MediaContainer, @@ -98,70 +83,6 @@ export const PostResponses200MediaContainer$inboundSchema: z.ZodType< true, ); -/** @internal */ -export type PostResponses200MediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - color?: string | undefined; - endTimeOffset?: number | undefined; - id?: number | undefined; - startTimeOffset?: number | undefined; - title?: string | undefined; - type?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const PostResponses200MediaContainer$outboundSchema: z.ZodType< - PostResponses200MediaContainer$Outbound, - z.ZodTypeDef, - PostResponses200MediaContainer -> = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - color: z.string().optional(), - endTimeOffset: z.number().int().optional(), - id: z.number().int().optional(), - startTimeOffset: z.number().int().optional(), - title: z.string().optional(), - type: TypeResponse$outboundSchema.optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostResponses200MediaContainer$ { - /** @deprecated use `PostResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = PostResponses200MediaContainer$inboundSchema; - /** @deprecated use `PostResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = PostResponses200MediaContainer$outboundSchema; - /** @deprecated use `PostResponses200MediaContainer$Outbound` instead. */ - export type Outbound = PostResponses200MediaContainer$Outbound; -} - -export function postResponses200MediaContainerToJSON( - postResponses200MediaContainer: PostResponses200MediaContainer, -): string { - return JSON.stringify( - PostResponses200MediaContainer$outboundSchema.parse( - postResponses200MediaContainer, - ), - ); -} - export function postResponses200MediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -186,46 +107,6 @@ export const PostResponses200$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostResponses200$Outbound = { - MediaContainer?: PostResponses200MediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const PostResponses200$outboundSchema: z.ZodType< - PostResponses200$Outbound, - z.ZodTypeDef, - PostResponses200 -> = z.object({ - mediaContainer: z.lazy(() => PostResponses200MediaContainer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostResponses200$ { - /** @deprecated use `PostResponses200$inboundSchema` instead. */ - export const inboundSchema = PostResponses200$inboundSchema; - /** @deprecated use `PostResponses200$outboundSchema` instead. */ - export const outboundSchema = PostResponses200$outboundSchema; - /** @deprecated use `PostResponses200$Outbound` instead. */ - export type Outbound = PostResponses200$Outbound; -} - -export function postResponses200ToJSON( - postResponses200: PostResponses200, -): string { - return JSON.stringify( - PostResponses200$outboundSchema.parse(postResponses200), - ); -} - export function postResponses200FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/protocol.ts b/src/sdk/models/shared/protocol.ts index b1903502..cb5e7a73 100644 --- a/src/sdk/models/shared/protocol.ts +++ b/src/sdk/models/shared/protocol.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum Protocol { Http = "http", @@ -11,20 +11,5 @@ export enum Protocol { } /** @internal */ -export const Protocol$inboundSchema: z.ZodNativeEnum = z +export const Protocol$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Protocol); - -/** @internal */ -export const Protocol$outboundSchema: z.ZodNativeEnum = - Protocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Protocol$ { - /** @deprecated use `Protocol$inboundSchema` instead. */ - export const inboundSchema = Protocol$inboundSchema; - /** @deprecated use `Protocol$outboundSchema` instead. */ - export const outboundSchema = Protocol$outboundSchema; -} diff --git a/src/sdk/models/shared/requesthandlerslashgetresponses200.ts b/src/sdk/models/shared/requesthandlerslashgetresponses200.ts deleted file mode 100644 index fe3714c4..00000000 --- a/src/sdk/models/shared/requesthandlerslashgetresponses200.ts +++ /dev/null @@ -1,473 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../../lib/primitives.js"; -import { safeParse } from "../../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DirectoryResponse = { - count?: number | undefined; - /** - * The key where this directory is found - */ - key?: string | undefined; - title?: string | undefined; -}; - -/** - * `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. - * - * @remarks - * Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) - * The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track. - */ -export type RequestHandlerSlashGetResponses200MediaContainer = { - identifier?: string | undefined; - /** - * The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header. - * - * @remarks - */ - offset?: number | undefined; - size?: number | undefined; - /** - * The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header. - * - * @remarks - */ - totalSize?: number | undefined; - allowCameraUpload?: boolean | undefined; - allowChannelAccess?: boolean | undefined; - allowMediaDeletion?: boolean | undefined; - allowSharing?: boolean | undefined; - allowSync?: boolean | undefined; - allowTuners?: boolean | undefined; - backgroundProcessing?: boolean | undefined; - certificate?: boolean | undefined; - companionProxy?: boolean | undefined; - countryCode?: string | undefined; - diagnostics?: string | undefined; - eventStream?: boolean | undefined; - friendlyName?: string | undefined; - hubSearch?: boolean | undefined; - itemClusters?: boolean | undefined; - livetv?: number | undefined; - machineIdentifier?: any | undefined; - mediaProviders?: boolean | undefined; - multiuser?: boolean | undefined; - musicAnalysis?: number | undefined; - myPlex?: boolean | undefined; - myPlexMappingState?: any | undefined; - myPlexSigninState?: any | undefined; - myPlexSubscription?: boolean | undefined; - myPlexUsername?: string | undefined; - offlineTranscode?: any | undefined; - /** - * A comma-separated list of features which are enabled for the server owner - */ - ownerFeatures?: string | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - pluginHost?: boolean | undefined; - pushNotifications?: boolean | undefined; - readOnlyLibraries?: boolean | undefined; - streamingBrainABRVersion?: number | undefined; - streamingBrainVersion?: number | undefined; - sync?: boolean | undefined; - transcoderActiveVideoSessions?: number | undefined; - transcoderAudio?: boolean | undefined; - transcoderLyrics?: boolean | undefined; - transcoderPhoto?: boolean | undefined; - transcoderSubtitles?: boolean | undefined; - transcoderVideo?: boolean | undefined; - /** - * The suggested video quality bitrates to present to the user - */ - transcoderVideoBitrates?: any | undefined; - transcoderVideoQualities?: string | undefined; - /** - * The suggested video resolutions to the above quality bitrates - */ - transcoderVideoResolutions?: any | undefined; - updatedAt?: number | undefined; - updater?: boolean | undefined; - version?: string | undefined; - voiceSearch?: boolean | undefined; - directory?: Array | undefined; -}; - -/** - * OK - */ -export type RequestHandlerSlashGetResponses200 = { - mediaContainer?: RequestHandlerSlashGetResponses200MediaContainer | undefined; -}; - -/** @internal */ -export const DirectoryResponse$inboundSchema: z.ZodType< - DirectoryResponse, - z.ZodTypeDef, - unknown -> = z.object({ - count: z.number().int().optional(), - key: z.string().optional(), - title: z.string().optional(), -}); - -/** @internal */ -export type DirectoryResponse$Outbound = { - count?: number | undefined; - key?: string | undefined; - title?: string | undefined; -}; - -/** @internal */ -export const DirectoryResponse$outboundSchema: z.ZodType< - DirectoryResponse$Outbound, - z.ZodTypeDef, - DirectoryResponse -> = z.object({ - count: z.number().int().optional(), - key: z.string().optional(), - title: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DirectoryResponse$ { - /** @deprecated use `DirectoryResponse$inboundSchema` instead. */ - export const inboundSchema = DirectoryResponse$inboundSchema; - /** @deprecated use `DirectoryResponse$outboundSchema` instead. */ - export const outboundSchema = DirectoryResponse$outboundSchema; - /** @deprecated use `DirectoryResponse$Outbound` instead. */ - export type Outbound = DirectoryResponse$Outbound; -} - -export function directoryResponseToJSON( - directoryResponse: DirectoryResponse, -): string { - return JSON.stringify( - DirectoryResponse$outboundSchema.parse(directoryResponse), - ); -} - -export function directoryResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DirectoryResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DirectoryResponse' from JSON`, - ); -} - -/** @internal */ -export const RequestHandlerSlashGetResponses200MediaContainer$inboundSchema: - z.ZodType< - RequestHandlerSlashGetResponses200MediaContainer, - z.ZodTypeDef, - unknown - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - Directory: z.array(z.lazy(() => DirectoryResponse$inboundSchema)) - .optional(), - }).transform((v) => { - return remap$(v, { - "Directory": "directory", - }); - }); - -/** @internal */ -export type RequestHandlerSlashGetResponses200MediaContainer$Outbound = { - identifier?: string | undefined; - offset?: number | undefined; - size?: number | undefined; - totalSize?: number | undefined; - allowCameraUpload?: boolean | undefined; - allowChannelAccess?: boolean | undefined; - allowMediaDeletion?: boolean | undefined; - allowSharing?: boolean | undefined; - allowSync?: boolean | undefined; - allowTuners?: boolean | undefined; - backgroundProcessing?: boolean | undefined; - certificate?: boolean | undefined; - companionProxy?: boolean | undefined; - countryCode?: string | undefined; - diagnostics?: string | undefined; - eventStream?: boolean | undefined; - friendlyName?: string | undefined; - hubSearch?: boolean | undefined; - itemClusters?: boolean | undefined; - livetv?: number | undefined; - machineIdentifier?: any | undefined; - mediaProviders?: boolean | undefined; - multiuser?: boolean | undefined; - musicAnalysis?: number | undefined; - myPlex?: boolean | undefined; - myPlexMappingState?: any | undefined; - myPlexSigninState?: any | undefined; - myPlexSubscription?: boolean | undefined; - myPlexUsername?: string | undefined; - offlineTranscode?: any | undefined; - ownerFeatures?: string | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - pluginHost?: boolean | undefined; - pushNotifications?: boolean | undefined; - readOnlyLibraries?: boolean | undefined; - streamingBrainABRVersion?: number | undefined; - streamingBrainVersion?: number | undefined; - sync?: boolean | undefined; - transcoderActiveVideoSessions?: number | undefined; - transcoderAudio?: boolean | undefined; - transcoderLyrics?: boolean | undefined; - transcoderPhoto?: boolean | undefined; - transcoderSubtitles?: boolean | undefined; - transcoderVideo?: boolean | undefined; - transcoderVideoBitrates?: any | undefined; - transcoderVideoQualities?: string | undefined; - transcoderVideoResolutions?: any | undefined; - updatedAt?: number | undefined; - updater?: boolean | undefined; - version?: string | undefined; - voiceSearch?: boolean | undefined; - Directory?: Array | undefined; -}; - -/** @internal */ -export const RequestHandlerSlashGetResponses200MediaContainer$outboundSchema: - z.ZodType< - RequestHandlerSlashGetResponses200MediaContainer$Outbound, - z.ZodTypeDef, - RequestHandlerSlashGetResponses200MediaContainer - > = z.object({ - identifier: z.string().optional(), - offset: z.number().int().optional(), - size: z.number().int().optional(), - totalSize: z.number().int().optional(), - allowCameraUpload: z.boolean().optional(), - allowChannelAccess: z.boolean().optional(), - allowMediaDeletion: z.boolean().optional(), - allowSharing: z.boolean().optional(), - allowSync: z.boolean().optional(), - allowTuners: z.boolean().optional(), - backgroundProcessing: z.boolean().optional(), - certificate: z.boolean().optional(), - companionProxy: z.boolean().optional(), - countryCode: z.string().optional(), - diagnostics: z.string().optional(), - eventStream: z.boolean().optional(), - friendlyName: z.string().optional(), - hubSearch: z.boolean().optional(), - itemClusters: z.boolean().optional(), - livetv: z.number().int().optional(), - machineIdentifier: z.any().optional(), - mediaProviders: z.boolean().optional(), - multiuser: z.boolean().optional(), - musicAnalysis: z.number().int().optional(), - myPlex: z.boolean().optional(), - myPlexMappingState: z.any().optional(), - myPlexSigninState: z.any().optional(), - myPlexSubscription: z.boolean().optional(), - myPlexUsername: z.string().optional(), - offlineTranscode: z.any().optional(), - ownerFeatures: z.string().optional(), - platform: z.string().optional(), - platformVersion: z.string().optional(), - pluginHost: z.boolean().optional(), - pushNotifications: z.boolean().optional(), - readOnlyLibraries: z.boolean().optional(), - streamingBrainABRVersion: z.number().int().optional(), - streamingBrainVersion: z.number().int().optional(), - sync: z.boolean().optional(), - transcoderActiveVideoSessions: z.number().int().optional(), - transcoderAudio: z.boolean().optional(), - transcoderLyrics: z.boolean().optional(), - transcoderPhoto: z.boolean().optional(), - transcoderSubtitles: z.boolean().optional(), - transcoderVideo: z.boolean().optional(), - transcoderVideoBitrates: z.any().optional(), - transcoderVideoQualities: z.string().optional(), - transcoderVideoResolutions: z.any().optional(), - updatedAt: z.number().int().optional(), - updater: z.boolean().optional(), - version: z.string().optional(), - voiceSearch: z.boolean().optional(), - directory: z.array(z.lazy(() => DirectoryResponse$outboundSchema)) - .optional(), - }).transform((v) => { - return remap$(v, { - directory: "Directory", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestHandlerSlashGetResponses200MediaContainer$ { - /** @deprecated use `RequestHandlerSlashGetResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = - RequestHandlerSlashGetResponses200MediaContainer$inboundSchema; - /** @deprecated use `RequestHandlerSlashGetResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = - RequestHandlerSlashGetResponses200MediaContainer$outboundSchema; - /** @deprecated use `RequestHandlerSlashGetResponses200MediaContainer$Outbound` instead. */ - export type Outbound = - RequestHandlerSlashGetResponses200MediaContainer$Outbound; -} - -export function requestHandlerSlashGetResponses200MediaContainerToJSON( - requestHandlerSlashGetResponses200MediaContainer: - RequestHandlerSlashGetResponses200MediaContainer, -): string { - return JSON.stringify( - RequestHandlerSlashGetResponses200MediaContainer$outboundSchema.parse( - requestHandlerSlashGetResponses200MediaContainer, - ), - ); -} - -export function requestHandlerSlashGetResponses200MediaContainerFromJSON( - jsonString: string, -): SafeParseResult< - RequestHandlerSlashGetResponses200MediaContainer, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RequestHandlerSlashGetResponses200MediaContainer$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RequestHandlerSlashGetResponses200MediaContainer' from JSON`, - ); -} - -/** @internal */ -export const RequestHandlerSlashGetResponses200$inboundSchema: z.ZodType< - RequestHandlerSlashGetResponses200, - z.ZodTypeDef, - unknown -> = z.object({ - MediaContainer: z.lazy(() => - RequestHandlerSlashGetResponses200MediaContainer$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "MediaContainer": "mediaContainer", - }); -}); - -/** @internal */ -export type RequestHandlerSlashGetResponses200$Outbound = { - MediaContainer?: - | RequestHandlerSlashGetResponses200MediaContainer$Outbound - | undefined; -}; - -/** @internal */ -export const RequestHandlerSlashGetResponses200$outboundSchema: z.ZodType< - RequestHandlerSlashGetResponses200$Outbound, - z.ZodTypeDef, - RequestHandlerSlashGetResponses200 -> = z.object({ - mediaContainer: z.lazy(() => - RequestHandlerSlashGetResponses200MediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestHandlerSlashGetResponses200$ { - /** @deprecated use `RequestHandlerSlashGetResponses200$inboundSchema` instead. */ - export const inboundSchema = RequestHandlerSlashGetResponses200$inboundSchema; - /** @deprecated use `RequestHandlerSlashGetResponses200$outboundSchema` instead. */ - export const outboundSchema = - RequestHandlerSlashGetResponses200$outboundSchema; - /** @deprecated use `RequestHandlerSlashGetResponses200$Outbound` instead. */ - export type Outbound = RequestHandlerSlashGetResponses200$Outbound; -} - -export function requestHandlerSlashGetResponses200ToJSON( - requestHandlerSlashGetResponses200: RequestHandlerSlashGetResponses200, -): string { - return JSON.stringify( - RequestHandlerSlashGetResponses200$outboundSchema.parse( - requestHandlerSlashGetResponses200, - ), - ); -} - -export function requestHandlerSlashGetResponses200FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - RequestHandlerSlashGetResponses200$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RequestHandlerSlashGetResponses200' from JSON`, - ); -} diff --git a/src/sdk/models/shared/security.ts b/src/sdk/models/shared/security.ts index e1522bf6..20ed13cc 100644 --- a/src/sdk/models/shared/security.ts +++ b/src/sdk/models/shared/security.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type Security = { token?: string | undefined; }; -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - token: z.string().optional(), -}); - /** @internal */ export type Security$Outbound = { token?: string | undefined; @@ -34,29 +22,6 @@ export const Security$outboundSchema: z.ZodType< token: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/src/sdk/models/shared/session.ts b/src/sdk/models/shared/session.ts index 7879c400..41df56f7 100644 --- a/src/sdk/models/shared/session.ts +++ b/src/sdk/models/shared/session.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -38,22 +38,6 @@ export const SessionLocation$inboundSchema: z.ZodNativeEnum< typeof SessionLocation > = z.nativeEnum(SessionLocation); -/** @internal */ -export const SessionLocation$outboundSchema: z.ZodNativeEnum< - typeof SessionLocation -> = SessionLocation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SessionLocation$ { - /** @deprecated use `SessionLocation$inboundSchema` instead. */ - export const inboundSchema = SessionLocation$inboundSchema; - /** @deprecated use `SessionLocation$outboundSchema` instead. */ - export const outboundSchema = SessionLocation$outboundSchema; -} - /** @internal */ export const Session$inboundSchema: z.ZodType = z.object({ @@ -62,41 +46,6 @@ export const Session$inboundSchema: z.ZodType = location: SessionLocation$inboundSchema.optional(), }); -/** @internal */ -export type Session$Outbound = { - bandwidth?: number | undefined; - id?: string | undefined; - location?: string | undefined; -}; - -/** @internal */ -export const Session$outboundSchema: z.ZodType< - Session$Outbound, - z.ZodTypeDef, - Session -> = z.object({ - bandwidth: z.number().int().optional(), - id: z.string().optional(), - location: SessionLocation$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Session$ { - /** @deprecated use `Session$inboundSchema` instead. */ - export const inboundSchema = Session$inboundSchema; - /** @deprecated use `Session$outboundSchema` instead. */ - export const outboundSchema = Session$outboundSchema; - /** @deprecated use `Session$Outbound` instead. */ - export type Outbound = Session$Outbound; -} - -export function sessionToJSON(session: Session): string { - return JSON.stringify(Session$outboundSchema.parse(session)); -} - export function sessionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/setting.ts b/src/sdk/models/shared/setting.ts index 16bc87c7..eb00a3c5 100644 --- a/src/sdk/models/shared/setting.ts +++ b/src/sdk/models/shared/setting.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -77,52 +77,10 @@ export type Setting = { export const SettingType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SettingType); -/** @internal */ -export const SettingType$outboundSchema: z.ZodNativeEnum = - SettingType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingType$ { - /** @deprecated use `SettingType$inboundSchema` instead. */ - export const inboundSchema = SettingType$inboundSchema; - /** @deprecated use `SettingType$outboundSchema` instead. */ - export const outboundSchema = SettingType$outboundSchema; -} - /** @internal */ export const Default$inboundSchema: z.ZodType = z.union([z.string(), z.number(), z.boolean()]); -/** @internal */ -export type Default$Outbound = string | number | boolean; - -/** @internal */ -export const Default$outboundSchema: z.ZodType< - Default$Outbound, - z.ZodTypeDef, - Default -> = z.union([z.string(), z.number(), z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Default$ { - /** @deprecated use `Default$inboundSchema` instead. */ - export const inboundSchema = Default$inboundSchema; - /** @deprecated use `Default$outboundSchema` instead. */ - export const outboundSchema = Default$outboundSchema; - /** @deprecated use `Default$Outbound` instead. */ - export type Outbound = Default$Outbound; -} - -export function defaultToJSON(value: Default): string { - return JSON.stringify(Default$outboundSchema.parse(value)); -} - export function defaultFromJSON( jsonString: string, ): SafeParseResult { @@ -137,33 +95,6 @@ export function defaultFromJSON( export const Value$inboundSchema: z.ZodType = z .union([z.string(), z.number(), z.boolean()]); -/** @internal */ -export type Value$Outbound = string | number | boolean; - -/** @internal */ -export const Value$outboundSchema: z.ZodType< - Value$Outbound, - z.ZodTypeDef, - Value -> = z.union([z.string(), z.number(), z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value$ { - /** @deprecated use `Value$inboundSchema` instead. */ - export const inboundSchema = Value$inboundSchema; - /** @deprecated use `Value$outboundSchema` instead. */ - export const outboundSchema = Value$outboundSchema; - /** @deprecated use `Value$Outbound` instead. */ - export type Outbound = Value$Outbound; -} - -export function valueToJSON(value: Value): string { - return JSON.stringify(Value$outboundSchema.parse(value)); -} - export function valueFromJSON( jsonString: string, ): SafeParseResult { @@ -189,55 +120,6 @@ export const Setting$inboundSchema: z.ZodType = value: z.union([z.string(), z.number(), z.boolean()]).optional(), }); -/** @internal */ -export type Setting$Outbound = { - type?: string | undefined; - default?: string | number | boolean | undefined; - advanced?: boolean | undefined; - enumValues?: string | undefined; - group?: string | undefined; - hidden?: boolean | undefined; - id?: string | undefined; - label?: string | undefined; - summary?: string | undefined; - value?: string | number | boolean | undefined; -}; - -/** @internal */ -export const Setting$outboundSchema: z.ZodType< - Setting$Outbound, - z.ZodTypeDef, - Setting -> = z.object({ - type: SettingType$outboundSchema.optional(), - default: z.union([z.string(), z.number(), z.boolean()]).optional(), - advanced: z.boolean().optional(), - enumValues: z.string().optional(), - group: z.string().optional(), - hidden: z.boolean().optional(), - id: z.string().optional(), - label: z.string().optional(), - summary: z.string().optional(), - value: z.union([z.string(), z.number(), z.boolean()]).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Setting$ { - /** @deprecated use `Setting$inboundSchema` instead. */ - export const inboundSchema = Setting$inboundSchema; - /** @deprecated use `Setting$outboundSchema` instead. */ - export const outboundSchema = Setting$outboundSchema; - /** @deprecated use `Setting$Outbound` instead. */ - export type Outbound = Setting$Outbound; -} - -export function settingToJSON(setting: Setting): string { - return JSON.stringify(Setting$outboundSchema.parse(setting)); -} - export function settingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/slashgetresponses200.ts b/src/sdk/models/shared/slashgetresponses200.ts index d5297897..e109c2a8 100644 --- a/src/sdk/models/shared/slashgetresponses200.ts +++ b/src/sdk/models/shared/slashgetresponses200.ts @@ -2,17 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Metadata, - Metadata$inboundSchema, - Metadata$Outbound, - Metadata$outboundSchema, -} from "./metadata.js"; +import { Metadata, Metadata$inboundSchema } from "./metadata.js"; export type SlashGetResponses200MediaContainer = { /** @@ -72,74 +67,6 @@ export const SlashGetResponses200MediaContainer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SlashGetResponses200MediaContainer$Outbound = { - content?: string | undefined; - allowSync?: boolean | undefined; - art?: string | undefined; - Directory?: Array | undefined; - identifier?: string | undefined; - librarySectionID?: number | undefined; - mediaTagPrefix?: string | undefined; - mediaTagVersion?: number | undefined; - size?: number | undefined; - sortAsc?: boolean | undefined; - thumb?: string | undefined; - title1?: string | undefined; - viewGroup?: string | undefined; - viewMode?: number | undefined; -}; - -/** @internal */ -export const SlashGetResponses200MediaContainer$outboundSchema: z.ZodType< - SlashGetResponses200MediaContainer$Outbound, - z.ZodTypeDef, - SlashGetResponses200MediaContainer -> = z.object({ - content: z.string().optional(), - allowSync: z.boolean().optional(), - art: z.string().optional(), - directory: z.array(Metadata$outboundSchema).optional(), - identifier: z.string().optional(), - librarySectionID: z.number().int().optional(), - mediaTagPrefix: z.string().optional(), - mediaTagVersion: z.number().int().optional(), - size: z.number().int().optional(), - sortAsc: z.boolean().optional(), - thumb: z.string().optional(), - title1: z.string().optional(), - viewGroup: z.string().optional(), - viewMode: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - directory: "Directory", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SlashGetResponses200MediaContainer$ { - /** @deprecated use `SlashGetResponses200MediaContainer$inboundSchema` instead. */ - export const inboundSchema = SlashGetResponses200MediaContainer$inboundSchema; - /** @deprecated use `SlashGetResponses200MediaContainer$outboundSchema` instead. */ - export const outboundSchema = - SlashGetResponses200MediaContainer$outboundSchema; - /** @deprecated use `SlashGetResponses200MediaContainer$Outbound` instead. */ - export type Outbound = SlashGetResponses200MediaContainer$Outbound; -} - -export function slashGetResponses200MediaContainerToJSON( - slashGetResponses200MediaContainer: SlashGetResponses200MediaContainer, -): string { - return JSON.stringify( - SlashGetResponses200MediaContainer$outboundSchema.parse( - slashGetResponses200MediaContainer, - ), - ); -} - export function slashGetResponses200MediaContainerFromJSON( jsonString: string, ): SafeParseResult { @@ -165,47 +92,6 @@ export const SlashGetResponses200$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SlashGetResponses200$Outbound = { - MediaContainer?: SlashGetResponses200MediaContainer$Outbound | undefined; -}; - -/** @internal */ -export const SlashGetResponses200$outboundSchema: z.ZodType< - SlashGetResponses200$Outbound, - z.ZodTypeDef, - SlashGetResponses200 -> = z.object({ - mediaContainer: z.lazy(() => - SlashGetResponses200MediaContainer$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - mediaContainer: "MediaContainer", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SlashGetResponses200$ { - /** @deprecated use `SlashGetResponses200$inboundSchema` instead. */ - export const inboundSchema = SlashGetResponses200$inboundSchema; - /** @deprecated use `SlashGetResponses200$outboundSchema` instead. */ - export const outboundSchema = SlashGetResponses200$outboundSchema; - /** @deprecated use `SlashGetResponses200$Outbound` instead. */ - export type Outbound = SlashGetResponses200$Outbound; -} - -export function slashGetResponses200ToJSON( - slashGetResponses200: SlashGetResponses200, -): string { - return JSON.stringify( - SlashGetResponses200$outboundSchema.parse(slashGetResponses200), - ); -} - export function slashGetResponses200FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/sort.ts b/src/sdk/models/shared/sort.ts index 2435a5c2..1fb95802 100644 --- a/src/sdk/models/shared/sort.ts +++ b/src/sdk/models/shared/sort.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -79,7 +79,7 @@ export type Sort = { * The key to use to get items sorted by this field and indexed by the first character */ firstCharacterKey?: string | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -96,47 +96,6 @@ export const SortPivot$inboundSchema: z.ZodType< symbol: z.string().optional(), }); -/** @internal */ -export type SortPivot$Outbound = { - title?: string | undefined; - type?: string | undefined; - context?: string | undefined; - id?: string | undefined; - key?: string | undefined; - symbol?: string | undefined; -}; - -/** @internal */ -export const SortPivot$outboundSchema: z.ZodType< - SortPivot$Outbound, - z.ZodTypeDef, - SortPivot -> = z.object({ - title: z.string().optional(), - type: z.string().optional(), - context: z.string().optional(), - id: z.string().optional(), - key: z.string().optional(), - symbol: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SortPivot$ { - /** @deprecated use `SortPivot$inboundSchema` instead. */ - export const inboundSchema = SortPivot$inboundSchema; - /** @deprecated use `SortPivot$outboundSchema` instead. */ - export const outboundSchema = SortPivot$outboundSchema; - /** @deprecated use `SortPivot$Outbound` instead. */ - export type Outbound = SortPivot$Outbound; -} - -export function sortPivotToJSON(sortPivot: SortPivot): string { - return JSON.stringify(SortPivot$outboundSchema.parse(sortPivot)); -} - export function sortPivotFromJSON( jsonString: string, ): SafeParseResult { @@ -151,42 +110,11 @@ export function sortPivotFromJSON( export const DefaultEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(DefaultEnum); -/** @internal */ -export const DefaultEnum$outboundSchema: z.ZodNativeEnum = - DefaultEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DefaultEnum$ { - /** @deprecated use `DefaultEnum$inboundSchema` instead. */ - export const inboundSchema = DefaultEnum$inboundSchema; - /** @deprecated use `DefaultEnum$outboundSchema` instead. */ - export const outboundSchema = DefaultEnum$outboundSchema; -} - /** @internal */ export const DefaultDirection$inboundSchema: z.ZodNativeEnum< typeof DefaultDirection > = z.nativeEnum(DefaultDirection); -/** @internal */ -export const DefaultDirection$outboundSchema: z.ZodNativeEnum< - typeof DefaultDirection -> = DefaultDirection$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DefaultDirection$ { - /** @deprecated use `DefaultDirection$inboundSchema` instead. */ - export const inboundSchema = DefaultDirection$inboundSchema; - /** @deprecated use `DefaultDirection$outboundSchema` instead. */ - export const outboundSchema = DefaultDirection$outboundSchema; -} - /** @internal */ export const Sort$inboundSchema: z.ZodType = collectExtraKeys$( @@ -219,80 +147,6 @@ export const Sort$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Sort$Outbound = { - title?: string | undefined; - type?: string | undefined; - art?: string | undefined; - content?: boolean | undefined; - filter?: string | undefined; - hasPrefs?: boolean | undefined; - hasStoreServices?: boolean | undefined; - hubKey?: string | undefined; - identifier?: string | undefined; - key?: string | undefined; - lastAccessedAt?: number | undefined; - Pivot?: Array | undefined; - share?: number | undefined; - thumb?: string | undefined; - titleBar?: string | undefined; - default?: string | undefined; - defaultDirection?: string | undefined; - descKey?: string | undefined; - firstCharacterKey?: string | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Sort$outboundSchema: z.ZodType = - z.object({ - title: z.string().optional(), - type: z.string().optional(), - art: z.string().optional(), - content: z.boolean().optional(), - filter: z.string().optional(), - hasPrefs: z.boolean().optional(), - hasStoreServices: z.boolean().optional(), - hubKey: z.string().optional(), - identifier: z.string().optional(), - key: z.string().optional(), - lastAccessedAt: z.number().int().optional(), - pivot: z.array(z.lazy(() => SortPivot$outboundSchema)).optional(), - share: z.number().int().optional(), - thumb: z.string().optional(), - titleBar: z.string().optional(), - default: DefaultEnum$outboundSchema.optional(), - defaultDirection: DefaultDirection$outboundSchema.optional(), - descKey: z.string().optional(), - firstCharacterKey: z.string().optional(), - additionalProperties: z.record(z.any()), - }).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - pivot: "Pivot", - additionalProperties: null, - }), - }; - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Sort$ { - /** @deprecated use `Sort$inboundSchema` instead. */ - export const inboundSchema = Sort$inboundSchema; - /** @deprecated use `Sort$outboundSchema` instead. */ - export const outboundSchema = Sort$outboundSchema; - /** @deprecated use `Sort$Outbound` instead. */ - export type Outbound = Sort$Outbound; -} - -export function sortToJSON(sort: Sort): string { - return JSON.stringify(Sort$outboundSchema.parse(sort)); -} - export function sortFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/stream.ts b/src/sdk/models/shared/stream.ts index 5aa486dd..07da4eb0 100644 --- a/src/sdk/models/shared/stream.ts +++ b/src/sdk/models/shared/stream.ts @@ -2,8 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod/v3"; import { collectExtraKeys as collectExtraKeys$, safeParse, @@ -67,7 +66,7 @@ export type Stream = { */ streamType?: number | undefined; width?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -108,102 +107,6 @@ export const Stream$inboundSchema: z.ZodType = true, ); -/** @internal */ -export type Stream$Outbound = { - default?: boolean | undefined; - audioChannelLayout?: any | undefined; - bitDepth?: number | undefined; - bitrate?: number | undefined; - canAutoSync?: boolean | undefined; - chromaLocation?: any | undefined; - chromaSubsampling?: any | undefined; - codec?: any | undefined; - colorPrimaries?: any | undefined; - colorRange?: any | undefined; - colorSpace?: any | undefined; - colorTrc?: any | undefined; - displayTitle?: any | undefined; - frameRate?: number | undefined; - hasScalingMatrix?: any | undefined; - height?: number | undefined; - id?: number | undefined; - index?: number | undefined; - key?: any | undefined; - language?: any | undefined; - languageCode?: any | undefined; - level?: number | undefined; - profile?: any | undefined; - refFrames?: number | undefined; - samplingRate?: number | undefined; - selected?: boolean | undefined; - streamIdentifier?: number | undefined; - streamType?: number | undefined; - width?: number | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Stream$outboundSchema: z.ZodType< - Stream$Outbound, - z.ZodTypeDef, - Stream -> = z.object({ - default: z.boolean().optional(), - audioChannelLayout: z.any().optional(), - bitDepth: z.number().int().optional(), - bitrate: z.number().int().optional(), - canAutoSync: z.boolean().optional(), - chromaLocation: z.any().optional(), - chromaSubsampling: z.any().optional(), - codec: z.any().optional(), - colorPrimaries: z.any().optional(), - colorRange: z.any().optional(), - colorSpace: z.any().optional(), - colorTrc: z.any().optional(), - displayTitle: z.any().optional(), - frameRate: z.number().optional(), - hasScalingMatrix: z.any().optional(), - height: z.number().int().optional(), - id: z.number().int().optional(), - index: z.number().int().optional(), - key: z.any().optional(), - language: z.any().optional(), - languageCode: z.any().optional(), - level: z.number().int().optional(), - profile: z.any().optional(), - refFrames: z.number().int().optional(), - samplingRate: z.number().int().optional(), - selected: z.boolean().optional(), - streamIdentifier: z.number().int().optional(), - streamType: z.number().int().optional(), - width: z.number().int().optional(), - additionalProperties: z.record(z.any()), -}).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Stream$ { - /** @deprecated use `Stream$inboundSchema` instead. */ - export const inboundSchema = Stream$inboundSchema; - /** @deprecated use `Stream$outboundSchema` instead. */ - export const outboundSchema = Stream$outboundSchema; - /** @deprecated use `Stream$Outbound` instead. */ - export type Outbound = Stream$Outbound; -} - -export function streamToJSON(stream: Stream): string { - return JSON.stringify(Stream$outboundSchema.parse(stream)); -} - export function streamFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/subtitles.ts b/src/sdk/models/shared/subtitles.ts index 264202e1..02b9b61d 100644 --- a/src/sdk/models/shared/subtitles.ts +++ b/src/sdk/models/shared/subtitles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum Subtitles { Auto = "auto", @@ -15,20 +15,5 @@ export enum Subtitles { } /** @internal */ -export const Subtitles$inboundSchema: z.ZodNativeEnum = z +export const Subtitles$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Subtitles); - -/** @internal */ -export const Subtitles$outboundSchema: z.ZodNativeEnum = - Subtitles$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Subtitles$ { - /** @deprecated use `Subtitles$inboundSchema` instead. */ - export const inboundSchema = Subtitles$inboundSchema; - /** @deprecated use `Subtitles$outboundSchema` instead. */ - export const outboundSchema = Subtitles$outboundSchema; -} diff --git a/src/sdk/models/shared/tag.ts b/src/sdk/models/shared/tag.ts index 1929b74f..4b54df8d 100644 --- a/src/sdk/models/shared/tag.ts +++ b/src/sdk/models/shared/tag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -55,52 +55,6 @@ export const Tag$inboundSchema: z.ZodType = z thumb: z.any().optional(), }); -/** @internal */ -export type Tag$Outbound = { - confidence?: number | undefined; - context?: string | undefined; - filter?: any | undefined; - id?: number | undefined; - ratingKey?: string | undefined; - role?: any | undefined; - tag?: any | undefined; - tagKey?: any | undefined; - tagType?: number | undefined; - thumb?: any | undefined; -}; - -/** @internal */ -export const Tag$outboundSchema: z.ZodType = z - .object({ - confidence: z.number().optional(), - context: z.string().optional(), - filter: z.any().optional(), - id: z.number().int().optional(), - ratingKey: z.string().optional(), - role: z.any().optional(), - tag: z.any().optional(), - tagKey: z.any().optional(), - tagType: z.number().int().optional(), - thumb: z.any().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Tag$ { - /** @deprecated use `Tag$inboundSchema` instead. */ - export const inboundSchema = Tag$inboundSchema; - /** @deprecated use `Tag$outboundSchema` instead. */ - export const outboundSchema = Tag$outboundSchema; - /** @deprecated use `Tag$Outbound` instead. */ - export type Outbound = Tag$Outbound; -} - -export function tagToJSON(tag: Tag): string { - return JSON.stringify(Tag$outboundSchema.parse(tag)); -} - export function tagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/transcodesession.ts b/src/sdk/models/shared/transcodesession.ts index 2aaf794a..6f3cfee9 100644 --- a/src/sdk/models/shared/transcodesession.ts +++ b/src/sdk/models/shared/transcodesession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -49,67 +49,6 @@ export const TranscodeSession$inboundSchema: z.ZodType< transcodeHwRequested: z.boolean().optional(), }); -/** @internal */ -export type TranscodeSession$Outbound = { - complete?: boolean | undefined; - context?: string | undefined; - duration?: number | undefined; - error?: boolean | undefined; - key?: string | undefined; - progress?: number | undefined; - protocol?: string | undefined; - size?: number | undefined; - sourceAudioCodec?: string | undefined; - sourceVideoCodec?: string | undefined; - speed?: number | undefined; - throttled?: boolean | undefined; - transcodeHwFullPipeline?: boolean | undefined; - transcodeHwRequested?: boolean | undefined; -}; - -/** @internal */ -export const TranscodeSession$outboundSchema: z.ZodType< - TranscodeSession$Outbound, - z.ZodTypeDef, - TranscodeSession -> = z.object({ - complete: z.boolean().optional(), - context: z.string().optional(), - duration: z.number().int().optional(), - error: z.boolean().optional(), - key: z.string().optional(), - progress: z.number().optional(), - protocol: z.string().optional(), - size: z.number().int().optional(), - sourceAudioCodec: z.string().optional(), - sourceVideoCodec: z.string().optional(), - speed: z.number().optional(), - throttled: z.boolean().optional(), - transcodeHwFullPipeline: z.boolean().optional(), - transcodeHwRequested: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeSession$ { - /** @deprecated use `TranscodeSession$inboundSchema` instead. */ - export const inboundSchema = TranscodeSession$inboundSchema; - /** @deprecated use `TranscodeSession$outboundSchema` instead. */ - export const outboundSchema = TranscodeSession$outboundSchema; - /** @deprecated use `TranscodeSession$Outbound` instead. */ - export type Outbound = TranscodeSession$Outbound; -} - -export function transcodeSessionToJSON( - transcodeSession: TranscodeSession, -): string { - return JSON.stringify( - TranscodeSession$outboundSchema.parse(transcodeSession), - ); -} - export function transcodeSessionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/transcodetype.ts b/src/sdk/models/shared/transcodetype.ts index 30781117..b97ba047 100644 --- a/src/sdk/models/shared/transcodetype.ts +++ b/src/sdk/models/shared/transcodetype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export enum TranscodeType { Video = "video", @@ -11,23 +11,7 @@ export enum TranscodeType { Subtitles = "subtitles", } -/** @internal */ -export const TranscodeType$inboundSchema: z.ZodNativeEnum< - typeof TranscodeType -> = z.nativeEnum(TranscodeType); - /** @internal */ export const TranscodeType$outboundSchema: z.ZodNativeEnum< typeof TranscodeType -> = TranscodeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TranscodeType$ { - /** @deprecated use `TranscodeType$inboundSchema` instead. */ - export const inboundSchema = TranscodeType$inboundSchema; - /** @deprecated use `TranscodeType$outboundSchema` instead. */ - export const outboundSchema = TranscodeType$outboundSchema; -} +> = z.nativeEnum(TranscodeType); diff --git a/src/sdk/models/shared/user.ts b/src/sdk/models/shared/user.ts index 8bf818b1..ea98adce 100644 --- a/src/sdk/models/shared/user.ts +++ b/src/sdk/models/shared/user.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,38 +33,6 @@ export const User$inboundSchema: z.ZodType = z thumb: z.string().optional(), }); -/** @internal */ -export type User$Outbound = { - title?: string | undefined; - id?: string | undefined; - thumb?: string | undefined; -}; - -/** @internal */ -export const User$outboundSchema: z.ZodType = - z.object({ - title: z.string().optional(), - id: z.string().optional(), - thumb: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - -export function userToJSON(user: User): string { - return JSON.stringify(User$outboundSchema.parse(user)); -} - export function userFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/types/blobs.ts b/src/sdk/types/blobs.ts index 4ce84602..cce2892d 100644 --- a/src/sdk/types/blobs.ts +++ b/src/sdk/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/sdk/types/constdatetime.ts b/src/sdk/types/constdatetime.ts index eeff4dde..fe62144e 100644 --- a/src/sdk/types/constdatetime.ts +++ b/src/sdk/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, diff --git a/src/sdk/types/enums.ts b/src/sdk/types/enums.ts index 6fb6d910..32ad7bcf 100644 --- a/src/sdk/types/enums.ts +++ b/src/sdk/types/enums.ts @@ -2,15 +2,64 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; + declare const __brand: unique symbol; export type Unrecognized = T & { [__brand]: "unrecognized" }; +export type ClosedEnum>> = + T[keyof T]; +export type OpenEnum>> = + | T[keyof T] + | Unrecognized; -export function catchUnrecognizedEnum(value: T): Unrecognized { +function unrecognized(value: T): Unrecognized { + unrecognizedCount++; return value as Unrecognized; } -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; +let unrecognizedCount = 0; +let refCount = 0; +export function unrecognizedCounter() { + refCount++; + const start = unrecognizedCount; + return { + count: () => { + const count = unrecognizedCount - start; + if (--refCount === 0) unrecognizedCount = 0; + return count; + }, + }; +} + +export function inboundSchema>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + const options = Object.values(enumObj); + return z.union([ + ...options.map(x => z.literal(x)), + z.string().transform(x => unrecognized(x)), + ] as any); +} + +export function inboundSchemaInt>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + // For numeric enums, Object.values returns both numbers and string keys + const options = Object.values(enumObj).filter(v => typeof v === "number"); + return z.union([ + ...options.map(x => z.literal(x)), + z.number().int().transform(x => unrecognized(x)), + ] as any); +} + +export function outboundSchema>( + _: T, +): z.ZodType> { + return z.string() as any; +} + +export function outboundSchemaInt>( + _: T, +): z.ZodType> { + return z.number().int() as any; +} diff --git a/src/sdk/types/index.ts b/src/sdk/types/index.ts index e124e817..92d9f734 100644 --- a/src/sdk/types/index.ts +++ b/src/sdk/types/index.ts @@ -3,7 +3,6 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js";