mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-07 20:47:49 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c047afa2 | ||
|
|
03910be91f |
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
||||
management:
|
||||
docChecksum: 2a6e4c8f6e1fedff5a37da76411f22df
|
||||
docChecksum: e95c0e17d3e268dcd18d26ac8d0bfc98
|
||||
docVersion: 1.1.1
|
||||
speakeasyVersion: 1.636.3
|
||||
generationVersion: 2.723.11
|
||||
releaseVersion: 0.42.0
|
||||
configChecksum: b8bda7eeb03f9b1af5ee6b6fbc93d821
|
||||
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
|
||||
@@ -7540,217 +7540,3 @@ generatedTests:
|
||||
addCollectionItems: "2025-10-12T05:25:28Z"
|
||||
deleteCollectionItem: "2025-10-12T05:25:28Z"
|
||||
moveCollectionItem: "2025-10-12T05:25:28Z"
|
||||
releaseNotes: |
|
||||
## Typescript SDK Changes Detected:
|
||||
* `plex-api.general.getServerInfo()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.general.getSourceConnectionInformation()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.general.getTransientToken()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.events.getNotifications()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.events.connectWebSocket()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.preferences.setPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.preferences.getPreference()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.rate.setRating()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.timeline.markPlayed()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.timeline.report()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.timeline.unscrobble()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.activities.cancelActivity()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.butler.stopTask()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.butler.startTask()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.getDownloadQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.addDownloadQueueItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.listDownloadQueueItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.getItemDecision()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.getDownloadQueueMedia()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.removeDownloadQueueItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.getDownloadQueueItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.downloadQueue.restartProcessingDownloadQueueItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getAllHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getContinueWatching()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getHubItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getPromotedHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getMetadataHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getPostplayHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getRelatedHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.getSectionHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.resetSectionDefaults()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.listHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.createCustomHub()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.moveHub()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.deleteCustomHub()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.hubs.updateHubVisibility()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.search.searchHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.search.voiceSearchHubs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getLibraryItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.ingestTransientItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getLibraryMatches()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.optimizeDatabase()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getRandomArtwork()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.addSection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getSectionsPrefs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.refreshSectionsMetadata()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getTags()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteMetadataItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.editMetadataItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.detectAds()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getAllItemLeaves()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.analyzeMetadata()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.generateThumbs()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.detectCredits()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getExtras()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.addExtras()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getFile()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.startBifGeneration()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.detectIntros()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.createMarker()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.matchItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.listMatches()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.mergeItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.listSonicallySimilar()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.setItemPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.refreshItemsMetadata()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getRelatedItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.listSimilar()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.splitItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.addSubtitles()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getItemTree()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.unmatch()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.listTopUsers()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.detectVoiceActivity()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getAugmentationStatus()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.setStreamSelection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getPerson()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.listPersonMedia()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteLibrarySection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getLibraryDetails()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.editSection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.updateItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.startAnalysis()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.autocomplete()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getCollections()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getCommon()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.emptyTrash()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getSectionFilters()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getFirstCharacters()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteIndexes()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteIntros()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getSectionPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.setSectionPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.cancelRefresh()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.refreshSection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getAvailableSorts()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getStreamLevels()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getStreamLoudness()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getChapterImage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.setItemArtwork()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.updateItemArtwork()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteMarker()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.editMarker()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteMediaItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getPartIndex()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteCollection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getSectionImage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.deleteStream()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getStream()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.setStreamOffset()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getItemArtwork()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getMediaPart()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.library.getImageFromBif()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.collections.createCollection()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.createDvr()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.deleteDvr()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.getDvr()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.deleteLineup()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.addLineup()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.setDvrPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.stopDvrReload()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.reloadGuide()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.tuneChannel()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.removeDeviceFromDvr()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.dvRs.addDeviceToDvr()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.computeChannelMap()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.getChannels()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.getLineup()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.getLineupChannels()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.getCountriesLineups()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.getCountryRegions()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.epg.listLineups()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.liveTv.getLiveTvSession()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.liveTv.getSessionPlaylistIndex()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.liveTv.getSessionSegment()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.log.writeMessage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.log.enablePapertrail()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.getAvailableGrabbers()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.addDevice()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.removeDevice()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.getDeviceDetails()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.modifyDevice()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.setChannelmap()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.getDevicesChannels()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.setDevicePreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.stopScan()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.scan()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.devices.getThumb()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.provider.addProvider()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.provider.deleteMediaProvider()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.getAllSubscriptions()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.createSubscription()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.getTemplate()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.cancelGrab()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.deleteSubscription()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.getSubscription()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.editSubscriptionPreferences()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.subscriptions.reorderSubscription()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.transcoder.transcodeImage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.transcoder.makeDecision()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.transcoder.triggerFallback()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.transcoder.transcodeSubtitles()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.transcoder.startTranscodeSession()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playlist.listPlaylists()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playlist.getPlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playlist.getPlaylistItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.createPlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.uploadPlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.deletePlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.updatePlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.getPlaylistGenerators()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.clearPlaylistItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.addPlaylistItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.deletePlaylistItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.getPlaylistGenerator()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.modifyPlaylistGenerator()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.getPlaylistGeneratorItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.movePlaylistItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryPlaylists.refreshPlaylist()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.createPlayQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.getPlayQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.addToPlayQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.clearPlayQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.resetPlayQueue()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.shuffle()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.unshuffle()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.deletePlayQueueItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.playQueue.movePlayQueueItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.ultraBlur.getColors()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.ultraBlur.getImage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.status.listPlaybackHistory()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.status.terminateSession()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.status.deleteHistory()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.status.getHistoryItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.updater.applyUpdates()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.updater.checkUpdates()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getCollectionItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getMetadataItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getAlbums()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.listContent()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getAllLeaves()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getArts()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getCategories()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getCluster()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getSonicPath()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getFolders()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.listMoments()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getSonicallySimilar()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.content.getCollectionImage()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryCollections.addCollectionItems()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryCollections.deleteCollectionItem()`: `request` **Changed** **Breaking** :warning:
|
||||
* `plex-api.libraryCollections.moveCollectionItem()`: `request` **Changed** **Breaking** :warning:
|
||||
|
||||
@@ -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.0
|
||||
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
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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:bc60551015634fd59475cf17983ca3aedcab591426d526ab1e3634b1feedaec1
|
||||
sourceBlobDigest: sha256:fc8cd5343a94564b646830738f38e065d61e2ea63e4a1383ce07533586889950
|
||||
sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b
|
||||
sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f
|
||||
tags:
|
||||
- latest
|
||||
- speakeasy-sdk-regen-1760248310
|
||||
- speakeasy-sdk-regen-1762992705
|
||||
- 1.1.1
|
||||
targets:
|
||||
plexjs:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:bc60551015634fd59475cf17983ca3aedcab591426d526ab1e3634b1feedaec1
|
||||
sourceBlobDigest: sha256:fc8cd5343a94564b646830738f38e065d61e2ea63e4a1383ce07533586889950
|
||||
sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b
|
||||
sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f
|
||||
codeSamplesNamespace: code-samples-typescript-plexjs
|
||||
codeSamplesRevisionDigest: sha256:341820816861b13701967c2a958e9654d258aeb27b83f2e875cb14ee316fa85c
|
||||
codeSamplesRevisionDigest: sha256:9c301d7b022dab8173b220aa8f2546378c973a75491335d1742c60d131abdf27
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
|
||||
14
README.md
14
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`<br/>`IP-description`<br/>`port` | |
|
||||
| 1 | `{protocol}://{host}:{port}` | `protocol`<br/>`host`<br/>`port` | |
|
||||
| 2 | `https://{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`). <br/>If using a reverse proxy, this would be the port number configured on the proxy.<br/> |
|
||||
| `protocol` | `protocol: string` | `"http"` | The network protocol to use. Typically (`http` or `https`) |
|
||||
| `host` | `host: string` | `"localhost"` | The Host of the PMS.<br/>If using on a local network, this is the internal IP address of the server hosting the PMS.<br/>If using on an external network, this is the external IP address for your network, and requires port forwarding.<br/>If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding. <br/> |
|
||||
| `server_url` | `serverUrl: string` | `"http://localhost:32400"` | The full manual URL to access the PMS |
|
||||
| `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: "<value>",
|
||||
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",
|
||||
|
||||
20
RELEASES.md
20
RELEASES.md
@@ -1419,3 +1419,23 @@ Based on:
|
||||
- [typescript v0.42.0] .
|
||||
### Releases
|
||||
- [NPM v0.42.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.42.0 - .
|
||||
|
||||
## 2025-10-12 07:25:38
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.42.1] .
|
||||
### Releases
|
||||
- [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 - .
|
||||
@@ -14,8 +14,8 @@ 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 |
|
||||
| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK |
|
||||
@@ -14,8 +14,8 @@ 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 |
|
||||
| `librarySections` | [shared.LibrarySections](../../../sdk/models/shared/librarysections.md) | :heavy_minus_sign: | OK |
|
||||
26
docs/sdk/models/shared/librarysections.md
Normal file
26
docs/sdk/models/shared/librarysections.md
Normal file
@@ -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 |
|
||||
@@ -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,
|
||||
@@ -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 |
|
||||
@@ -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
|
||||
|
||||
|
||||
4
examples/package-lock.json
generated
4
examples/package-lock.json
generated
@@ -18,9 +18,9 @@
|
||||
},
|
||||
"..": {
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.42.0",
|
||||
"version": "0.43.0",
|
||||
"dependencies": {
|
||||
"zod": "^3.20.0"
|
||||
"zod": "^3.25.0 || ^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.19.0",
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.42.0",
|
||||
"version": "0.43.0",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
||||
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.42.0",
|
||||
"version": "0.43.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.42.0",
|
||||
"version": "0.43.0",
|
||||
"dependencies": {
|
||||
"zod": "^3.20.0"
|
||||
"zod": "^3.25.0 || ^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.19.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.42.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -2,7 +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";
|
||||
|
||||
@@ -2,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));
|
||||
|
||||
@@ -14,7 +14,7 @@ import { Params, pathToFunc } from "./url.js";
|
||||
export const ServerList = [
|
||||
"https://{IP-description}.{identifier}.plex.direct:{port}",
|
||||
"{protocol}://{host}:{port}",
|
||||
"https://{server_url}",
|
||||
"https://{full_server_url}",
|
||||
] as const;
|
||||
|
||||
export type SDKOptions = {
|
||||
@@ -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.0",
|
||||
genVersion: "2.723.11",
|
||||
userAgent: "speakeasy-sdk/typescript 0.42.0 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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -2,7 +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";
|
||||
|
||||
|
||||
@@ -2,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 {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddCollectionItemsGlobals, SDKValidationError> {
|
||||
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<AddCollectionItemsRequest, SDKValidationError> {
|
||||
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<AddCollectionItemsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddDeviceGlobals, SDKValidationError> {
|
||||
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<AddDeviceRequest, SDKValidationError> {
|
||||
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<AddDeviceResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<AddDeviceToDVRGlobals, SDKValidationError> {
|
||||
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<AddDeviceToDVRRequest, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => AddDeviceToDVRRequest$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'AddDeviceToDVRRequest' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const AddDeviceToDVRMediaContainerMediaContainer$inboundSchema:
|
||||
z.ZodType<AddDeviceToDVRMediaContainerMediaContainer, z.ZodTypeDef, unknown> =
|
||||
@@ -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<shared.Device$Outbound> | 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<AddDeviceToDVRDVR, SDKValidationError> {
|
||||
@@ -572,54 +309,6 @@ export const AddDeviceToDVRMediaContainer$inboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type AddDeviceToDVRMediaContainer$Outbound = {
|
||||
MediaContainer?:
|
||||
| AddDeviceToDVRMediaContainerMediaContainer$Outbound
|
||||
| undefined;
|
||||
DVR?: Array<AddDeviceToDVRDVR$Outbound> | 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<AddDeviceToDVRMediaContainer, SDKValidationError> {
|
||||
@@ -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<AddDeviceToDVRResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<AddDeviceToDVRResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddDownloadQueueItemsGlobals, SDKValidationError> {
|
||||
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<AddDownloadQueueItemsRequest, SDKValidationError> {
|
||||
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<AddedQueueItem, SDKValidationError> {
|
||||
@@ -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<AddedQueueItem$Outbound> | 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<AddDownloadQueueItemsMediaContainer, SDKValidationError> {
|
||||
@@ -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<AddDownloadQueueItemsResponseBody, SDKValidationError> {
|
||||
@@ -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<AddDownloadQueueItemsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddExtrasGlobals, SDKValidationError> {
|
||||
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<AddExtrasRequest, SDKValidationError> {
|
||||
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<AddExtrasResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<AddLineupGlobals, SDKValidationError> {
|
||||
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<AddLineupRequest, SDKValidationError> {
|
||||
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<AddLineupMediaContainerMediaContainer, SDKValidationError> {
|
||||
@@ -493,49 +279,6 @@ export const AddLineupDVR$inboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type AddLineupDVR$Outbound = {
|
||||
Device?: Array<shared.Device$Outbound> | 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<AddLineupDVR, SDKValidationError> {
|
||||
@@ -563,50 +306,6 @@ export const AddLineupMediaContainer$inboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type AddLineupMediaContainer$Outbound = {
|
||||
MediaContainer?: AddLineupMediaContainerMediaContainer$Outbound | undefined;
|
||||
DVR?: Array<AddLineupDVR$Outbound> | 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<AddLineupMediaContainer, SDKValidationError> {
|
||||
@@ -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<AddLineupResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<AddLineupResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddPlaylistItemsGlobals, SDKValidationError> {
|
||||
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<AddPlaylistItemsRequest, SDKValidationError> {
|
||||
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<AddPlaylistItemsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddProviderGlobals, SDKValidationError> {
|
||||
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<AddProviderRequest, SDKValidationError> {
|
||||
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<AddProviderResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddSectionGlobals, SDKValidationError> {
|
||||
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<AddSectionPrefs, SDKValidationError> {
|
||||
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<AddSectionRequest, SDKValidationError> {
|
||||
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<AddSectionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddSubtitlesGlobals, SDKValidationError> {
|
||||
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<AddSubtitlesRequest, SDKValidationError> {
|
||||
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<AddSubtitlesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AddToPlayQueueGlobals, SDKValidationError> {
|
||||
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<AddToPlayQueueRequest, SDKValidationError> {
|
||||
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<AddToPlayQueueResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<AnalyzeMetadataGlobals, SDKValidationError> {
|
||||
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<AnalyzeMetadataRequest, SDKValidationError> {
|
||||
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<AnalyzeMetadataResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<ApplyUpdatesGlobals, SDKValidationError> {
|
||||
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<ApplyUpdatesRequest, SDKValidationError> {
|
||||
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<ApplyUpdatesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<AutocompleteGlobals, SDKValidationError> {
|
||||
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<AutocompleteRequest, SDKValidationError> {
|
||||
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<string> };
|
||||
};
|
||||
|
||||
/** @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<AutocompleteResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CancelActivityGlobals, SDKValidationError> {
|
||||
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<CancelActivityRequest, SDKValidationError> {
|
||||
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<CancelActivityResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CancelGrabGlobals, SDKValidationError> {
|
||||
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<CancelGrabRequest, SDKValidationError> {
|
||||
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<CancelGrabResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CancelRefreshGlobals, SDKValidationError> {
|
||||
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<CancelRefreshRequest, SDKValidationError> {
|
||||
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<CancelRefreshResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CheckUpdatesGlobals, SDKValidationError> {
|
||||
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<CheckUpdatesRequest, SDKValidationError> {
|
||||
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<CheckUpdatesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CleanBundlesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<ClearPlaylistItemsGlobals, SDKValidationError> {
|
||||
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<ClearPlaylistItemsRequest, SDKValidationError> {
|
||||
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<ClearPlaylistItemsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<ClearPlayQueueGlobals, SDKValidationError> {
|
||||
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<ClearPlayQueueRequest, SDKValidationError> {
|
||||
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<ClearPlayQueueResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<ComputeChannelMapGlobals, SDKValidationError> {
|
||||
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<ComputeChannelMapRequest, SDKValidationError> {
|
||||
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<ComputeChannelMapChannelMapping, SDKValidationError> {
|
||||
@@ -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<ComputeChannelMapChannelMapping$Outbound> | 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<ComputeChannelMapMediaContainer, SDKValidationError> {
|
||||
@@ -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<ComputeChannelMapResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<ComputeChannelMapResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<Uint8Array> | 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<ConnectWebSocketGlobals, SDKValidationError> {
|
||||
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<ConnectWebSocketRequest, SDKValidationError> {
|
||||
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<Uint8Array> | 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<Uint8Array>).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<ConnectWebSocketResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CreateCollectionGlobals, SDKValidationError> {
|
||||
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<CreateCollectionRequest, SDKValidationError> {
|
||||
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<CreateCollectionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CreateCustomHubGlobals, SDKValidationError> {
|
||||
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<CreateCustomHubRequest, SDKValidationError> {
|
||||
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<CreateCustomHubResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CreateDownloadQueueDownloadQueue, SDKValidationError> {
|
||||
@@ -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<CreateDownloadQueueDownloadQueue$Outbound> | 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<CreateDownloadQueueMediaContainer, SDKValidationError> {
|
||||
@@ -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<CreateDownloadQueueResponseBody, SDKValidationError> {
|
||||
@@ -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<CreateDownloadQueueResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreateDVRGlobals, SDKValidationError> {
|
||||
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<CreateDVRRequest, SDKValidationError> {
|
||||
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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreateDVRResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CreateMarkerGlobals, SDKValidationError> {
|
||||
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<CreateMarkerAttributes, SDKValidationError> {
|
||||
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<CreateMarkerRequest, SDKValidationError> {
|
||||
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<CreateMarkerMediaContainer, SDKValidationError> {
|
||||
@@ -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<CreateMarkerResponseBody, SDKValidationError> {
|
||||
@@ -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<CreateMarkerResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<CreatePlaylistGlobals, SDKValidationError> {
|
||||
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<CreatePlaylistRequest, SDKValidationError> {
|
||||
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<CreatePlaylistResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreatePlayQueueGlobals, SDKValidationError> {
|
||||
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<CreatePlayQueueRequest, SDKValidationError> {
|
||||
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<CreatePlayQueueMediaContainer, SDKValidationError> {
|
||||
@@ -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<CreatePlayQueueResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreatePlayQueueResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreateSubscriptionGlobals, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => CreateSubscriptionGlobals$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'CreateSubscriptionGlobals' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const Hints$inboundSchema: z.ZodType<Hints, z.ZodTypeDef, unknown> = 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<Hints, SDKValidationError> {
|
||||
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<CreateSubscriptionPrefs, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => CreateSubscriptionPrefs$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'CreateSubscriptionPrefs' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const Params$inboundSchema: z.ZodType<Params, z.ZodTypeDef, unknown> = 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<Params, SDKValidationError> {
|
||||
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<CreateSubscriptionRequest, SDKValidationError> {
|
||||
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<shared.MediaSubscription$Outbound> | 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<CreateSubscriptionMediaContainer, SDKValidationError> {
|
||||
@@ -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<CreateSubscriptionResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<CreateSubscriptionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteCachesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteCollectionGlobals, SDKValidationError> {
|
||||
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<DeleteCollectionRequest, SDKValidationError> {
|
||||
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<DeleteCollectionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteCollectionItemGlobals, SDKValidationError> {
|
||||
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<DeleteCollectionItemRequest, SDKValidationError> {
|
||||
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<DeleteCollectionItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteCustomHubGlobals, SDKValidationError> {
|
||||
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<DeleteCustomHubRequest, SDKValidationError> {
|
||||
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<DeleteCustomHubResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteDVRGlobals, SDKValidationError> {
|
||||
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<DeleteDVRRequest, SDKValidationError> {
|
||||
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<DeleteDVRResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<DeleteHistoryGlobals, SDKValidationError> {
|
||||
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<DeleteHistoryRequest, SDKValidationError> {
|
||||
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<string> };
|
||||
};
|
||||
|
||||
/** @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<DeleteHistoryResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteIndexesGlobals, SDKValidationError> {
|
||||
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<DeleteIndexesRequest, SDKValidationError> {
|
||||
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<DeleteIndexesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteIntrosGlobals, SDKValidationError> {
|
||||
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<DeleteIntrosRequest, SDKValidationError> {
|
||||
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<DeleteIntrosResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteLibrarySectionGlobals, SDKValidationError> {
|
||||
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<DeleteLibrarySectionRequest, SDKValidationError> {
|
||||
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<DeleteLibrarySectionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<DeleteLineupGlobals, SDKValidationError> {
|
||||
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<DeleteLineupRequest, SDKValidationError> {
|
||||
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<shared.Device$Outbound> | 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<DeleteLineupDVR, SDKValidationError> {
|
||||
@@ -571,52 +311,6 @@ export const DeleteLineupMediaContainer$inboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type DeleteLineupMediaContainer$Outbound = {
|
||||
MediaContainer?:
|
||||
| DeleteLineupMediaContainerMediaContainer$Outbound
|
||||
| undefined;
|
||||
DVR?: Array<DeleteLineupDVR$Outbound> | 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<DeleteLineupMediaContainer, SDKValidationError> {
|
||||
@@ -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<DeleteLineupResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<DeleteLineupResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteMarkerGlobals, SDKValidationError> {
|
||||
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<DeleteMarkerRequest, SDKValidationError> {
|
||||
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<DeleteMarkerResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteMediaItemGlobals, SDKValidationError> {
|
||||
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<DeleteMediaItemRequest, SDKValidationError> {
|
||||
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<DeleteMediaItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteMediaProviderGlobals, SDKValidationError> {
|
||||
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<DeleteMediaProviderRequest, SDKValidationError> {
|
||||
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<DeleteMediaProviderResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteMetadataItemGlobals, SDKValidationError> {
|
||||
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<DeleteMetadataItemRequest, SDKValidationError> {
|
||||
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<DeleteMetadataItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeletePlaylistGlobals, SDKValidationError> {
|
||||
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<DeletePlaylistRequest, SDKValidationError> {
|
||||
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<DeletePlaylistResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeletePlaylistItemGlobals, SDKValidationError> {
|
||||
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<DeletePlaylistItemRequest, SDKValidationError> {
|
||||
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<DeletePlaylistItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeletePlayQueueItemGlobals, SDKValidationError> {
|
||||
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<DeletePlayQueueItemRequest, SDKValidationError> {
|
||||
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<DeletePlayQueueItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteStreamGlobals, SDKValidationError> {
|
||||
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<DeleteStreamRequest, SDKValidationError> {
|
||||
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<DeleteStreamResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DeleteSubscriptionGlobals, SDKValidationError> {
|
||||
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<DeleteSubscriptionRequest, SDKValidationError> {
|
||||
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<DeleteSubscriptionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DetectAdsGlobals, SDKValidationError> {
|
||||
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<DetectAdsRequest, SDKValidationError> {
|
||||
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<DetectAdsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DetectCreditsGlobals, SDKValidationError> {
|
||||
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<DetectCreditsRequest, SDKValidationError> {
|
||||
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<DetectCreditsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DetectIntrosGlobals, SDKValidationError> {
|
||||
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<DetectIntrosRequest, SDKValidationError> {
|
||||
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<DetectIntrosResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DetectVoiceActivityGlobals, SDKValidationError> {
|
||||
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<DetectVoiceActivityRequest, SDKValidationError> {
|
||||
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<DetectVoiceActivityResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<DiscoverDevicesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EditMarkerGlobals, SDKValidationError> {
|
||||
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<EditMarkerAttributes, SDKValidationError> {
|
||||
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<EditMarkerRequest, SDKValidationError> {
|
||||
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<EditMarkerResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EditMetadataItemGlobals, SDKValidationError> {
|
||||
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<EditMetadataItemArgs, SDKValidationError> {
|
||||
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<EditMetadataItemRequest, SDKValidationError> {
|
||||
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<EditMetadataItemResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EditSectionGlobals, SDKValidationError> {
|
||||
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<EditSectionPrefs, SDKValidationError> {
|
||||
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<EditSectionRequest, SDKValidationError> {
|
||||
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<EditSectionResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EditSubscriptionPreferencesGlobals, SDKValidationError> {
|
||||
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<EditSubscriptionPreferencesPrefs, SDKValidationError> {
|
||||
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<EditSubscriptionPreferencesRequest, SDKValidationError> {
|
||||
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<EditSubscriptionPreferencesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EmptyTrashGlobals, SDKValidationError> {
|
||||
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<EmptyTrashRequest, SDKValidationError> {
|
||||
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<EmptyTrashResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<EnablePapertrailGlobals, SDKValidationError> {
|
||||
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<EnablePapertrailRequest, SDKValidationError> {
|
||||
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<EnablePapertrailResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GenerateThumbsGlobals, SDKValidationError> {
|
||||
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<GenerateThumbsRequest, SDKValidationError> {
|
||||
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<GenerateThumbsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetAlbumsGlobals, SDKValidationError> {
|
||||
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<GetAlbumsRequest, SDKValidationError> {
|
||||
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<GetAlbumsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllHubsGlobals, SDKValidationError> {
|
||||
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<GetAllHubsRequest, SDKValidationError> {
|
||||
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<shared.Hub$Outbound> | 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<GetAllHubsMediaContainer, SDKValidationError> {
|
||||
@@ -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<GetAllHubsResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllHubsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllItemLeavesGlobals, SDKValidationError> {
|
||||
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<GetAllItemLeavesRequest, SDKValidationError> {
|
||||
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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllItemLeavesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<Language, SDKValidationError> {
|
||||
@@ -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<Language$Outbound> | 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<GetAllLanguagesMediaContainer, SDKValidationError> {
|
||||
@@ -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<GetAllLanguagesResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllLanguagesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetAllLeavesGlobals, SDKValidationError> {
|
||||
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<GetAllLeavesRequest, SDKValidationError> {
|
||||
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<GetAllLeavesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetAllPreferencesResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllSubscriptionsGlobals, SDKValidationError> {
|
||||
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<GetAllSubscriptionsRequest, SDKValidationError> {
|
||||
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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAllSubscriptionsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetArtsGlobals, SDKValidationError> {
|
||||
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<GetArtsRequest, SDKValidationError> {
|
||||
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<GetArtsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetAugmentationStatusGlobals, SDKValidationError> {
|
||||
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<GetAugmentationStatusRequest, SDKValidationError> {
|
||||
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<GetAugmentationStatusResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAvailableGrabbersGlobals, SDKValidationError> {
|
||||
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<GetAvailableGrabbersRequest, SDKValidationError> {
|
||||
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<MediaGrabber, SDKValidationError> {
|
||||
@@ -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<MediaGrabber$Outbound> | 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<GetAvailableGrabbersMediaContainer, SDKValidationError> {
|
||||
@@ -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<GetAvailableGrabbersResponseBody, SDKValidationError> {
|
||||
@@ -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<string> };
|
||||
};
|
||||
|
||||
/** @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<GetAvailableGrabbersResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<GetAvailableSortsGlobals, SDKValidationError> {
|
||||
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<GetAvailableSortsRequest, SDKValidationError> {
|
||||
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<shared.Sort$Outbound> | 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<GetAvailableSortsMediaContainer, SDKValidationError> {
|
||||
@@ -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<GetAvailableSortsResponseBody, SDKValidationError> {
|
||||
@@ -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<GetAvailableSortsResponse, SDKValidationError> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.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<TranscodeJob, SDKValidationError> {
|
||||
@@ -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<TranscodeJob$Outbound> | 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<GetBackgroundTasksMediaContainer, SDKValidationError> {
|
||||
@@ -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<GetBackgroundTasksResponseBody, SDKValidationError> {
|
||||
@@ -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<GetBackgroundTasksResponse, SDKValidationError> {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user