@openrouter/sdk 1.3.20 → 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 (252) 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.d.ts +26 -0
  60. package/esm/funcs/internsInvoke.js +119 -0
  61. package/esm/funcs/internsListInterns.js +5 -5
  62. package/esm/funcs/internsProvisionIntern.js +5 -5
  63. package/esm/funcs/internsSuspendIntern.js +5 -5
  64. package/esm/funcs/internsUpdateIntern.js +5 -5
  65. package/esm/funcs/modelsCount.js +5 -5
  66. package/esm/funcs/modelsGet.js +5 -5
  67. package/esm/funcs/modelsList.js +4 -4
  68. package/esm/funcs/modelsListForUser.js +5 -5
  69. package/esm/funcs/oAuthCreateAuthCode.js +4 -4
  70. package/esm/funcs/oAuthCreateOauthToken.js +5 -5
  71. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +4 -4
  72. package/esm/funcs/oAuthListOauthJwks.js +5 -5
  73. package/esm/funcs/observabilityCreate.js +5 -5
  74. package/esm/funcs/observabilityDelete.js +5 -5
  75. package/esm/funcs/observabilityGet.js +5 -5
  76. package/esm/funcs/observabilityList.js +4 -4
  77. package/esm/funcs/observabilityUpdate.js +5 -5
  78. package/esm/funcs/organizationListMembers.js +5 -5
  79. package/esm/funcs/presetsCreatePresetsChatCompletions.js +5 -5
  80. package/esm/funcs/presetsCreatePresetsMessages.js +5 -5
  81. package/esm/funcs/presetsCreatePresetsResponses.js +5 -5
  82. package/esm/funcs/presetsGet.js +5 -5
  83. package/esm/funcs/presetsGetVersion.js +5 -5
  84. package/esm/funcs/presetsList.js +5 -5
  85. package/esm/funcs/presetsListVersions.js +5 -5
  86. package/esm/funcs/providersList.js +4 -4
  87. package/esm/funcs/rerankRerank.js +5 -5
  88. package/esm/funcs/responsesSend.js +4 -4
  89. package/esm/funcs/scimCreate.js +5 -5
  90. package/esm/funcs/scimCreateSyncJob.js +5 -5
  91. package/esm/funcs/scimDelete.js +5 -5
  92. package/esm/funcs/scimGetSyncJob.js +5 -5
  93. package/esm/funcs/scimListGroups.js +5 -5
  94. package/esm/funcs/scimListMappings.js +5 -5
  95. package/esm/funcs/scimRead.js +5 -5
  96. package/esm/funcs/scimUpdate.js +5 -5
  97. package/esm/funcs/sttCreateTranscription.js +5 -5
  98. package/esm/funcs/sttCreateTranscriptionMultipart.js +5 -5
  99. package/esm/funcs/systemOneCreate.js +5 -5
  100. package/esm/funcs/ttsCreateSpeech.js +4 -4
  101. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +5 -5
  102. package/esm/funcs/vaultDeleteInternVaultSecret.js +4 -4
  103. package/esm/funcs/vaultDeleteVaultSecret.js +4 -4
  104. package/esm/funcs/vaultListInternVaultSecrets.js +5 -5
  105. package/esm/funcs/vaultListVaultSecrets.js +5 -5
  106. package/esm/funcs/vaultStoreInternVaultSecret.js +5 -5
  107. package/esm/funcs/vaultStoreVaultSecret.js +5 -5
  108. package/esm/funcs/videoGenerationGenerate.js +5 -5
  109. package/esm/funcs/videoGenerationGetGeneration.js +5 -5
  110. package/esm/funcs/videoGenerationGetVideoContent.js +4 -4
  111. package/esm/funcs/videoGenerationListVideosModels.js +5 -5
  112. package/esm/funcs/workspacesBulkAddMembers.js +5 -5
  113. package/esm/funcs/workspacesBulkRemoveMembers.js +5 -5
  114. package/esm/funcs/workspacesCreate.js +5 -5
  115. package/esm/funcs/workspacesDelete.js +5 -5
  116. package/esm/funcs/workspacesDeleteBudget.js +5 -5
  117. package/esm/funcs/workspacesGet.js +5 -5
  118. package/esm/funcs/workspacesGetBudget.js +5 -5
  119. package/esm/funcs/workspacesList.js +5 -5
  120. package/esm/funcs/workspacesListBudgets.js +5 -5
  121. package/esm/funcs/workspacesListMembers.js +5 -5
  122. package/esm/funcs/workspacesSetBudget.js +5 -5
  123. package/esm/funcs/workspacesUpdate.js +5 -5
  124. package/esm/lib/anthropic-compat.d.ts +2 -2
  125. package/esm/lib/async-params.d.ts +4 -4
  126. package/esm/lib/chat-compat.d.ts +3 -2
  127. package/esm/lib/config.d.ts +2 -2
  128. package/esm/lib/config.js +2 -2
  129. package/esm/lib/conversation-state.d.ts +7 -5
  130. package/esm/lib/model-result.d.ts +7 -4
  131. package/esm/lib/next-turn-params.d.ts +4 -4
  132. package/esm/lib/stream-transformers.d.ts +26 -17
  133. package/esm/lib/stream-type-guards.d.ts +41 -21
  134. package/esm/lib/tool-orchestrator.d.ts +7 -5
  135. package/esm/lib/tool-types.d.ts +14 -10
  136. package/esm/lib/turn-context.d.ts +6 -4
  137. package/esm/lib/turn-context.js +2 -2
  138. package/esm/models/customtoolcallitem.d.ts +8 -8
  139. package/esm/models/customtoolcallitem.js +4 -4
  140. package/esm/models/errors/badgatewayresponseerror.js +2 -2
  141. package/esm/models/errors/badrequestresponseerror.js +2 -2
  142. package/esm/models/errors/conflictresponseerror.js +2 -2
  143. package/esm/models/errors/edgenetworktimeoutresponseerror.js +2 -2
  144. package/esm/models/errors/forbiddenresponseerror.js +2 -2
  145. package/esm/models/errors/gatewaytimeoutresponseerror.js +2 -2
  146. package/esm/models/errors/goneresponseerror.js +2 -2
  147. package/esm/models/errors/internalserverresponseerror.js +2 -2
  148. package/esm/models/errors/internchaterrorresponse.js +2 -2
  149. package/esm/models/errors/internlifecycleerror.js +2 -2
  150. package/esm/models/errors/notfoundresponseerror.js +2 -2
  151. package/esm/models/errors/oautherrorresponse.js +2 -2
  152. package/esm/models/errors/payloadtoolargeresponseerror.js +2 -2
  153. package/esm/models/errors/paymentrequiredresponseerror.js +2 -2
  154. package/esm/models/errors/provideroverloadedresponseerror.js +2 -2
  155. package/esm/models/errors/requesttimeoutresponseerror.js +2 -2
  156. package/esm/models/errors/serviceunavailableresponseerror.js +2 -2
  157. package/esm/models/errors/toomanyrequestsresponseerror.js +2 -2
  158. package/esm/models/errors/unauthorizedresponseerror.js +2 -2
  159. package/esm/models/errors/unprocessableentityresponseerror.js +2 -2
  160. package/esm/models/functioncallitem.d.ts +12 -12
  161. package/esm/models/functioncallitem.js +6 -6
  162. package/esm/models/index.d.ts +2 -0
  163. package/esm/models/index.js +2 -0
  164. package/esm/models/inputsunion.d.ts +4 -6
  165. package/esm/models/inputsunion.js +2 -8
  166. package/esm/models/interninvokeacceptedresponse.d.ts +34 -0
  167. package/esm/models/interninvokeacceptedresponse.js +30 -0
  168. package/esm/models/interninvokerequest.d.ts +23 -0
  169. package/esm/models/interninvokerequest.js +19 -0
  170. package/esm/models/operations/bulkaddworkspacemembers.js +2 -2
  171. package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
  172. package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
  173. package/esm/models/operations/bulkremoveworkspacemembers.js +2 -2
  174. package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
  175. package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
  176. package/esm/models/operations/copyvaultsecretstointern.js +2 -2
  177. package/esm/models/operations/createapialphadecisions.js +2 -2
  178. package/esm/models/operations/createaudiospeech.js +2 -2
  179. package/esm/models/operations/createaudiotranscriptions.js +2 -2
  180. package/esm/models/operations/createbyokkey.js +2 -2
  181. package/esm/models/operations/createembeddings.js +10 -10
  182. package/esm/models/operations/createguardrail.js +2 -2
  183. package/esm/models/operations/createimages.js +4 -4
  184. package/esm/models/operations/createintern.js +2 -2
  185. package/esm/models/operations/createinternchatcompletion.js +6 -6
  186. package/esm/models/operations/createoauthtoken.js +2 -2
  187. package/esm/models/operations/createobservabilitydestination.js +2 -2
  188. package/esm/models/operations/createpresetschatcompletions.js +2 -2
  189. package/esm/models/operations/createpresetsmessages.js +2 -2
  190. package/esm/models/operations/createpresetsresponses.js +2 -2
  191. package/esm/models/operations/creatererank.js +3 -3
  192. package/esm/models/operations/createresponses.js +5 -5
  193. package/esm/models/operations/createscimgroupmapping.js +2 -2
  194. package/esm/models/operations/createscimsyncjob.js +2 -2
  195. package/esm/models/operations/createsystemone.js +2 -2
  196. package/esm/models/operations/createvideos.js +2 -2
  197. package/esm/models/operations/createworkspace.js +2 -2
  198. package/esm/models/operations/deletefile.js +2 -2
  199. package/esm/models/operations/deleteintern.js +2 -2
  200. package/esm/models/operations/deleteworkspacebudget.js +2 -2
  201. package/esm/models/operations/downloadfilecontent.js +2 -2
  202. package/esm/models/operations/getapprankings.js +2 -2
  203. package/esm/models/operations/getcurrentkey.js +2 -2
  204. package/esm/models/operations/getfilemetadata.js +2 -2
  205. package/esm/models/operations/getmodels.js +2 -2
  206. package/esm/models/operations/getsessioncost.js +2 -2
  207. package/esm/models/operations/getworkspacebudget.js +2 -2
  208. package/esm/models/operations/index.d.ts +1 -0
  209. package/esm/models/operations/index.js +1 -0
  210. package/esm/models/operations/invokeintern.d.ts +72 -0
  211. package/esm/models/operations/invokeintern.js +38 -0
  212. package/esm/models/operations/listbyokkeys.js +2 -2
  213. package/esm/models/operations/listembeddingsmodels.js +2 -2
  214. package/esm/models/operations/listendpoints.js +2 -2
  215. package/esm/models/operations/listendpointszdr.js +2 -2
  216. package/esm/models/operations/listfiles.js +3 -3
  217. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  218. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  219. package/esm/models/operations/listguardrails.js +2 -2
  220. package/esm/models/operations/listkeyassignments.js +2 -2
  221. package/esm/models/operations/listmemberassignments.js +2 -2
  222. package/esm/models/operations/listmodelsuser.js +2 -2
  223. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  224. package/esm/models/operations/listpresets.js +2 -2
  225. package/esm/models/operations/listpresetversions.js +2 -2
  226. package/esm/models/operations/listscimgroupmappings.js +2 -2
  227. package/esm/models/operations/listscimgroups.js +2 -2
  228. package/esm/models/operations/listworkspacemembers.js +2 -2
  229. package/esm/models/operations/listworkspaces.js +2 -2
  230. package/esm/models/operations/sendchatcompletionrequest.js +5 -5
  231. package/esm/models/operations/storeinternvaultsecret.js +2 -2
  232. package/esm/models/operations/storevaultsecret.js +2 -2
  233. package/esm/models/operations/submitgenerationfeedback.js +2 -2
  234. package/esm/models/operations/updatebyokkey.js +2 -2
  235. package/esm/models/operations/updateguardrail.js +2 -2
  236. package/esm/models/operations/updateintern.js +2 -2
  237. package/esm/models/operations/updateobservabilitydestination.js +2 -2
  238. package/esm/models/operations/updatescimgroupmapping.js +2 -2
  239. package/esm/models/operations/updateworkspace.js +2 -2
  240. package/esm/models/operations/uploadfile.js +2 -2
  241. package/esm/models/operations/upsertworkspacebudget.js +3 -3
  242. package/esm/models/outputcustomtoolcallitem.d.ts +2 -26
  243. package/esm/models/outputcustomtoolcallitem.js +1 -28
  244. package/esm/models/outputfunctioncallitem.d.ts +1 -44
  245. package/esm/models/outputfunctioncallitem.js +1 -64
  246. package/esm/models/outputitems.d.ts +2 -6
  247. package/esm/models/outputitems.js +2 -2
  248. package/esm/sdk/interns.d.ts +13 -0
  249. package/esm/sdk/interns.js +16 -0
  250. package/jsr.json +1 -1
  251. package/package.json +11 -9
  252. package/scripts/unbarrel-imports.js +296 -0
