@orq-ai/node 4.9.24 → 4.9.28

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 (186) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/listidentities.js +1 -1
  20. package/models/operations/patchv2humanevalsetsid.js +2 -2
  21. package/models/operations/postv2feedbackevaluation.js +3 -3
  22. package/models/operations/postv2humanevalsets.js +2 -2
  23. package/models/operations/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +1 -1
  37. package/packages/orq-rc/src/funcs/annotationsCreate.ts +3 -0
  38. package/packages/orq-rc/src/funcs/annotationsDelete.ts +3 -0
  39. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +5 -13
  40. package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -9
  41. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +3 -0
  42. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  43. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  44. package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +163 -0
  45. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  46. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  47. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  48. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  49. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  50. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  51. package/packages/orq-rc/src/funcs/{agentsPostV2AgentsA2a.ts → modelsImportLitellm.ts} +16 -30
  52. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  53. package/packages/orq-rc/src/funcs/{deploymentsMetricsCreate.ts → modelsUpdate.ts} +14 -17
  54. package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +169 -0
  55. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  56. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  57. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  58. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  59. package/packages/orq-rc/src/lib/config.ts +3 -13
  60. package/packages/orq-rc/src/lib/env.ts +0 -32
  61. package/packages/orq-rc/src/lib/sdks.ts +2 -2
  62. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +43 -55
  63. package/packages/orq-rc/src/models/components/autorouterconfig.ts +78 -0
  64. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +44 -0
  65. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  66. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  67. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  68. package/packages/orq-rc/src/models/components/domain.ts +14 -21
  69. package/packages/orq-rc/src/models/components/index.ts +21 -3
  70. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +1 -2
  71. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  72. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  73. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  74. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  75. package/packages/orq-rc/src/models/components/modeldocument.ts +112 -0
  76. package/packages/orq-rc/src/models/components/modelmetadata.ts +720 -0
  77. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  78. package/packages/orq-rc/src/models/components/price.ts +56 -0
  79. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  80. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  81. package/packages/orq-rc/src/models/components/project.ts +5 -0
  82. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  83. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  84. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +6 -0
  85. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  86. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  87. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  88. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  89. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  90. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  91. package/packages/orq-rc/src/models/errors/index.ts +0 -1
  92. package/packages/orq-rc/src/models/operations/createagentrequest.ts +14 -101
  93. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -1
  96. package/packages/orq-rc/src/models/operations/createeval.ts +668 -1296
  97. package/packages/orq-rc/src/models/operations/createtool.ts +24 -28
  98. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1606 -1156
  99. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3761 -320
  100. package/packages/orq-rc/src/models/operations/deploymentstream.ts +285 -249
  101. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  102. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  103. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/index.ts +15 -2
  106. package/packages/orq-rc/src/models/operations/listagents.ts +3 -87
  107. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  108. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  110. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  111. package/packages/orq-rc/src/models/operations/modelcreate.ts +184 -0
  112. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +151 -0
  113. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +218 -0
  114. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +202 -0
  115. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +144 -0
  116. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  117. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  118. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  119. package/packages/orq-rc/src/models/operations/modelupdate.ts +198 -0
  120. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +189 -0
  121. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +248 -0
  122. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +236 -0
  123. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  124. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +57 -0
  125. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  127. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -91
  129. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  130. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  131. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  132. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  133. package/packages/orq-rc/src/models/operations/runagent.ts +20 -29
  134. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  135. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -171
  136. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  137. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  138. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  139. package/packages/orq-rc/src/models/operations/updateeval.ts +41 -43
  140. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  141. package/packages/orq-rc/src/sdk/agents.ts +17 -35
  142. package/packages/orq-rc/src/sdk/annotations.ts +6 -0
  143. package/packages/orq-rc/src/sdk/deployments.ts +1 -8
  144. package/packages/orq-rc/src/sdk/knowledge.ts +3 -0
  145. package/packages/orq-rc/src/sdk/models.ts +305 -0
  146. package/packages/orq-rc/src/sdk/sdk.ts +5 -5
  147. package/src/lib/config.ts +3 -3
  148. package/src/models/components/reasoningpart.ts +1 -1
  149. package/src/models/operations/createcontact.ts +1 -1
  150. package/src/models/operations/createdataset.ts +1 -1
  151. package/src/models/operations/createdatasetitem.ts +4 -4
  152. package/src/models/operations/createdatasource.ts +1 -1
  153. package/src/models/operations/createeval.ts +16 -16
  154. package/src/models/operations/createidentity.ts +1 -1
  155. package/src/models/operations/createtool.ts +6 -6
  156. package/src/models/operations/getalltools.ts +6 -6
  157. package/src/models/operations/getevals.ts +16 -16
  158. package/src/models/operations/getv2humanevalsets.ts +2 -2
  159. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  160. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  161. package/src/models/operations/listdatasets.ts +1 -1
  162. package/src/models/operations/listdatasources.ts +1 -1
  163. package/src/models/operations/listidentities.ts +1 -1
  164. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  165. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  166. package/src/models/operations/postv2humanevalsets.ts +2 -2
  167. package/src/models/operations/retrievedatapoint.ts +4 -4
  168. package/src/models/operations/retrievedataset.ts +1 -1
  169. package/src/models/operations/retrievedatasource.ts +1 -1
  170. package/src/models/operations/retrieveidentity.ts +1 -1
  171. package/src/models/operations/retrievetool.ts +6 -6
  172. package/src/models/operations/runagent.ts +1 -1
  173. package/src/models/operations/streamrunagent.ts +1 -1
  174. package/src/models/operations/updatedatapoint.ts +4 -4
  175. package/src/models/operations/updatedataset.ts +1 -1
  176. package/src/models/operations/updatedatasource.ts +1 -1
  177. package/src/models/operations/updateeval.ts +16 -16
  178. package/src/models/operations/updateidentity.ts +1 -1
  179. package/src/models/operations/updatetool.ts +7 -7
  180. package/packages/orq-rc/src/models/components/domaingroup.ts +0 -18
  181. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
  182. package/packages/orq-rc/src/models/components/scopemode.ts +0 -17
  183. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
  184. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  185. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -249
  186. package/packages/orq-rc/src/sdk/metrics.ts +0 -29
