@openrouter/sdk 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/esm/funcs/alphaDecisionsCreate.js +5 -5
  2. package/esm/funcs/analyticsGetAnalyticsMeta.js +4 -4
  3. package/esm/funcs/analyticsGetUserActivity.js +5 -5
  4. package/esm/funcs/analyticsQueryAnalytics.js +4 -4
  5. package/esm/funcs/apiKeysCreate.js +4 -4
  6. package/esm/funcs/apiKeysDelete.js +4 -4
  7. package/esm/funcs/apiKeysGet.js +4 -4
  8. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +4 -4
  9. package/esm/funcs/apiKeysList.js +4 -4
  10. package/esm/funcs/apiKeysUpdate.js +4 -4
  11. package/esm/funcs/benchmarksGetBenchmarks.js +5 -5
  12. package/esm/funcs/byokCreate.js +5 -5
  13. package/esm/funcs/byokDelete.js +5 -5
  14. package/esm/funcs/byokGet.js +5 -5
  15. package/esm/funcs/byokList.js +5 -5
  16. package/esm/funcs/byokUpdate.js +5 -5
  17. package/esm/funcs/chatSend.js +4 -4
  18. package/esm/funcs/classificationsGetTaskClassifications.js +5 -5
  19. package/esm/funcs/containersDownloadContainerFileContent.js +4 -4
  20. package/esm/funcs/containersGetContainerFile.js +5 -5
  21. package/esm/funcs/containersListContainerFiles.js +5 -5
  22. package/esm/funcs/containersPromoteContainerFile.js +5 -5
  23. package/esm/funcs/creditsGetCredits.js +4 -4
  24. package/esm/funcs/datasetsGetAppRankings.js +5 -5
  25. package/esm/funcs/datasetsGetRankingsDaily.js +5 -5
  26. package/esm/funcs/datasetsGetSessionCost.js +5 -5
  27. package/esm/funcs/embeddingsGenerate.js +5 -5
  28. package/esm/funcs/embeddingsListModels.js +5 -5
  29. package/esm/funcs/endpointsList.js +4 -4
  30. package/esm/funcs/endpointsListZdrEndpoints.js +4 -4
  31. package/esm/funcs/filesDelete.js +5 -5
  32. package/esm/funcs/filesDownload.js +4 -4
  33. package/esm/funcs/filesList.js +4 -4
  34. package/esm/funcs/filesRetrieve.js +5 -5
  35. package/esm/funcs/filesUpload.js +5 -5
  36. package/esm/funcs/generationsGetGeneration.js +5 -5
  37. package/esm/funcs/generationsListGenerationContent.js +5 -5
  38. package/esm/funcs/generationsSubmitFeedback.js +5 -5
  39. package/esm/funcs/guardrailsBulkAssignKeys.js +5 -5
  40. package/esm/funcs/guardrailsBulkAssignMembers.js +5 -5
  41. package/esm/funcs/guardrailsBulkUnassignKeys.js +5 -5
  42. package/esm/funcs/guardrailsBulkUnassignMembers.js +5 -5
  43. package/esm/funcs/guardrailsCreate.js +5 -5
  44. package/esm/funcs/guardrailsDelete.js +5 -5
  45. package/esm/funcs/guardrailsGet.js +5 -5
  46. package/esm/funcs/guardrailsList.js +5 -5
  47. package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +5 -5
  48. package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +4 -4
  49. package/esm/funcs/guardrailsListKeyAssignments.js +5 -5
  50. package/esm/funcs/guardrailsListMemberAssignments.js +5 -5
  51. package/esm/funcs/guardrailsUpdate.js +5 -5
  52. package/esm/funcs/imagesGenerate.js +4 -4
  53. package/esm/funcs/imagesListModelEndpoints.js +5 -5
  54. package/esm/funcs/imagesListModels.js +5 -5
  55. package/esm/funcs/internsChat.js +8 -8
  56. package/esm/funcs/internsCreateIntern.js +5 -5
  57. package/esm/funcs/internsDeleteIntern.js +5 -5
  58. package/esm/funcs/internsGetIntern.js +5 -5
  59. package/esm/funcs/internsInvoke.js +7 -7
  60. package/esm/funcs/internsListInterns.js +5 -5
  61. package/esm/funcs/internsProvisionIntern.js +5 -5
  62. package/esm/funcs/internsSuspendIntern.js +5 -5
  63. package/esm/funcs/internsUpdateIntern.js +5 -5
  64. package/esm/funcs/modelsCount.js +5 -5
  65. package/esm/funcs/modelsGet.js +5 -5
  66. package/esm/funcs/modelsList.js +4 -4
  67. package/esm/funcs/modelsListForUser.js +5 -5
  68. package/esm/funcs/oAuthCreateAuthCode.js +4 -4
  69. package/esm/funcs/oAuthCreateOauthToken.js +5 -5
  70. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +4 -4
  71. package/esm/funcs/oAuthListOauthJwks.js +5 -5
  72. package/esm/funcs/observabilityCreate.js +5 -5
  73. package/esm/funcs/observabilityDelete.js +5 -5
  74. package/esm/funcs/observabilityGet.js +5 -5
  75. package/esm/funcs/observabilityList.js +4 -4
  76. package/esm/funcs/observabilityUpdate.js +5 -5
  77. package/esm/funcs/organizationListMembers.js +5 -5
  78. package/esm/funcs/presetsCreatePresetsChatCompletions.js +5 -5
  79. package/esm/funcs/presetsCreatePresetsMessages.js +5 -5
  80. package/esm/funcs/presetsCreatePresetsResponses.js +5 -5
  81. package/esm/funcs/presetsGet.js +5 -5
  82. package/esm/funcs/presetsGetVersion.js +5 -5
  83. package/esm/funcs/presetsList.js +5 -5
  84. package/esm/funcs/presetsListVersions.js +5 -5
  85. package/esm/funcs/providersList.js +4 -4
  86. package/esm/funcs/rerankRerank.js +5 -5
  87. package/esm/funcs/responsesSend.js +4 -4
  88. package/esm/funcs/scimCreate.js +5 -5
  89. package/esm/funcs/scimCreateSyncJob.js +5 -5
  90. package/esm/funcs/scimDelete.js +5 -5
  91. package/esm/funcs/scimGetSyncJob.js +5 -5
  92. package/esm/funcs/scimListGroups.js +5 -5
  93. package/esm/funcs/scimListMappings.js +5 -5
  94. package/esm/funcs/scimRead.js +5 -5
  95. package/esm/funcs/scimUpdate.js +5 -5
  96. package/esm/funcs/sttCreateTranscription.js +5 -5
  97. package/esm/funcs/sttCreateTranscriptionMultipart.js +5 -5
  98. package/esm/funcs/systemOneCreate.js +5 -5
  99. package/esm/funcs/ttsCreateSpeech.js +4 -4
  100. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +5 -5
  101. package/esm/funcs/vaultDeleteInternVaultSecret.js +4 -4
  102. package/esm/funcs/vaultDeleteVaultSecret.js +4 -4
  103. package/esm/funcs/vaultListInternVaultSecrets.js +5 -5
  104. package/esm/funcs/vaultListVaultSecrets.js +5 -5
  105. package/esm/funcs/vaultStoreInternVaultSecret.js +5 -5
  106. package/esm/funcs/vaultStoreVaultSecret.js +5 -5
  107. package/esm/funcs/videoGenerationGenerate.js +5 -5
  108. package/esm/funcs/videoGenerationGetGeneration.js +5 -5
  109. package/esm/funcs/videoGenerationGetVideoContent.js +4 -4
  110. package/esm/funcs/videoGenerationListVideosModels.js +5 -5
  111. package/esm/funcs/workspacesBulkAddMembers.js +5 -5
  112. package/esm/funcs/workspacesBulkRemoveMembers.js +5 -5
  113. package/esm/funcs/workspacesCreate.js +5 -5
  114. package/esm/funcs/workspacesDelete.js +5 -5
  115. package/esm/funcs/workspacesDeleteBudget.js +5 -5
  116. package/esm/funcs/workspacesGet.js +5 -5
  117. package/esm/funcs/workspacesGetBudget.js +5 -5
  118. package/esm/funcs/workspacesList.js +5 -5
  119. package/esm/funcs/workspacesListBudgets.js +5 -5
  120. package/esm/funcs/workspacesListMembers.js +5 -5
  121. package/esm/funcs/workspacesSetBudget.js +5 -5
  122. package/esm/funcs/workspacesUpdate.js +5 -5
  123. package/esm/lib/anthropic-compat.d.ts +2 -2
  124. package/esm/lib/async-params.d.ts +4 -4
  125. package/esm/lib/chat-compat.d.ts +3 -2
  126. package/esm/lib/config.d.ts +2 -2
  127. package/esm/lib/config.js +2 -2
  128. package/esm/lib/conversation-state.d.ts +7 -5
  129. package/esm/lib/model-result.d.ts +7 -4
  130. package/esm/lib/next-turn-params.d.ts +4 -4
  131. package/esm/lib/stream-transformers.d.ts +26 -17
  132. package/esm/lib/stream-type-guards.d.ts +41 -21
  133. package/esm/lib/tool-orchestrator.d.ts +7 -5
  134. package/esm/lib/tool-types.d.ts +14 -10
  135. package/esm/lib/turn-context.d.ts +6 -4
  136. package/esm/lib/turn-context.js +2 -2
  137. package/esm/models/customtoolcallitem.d.ts +8 -8
  138. package/esm/models/customtoolcallitem.js +4 -4
  139. package/esm/models/errors/badgatewayresponseerror.js +2 -2
  140. package/esm/models/errors/badrequestresponseerror.js +2 -2
  141. package/esm/models/errors/conflictresponseerror.js +2 -2
  142. package/esm/models/errors/edgenetworktimeoutresponseerror.js +2 -2
  143. package/esm/models/errors/forbiddenresponseerror.js +2 -2
  144. package/esm/models/errors/gatewaytimeoutresponseerror.js +2 -2
  145. package/esm/models/errors/goneresponseerror.js +2 -2
  146. package/esm/models/errors/internalserverresponseerror.js +2 -2
  147. package/esm/models/errors/internchaterrorresponse.js +2 -2
  148. package/esm/models/errors/internlifecycleerror.js +2 -2
  149. package/esm/models/errors/notfoundresponseerror.js +2 -2
  150. package/esm/models/errors/oautherrorresponse.js +2 -2
  151. package/esm/models/errors/payloadtoolargeresponseerror.js +2 -2
  152. package/esm/models/errors/paymentrequiredresponseerror.js +2 -2
  153. package/esm/models/errors/provideroverloadedresponseerror.js +2 -2
  154. package/esm/models/errors/requesttimeoutresponseerror.js +2 -2
  155. package/esm/models/errors/serviceunavailableresponseerror.js +2 -2
  156. package/esm/models/errors/toomanyrequestsresponseerror.js +2 -2
  157. package/esm/models/errors/unauthorizedresponseerror.js +2 -2
  158. package/esm/models/errors/unprocessableentityresponseerror.js +2 -2
  159. package/esm/models/functioncallitem.d.ts +12 -12
  160. package/esm/models/functioncallitem.js +6 -6
  161. package/esm/models/inputsunion.d.ts +4 -6
  162. package/esm/models/inputsunion.js +2 -8
  163. package/esm/models/operations/bulkaddworkspacemembers.js +2 -2
  164. package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
  165. package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
  166. package/esm/models/operations/bulkremoveworkspacemembers.js +2 -2
  167. package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
  168. package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
  169. package/esm/models/operations/copyvaultsecretstointern.js +2 -2
  170. package/esm/models/operations/createapialphadecisions.js +2 -2
  171. package/esm/models/operations/createaudiospeech.js +2 -2
  172. package/esm/models/operations/createaudiotranscriptions.js +2 -2
  173. package/esm/models/operations/createbyokkey.js +2 -2
  174. package/esm/models/operations/createembeddings.js +10 -10
  175. package/esm/models/operations/createguardrail.js +2 -2
  176. package/esm/models/operations/createimages.js +4 -4
  177. package/esm/models/operations/createintern.js +2 -2
  178. package/esm/models/operations/createinternchatcompletion.js +6 -6
  179. package/esm/models/operations/createoauthtoken.js +2 -2
  180. package/esm/models/operations/createobservabilitydestination.js +2 -2
  181. package/esm/models/operations/createpresetschatcompletions.js +2 -2
  182. package/esm/models/operations/createpresetsmessages.js +2 -2
  183. package/esm/models/operations/createpresetsresponses.js +2 -2
  184. package/esm/models/operations/creatererank.js +3 -3
  185. package/esm/models/operations/createresponses.js +5 -5
  186. package/esm/models/operations/createscimgroupmapping.js +2 -2
  187. package/esm/models/operations/createscimsyncjob.js +2 -2
  188. package/esm/models/operations/createsystemone.js +2 -2
  189. package/esm/models/operations/createvideos.js +2 -2
  190. package/esm/models/operations/createworkspace.js +2 -2
  191. package/esm/models/operations/deletefile.js +2 -2
  192. package/esm/models/operations/deleteintern.js +2 -2
  193. package/esm/models/operations/deleteworkspacebudget.js +2 -2
  194. package/esm/models/operations/downloadfilecontent.js +2 -2
  195. package/esm/models/operations/getapprankings.js +2 -2
  196. package/esm/models/operations/getcurrentkey.js +2 -2
  197. package/esm/models/operations/getfilemetadata.js +2 -2
  198. package/esm/models/operations/getmodels.js +2 -2
  199. package/esm/models/operations/getsessioncost.js +2 -2
  200. package/esm/models/operations/getworkspacebudget.js +2 -2
  201. package/esm/models/operations/invokeintern.js +3 -3
  202. package/esm/models/operations/listbyokkeys.js +2 -2
  203. package/esm/models/operations/listembeddingsmodels.js +2 -2
  204. package/esm/models/operations/listendpoints.js +2 -2
  205. package/esm/models/operations/listendpointszdr.js +2 -2
  206. package/esm/models/operations/listfiles.js +3 -3
  207. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  208. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  209. package/esm/models/operations/listguardrails.js +2 -2
  210. package/esm/models/operations/listkeyassignments.js +2 -2
  211. package/esm/models/operations/listmemberassignments.js +2 -2
  212. package/esm/models/operations/listmodelsuser.js +2 -2
  213. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  214. package/esm/models/operations/listpresets.js +2 -2
  215. package/esm/models/operations/listpresetversions.js +2 -2
  216. package/esm/models/operations/listscimgroupmappings.js +2 -2
  217. package/esm/models/operations/listscimgroups.js +2 -2
  218. package/esm/models/operations/listworkspacemembers.js +2 -2
  219. package/esm/models/operations/listworkspaces.js +2 -2
  220. package/esm/models/operations/sendchatcompletionrequest.js +5 -5
  221. package/esm/models/operations/storeinternvaultsecret.js +2 -2
  222. package/esm/models/operations/storevaultsecret.js +2 -2
  223. package/esm/models/operations/submitgenerationfeedback.js +2 -2
  224. package/esm/models/operations/updatebyokkey.js +2 -2
  225. package/esm/models/operations/updateguardrail.js +2 -2
  226. package/esm/models/operations/updateintern.js +2 -2
  227. package/esm/models/operations/updateobservabilitydestination.js +2 -2
  228. package/esm/models/operations/updatescimgroupmapping.js +2 -2
  229. package/esm/models/operations/updateworkspace.js +2 -2
  230. package/esm/models/operations/uploadfile.js +2 -2
  231. package/esm/models/operations/upsertworkspacebudget.js +3 -3
  232. package/esm/models/outputcustomtoolcallitem.d.ts +2 -26
  233. package/esm/models/outputcustomtoolcallitem.js +1 -28
  234. package/esm/models/outputfunctioncallitem.d.ts +1 -44
  235. package/esm/models/outputfunctioncallitem.js +1 -64
  236. package/esm/models/outputitems.d.ts +2 -6
  237. package/esm/models/outputitems.js +2 -2
  238. package/jsr.json +1 -1
  239. package/package.json +11 -9
  240. package/scripts/unbarrel-imports.js +296 -0
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { GatewayTimeoutResponseError$inboundSchema as errors_GatewayTimeoutResponseError$inboundSchema } from "../models/errors/gatewaytimeoutresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { ServiceUnavailableResponseError$inboundSchema as errors_ServiceUnavailableResponseError$inboundSchema } from "../models/errors/serviceunavailableresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VaultSecretListResponse$inboundSchema as models_VaultSecretListResponse$inboundSchema } from "../models/vaultsecretlistresponse.js";
14
+ import { ListInternVaultSecretsRequest$outboundSchema as operations_ListInternVaultSecretsRequest$outboundSchema } from "../models/operations/listinternvaultsecrets.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * List intern secrets
@@ -25,7 +25,7 @@ export function vaultListInternVaultSecrets(client, request, options) {
25
25
  return new APIPromise($do(client, request, options));
26
26
  }