@@ -6,14 +6,14 @@ import * as z from "zod/v4";
6
6
  import { EventStream } from "../../lib/event-streams.js";
7
7
  import { remap as remap$ } from "../../lib/primitives.js";
8
8
  import { safeParse } from "../../lib/schemas.js";
9
- import * as models from "../index.js";
9
+ import { InternChatCompletionRequest$outboundSchema as models_InternChatCompletionRequest$outboundSchema } from "../internchatcompletionrequest.js"; import { InternChatSteeredResponse$inboundSchema as models_InternChatSteeredResponse$inboundSchema } from "../internchatsteeredresponse.js"; import { InternChatStreamingResponse$inboundSchema as models_InternChatStreamingResponse$inboundSchema } from "../internchatstreamingresponse.js";
10
10
  /** @internal */
11
11
  export const CreateInternChatCompletionRequest$outboundSchema = z.object({
12
12
  httpReferer: z.string().optional(),
13
13
  appTitle: z.string().optional(),
14
14
  appCategories: z.string().optional(),
15
15
  internId: z.string(),
16
- internChatCompletionRequest: models.InternChatCompletionRequest$outboundSchema,
16
+ internChatCompletionRequest: models_InternChatCompletionRequest$outboundSchema,
17
17
  }).transform((v) => {
18
18
  return remap$(v, {
19
19
  httpReferer: "HTTP-Referer",
@@ -25,7 +25,7 @@ export function createInternChatCompletionRequestToJSON(createInternChatCompleti
25
25
  }
26
26
  /** @internal */
27
27
  export const CreateInternChatCompletionResponseResult$inboundSchema = z.union([
28
- models.InternChatSteeredResponse$inboundSchema,
28
+ models_InternChatSteeredResponse$inboundSchema,
29
29
  z.custom(x => x instanceof ReadableStream)
30
30
  .transform(stream => {
31
31
  return new EventStream(stream, rawEvent => {
@@ -33,7 +33,7 @@ export const CreateInternChatCompletionResponseResult$inboundSchema = z.union([
33
33
  return { done: true, value: undefined };
34
34
  return {
35
35
  done: false,
36
- value: models.InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
36
+ value: models_InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
37
37
  };
38
38
  });
39
39
  }),
@@ -45,7 +45,7 @@ export function createInternChatCompletionResponseResultFromJSON(jsonString) {
45
45
  export const CreateInternChatCompletionResponse$inboundSchema = z.object({
46
46
  Headers: z.record(z.string(), z.array(z.string())).default({}),
47
47
  Result: z.union([
48
- models.InternChatSteeredResponse$inboundSchema,
48
+ models_InternChatSteeredResponse$inboundSchema,
49
49
  z.custom(x => x instanceof ReadableStream)
50
50
  .transform(stream => {
51
51
  return new EventStream(stream, rawEvent => {
@@ -54,7 +54,7 @@ export const CreateInternChatCompletionResponse$inboundSchema = z.object({
54
54
  }
55
55
  return {
56
56
  done: false,
57
- value: models.InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
57
+ value: models_InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
58
58
  };
59
59
  });
60
60
  }),
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { TokenExchangeRequest$outboundSchema as models_TokenExchangeRequest$outboundSchema } from "../tokenexchangerequest.js";
8
8
  /** @internal */
9
9
  export const CreateOauthTokenRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- tokenExchangeRequest: models.TokenExchangeRequest$outboundSchema,
13
+ tokenExchangeRequest: models_TokenExchangeRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { CreateObservabilityDestinationRequest$outboundSchema as models_CreateObservabilityDestinationRequest$outboundSchema } from "../createobservabilitydestinationrequest.js";
8
8
  /** @internal */
9
9
  export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- createObservabilityDestinationRequest: models.CreateObservabilityDestinationRequest$outboundSchema,
13
+ createObservabilityDestinationRequest: models_CreateObservabilityDestinationRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ChatRequest$outboundSchema as models_ChatRequest$outboundSchema } from "../chatrequest.js";
8
8
  /** @internal */
9
9
  export const CreatePresetsChatCompletionsRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  slug: z.string(),
14
- chatRequest: models.ChatRequest$outboundSchema,
14
+ chatRequest: models_ChatRequest$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { MessagesRequest$outboundSchema as models_MessagesRequest$outboundSchema } from "../messagesrequest.js";
8
8
  /** @internal */
9
9
  export const CreatePresetsMessagesRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  slug: z.string(),
14
- messagesRequest: models.MessagesRequest$outboundSchema,
14
+ messagesRequest: models_MessagesRequest$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ResponsesRequest$outboundSchema as models_ResponsesRequest$outboundSchema } from "../responsesrequest.js";
8
8
  /** @internal */
9
9
  export const CreatePresetsResponsesRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  slug: z.string(),
14
- responsesRequest: models.ResponsesRequest$outboundSchema,
14
+ responsesRequest: models_ResponsesRequest$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -5,7 +5,7 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import * as models from "../index.js";
8
+ import { ProviderPreferences$outboundSchema as models_ProviderPreferences$outboundSchema } from "../providerpreferences.js"; import { TraceConfig$outboundSchema as models_TraceConfig$outboundSchema } from "../traceconfig.js";
9
9
  /** @internal */
10
10
  export const DocumentRequest$outboundSchema = z.object({
11
11
  image: z.string().optional(),
@@ -24,11 +24,11 @@ export function documentToJSON(document) {
24
24
  export const CreateRerankRequestBody$outboundSchema = z.object({
25
25
  documents: z.array(z.union([z.string(), z.lazy(() => DocumentRequest$outboundSchema)])),
26
26
  model: z.string(),
27
- provider: z.nullable(models.ProviderPreferences$outboundSchema).optional(),
27
+ provider: z.nullable(models_ProviderPreferences$outboundSchema).optional(),
28
28
  query: z.string(),
29
29
  sessionId: z.string().optional(),
30
30
  topN: z.int().optional(),
31
- trace: models.TraceConfig$outboundSchema.optional(),
31
+ trace: models_TraceConfig$outboundSchema.optional(),
32
32
  user: z.string().optional(),
33
33
  }).transform((v) => {
34
34
  return remap$(v, {
@@ -6,14 +6,14 @@ import * as z from "zod/v4";
6
6
  import { EventStream } from "../../lib/event-streams.js";
7
7
  import { remap as remap$ } from "../../lib/primitives.js";
8
8
  import { safeParse } from "../../lib/schemas.js";
9
- import * as models from "../index.js";
9
+ import { MetadataLevel$outboundSchema as models_MetadataLevel$outboundSchema } from "../metadatalevel.js"; import { OpenResponsesResult$inboundSchema as models_OpenResponsesResult$inboundSchema } from "../openresponsesresult.js"; import { ResponsesRequest$outboundSchema as models_ResponsesRequest$outboundSchema } from "../responsesrequest.js"; import { ResponsesStreamingResponse$inboundSchema as models_ResponsesStreamingResponse$inboundSchema } from "../responsesstreamingresponse.js";
10
10
  /** @internal */
11
11
  export const CreateResponsesRequest$outboundSchema = z.object({
12
12
  httpReferer: z.string().optional(),
13
13
  appTitle: z.string().optional(),
14
14
  appCategories: z.string().optional(),
15
- xOpenRouterMetadata: models.MetadataLevel$outboundSchema.optional(),
16
- responsesRequest: models.ResponsesRequest$outboundSchema,
15
+ xOpenRouterMetadata: models_MetadataLevel$outboundSchema.optional(),
16
+ responsesRequest: models_ResponsesRequest$outboundSchema,
17
17
  }).transform((v) => {
18
18
  return remap$(v, {
19
19
  httpReferer: "HTTP-Referer",
@@ -26,7 +26,7 @@ export function createResponsesRequestToJSON(createResponsesRequest) {
26
26
  }
27
27
  /** @internal */
28
28
  export const CreateResponsesResponse$inboundSchema = z.union([
29
- models.OpenResponsesResult$inboundSchema,
29
+ models_OpenResponsesResult$inboundSchema,
30
30
  z.custom(x => x instanceof ReadableStream)
31
31
  .transform(stream => {
32
32
  return new EventStream(stream, rawEvent => {
@@ -34,7 +34,7 @@ export const CreateResponsesResponse$inboundSchema = z.union([
34
34
  return { done: true, value: undefined };
35
35
  return {
36
36
  done: false,
37
- value: models.ResponsesStreamingResponse$inboundSchema.parse(rawEvent)
37
+ value: models_ResponsesStreamingResponse$inboundSchema.parse(rawEvent)
38
38
  ?.data,
39
39
  };
40
40
  });
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { CreateScimGroupMappingRequest$outboundSchema as models_CreateScimGroupMappingRequest$outboundSchema } from "../createscimgroupmappingrequest.js";
8
8
  /** @internal */
9
9
  export const CreateScimGroupMappingRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- createScimGroupMappingRequest: models.CreateScimGroupMappingRequest$outboundSchema,
13
+ createScimGroupMappingRequest: models_CreateScimGroupMappingRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -5,7 +5,7 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import * as models from "../index.js";
8
+ import { CreateScimSyncJobResponse$inboundSchema as models_CreateScimSyncJobResponse$inboundSchema } from "../createscimsyncjobresponse.js";
9
9
  /** @internal */
10
10
  export const CreateScimSyncJobRequest$outboundSchema = z.object({
11
11
  httpReferer: z.string().optional(),
@@ -22,7 +22,7 @@ export function createScimSyncJobRequestToJSON(createScimSyncJobRequest) {
22
22
  /** @internal */
23
23
  export const CreateScimSyncJobResponse$inboundSchema = z.object({
24
24
  Headers: z.record(z.string(), z.array(z.string())).default({}),
25
- Result: models.CreateScimSyncJobResponse$inboundSchema,
25
+ Result: models_CreateScimSyncJobResponse$inboundSchema,
26
26
  }).transform((v) => {
27
27
  return remap$(v, {
28
28
  "Headers": "headers",
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { DecisionsRequest$outboundSchema as models_DecisionsRequest$outboundSchema } from "../decisionsrequest.js";
8
8
  /** @internal */
9
9
  export const CreateSystemoneRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- decisionsRequest: models.DecisionsRequest$outboundSchema,
13
+ decisionsRequest: models_DecisionsRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { VideoGenerationRequest$outboundSchema as models_VideoGenerationRequest$outboundSchema } from "../videogenerationrequest.js";
8
8
  /** @internal */
9
9
  export const CreateVideosRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- videoGenerationRequest: models.VideoGenerationRequest$outboundSchema,
13
+ videoGenerationRequest: models_VideoGenerationRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { CreateWorkspaceRequest$outboundSchema as models_CreateWorkspaceRequest$outboundSchema } from "../createworkspacerequest.js";
8
8
  /** @internal */
9
9
  export const CreateWorkspaceRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
- createWorkspaceRequest: models.CreateWorkspaceRequest$outboundSchema,
13
+ createWorkspaceRequest: models_CreateWorkspaceRequest$outboundSchema,
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
16
16
  httpReferer: "HTTP-Referer",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
8
8
  /** @internal */
9
9
  export const DeleteFileRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
@@ -12,7 +12,7 @@ export const DeleteFileRequest$outboundSchema = z.object({
12
12
  appCategories: z.string().optional(),
13
13
  fileId: z.string(),
14
14
  workspaceId: z.string().optional(),
15
- provider: models.FileProvider$outboundSchema.optional(),
15
+ provider: models_FileProvider$outboundSchema.optional(),
16
16
  }).transform((v) => {
17
17
  return remap$(v, {
18
18
  httpReferer: "HTTP-Referer",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { DeleteInternRequest$outboundSchema as models_DeleteInternRequest$outboundSchema } from "../deleteinternrequest.js";
8
8
  /** @internal */
9
9
  export const DeleteInternRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  internId: z.string(),
14
- deleteInternRequest: models.DeleteInternRequest$outboundSchema,
14
+ deleteInternRequest: models_DeleteInternRequest$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { WorkspaceBudgetInterval$outboundSchema as models_WorkspaceBudgetInterval$outboundSchema } from "../workspacebudgetinterval.js";
8
8
  /** @internal */
9
9
  export const DeleteWorkspaceBudgetRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  workspaceRef: z.string(),
14
- interval: models.WorkspaceBudgetInterval$outboundSchema,
14
+ interval: models_WorkspaceBudgetInterval$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
8
8
  /** @internal */
9
9
  export const DownloadFileContentRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
@@ -12,7 +12,7 @@ export const DownloadFileContentRequest$outboundSchema = z.object({
12
12
  appCategories: z.string().optional(),
13
13
  fileId: z.string(),
14
14
  workspaceId: z.string().optional(),
15
- provider: models.FileProvider$outboundSchema.optional(),
15
+ provider: models_FileProvider$outboundSchema.optional(),
16
16
  }).transform((v) => {
17
17
  return remap$(v, {
18
18
  httpReferer: "HTTP-Referer",
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import * as models from "../index.js";
9
+ import { AppRankingsResponse$inboundSchema as models_AppRankingsResponse$inboundSchema } from "../apprankingsresponse.js";
10
10
  /**
11
11
  * Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.
12
12
  */
@@ -73,7 +73,7 @@ export function getAppRankingsRequestToJSON(getAppRankingsRequest) {
73
73
  }
74
74
  /** @internal */
75
75
  export const GetAppRankingsResponse$inboundSchema = z.object({
76
- Result: models.AppRankingsResponse$inboundSchema,
76
+ Result: models_AppRankingsResponse$inboundSchema,
77
77
  }).transform((v) => {
78
78
  return remap$(v, {
79
79
  "Result": "result",
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import * as models from "../index.js";
9
+ import { FreeModelDailyRequests$inboundSchema as models_FreeModelDailyRequests$inboundSchema } from "../freemodeldailyrequests.js";
10
10
  export const AllowedDataRegion = {
11
11
  Global: "global",
12
12
  Europe: "europe",
@@ -45,7 +45,7 @@ export const GetCurrentKeyData$inboundSchema = z.object({
45
45
  byok_usage_weekly: z.number(),
46
46
  creator_user_id: z.nullable(z.string()),
47
47
  expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
48
- free_model_daily_requests: models.FreeModelDailyRequests$inboundSchema,
48
+ free_model_daily_requests: models_FreeModelDailyRequests$inboundSchema,
49
49
  include_byok_in_limit: z.boolean(),
50
50
  is_free_tier: z.boolean(),
51
51
  is_management_key: z.boolean(),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
8
8
  /** @internal */
9
9
  export const GetFileMetadataRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
@@ -12,7 +12,7 @@ export const GetFileMetadataRequest$outboundSchema = z.object({
12
12
  appCategories: z.string().optional(),
13
13
  fileId: z.string(),
14
14
  workspaceId: z.string().optional(),
15
- provider: models.FileProvider$outboundSchema.optional(),
15
+ provider: models_FileProvider$outboundSchema.optional(),
16
16
  }).transform((v) => {
17
17
  return remap$(v, {
18
18
  httpReferer: "HTTP-Referer",
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import * as models from "../index.js";
9
+ import { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
10
10
  /**
11
11
  * Filter models by use case category
12
12
  */
@@ -134,7 +134,7 @@ export function getModelsRequestToJSON(getModelsRequest) {
134
134
  }
135
135
  /** @internal */
136
136
  export const GetModelsResponse$inboundSchema = z.object({
137
- Result: models.ModelsListResponse$inboundSchema,
137
+ Result: models_ModelsListResponse$inboundSchema,
138
138
  }).transform((v) => {
139
139
  return remap$(v, {
140
140
  "Result": "result",
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import * as models from "../index.js";
9
+ import { SessionCostResponse$inboundSchema as models_SessionCostResponse$inboundSchema } from "../sessioncostresponse.js";
10
10
  /**
11
11
  * Filter by the inclusive number of turns in a session.
12
12
  */
@@ -41,7 +41,7 @@ export function getSessionCostRequestToJSON(getSessionCostRequest) {
41
41
  }
42
42
  /** @internal */
43
43
  export const GetSessionCostResponse$inboundSchema = z.object({
44
- Result: models.SessionCostResponse$inboundSchema,
44
+ Result: models_SessionCostResponse$inboundSchema,
45
45
  }).transform((v) => {
46
46
  return remap$(v, {
47
47
  "Result": "result",
@@ -4,14 +4,14 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { WorkspaceBudgetInterval$outboundSchema as models_WorkspaceBudgetInterval$outboundSchema } from "../workspacebudgetinterval.js";
8
8
  /** @internal */
9
9
  export const GetWorkspaceBudgetRequest$outboundSchema = z.object({
10
10
  httpReferer: z.string().optional(),
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  workspaceRef: z.string(),
14
- interval: models.WorkspaceBudgetInterval$outboundSchema,
14
+ interval: models_WorkspaceBudgetInterval$outboundSchema,
15
15
  }).transform((v) => {
16
16
  return remap$(v, {
17
17
  httpReferer: "HTTP-Referer",
@@ -69,6 +69,7 @@ export * from "./getuseractivity.js";
69
69
  export * from "./getvideos.js";
70
70
  export * from "./getworkspace.js";
71
71
  export * from "./getworkspacebudget.js";
72
+ export * from "./invokeintern.js";
72
73
  export * from "./list.js";
73
74
  export * from "./listbyokkeys.js";
74
75
  export * from "./listcontainerfiles.js";
@@ -73,6 +73,7 @@ export * from "./getuseractivity.js";
73
73
  export * from "./getvideos.js";
74
74
  export * from "./getworkspace.js";
75
75
  export * from "./getworkspacebudget.js";
76
+ export * from "./invokeintern.js";
76
77
  export * from "./list.js";
77
78
  export * from "./listbyokkeys.js";
78
79
  export * from "./listcontainerfiles.js";
@@ -0,0 +1,72 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
+ export type InvokeInternGlobals = {
6
+ /**
7
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
+ *
9
+ * @remarks
10
+ * This is used to track API usage per application.
11
+ */
12
+ httpReferer?: string | undefined;
13
+ /**
14
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
+ *
16
+ * @remarks
17
+ */
18
+ appTitle?: string | undefined;
19
+ /**
20
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
+ *
22
+ * @remarks
23
+ */
24
+ appCategories?: string | undefined;
25
+ };
26
+ export type InvokeInternRequest = {
27
+ /**
28
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
+ *
30
+ * @remarks
31
+ * This is used to track API usage per application.
32
+ */
33
+ httpReferer?: string | undefined;
34
+ /**
35
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
+ *
37
+ * @remarks
38
+ */
39
+ appTitle?: string | undefined;
40
+ /**
41
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
+ *
43
+ * @remarks
44
+ */
45
+ appCategories?: string | undefined;
46
+ /**
47
+ * The intern to run.
48
+ */
49
+ internId: string;
50
+ internInvokeRequest: models.InternInvokeRequest;
51
+ };
52
+ export type InvokeInternResponse = {
53
+ headers: {
54
+ [k: string]: Array<string>;
55
+ };
56
+ result: models.InternInvokeAcceptedResponse;
57
+ };
58
+ /** @internal */
59
+ export type InvokeInternRequest$Outbound = {
60
+ "HTTP-Referer"?: string | undefined;
61
+ appTitle?: string | undefined;
62
+ appCategories?: string | undefined;
63
+ internId: string;
64
+ InternInvokeRequest: models.InternInvokeRequest$Outbound;
65
+ };
66
+ /** @internal */
67
+ export declare const InvokeInternRequest$outboundSchema: z.ZodType<InvokeInternRequest$Outbound, InvokeInternRequest>;
68
+ export declare function invokeInternRequestToJSON(invokeInternRequest: InvokeInternRequest): string;
69
+ /** @internal */
70
+ export declare const InvokeInternResponse$inboundSchema: z.ZodType<InvokeInternResponse, unknown>;
71
+ export declare function invokeInternResponseFromJSON(jsonString: string): SafeParseResult<InvokeInternResponse, SDKValidationError>;
72
+ //# sourceMappingURL=invokeintern.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f2b19fbd8a96
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { InternInvokeAcceptedResponse$inboundSchema as models_InternInvokeAcceptedResponse$inboundSchema } from "../interninvokeacceptedresponse.js"; import { InternInvokeRequest$outboundSchema as models_InternInvokeRequest$outboundSchema } from "../interninvokerequest.js";
9
+ /** @internal */
10
+ export const InvokeInternRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ internId: z.string(),
15
+ internInvokeRequest: models_InternInvokeRequest$outboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ httpReferer: "HTTP-Referer",
19
+ internInvokeRequest: "InternInvokeRequest",
20
+ });
21
+ });
22
+ export function invokeInternRequestToJSON(invokeInternRequest) {
23
+ return JSON.stringify(InvokeInternRequest$outboundSchema.parse(invokeInternRequest));
24
+ }
25
+ /** @internal */
26
+ export const InvokeInternResponse$inboundSchema = z.object({
27
+ Headers: z.record(z.string(), z.array(z.string())).default({}),
28
+ Result: models_InternInvokeAcceptedResponse$inboundSchema,
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "Headers": "headers",
32
+ "Result": "result",
33
+ });
34
+ });
35
+ export function invokeInternResponseFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => InvokeInternResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeInternResponse' from JSON`);
37
+ }
38
+ //# sourceMappingURL=invokeintern.js.map
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import * as models from "../index.js";
9
+ import { ListBYOKKeysResponse$inboundSchema as models_ListBYOKKeysResponse$inboundSchema } from "../listbyokkeysresponse.js";
10
10
  /**
11
11
  * Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
12
12
  */
@@ -147,7 +147,7 @@ export function listBYOKKeysRequestToJSON(listBYOKKeysRequest) {
147
147
  }
148
148
  /** @internal */
149
149
  export const ListBYOKKeysResponse$inboundSchema = z.object({
150
- Result: models.ListBYOKKeysResponse$inboundSchema,
150
+ Result: models_ListBYOKKeysResponse$inboundSchema,
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
153
153
  "Result": "result",