@@ -3,31 +3,17 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { SDKOptions } from "./config.js";
7
6
  import { dlv } from "./dlv.js";
8
7
 
9
8
  export interface Env {
10
9
  ORQ_API_KEY?: string | undefined;
11
10
 
12
- /**
13
- * Sets the contactId parameter for all supported operations
14
- */
15
- ORQ_CONTACT_ID?: string | undefined;
16
-
17
- /**
18
- * Sets the environment parameter for all supported operations
19
- */
20
- ORQ_ENVIRONMENT?: string | undefined;
21
-
22
11
  ORQ_DEBUG?: boolean | undefined;
23
12
  }
24
13
 
25
14
  export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
26
15
  ORQ_API_KEY: z.string().optional(),
27
16
 
28
- ORQ_CONTACT_ID: z.string().optional(),
29
- ORQ_ENVIRONMENT: z.string().optional(),
30
-
31
17
  ORQ_DEBUG: z.coerce.boolean().optional(),
32
18
  });
33
19
 
@@ -69,21 +55,3 @@ export function env(): Env {
69
55
  export function resetEnv() {
70
56
  envMemo = undefined;
71
57
  }
72
-
73
- /**
74
- * Populates global parameters with environment variables.
75
- */
76
- export function fillGlobals(options: SDKOptions): SDKOptions {
77
- const clone = { ...options };
78
-
79
- const envVars = env();
80
-
81
- if (typeof envVars.ORQ_CONTACT_ID !== "undefined") {
82
- clone.contactId ??= envVars.ORQ_CONTACT_ID;
83
- }
84
- if (typeof envVars.ORQ_ENVIRONMENT !== "undefined") {
85
- clone.environment ??= envVars.ORQ_ENVIRONMENT;
86
- }
87
-
88
- return clone;
89
- }
@@ -15,7 +15,7 @@ import { ERR, OK, Result } from "../types/fp.js";
15
15
  import { stringToBase64 } from "./base64.js";
16
16
  import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "./config.js";
17
17
  import { encodeForm } from "./encodings.js";
18
- import { env, fillGlobals } from "./env.js";
18
+ import { env } from "./env.js";
19
19
  import {
20
20
  HTTPClient,
21
21
  isAbortError,
@@ -108,7 +108,7 @@ export class ClientSDK {
108
108
  this._baseURL = baseURL;
109
109
  this.#httpClient = client;
110
110
 
111
- this._options = { ...fillGlobals(options), hooks: this.#hooks };
111
+ this._options = { ...options, hooks: this.#hooks };
112
112
 
113
113
  this.#logger = this._options.debugLogger;
114
114
  if (!this.#logger && env().ORQ_DEBUG) {
@@ -83,7 +83,7 @@ export type AgentThoughtStreamingEventFunction = {
83
83
  arguments?: string | undefined;
84
84
  };
85
85
 
86
- export type AgentThoughtStreamingEventToolCalls = {
86
+ export type ToolCalls = {
87
87
  index?: number | undefined;
88
88
  id?: string | undefined;
89
89
  type?: AgentThoughtStreamingEventDataType | undefined;
@@ -104,7 +104,7 @@ export type AgentThoughtStreamingEventDataRole = ClosedEnum<
104
104
  /**
105
105
  * If the audio output modality is requested, this object contains data about the audio response from the model.
106
106
  */
107
- export type AgentThoughtStreamingEventAudio = {
107
+ export type Audio = {
108
108
  id: string;
109
109
  expiresAt: number;
110
110
  data: string;
@@ -117,7 +117,7 @@ export type AgentThoughtStreamingEventAudio = {
117
117
  export type AgentThoughtStreamingEventMessage = {
118
118
  content?: string | null | undefined;
119
119
  refusal?: string | null | undefined;
120
- toolCalls?: Array<AgentThoughtStreamingEventToolCalls> | undefined;
120
+ toolCalls?: Array<ToolCalls> | undefined;
121
121
  role?: AgentThoughtStreamingEventDataRole | undefined;
122
122
  /**
123
123
  * Internal thought process of the model
@@ -134,7 +134,7 @@ export type AgentThoughtStreamingEventMessage = {
134
134
  /**
135
135
  * If the audio output modality is requested, this object contains data about the audio response from the model.
136
136
  */
137
- audio?: AgentThoughtStreamingEventAudio | null | undefined;
137
+ audio?: Audio | null | undefined;
138
138
  };
139
139
 
140
140
  export type TopLogprobs = {
@@ -152,7 +152,7 @@ export type TopLogprobs = {
152
152
  bytes: Array<number> | null;
153
153
  };
154
154
 
155
- export type AgentThoughtStreamingEventContent = {
155
+ export type Content = {
156
156
  /**
157
157
  * The token.
158
158
  */
@@ -212,7 +212,7 @@ export type Logprobs = {
212
212
  /**
213
213
  * A list of message content tokens with log probability information.
214
214
  */
215
- content: Array<AgentThoughtStreamingEventContent> | null;
215
+ content: Array<Content> | null;
216
216
  /**
217
217
  * A list of message refusal tokens with log probability information.
218
218
  */
@@ -411,8 +411,8 @@ export function agentThoughtStreamingEventFunctionFromJSON(
411
411
  }
412
412
 
413
413
  /** @internal */
414
- export const AgentThoughtStreamingEventToolCalls$inboundSchema: z.ZodType<
415
- AgentThoughtStreamingEventToolCalls,
414
+ export const ToolCalls$inboundSchema: z.ZodType<
415
+ ToolCalls,
416
416
  z.ZodTypeDef,
417
417
  unknown
418
418
  > = z.object({
@@ -428,14 +428,13 @@ export const AgentThoughtStreamingEventToolCalls$inboundSchema: z.ZodType<
428
428
  });
429
429
  });
430
430
 
431
- export function agentThoughtStreamingEventToolCallsFromJSON(
431
+ export function toolCallsFromJSON(
432
432
  jsonString: string,
433
- ): SafeParseResult<AgentThoughtStreamingEventToolCalls, SDKValidationError> {
433
+ ): SafeParseResult<ToolCalls, SDKValidationError> {
434
434
  return safeParse(
435
435
  jsonString,
436
- (x) =>
437
- AgentThoughtStreamingEventToolCalls$inboundSchema.parse(JSON.parse(x)),
438
- `Failed to parse 'AgentThoughtStreamingEventToolCalls' from JSON`,
436
+ (x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
437
+ `Failed to parse 'ToolCalls' from JSON`,
439
438
  );
440
439
  }
441
440
 
@@ -445,28 +444,25 @@ export const AgentThoughtStreamingEventDataRole$inboundSchema: z.ZodNativeEnum<
445
444
  > = z.nativeEnum(AgentThoughtStreamingEventDataRole);
446
445
 
447
446
  /** @internal */
448
- export const AgentThoughtStreamingEventAudio$inboundSchema: z.ZodType<
449
- AgentThoughtStreamingEventAudio,
450
- z.ZodTypeDef,
451
- unknown
452
- > = z.object({
453
- id: z.string(),
454
- expires_at: z.number().int(),
455
- data: z.string(),
456
- transcript: z.string(),
457
- }).transform((v) => {
458
- return remap$(v, {
459
- "expires_at": "expiresAt",
447
+ export const Audio$inboundSchema: z.ZodType<Audio, z.ZodTypeDef, unknown> = z
448
+ .object({
449
+ id: z.string(),
450
+ expires_at: z.number().int(),
451
+ data: z.string(),
452
+ transcript: z.string(),
453
+ }).transform((v) => {
454
+ return remap$(v, {
455
+ "expires_at": "expiresAt",
456
+ });
460
457
  });
461
- });
462
458
 
463
- export function agentThoughtStreamingEventAudioFromJSON(
459
+ export function audioFromJSON(
464
460
  jsonString: string,
465
- ): SafeParseResult<AgentThoughtStreamingEventAudio, SDKValidationError> {
461
+ ): SafeParseResult<Audio, SDKValidationError> {
466
462
  return safeParse(
467
463
  jsonString,
468
- (x) => AgentThoughtStreamingEventAudio$inboundSchema.parse(JSON.parse(x)),
469
- `Failed to parse 'AgentThoughtStreamingEventAudio' from JSON`,
464
+ (x) => Audio$inboundSchema.parse(JSON.parse(x)),
465
+ `Failed to parse 'Audio' from JSON`,
470
466
  );
471
467
  }
472
468
 
@@ -478,15 +474,12 @@ export const AgentThoughtStreamingEventMessage$inboundSchema: z.ZodType<
478
474
  > = z.object({
479
475
  content: z.nullable(z.string()).optional(),
480
476
  refusal: z.nullable(z.string()).optional(),
481
- tool_calls: z.array(
482
- z.lazy(() => AgentThoughtStreamingEventToolCalls$inboundSchema),
483
- ).optional(),
477
+ tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
484
478
  role: AgentThoughtStreamingEventDataRole$inboundSchema.optional(),
485
479
  reasoning: z.nullable(z.string()).optional(),
486
480
  reasoning_signature: z.nullable(z.string()).optional(),
487
481
  redacted_reasoning: z.string().optional(),
488
- audio: z.nullable(z.lazy(() => AgentThoughtStreamingEventAudio$inboundSchema))
489
- .optional(),
482
+ audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
490
483
  }).transform((v) => {
491
484
  return remap$(v, {
492
485
  "tool_calls": "toolCalls",
@@ -527,28 +520,25 @@ export function topLogprobsFromJSON(
527
520
  }
528
521
 
529
522
  /** @internal */
530
- export const AgentThoughtStreamingEventContent$inboundSchema: z.ZodType<
531
- AgentThoughtStreamingEventContent,
532
- z.ZodTypeDef,
533
- unknown
534
- > = z.object({
535
- token: z.string(),
536
- logprob: z.number(),
537
- bytes: z.nullable(z.array(z.number())),
538
- top_logprobs: z.array(z.lazy(() => TopLogprobs$inboundSchema)),
539
- }).transform((v) => {
540
- return remap$(v, {
541
- "top_logprobs": "topLogprobs",
523
+ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
524
+ z.object({
525
+ token: z.string(),
526
+ logprob: z.number(),
527
+ bytes: z.nullable(z.array(z.number())),
528
+ top_logprobs: z.array(z.lazy(() => TopLogprobs$inboundSchema)),
529
+ }).transform((v) => {
530
+ return remap$(v, {
531
+ "top_logprobs": "topLogprobs",
532
+ });
542
533
  });
543
- });
544
534
 
545
- export function agentThoughtStreamingEventContentFromJSON(
535
+ export function contentFromJSON(
546
536
  jsonString: string,
547
- ): SafeParseResult<AgentThoughtStreamingEventContent, SDKValidationError> {
537
+ ): SafeParseResult<Content, SDKValidationError> {
548
538
  return safeParse(
549
539
  jsonString,
550
- (x) => AgentThoughtStreamingEventContent$inboundSchema.parse(JSON.parse(x)),
551
- `Failed to parse 'AgentThoughtStreamingEventContent' from JSON`,
540
+ (x) => Content$inboundSchema.parse(JSON.parse(x)),
541
+ `Failed to parse 'Content' from JSON`,
552
542
  );
553
543
  }
554
544
 
@@ -605,9 +595,7 @@ export const Logprobs$inboundSchema: z.ZodType<
605
595
  z.ZodTypeDef,
606
596
  unknown
607
597
  > = z.object({
608
- content: z.nullable(
609
- z.array(z.lazy(() => AgentThoughtStreamingEventContent$inboundSchema)),
610
- ),
598
+ content: z.nullable(z.array(z.lazy(() => Content$inboundSchema))),
611
599
  refusal: z.nullable(z.array(z.lazy(() => Refusal$inboundSchema))),
612
600
  });
613
601
 
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type AutoRouterConfig = {
12
+ economicalModel?: string | undefined;
13
+ id?: string | undefined;
14
+ profile?: string | undefined;
15
+ strongModel?: string | undefined;
16
+ version?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const AutoRouterConfig$inboundSchema: z.ZodType<
21
+ AutoRouterConfig,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ economical_model: z.string().optional(),
26
+ id: z.string().optional(),
27
+ profile: z.string().optional(),
28
+ strong_model: z.string().optional(),
29
+ version: z.string().optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "economical_model": "economicalModel",
33
+ "strong_model": "strongModel",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export type AutoRouterConfig$Outbound = {
38
+ economical_model?: string | undefined;
39
+ id?: string | undefined;
40
+ profile?: string | undefined;
41
+ strong_model?: string | undefined;
42
+ version?: string | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const AutoRouterConfig$outboundSchema: z.ZodType<
47
+ AutoRouterConfig$Outbound,
48
+ z.ZodTypeDef,
49
+ AutoRouterConfig
50
+ > = z.object({
51
+ economicalModel: z.string().optional(),
52
+ id: z.string().optional(),
53
+ profile: z.string().optional(),
54
+ strongModel: z.string().optional(),
55
+ version: z.string().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ economicalModel: "economical_model",
59
+ strongModel: "strong_model",
60
+ });
61
+ });
62
+
63
+ export function autoRouterConfigToJSON(
64
+ autoRouterConfig: AutoRouterConfig,
65
+ ): string {
66
+ return JSON.stringify(
67
+ AutoRouterConfig$outboundSchema.parse(autoRouterConfig),
68
+ );
69
+ }
70
+ export function autoRouterConfigFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<AutoRouterConfig, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => AutoRouterConfig$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'AutoRouterConfig' from JSON`,
77
+ );
78
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AzureFoundryDeploymentMasterData,
12
+ AzureFoundryDeploymentMasterData$inboundSchema,
13
+ } from "./azurefoundrydeploymentmasterdata.js";
14
+
15
+ export type AzureFoundryDeployment = {
16
+ id: string;
17
+ masterData?: AzureFoundryDeploymentMasterData | undefined;
18
+ model: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const AzureFoundryDeployment$inboundSchema: z.ZodType<
23
+ AzureFoundryDeployment,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ id: z.string(),
28
+ master_data: AzureFoundryDeploymentMasterData$inboundSchema.optional(),
29
+ model: z.string(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "master_data": "masterData",
33
+ });
34
+ });
35
+
36
+ export function azureFoundryDeploymentFromJSON(
37
+ jsonString: string,
38
+ ): SafeParseResult<AzureFoundryDeployment, SDKValidationError> {
39
+ return safeParse(
40
+ jsonString,
41
+ (x) => AzureFoundryDeployment$inboundSchema.parse(JSON.parse(x)),
42
+ `Failed to parse 'AzureFoundryDeployment' from JSON`,
43
+ );
44
+ }
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type AzureFoundryDeploymentMasterData = {
12
+ hasFunctions: boolean;
13
+ id: string;
14
+ inputCost: number;
15
+ metadata?: { [k: string]: any } | undefined;
16
+ modelDeveloper: string | null;
17
+ modelFamily: string | null;
18
+ modelId: string;
19
+ modelType: string;
20
+ outputCost: number;
21
+ parameters: Array<any> | null;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AzureFoundryDeploymentMasterData$inboundSchema: z.ZodType<
26
+ AzureFoundryDeploymentMasterData,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ has_functions: z.boolean(),
31
+ id: z.string(),
32
+ input_cost: z.number(),
33
+ metadata: z.record(z.any()).optional(),
34
+ model_developer: z.nullable(z.string()),
35
+ model_family: z.nullable(z.string()),
36
+ model_id: z.string(),
37
+ model_type: z.string(),
38
+ output_cost: z.number(),
39
+ parameters: z.nullable(z.array(z.any())),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "has_functions": "hasFunctions",
43
+ "input_cost": "inputCost",
44
+ "model_developer": "modelDeveloper",
45
+ "model_family": "modelFamily",
46
+ "model_id": "modelId",
47
+ "model_type": "modelType",
48
+ "output_cost": "outputCost",
49
+ });
50
+ });
51
+
52
+ export function azureFoundryDeploymentMasterDataFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<AzureFoundryDeploymentMasterData, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => AzureFoundryDeploymentMasterData$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'AzureFoundryDeploymentMasterData' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type CreateModelParameter = {
9
+ config: { [k: string]: any };
10
+ description?: string | undefined;
11
+ hints?: string | undefined;
12
+ name: string;
13
+ parameter: string;
14
+ parameterType: string;
15
+ position?: number | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export type CreateModelParameter$Outbound = {
20
+ config: { [k: string]: any };
21
+ description?: string | undefined;
22
+ hints?: string | undefined;
23
+ name: string;
24
+ parameter: string;
25
+ parameter_type: string;
26
+ position?: number | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const CreateModelParameter$outboundSchema: z.ZodType<
31
+ CreateModelParameter$Outbound,
32
+ z.ZodTypeDef,
33
+ CreateModelParameter
34
+ > = z.object({
35
+ config: z.record(z.any()),
36
+ description: z.string().optional(),
37
+ hints: z.string().optional(),
38
+ name: z.string(),
39
+ parameter: z.string(),
40
+ parameterType: z.string(),
41
+ position: z.number().int().optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ parameterType: "parameter_type",
45
+ });
46
+ });
47
+
48
+ export function createModelParameterToJSON(
49
+ createModelParameter: CreateModelParameter,
50
+ ): string {
51
+ return JSON.stringify(
52
+ CreateModelParameter$outboundSchema.parse(createModelParameter),
53
+ );
54
+ }
@@ -13,12 +13,17 @@ export type CreateProjectRequest = {
13
13
  * Team identifiers to associate with the project.
14
14
  */
15
15
  teams?: Array<string> | undefined;
16
+ /**
17
+ * Optional human-readable description, at most 500 characters.
18
+ */
19
+ description?: string | undefined;
16
20
  };
17
21
 
18
22
  /** @internal */
19
23
  export type CreateProjectRequest$Outbound = {
20
24
  name?: string | undefined;
21
25
  teams?: Array<string> | undefined;
26
+ description?: string | undefined;
22
27
  };
23
28
 
24
29
  /** @internal */
@@ -29,6 +34,7 @@ export const CreateProjectRequest$outboundSchema: z.ZodType<
29
34
  > = z.object({
30
35
  name: z.string().optional(),
31
36
  teams: z.array(z.string()).optional(),
37
+ description: z.string().optional(),
32
38
  });
33
39
 
34
40
  export function createProjectRequestToJSON(
@@ -7,16 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { DomainGroup, DomainGroup$inboundSchema } from "./domaingroup.js";
11
- import { ScopeMode, ScopeMode$inboundSchema } from "./scopemode.js";
12
10
 
13
11
  /**
14
- * Domain describes a permission domain that can be granted to an API
12
+ * Domain describes a permission domain that can be granted to an
15
13
  *
16
14
  * @remarks
17
- * key. The capability catalog is the registry consulted by
18
- * ResolvePermissions() at authorize() time. Verbs are derived by
19
- * convention from `id` + `group` + `readable` / `writable` flags.
15
+ * API key. Verbs are derived from id + group + readable/writable.
20
16
  */
21
17
  export type Domain = {
22
18
  /**
@@ -28,29 +24,26 @@ export type Domain = {
28
24
  */
29
25
  id?: string | undefined;
30
26
  /**
31
- * Human-readable label for UI.
27
+ * Human-readable label for the dashboard.
32
28
  */
33
29
  displayName?: string | undefined;
34
- group?: DomainGroup | undefined;
35
30
  /**
36
- * Project scopes this domain may be granted under. A workspace-admin
37
- *
38
- * @remarks
39
- * domain like `member` is typically SCOPE_MODE_ALL only.
31
+ * Logical group used by the UI to render this entry.
40
32
  */
41
- allowedScopes?: Array<ScopeMode> | undefined;
33
+ group?: number | undefined;
42
34
  /**
43
- * Whether this domain can be granted read access. When false the UI
35
+ * Project scopes this domain may be granted under. A workspace-
44
36
  *
45
37
  * @remarks
46
- * disables the Read segment (e.g. write-only gateway endpoints).
38
+ * admin domain like `member` is typically SCOPE_MODE_ALL only.
39
+ */
40
+ allowedScopes?: Array<number> | undefined;
41
+ /**
42
+ * Whether this domain can be granted read access.
47
43
  */
48
44
  readable?: boolean | undefined;
49
45
  /**
50
- * Whether this domain can be granted write access. When false the UI
51
- *
52
- * @remarks
53
- * disables the Write segment (e.g. read-only `model` listing).
46
+ * Whether this domain can be granted write access.
54
47
  */
55
48
  writable?: boolean | undefined;
56
49
  };
@@ -60,8 +53,8 @@ export const Domain$inboundSchema: z.ZodType<Domain, z.ZodTypeDef, unknown> = z
60
53
  .object({
61
54
  id: z.string().optional(),
62
55
  display_name: z.string().optional(),
63
- group: DomainGroup$inboundSchema.optional(),
64
- allowed_scopes: z.array(ScopeMode$inboundSchema).optional(),
56
+ group: z.number().int().optional(),
57
+ allowed_scopes: z.array(z.number().int()).optional(),
65
58
  readable: z.boolean().optional(),
66
59
  writable: z.boolean().optional(),
67
60
  }).transform((v) => {
@@ -17,6 +17,9 @@ export * from "./apikey.js";
17
17
  export * from "./apikeyowner.js";
18
18
  export * from "./apikeystatus.js";
19
19
  export * from "./audiocontentpartschema.js";
20
+ export * from "./autorouterconfig.js";
21
+ export * from "./azurefoundrydeployment.js";
22
+ export * from "./azurefoundrydeploymentmasterdata.js";
20
23
  export * from "./budgetlimit.js";
21
24
  export * from "./conversationparam.js";
22
25
  export * from "./createagentresponse.js";
@@ -26,6 +29,7 @@ export * from "./createfilerequest.js";
26
29
  export * from "./createfileresponse.js";
27
30
  export * from "./createidentityrequest.js";
28
31
  export * from "./createidentityresponse.js";
32
+ export * from "./createmodelparameter.js";
29
33
  export * from "./createprojectrequest.js";
30
34
  export * from "./createprojectresponse.js";
31
35
  export * from "./createskillrequest.js";
@@ -38,7 +42,6 @@ export * from "./deleteidentityresponse.js";
38
42
  export * from "./deleteprojectresponse.js";
39
43
  export * from "./deleteskillresponse.js";
40
44
  export * from "./domain.js";
41
- export * from "./domaingroup.js";
42
45
  export * from "./errorpart.js";
43
46
  export * from "./errorstreamingevent.js";
44
47
  export * from "./evaluatorref.js";
@@ -67,7 +70,6 @@ export * from "./identitymetrics.js";
67
70
  export * from "./imagecontentpartschema.js";
68
71
  export * from "./incompletedetails.js";
69
72
  export * from "./inputtokensdetails.js";
70
- export * from "./invokedeploymentrequest.js";
71
73
  export * from "./legacytokenfamily.js";
72
74
  export * from "./limits.js";
73
75
  export * from "./listapikeysresponse.js";
@@ -76,7 +78,14 @@ export * from "./listfilesresponse.js";
76
78
  export * from "./listidentitiesresponse.js";
77
79
  export * from "./listprojectsresponse.js";
78
80
  export * from "./listskillsresponse.js";
81
+ export * from "./litellmmodel.js";
82
+ export * from "./litellmmodelinfo.js";
83
+ export * from "./litellmparams.js";
79
84
  export * from "./memoryparam.js";
85
+ export * from "./modelconfigurationresponse.js";
86
+ export * from "./modeldocument.js";
87
+ export * from "./modelmetadata.js";
88
+ export * from "./modelparameterdocument.js";
80
89
  export * from "./modelref.js";
81
90
  export * from "./modelsconfig.js";
82
91
  export * from "./outputtokensdetails.js";
@@ -87,6 +96,9 @@ export * from "./partdoneevent.js";
87
96
  export * from "./permissionmode.js";
88
97
  export * from "./policy.js";
89
98
  export * from "./policyretryconfig.js";
99
+ export * from "./price.js";
100
+ export * from "./pricing.js";
101
+ export * from "./pricingvariant.js";
90
102
  export * from "./project.js";
91
103
  export * from "./projectscope.js";
92
104
  export * from "./publiccontact.js";
@@ -118,7 +130,6 @@ export * from "./responsethread.js";
118
130
  export * from "./retrieveidentityresponse.js";
119
131
  export * from "./reviewoutcome.js";
120
132
  export * from "./routingrule.js";
121
- export * from "./scopemode.js";
122
133
  export * from "./security.js";
123
134
  export * from "./serviceaccountowner.js";
124
135
  export * from "./singleproject.js";
@@ -149,8 +160,15 @@ export * from "./updatefilerequest.js";
149
160
  export * from "./updatefileresponse.js";
150
161
  export * from "./updateidentityrequest.js";
151
162
  export * from "./updateidentityresponse.js";
163
+ export * from "./updatemodelparameter.js";
152
164
  export * from "./updateprojectrequest.js";
153
165
  export * from "./updateprojectresponse.js";
154
166
  export * from "./updateskillrequest.js";
155
167
  export * from "./updateskillresponse.js";
156
168
  export * from "./userowner.js";
169
+ export * from "./vertexcapabilities.js";
170
+ export * from "./vertexconfiguration.js";
171
+ export * from "./vertexmodelconfiguration.js";
172
+ export * from "./vertexparameters.js";
173
+ export * from "./vertexparamrange.js";
174
+ export * from "./vertexparamrangeint.js";