27
27
  async function $do(client, request, options) {
28
- const parsed = safeParse(request, (value) => operations.ListInternVaultSecretsRequest$outboundSchema.parse(value), "Input validation failed");
28
+ const parsed = safeParse(request, (value) => operations_ListInternVaultSecretsRequest$outboundSchema.parse(value), "Input validation failed");
29
29
  if (!parsed.ok) {
30
30
  return [parsed, { status: "invalid" }];
31
31
  }
@@ -101,7 +101,7 @@ async function $do(client, request, options) {
101
101
  const responseFields = {
102
102
  HttpMeta: { Response: response, Request: req },
103
103
  };
104
- const [result] = await M.match(M.json(200, models.VaultSecretListResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(408, errors.RequestTimeoutResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors.GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
104
+ const [result] = await M.match(M.json(200, models_VaultSecretListResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors_ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors_GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
105
105
  if (!result.ok) {
106
106
  return [result, { status: "complete", request: req, response }];
107
107
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { GatewayTimeoutResponseError$inboundSchema as errors_GatewayTimeoutResponseError$inboundSchema } from "../models/errors/gatewaytimeoutresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { ServiceUnavailableResponseError$inboundSchema as errors_ServiceUnavailableResponseError$inboundSchema } from "../models/errors/serviceunavailableresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VaultSecretListResponse$inboundSchema as models_VaultSecretListResponse$inboundSchema } from "../models/vaultsecretlistresponse.js";
14
+ import { ListVaultSecretsRequest$outboundSchema as operations_ListVaultSecretsRequest$outboundSchema } from "../models/operations/listvaultsecrets.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * List workspace secrets
@@ -25,7 +25,7 @@ export function vaultListVaultSecrets(client, request, options) {
25
25
  return new APIPromise($do(client, request, options));
26
26
  }
27
27
  async function $do(client, request, options) {
28
- const parsed = safeParse(request, (value) => operations.ListVaultSecretsRequest$outboundSchema.optional().parse(value), "Input validation failed");
28
+ const parsed = safeParse(request, (value) => operations_ListVaultSecretsRequest$outboundSchema.optional().parse(value), "Input validation failed");
29
29
  if (!parsed.ok) {
30
30
  return [parsed, { status: "invalid" }];
31
31
  }
@@ -95,7 +95,7 @@ async function $do(client, request, options) {
95
95
  const responseFields = {
96
96
  HttpMeta: { Response: response, Request: req },
97
97
  };
98
- const [result] = await M.match(M.json(200, models.VaultSecretListResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(408, errors.RequestTimeoutResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors.GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
+ const [result] = await M.match(M.json(200, models_VaultSecretListResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors_ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors_GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
99
99
  if (!result.ok) {
100
100
  return [result, { status: "complete", request: req, response }];
101
101
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ConflictResponseError$inboundSchema as errors_ConflictResponseError$inboundSchema } from "../models/errors/conflictresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { GatewayTimeoutResponseError$inboundSchema as errors_GatewayTimeoutResponseError$inboundSchema } from "../models/errors/gatewaytimeoutresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { PayloadTooLargeResponseError$inboundSchema as errors_PayloadTooLargeResponseError$inboundSchema } from "../models/errors/payloadtoolargeresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { ServiceUnavailableResponseError$inboundSchema as errors_ServiceUnavailableResponseError$inboundSchema } from "../models/errors/serviceunavailableresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VaultSecretResponse$inboundSchema as models_VaultSecretResponse$inboundSchema } from "../models/vaultsecretresponse.js";
14
+ import { StoreInternVaultSecretRequest$outboundSchema as operations_StoreInternVaultSecretRequest$outboundSchema } from "../models/operations/storeinternvaultsecret.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Store an intern secret
@@ -25,7 +25,7 @@ export function vaultStoreInternVaultSecret(client, request, options) {
25
25
  return new APIPromise($do(client, request, options));
26
26
  }
27
27
  async function $do(client, request, options) {
28
- const parsed = safeParse(request, (value) => operations.StoreInternVaultSecretRequest$outboundSchema.parse(value), "Input validation failed");
28
+ const parsed = safeParse(request, (value) => operations_StoreInternVaultSecretRequest$outboundSchema.parse(value), "Input validation failed");
29
29
  if (!parsed.ok) {
30
30
  return [parsed, { status: "invalid" }];
31
31
  }
@@ -103,7 +103,7 @@ async function $do(client, request, options) {
103
103
  const responseFields = {
104
104
  HttpMeta: { Response: response, Request: req },
105
105
  };
106
- const [result] = await M.match(M.json(200, models.VaultSecretResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(408, errors.RequestTimeoutResponseError$inboundSchema), M.jsonErr(409, errors.ConflictResponseError$inboundSchema), M.jsonErr(413, errors.PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors.GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
106
+ const [result] = await M.match(M.json(200, models_VaultSecretResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(409, errors_ConflictResponseError$inboundSchema), M.jsonErr(413, errors_PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors_ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors_GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
107
107
  if (!result.ok) {
108
108
  return [result, { status: "complete", request: req, response }];
109
109
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { GatewayTimeoutResponseError$inboundSchema as errors_GatewayTimeoutResponseError$inboundSchema } from "../models/errors/gatewaytimeoutresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { PayloadTooLargeResponseError$inboundSchema as errors_PayloadTooLargeResponseError$inboundSchema } from "../models/errors/payloadtoolargeresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { ServiceUnavailableResponseError$inboundSchema as errors_ServiceUnavailableResponseError$inboundSchema } from "../models/errors/serviceunavailableresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VaultSecretResponse$inboundSchema as models_VaultSecretResponse$inboundSchema } from "../models/vaultsecretresponse.js";
14
+ import { StoreVaultSecretRequest$outboundSchema as operations_StoreVaultSecretRequest$outboundSchema } from "../models/operations/storevaultsecret.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Store a workspace secret
@@ -25,7 +25,7 @@ export function vaultStoreVaultSecret(client, request, options) {
25
25
  return new APIPromise($do(client, request, options));
26
26
  }
27
27
  async function $do(client, request, options) {
28
- const parsed = safeParse(request, (value) => operations.StoreVaultSecretRequest$outboundSchema.parse(value), "Input validation failed");
28
+ const parsed = safeParse(request, (value) => operations_StoreVaultSecretRequest$outboundSchema.parse(value), "Input validation failed");
29
29
  if (!parsed.ok) {
30
30
  return [parsed, { status: "invalid" }];
31
31
  }
@@ -99,7 +99,7 @@ async function $do(client, request, options) {
99
99
  const responseFields = {
100
100
  HttpMeta: { Response: response, Request: req },
101
101
  };
102
- const [result] = await M.match(M.json(200, models.VaultSecretResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(408, errors.RequestTimeoutResponseError$inboundSchema), M.jsonErr(413, errors.PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors.GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
102
+ const [result] = await M.match(M.json(200, models_VaultSecretResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(413, errors_PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors_ServiceUnavailableResponseError$inboundSchema), M.jsonErr(504, errors_GatewayTimeoutResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
103
103
  if (!result.ok) {
104
104
  return [result, { status: "complete", request: req, response }];
105
105
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { PayloadTooLargeResponseError$inboundSchema as errors_PayloadTooLargeResponseError$inboundSchema } from "../models/errors/payloadtoolargeresponseerror.js"; import { PaymentRequiredResponseError$inboundSchema as errors_PaymentRequiredResponseError$inboundSchema } from "../models/errors/paymentrequiredresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VideoGenerationResponse$inboundSchema as models_VideoGenerationResponse$inboundSchema } from "../models/videogenerationresponse.js";
14
+ import { CreateVideosRequest$outboundSchema as operations_CreateVideosRequest$outboundSchema } from "../models/operations/createvideos.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Submit a video generation request
@@ -23,7 +23,7 @@ export function videoGenerationGenerate(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.CreateVideosRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_CreateVideosRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -91,7 +91,7 @@ async function $do(client, request, options) {
91
91
  const responseFields = {
92
92
  HttpMeta: { Response: response, Request: req },
93
93
  };
94
- const [result] = await M.match(M.json(202, models.VideoGenerationResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(413, errors.PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
94
+ const [result] = await M.match(M.json(202, models_VideoGenerationResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(402, errors_PaymentRequiredResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(413, errors_PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
95
95
  if (!result.ok) {
96
96
  return [result, { status: "complete", request: req, response }];
97
97
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { VideoGenerationResponse$inboundSchema as models_VideoGenerationResponse$inboundSchema } from "../models/videogenerationresponse.js";
14
+ import { GetVideosRequest$outboundSchema as operations_GetVideosRequest$outboundSchema } from "../models/operations/getvideos.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Poll video generation status
@@ -23,7 +23,7 @@ export function videoGenerationGetGeneration(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.GetVideosRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_GetVideosRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -94,7 +94,7 @@ async function $do(client, request, options) {
94
94
  const responseFields = {
95
95
  HttpMeta: { Response: response, Request: req },
96
96
  };
97
- const [result] = await M.match(M.json(200, models.VideoGenerationResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
+ const [result] = await M.match(M.json(200, models_VideoGenerationResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
98
  if (!result.ok) {
99
99
  return [result, { status: "complete", request: req, response }];
100
100
  }
@@ -10,8 +10,8 @@ import { compactMap } from "../lib/primitives.js";
10
10
  import { safeParse } from "../lib/schemas.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
- import * as errors from "../models/errors/index.js";
14
- import * as operations from "../models/operations/index.js";
13
+ import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ConflictResponseError$inboundSchema as errors_ConflictResponseError$inboundSchema } from "../models/errors/conflictresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { GoneResponseError$inboundSchema as errors_GoneResponseError$inboundSchema } from "../models/errors/goneresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
14
+ import { ListVideosContentRequest$outboundSchema as operations_ListVideosContentRequest$outboundSchema } from "../models/operations/listvideoscontent.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Download generated video content
@@ -23,7 +23,7 @@ export function videoGenerationGetVideoContent(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.ListVideosContentRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_ListVideosContentRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -98,7 +98,7 @@ async function $do(client, request, options) {
98
98
  const responseFields = {
99
99
  HttpMeta: { Response: response, Request: req },
100
100
  };
101
- const [result] = await M.match(M.stream(200, z.custom(x => x instanceof ReadableStream), { ctype: "video/mp4" }), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(409, errors.ConflictResponseError$inboundSchema), M.jsonErr(410, errors.GoneResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
+ const [result] = await M.match(M.stream(200, z.custom(x => x instanceof ReadableStream), { ctype: "video/mp4" }), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(409, errors_ConflictResponseError$inboundSchema), M.jsonErr(410, errors_GoneResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
102
102
  if (!result.ok) {
103
103
  return [result, { status: "complete", request: req, response }];
104
104
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js";
13
+ import { VideoModelsListResponse$inboundSchema as models_VideoModelsListResponse$inboundSchema } from "../models/videomodelslistresponse.js";
14
+ import { ListVideosModelsRequest$outboundSchema as operations_ListVideosModelsRequest$outboundSchema } from "../models/operations/listvideosmodels.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * List all video generation models
@@ -23,7 +23,7 @@ export function videoGenerationListVideosModels(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.ListVideosModelsRequest$outboundSchema.optional().parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_ListVideosModelsRequest$outboundSchema.optional().parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -88,7 +88,7 @@ async function $do(client, request, options) {
88
88
  const responseFields = {
89
89
  HttpMeta: { Response: response, Request: req },
90
90
  };
91
- const [result] = await M.match(M.json(200, models.VideoModelsListResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
91
+ const [result] = await M.match(M.json(200, models_VideoModelsListResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
92
92
  if (!result.ok) {
93
93
  return [result, { status: "complete", request: req, response }];
94
94
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { BulkAddWorkspaceMembersResponse$inboundSchema as models_BulkAddWorkspaceMembersResponse$inboundSchema } from "../models/bulkaddworkspacemembersresponse.js";
14
+ import { BulkAddWorkspaceMembersRequest$outboundSchema as operations_BulkAddWorkspaceMembersRequest$outboundSchema } from "../models/operations/bulkaddworkspacemembers.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Bulk add members to a workspace
@@ -23,7 +23,7 @@ export function workspacesBulkAddMembers(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.BulkAddWorkspaceMembersRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_BulkAddWorkspaceMembersRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -97,7 +97,7 @@ async function $do(client, request, options) {
97
97
  const responseFields = {
98
98
  HttpMeta: { Response: response, Request: req },
99
99
  };
100
- const [result] = await M.match(M.json(200, models.BulkAddWorkspaceMembersResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
100
+ const [result] = await M.match(M.json(200, models_BulkAddWorkspaceMembersResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
101
  if (!result.ok) {
102
102
  return [result, { status: "complete", request: req, response }];
103
103
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { BulkRemoveWorkspaceMembersResponse$inboundSchema as models_BulkRemoveWorkspaceMembersResponse$inboundSchema } from "../models/bulkremoveworkspacemembersresponse.js";
14
+ import { BulkRemoveWorkspaceMembersRequest$outboundSchema as operations_BulkRemoveWorkspaceMembersRequest$outboundSchema } from "../models/operations/bulkremoveworkspacemembers.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Bulk remove members from a workspace
@@ -23,7 +23,7 @@ export function workspacesBulkRemoveMembers(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.BulkRemoveWorkspaceMembersRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_BulkRemoveWorkspaceMembersRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -97,7 +97,7 @@ async function $do(client, request, options) {
97
97
  const responseFields = {
98
98
  HttpMeta: { Response: response, Request: req },
99
99
  };
100
- const [result] = await M.match(M.json(200, models.BulkRemoveWorkspaceMembersResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
100
+ const [result] = await M.match(M.json(200, models_BulkRemoveWorkspaceMembersResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
101
  if (!result.ok) {
102
102
  return [result, { status: "complete", request: req, response }];
103
103
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { CreateWorkspaceResponse$inboundSchema as models_CreateWorkspaceResponse$inboundSchema } from "../models/createworkspaceresponse.js";
14
+ import { CreateWorkspaceRequest$outboundSchema as operations_CreateWorkspaceRequest$outboundSchema } from "../models/operations/createworkspace.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Create a workspace
@@ -23,7 +23,7 @@ export function workspacesCreate(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.CreateWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_CreateWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -91,7 +91,7 @@ async function $do(client, request, options) {
91
91
  const responseFields = {
92
92
  HttpMeta: { Response: response, Request: req },
93
93
  };
94
- const [result] = await M.match(M.json(201, models.CreateWorkspaceResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
94
+ const [result] = await M.match(M.json(201, models_CreateWorkspaceResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
95
95
  if (!result.ok) {
96
96
  return [result, { status: "complete", request: req, response }];
97
97
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { DeleteWorkspaceResponse$inboundSchema as models_DeleteWorkspaceResponse$inboundSchema } from "../models/deleteworkspaceresponse.js";
14
+ import { DeleteWorkspaceRequest$outboundSchema as operations_DeleteWorkspaceRequest$outboundSchema } from "../models/operations/deleteworkspace.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Delete a workspace
@@ -23,7 +23,7 @@ export function workspacesDelete(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.DeleteWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_DeleteWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -98,7 +98,7 @@ async function $do(client, request, options) {
98
98
  const responseFields = {
99
99
  HttpMeta: { Response: response, Request: req },
100
100
  };
101
- const [result] = await M.match(M.json(200, models.DeleteWorkspaceResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
+ const [result] = await M.match(M.json(200, models_DeleteWorkspaceResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
102
102
  if (!result.ok) {
103
103
  return [result, { status: "complete", request: req, response }];
104
104
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { DeleteWorkspaceBudgetResponse$inboundSchema as models_DeleteWorkspaceBudgetResponse$inboundSchema } from "../models/deleteworkspacebudgetresponse.js";
14
+ import { DeleteWorkspaceBudgetRequest$outboundSchema as operations_DeleteWorkspaceBudgetRequest$outboundSchema } from "../models/operations/deleteworkspacebudget.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Delete a workspace budget
@@ -23,7 +23,7 @@ export function workspacesDeleteBudget(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.DeleteWorkspaceBudgetRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_DeleteWorkspaceBudgetRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -98,7 +98,7 @@ async function $do(client, request, options) {
98
98
  const responseFields = {
99
99
  HttpMeta: { Response: response, Request: req },
100
100
  };
101
- const [result] = await M.match(M.json(200, models.DeleteWorkspaceBudgetResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
+ const [result] = await M.match(M.json(200, models_DeleteWorkspaceBudgetResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
102
102
  if (!result.ok) {
103
103
  return [result, { status: "complete", request: req, response }];
104
104
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { GetWorkspaceResponse$inboundSchema as models_GetWorkspaceResponse$inboundSchema } from "../models/getworkspaceresponse.js";
14
+ import { GetWorkspaceRequest$outboundSchema as operations_GetWorkspaceRequest$outboundSchema } from "../models/operations/getworkspace.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Get a workspace
@@ -23,7 +23,7 @@ export function workspacesGet(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -94,7 +94,7 @@ async function $do(client, request, options) {
94
94
  const responseFields = {
95
95
  HttpMeta: { Response: response, Request: req },
96
96
  };
97
- const [result] = await M.match(M.json(200, models.GetWorkspaceResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
+ const [result] = await M.match(M.json(200, models_GetWorkspaceResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
98
  if (!result.ok) {
99
99
  return [result, { status: "complete", request: req, response }];
100
100
  }
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { GetWorkspaceBudgetResponse$inboundSchema as models_GetWorkspaceBudgetResponse$inboundSchema } from "../models/getworkspacebudgetresponse.js";
14
+ import { GetWorkspaceBudgetRequest$outboundSchema as operations_GetWorkspaceBudgetRequest$outboundSchema } from "../models/operations/getworkspacebudget.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * Get a workspace budget
@@ -23,7 +23,7 @@ export function workspacesGetBudget(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.GetWorkspaceBudgetRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_GetWorkspaceBudgetRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -98,7 +98,7 @@ async function $do(client, request, options) {
98
98
  const responseFields = {
99
99
  HttpMeta: { Response: response, Request: req },
100
100
  };
101
- const [result] = await M.match(M.json(200, models.GetWorkspaceBudgetResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
101
+ const [result] = await M.match(M.json(200, models_GetWorkspaceBudgetResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
102
102
  if (!result.ok) {
103
103
  return [result, { status: "complete", request: req, response }];
104
104
  }
@@ -9,8 +9,8 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as operations from "../models/operations/index.js";
12
+ import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { ListWorkspacesRequest$outboundSchema as operations_ListWorkspacesRequest$outboundSchema, ListWorkspacesResponse$inboundSchema as operations_ListWorkspacesResponse$inboundSchema } from "../models/operations/listworkspaces.js";
14
14
  import { APIPromise } from "../types/async.js";
15
15
  import { createPageIterator, haltIterator, } from "../types/operations.js";
16
16
  /**
@@ -23,7 +23,7 @@ export function workspacesList(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.ListWorkspacesRequest$outboundSchema.optional().parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_ListWorkspacesRequest$outboundSchema.optional().parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [haltIterator(parsed), { status: "invalid" }];
29
29
  }
@@ -93,9 +93,9 @@ async function $do(client, request, options) {
93
93
  const responseFields = {
94
94
  HttpMeta: { Response: response, Request: req },
95
95
  };
96
- const [result, raw] = await M.match(M.json(200, operations.ListWorkspacesResponse$inboundSchema, {
96
+ const [result, raw] = await M.match(M.json(200, operations_ListWorkspacesResponse$inboundSchema, {
97
97
  key: "Result",
98
- }), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
+ }), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
99
99
  if (!result.ok) {
100
100
  return [haltIterator(result), {
101
101
  status: "complete",
@@ -9,9 +9,9 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
12
+ import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
+ import { ListWorkspaceBudgetsResponse$inboundSchema as models_ListWorkspaceBudgetsResponse$inboundSchema } from "../models/listworkspacebudgetsresponse.js";
14
+ import { ListWorkspaceBudgetsRequest$outboundSchema as operations_ListWorkspaceBudgetsRequest$outboundSchema } from "../models/operations/listworkspacebudgets.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
17
  * List workspace budgets
@@ -23,7 +23,7 @@ export function workspacesListBudgets(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
26
- const parsed = safeParse(request, (value) => operations.ListWorkspaceBudgetsRequest$outboundSchema.parse(value), "Input validation failed");
26
+ const parsed = safeParse(request, (value) => operations_ListWorkspaceBudgetsRequest$outboundSchema.parse(value), "Input validation failed");
27
27
  if (!parsed.ok) {
28
28
  return [parsed, { status: "invalid" }];
29
29
  }
@@ -94,7 +94,7 @@ async function $do(client, request, options) {
94
94
  const responseFields = {
95
95
  HttpMeta: { Response: response, Request: req },
96
96
  };
97
- const [result] = await M.match(M.json(200, models.ListWorkspaceBudgetsResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
+ const [result] = await M.match(M.json(200, models_ListWorkspaceBudgetsResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
98
  if (!result.ok) {
99
99
  return [result, { status: "complete", request: req, response }];
100
100
  }