@orq-ai/node 3.2.3 → 3.2.5

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 (75) hide show
  1. package/README.md +38 -0
  2. package/bin/mcp-server.js +1865 -145
  3. package/bin/mcp-server.js.map +25 -21
  4. package/docs/sdks/deployments/README.md +81 -0
  5. package/funcs/deploymentsStream.d.ts +17 -0
  6. package/funcs/deploymentsStream.d.ts.map +1 -0
  7. package/funcs/deploymentsStream.js +130 -0
  8. package/funcs/deploymentsStream.js.map +1 -0
  9. package/jsr.json +2 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/lib/event-streams.d.ts +17 -0
  13. package/lib/event-streams.d.ts.map +1 -0
  14. package/lib/event-streams.js +220 -0
  15. package/lib/event-streams.js.map +1 -0
  16. package/lib/matchers.d.ts.map +1 -1
  17. package/lib/matchers.js +4 -1
  18. package/lib/matchers.js.map +1 -1
  19. package/mcp-server/mcp-server.js +1 -1
  20. package/mcp-server/server.d.ts.map +1 -1
  21. package/mcp-server/server.js +3 -1
  22. package/mcp-server/server.js.map +1 -1
  23. package/mcp-server/tools/deploymentsStream.d.ts +8 -0
  24. package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
  25. package/mcp-server/tools/deploymentsStream.js +64 -0
  26. package/mcp-server/tools/deploymentsStream.js.map +1 -0
  27. package/models/operations/bulkcreatedatapoints.js +2 -2
  28. package/models/operations/createcontact.js +2 -2
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +2 -2
  31. package/models/operations/deploymentstream.d.ts +2938 -0
  32. package/models/operations/deploymentstream.d.ts.map +1 -0
  33. package/models/operations/deploymentstream.js +2828 -0
  34. package/models/operations/deploymentstream.js.map +1 -0
  35. package/models/operations/fileget.js +2 -2
  36. package/models/operations/filelist.js +2 -2
  37. package/models/operations/fileupload.js +2 -2
  38. package/models/operations/index.d.ts +1 -0
  39. package/models/operations/index.d.ts.map +1 -1
  40. package/models/operations/index.js +1 -0
  41. package/models/operations/index.js.map +1 -1
  42. package/models/operations/listdatasetdatapoints.js +2 -2
  43. package/models/operations/listdatasets.js +2 -2
  44. package/models/operations/retrievedatapoint.js +2 -2
  45. package/models/operations/retrievedataset.js +2 -2
  46. package/models/operations/updatedatapoint.js +2 -2
  47. package/models/operations/updatedataset.js +2 -2
  48. package/package.json +1 -1
  49. package/sdk/deployments.d.ts +8 -0
  50. package/sdk/deployments.d.ts.map +1 -1
  51. package/sdk/deployments.js +10 -0
  52. package/sdk/deployments.js.map +1 -1
  53. package/src/funcs/deploymentsStream.ts +178 -0
  54. package/src/lib/config.ts +2 -2
  55. package/src/lib/event-streams.ts +264 -0
  56. package/src/lib/matchers.ts +4 -1
  57. package/src/mcp-server/mcp-server.ts +1 -1
  58. package/src/mcp-server/server.ts +3 -1
  59. package/src/mcp-server/tools/deploymentsStream.ts +37 -0
  60. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  61. package/src/models/operations/createcontact.ts +2 -2
  62. package/src/models/operations/createdataset.ts +2 -2
  63. package/src/models/operations/createdatasetitem.ts +2 -2
  64. package/src/models/operations/deploymentstream.ts +5960 -0
  65. package/src/models/operations/fileget.ts +2 -2
  66. package/src/models/operations/filelist.ts +2 -2
  67. package/src/models/operations/fileupload.ts +2 -2
  68. package/src/models/operations/index.ts +1 -0
  69. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  70. package/src/models/operations/listdatasets.ts +2 -2
  71. package/src/models/operations/retrievedatapoint.ts +2 -2
  72. package/src/models/operations/retrievedataset.ts +2 -2
  73. package/src/models/operations/updatedatapoint.ts +2 -2
  74. package/src/models/operations/updatedataset.ts +2 -2
  75. package/src/sdk/deployments.ts +19 -0
package/bin/mcp-server.js CHANGED
@@ -34234,9 +34234,9 @@ var init_config = __esm(() => {
34234
34234
  SDK_METADATA = {
34235
34235
  language: "typescript",
34236
34236
  openapiDocVersion: "2.0",
34237
- sdkVersion: "3.2.3",
34237
+ sdkVersion: "3.2.5",
34238
34238
  genVersion: "2.558.2",
34239
- userAgent: "speakeasy-sdk/typescript 3.2.3 2.558.2 2.0 @orq-ai/node"
34239
+ userAgent: "speakeasy-sdk/typescript 3.2.5 2.558.2 2.0 @orq-ai/node"
34240
34240
  };
34241
34241
  });
34242
34242
 
@@ -35254,6 +35254,208 @@ ${body}` : "";
35254
35254
  };
35255
35255
  });
35256
35256
 
35257
+ // src/lib/event-streams.ts
35258
+ function findBoundary(buffer, start) {
35259
+ const char1 = buffer[start];
35260
+ const char2 = buffer[start + 1];
35261
+ if (char1 == null || char2 == null || !NEWLINE_CHARS.has(char1) || !NEWLINE_CHARS.has(char2)) {
35262
+ return null;
35263
+ }
35264
+ for (const s of MESSAGE_BOUNDARIES) {
35265
+ const seq = peekSequence(start, buffer, s);
35266
+ if (seq != null) {
35267
+ return seq;
35268
+ }
35269
+ }
35270
+ return null;
35271
+ }
35272
+ function peekSequence(position, buffer, sequence) {
35273
+ if (sequence.length > buffer.length - position) {
35274
+ return null;
35275
+ }
35276
+ for (let i = 0;i < sequence.length; i++) {
35277
+ if (buffer[position + i] !== sequence[i]) {
35278
+ return null;
35279
+ }
35280
+ }
35281
+ return sequence;
35282
+ }
35283
+ function parseEvent(chunk, decoder) {
35284
+ if (!chunk.length) {
35285
+ return null;
35286
+ }
35287
+ const td = new TextDecoder;
35288
+ const raw = td.decode(chunk);
35289
+ const lines = raw.split(/\r?\n|\r/g);
35290
+ let publish = false;
35291
+ const rawEvent = {};
35292
+ for (const line of lines) {
35293
+ if (!line) {
35294
+ continue;
35295
+ }
35296
+ const delim = line.indexOf(":");
35297
+ if (delim === 0) {
35298
+ continue;
35299
+ }
35300
+ const field = delim > 0 ? line.substring(0, delim) : "";
35301
+ let value = delim > 0 ? line.substring(delim + 1) : "";
35302
+ if (value.charAt(0) === " ") {
35303
+ value = value.substring(1);
35304
+ }
35305
+ switch (field) {
35306
+ case "event": {
35307
+ publish = true;
35308
+ rawEvent.event = value;
35309
+ break;
35310
+ }
35311
+ case "data": {
35312
+ publish = true;
35313
+ rawEvent.data ??= "";
35314
+ rawEvent.data += value + `
35315
+ `;
35316
+ break;
35317
+ }
35318
+ case "id": {
35319
+ publish = true;
35320
+ rawEvent.id = value;
35321
+ break;
35322
+ }
35323
+ case "retry": {
35324
+ const r = parseInt(value, 10);
35325
+ if (!Number.isNaN(r)) {
35326
+ publish = true;
35327
+ rawEvent.retry = r;
35328
+ }
35329
+ break;
35330
+ }
35331
+ }
35332
+ }
35333
+ if (!publish) {
35334
+ return null;
35335
+ }
35336
+ if (rawEvent.data != null) {
35337
+ rawEvent.data = rawEvent.data.slice(0, -1);
35338
+ }
35339
+ return decoder(rawEvent);
35340
+ }
35341
+ function discardSentinel(stream, sentinel) {
35342
+ return new ReadableStream({
35343
+ async start(controller) {
35344
+ let buffer = new Uint8Array([]);
35345
+ let position = 0;
35346
+ let done = false;
35347
+ let discard = false;
35348
+ const rdr = stream.getReader();
35349
+ try {
35350
+ while (!done) {
35351
+ const result = await rdr.read();
35352
+ const value = result.value;
35353
+ done = done || result.done;
35354
+ if (discard) {
35355
+ continue;
35356
+ }
35357
+ if (typeof value === "undefined") {
35358
+ continue;
35359
+ }
35360
+ const newBuffer = new Uint8Array(buffer.length + value.length);
35361
+ newBuffer.set(buffer);
35362
+ newBuffer.set(value, buffer.length);
35363
+ buffer = newBuffer;
35364
+ for (let i = position;i < buffer.length; i++) {
35365
+ const boundary = findBoundary(buffer, i);
35366
+ if (boundary == null) {
35367
+ continue;
35368
+ }
35369
+ const start = position;
35370
+ const chunk = buffer.slice(start, i);
35371
+ position = i + boundary.length;
35372
+ const event = parseEvent(chunk, id);
35373
+ if (event?.data === sentinel) {
35374
+ controller.enqueue(buffer.slice(0, start));
35375
+ discard = true;
35376
+ } else {
35377
+ controller.enqueue(buffer.slice(0, position));
35378
+ buffer = buffer.slice(position);
35379
+ position = 0;
35380
+ }
35381
+ }
35382
+ }
35383
+ } catch (e) {
35384
+ controller.error(e);
35385
+ } finally {
35386
+ controller.close();
35387
+ rdr.releaseLock();
35388
+ }
35389
+ }
35390
+ });
35391
+ }
35392
+ function id(v2) {
35393
+ return v2;
35394
+ }
35395
+ var LF = 10, CR = 13, NEWLINE_CHARS, MESSAGE_BOUNDARIES, EventStream;
35396
+ var init_event_streams = __esm(() => {
35397
+ NEWLINE_CHARS = new Set([LF, CR]);
35398
+ MESSAGE_BOUNDARIES = [
35399
+ new Uint8Array([CR, LF, CR, LF]),
35400
+ new Uint8Array([CR, CR]),
35401
+ new Uint8Array([LF, LF])
35402
+ ];
35403
+ EventStream = class EventStream {
35404
+ stream;
35405
+ decoder;
35406
+ constructor(init) {
35407
+ this.stream = init.stream;
35408
+ this.decoder = init.decoder;
35409
+ }
35410
+ async* [Symbol.asyncIterator]() {
35411
+ const reader = this.stream.getReader();
35412
+ let buffer = new Uint8Array([]);
35413
+ let position = 0;
35414
+ try {
35415
+ while (true) {
35416
+ const { done, value } = await reader.read();
35417
+ if (done) {
35418
+ break;
35419
+ }
35420
+ const newBuffer = new Uint8Array(buffer.length + value.length);
35421
+ newBuffer.set(buffer);
35422
+ newBuffer.set(value, buffer.length);
35423
+ buffer = newBuffer;
35424
+ for (let i = position;i < buffer.length; i++) {
35425
+ const boundary = findBoundary(buffer, i);
35426
+ if (boundary == null) {
35427
+ continue;
35428
+ }
35429
+ const chunk = buffer.slice(position, i);
35430
+ position = i + boundary.length;
35431
+ const event = parseEvent(chunk, this.decoder);
35432
+ if (event != null) {
35433
+ yield event;
35434
+ }
35435
+ }
35436
+ if (position > 0) {
35437
+ buffer = buffer.slice(position);
35438
+ position = 0;
35439
+ }
35440
+ }
35441
+ if (buffer.length > 0) {
35442
+ const event = parseEvent(buffer, this.decoder);
35443
+ if (event != null) {
35444
+ yield event;
35445
+ }
35446
+ }
35447
+ } catch (e) {
35448
+ if (e instanceof Error && e.name === "AbortError") {
35449
+ return;
35450
+ }
35451
+ throw e;
35452
+ } finally {
35453
+ reader.releaseLock();
35454
+ }
35455
+ }
35456
+ };
35457
+ });
35458
+
35257
35459
  // src/models/errors/sdkvalidationerror.ts
35258
35460
  function formatZodError(err, level = 0) {
35259
35461
  let pre = " ".repeat(level);
@@ -35349,6 +35551,9 @@ function jsonErr(codes, schema, options) {
35349
35551
  function json(codes, schema, options) {
35350
35552
  return { ...options, enc: "json", codes, schema };
35351
35553
  }
35554
+ function sse(codes, schema, options) {
35555
+ return { ...options, enc: "sse", codes, schema };
35556
+ }
35352
35557
  function nil(codes, schema, options) {
35353
35558
  return { ...options, enc: "nil", codes, schema };
35354
35559
  }
@@ -35392,7 +35597,7 @@ function match(...matchers) {
35392
35597
  raw = await response.text();
35393
35598
  break;
35394
35599
  case "sse":
35395
- raw = response.body;
35600
+ raw = response.body && matcher.sseSentinel ? discardSentinel(response.body, matcher.sseSentinel) : response.body;
35396
35601
  break;
35397
35602
  case "nil":
35398
35603
  raw = await discardResponseBody(response);
@@ -35468,6 +35673,7 @@ async function discardResponseBody(res) {
35468
35673
  var DEFAULT_CONTENT_TYPES, headerValRE;
35469
35674
  var init_matchers = __esm(() => {
35470
35675
  init_apierror();
35676
+ init_event_streams();
35471
35677
  init_http();
35472
35678
  init_schemas();
35473
35679
  DEFAULT_CONTENT_TYPES = {
@@ -36065,7 +36271,7 @@ var init_bulkcreatedatapoints = __esm(() => {
36065
36271
  created_by_id: stringType().optional(),
36066
36272
  updated_by_id: stringType().optional(),
36067
36273
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36068
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
36274
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
36069
36275
  }).transform((v2) => {
36070
36276
  return remap(v2, {
36071
36277
  _id: "id",
@@ -36086,7 +36292,7 @@ var init_bulkcreatedatapoints = __esm(() => {
36086
36292
  createdById: stringType().optional(),
36087
36293
  updatedById: stringType().optional(),
36088
36294
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36089
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
36295
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
36090
36296
  }).transform((v2) => {
36091
36297
  return remap(v2, {
36092
36298
  id: "_id",
@@ -36174,7 +36380,7 @@ var init_createcontact = __esm(() => {
36174
36380
  tags: arrayType(stringType()).optional(),
36175
36381
  metadata: recordType(anyType()).optional(),
36176
36382
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36177
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
36383
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
36178
36384
  }).transform((v2) => {
36179
36385
  return remap(v2, {
36180
36386
  external_id: "externalId",
@@ -36191,7 +36397,7 @@ var init_createcontact = __esm(() => {
36191
36397
  tags: arrayType(stringType()).optional(),
36192
36398
  metadata: recordType(anyType()).optional(),
36193
36399
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36194
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
36400
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
36195
36401
  }).transform((v2) => {
36196
36402
  return remap(v2, {
36197
36403
  externalId: "external_id",
@@ -36261,7 +36467,7 @@ var init_createdataset = __esm(() => {
36261
36467
  updated_by_id: stringType().optional(),
36262
36468
  metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
36263
36469
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36264
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
36470
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
36265
36471
  }).transform((v2) => {
36266
36472
  return remap(v2, {
36267
36473
  _id: "id",
@@ -36281,7 +36487,7 @@ var init_createdataset = __esm(() => {
36281
36487
  updatedById: stringType().optional(),
36282
36488
  metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
36283
36489
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36284
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
36490
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
36285
36491
  }).transform((v2) => {
36286
36492
  return remap(v2, {
36287
36493
  id: "_id",
@@ -36717,7 +36923,7 @@ var init_createdatasetitem = __esm(() => {
36717
36923
  created_by_id: stringType().optional(),
36718
36924
  updated_by_id: stringType().optional(),
36719
36925
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36720
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
36926
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
36721
36927
  }).transform((v2) => {
36722
36928
  return remap(v2, {
36723
36929
  _id: "id",
@@ -36738,7 +36944,7 @@ var init_createdatasetitem = __esm(() => {
36738
36944
  createdById: stringType().optional(),
36739
36945
  updatedById: stringType().optional(),
36740
36946
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36741
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
36947
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
36742
36948
  }).transform((v2) => {
36743
36949
  return remap(v2, {
36744
36950
  id: "_id",
@@ -41479,35 +41685,1431 @@ var init_deployments = __esm(() => {
41479
41685
  version: stringType()
41480
41686
  }).transform((v2) => {
41481
41687
  return remap(v2, {
41482
- promptConfig: "prompt_config"
41688
+ promptConfig: "prompt_config"
41689
+ });
41690
+ });
41691
+ ((Data$) => {
41692
+ Data$.inboundSchema = Data$inboundSchema;
41693
+ Data$.outboundSchema = Data$outboundSchema;
41694
+ })(Data$ ||= {});
41695
+ DeploymentsResponseBody$inboundSchema = objectType({
41696
+ object: ObjectT$inboundSchema,
41697
+ data: arrayType(lazyType(() => Data$inboundSchema)),
41698
+ has_more: booleanType()
41699
+ }).transform((v2) => {
41700
+ return remap(v2, {
41701
+ has_more: "hasMore"
41702
+ });
41703
+ });
41704
+ DeploymentsResponseBody$outboundSchema = objectType({
41705
+ object: ObjectT$outboundSchema,
41706
+ data: arrayType(lazyType(() => Data$outboundSchema)),
41707
+ hasMore: booleanType()
41708
+ }).transform((v2) => {
41709
+ return remap(v2, {
41710
+ hasMore: "has_more"
41711
+ });
41712
+ });
41713
+ ((DeploymentsResponseBody$) => {
41714
+ DeploymentsResponseBody$.inboundSchema = DeploymentsResponseBody$inboundSchema;
41715
+ DeploymentsResponseBody$.outboundSchema = DeploymentsResponseBody$outboundSchema;
41716
+ })(DeploymentsResponseBody$ ||= {});
41717
+ });
41718
+
41719
+ // src/models/operations/deploymentstream.ts
41720
+ var DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType, DeploymentStream2DeploymentsRequestRequestBodyType, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole, DeploymentStreamPrefixMessagesType, DeploymentStreamPrefixMessagesDeploymentsRequestRole, DeploymentStream2DeploymentsRequestType, DeploymentStream2Format, DeploymentStream2DeploymentsType, DeploymentStream2Detail, DeploymentStream2Type, DeploymentStreamPrefixMessagesDeploymentsRole, DeploymentStreamPrefixMessagesRole, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole, DeploymentStreamMessagesType, DeploymentStreamMessagesDeploymentsRequestRole, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType, DeploymentStream2DeploymentsFormat, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type, DeploymentStream2DeploymentsDetail, DeploymentStream2DeploymentsRequestRequestBodyMessagesType, DeploymentStreamMessagesDeploymentsRole, DeploymentStreamMessagesRole, DeploymentStreamObject, DeploymentStreamProvider, DeploymentStreamMessageDeploymentsResponseRole, DeploymentStreamMessageDeploymentsRole, DeploymentStreamMessageRole, DeploymentStreamMessageType, DeploymentStreamGlobals$inboundSchema, DeploymentStreamGlobals$outboundSchema, DeploymentStreamGlobals$, DeploymentStreamInputs$inboundSchema, DeploymentStreamInputs$outboundSchema, DeploymentStreamInputs$, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$, DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestContent$, PrefixMessagesToolMessage$inboundSchema, PrefixMessagesToolMessage$outboundSchema, PrefixMessagesToolMessage$, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$, DeploymentStream2RefusalContentPart$inboundSchema, DeploymentStream2RefusalContentPart$outboundSchema, DeploymentStream2RefusalContentPart$, DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyType$, DeploymentStream2TextContentPart$inboundSchema, DeploymentStream2TextContentPart$outboundSchema, DeploymentStream2TextContentPart$, DeploymentStreamContentDeployments2$inboundSchema, DeploymentStreamContentDeployments2$outboundSchema, DeploymentStreamContentDeployments2$, DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsContent$, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$, PrefixMessagesAudio$inboundSchema, PrefixMessagesAudio$outboundSchema, PrefixMessagesAudio$, DeploymentStreamPrefixMessagesType$inboundSchema, DeploymentStreamPrefixMessagesType$outboundSchema, DeploymentStreamPrefixMessagesType$, PrefixMessagesFunction$inboundSchema, PrefixMessagesFunction$outboundSchema, PrefixMessagesFunction$, PrefixMessagesToolCalls$inboundSchema, PrefixMessagesToolCalls$outboundSchema, PrefixMessagesToolCalls$, PrefixMessagesAssistantMessage$inboundSchema, PrefixMessagesAssistantMessage$outboundSchema, PrefixMessagesAssistantMessage$, DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRole$, DeploymentStream2DeploymentsRequestType$inboundSchema, DeploymentStream2DeploymentsRequestType$outboundSchema, DeploymentStream2DeploymentsRequestType$, DeploymentStream2Format$inboundSchema, DeploymentStream2Format$outboundSchema, DeploymentStream2Format$, DeploymentStream2InputAudio$inboundSchema, DeploymentStream2InputAudio$outboundSchema, DeploymentStream2InputAudio$, DeploymentStream23$inboundSchema, DeploymentStream23$outboundSchema, DeploymentStream23$, DeploymentStream2DeploymentsType$inboundSchema, DeploymentStream2DeploymentsType$outboundSchema, DeploymentStream2DeploymentsType$, DeploymentStream2Detail$inboundSchema, DeploymentStream2Detail$outboundSchema, DeploymentStream2Detail$, DeploymentStream2ImageUrl$inboundSchema, DeploymentStream2ImageUrl$outboundSchema, DeploymentStream2ImageUrl$, DeploymentStream22$inboundSchema, DeploymentStream22$outboundSchema, DeploymentStream22$, DeploymentStream2Type$inboundSchema, DeploymentStream2Type$outboundSchema, DeploymentStream2Type$, DeploymentStream21$inboundSchema, DeploymentStream21$outboundSchema, DeploymentStream21$, DeploymentStreamContent2$inboundSchema, DeploymentStreamContent2$outboundSchema, DeploymentStreamContent2$, DeploymentStreamPrefixMessagesContent$inboundSchema, DeploymentStreamPrefixMessagesContent$outboundSchema, DeploymentStreamPrefixMessagesContent$, PrefixMessagesUserMessage$inboundSchema, PrefixMessagesUserMessage$outboundSchema, PrefixMessagesUserMessage$, DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRole$, PrefixMessagesSystemMessage$inboundSchema, PrefixMessagesSystemMessage$outboundSchema, PrefixMessagesSystemMessage$, DeploymentStreamPrefixMessagesRole$inboundSchema, DeploymentStreamPrefixMessagesRole$outboundSchema, DeploymentStreamPrefixMessagesRole$, PrefixMessagesDeveloperMessage$inboundSchema, PrefixMessagesDeveloperMessage$outboundSchema, PrefixMessagesDeveloperMessage$, DeploymentStreamPrefixMessages$inboundSchema, DeploymentStreamPrefixMessages$outboundSchema, DeploymentStreamPrefixMessages$, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$, DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema, DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema, DeploymentStreamMessagesDeploymentsRequestContent$, DeploymentStreamMessagesToolMessage$inboundSchema, DeploymentStreamMessagesToolMessage$outboundSchema, DeploymentStreamMessagesToolMessage$, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$, DeploymentStream2DeploymentsRefusalContentPart$inboundSchema, DeploymentStream2DeploymentsRefusalContentPart$outboundSchema, DeploymentStream2DeploymentsRefusalContentPart$, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$, DeploymentStream2DeploymentsTextContentPart$inboundSchema, DeploymentStream2DeploymentsTextContentPart$outboundSchema, DeploymentStream2DeploymentsTextContentPart$, DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema, DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema, DeploymentStreamContentDeploymentsRequestRequestBody2$, DeploymentStreamMessagesDeploymentsContent$inboundSchema, DeploymentStreamMessagesDeploymentsContent$outboundSchema, DeploymentStreamMessagesDeploymentsContent$, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$, DeploymentStreamMessagesAudio$inboundSchema, DeploymentStreamMessagesAudio$outboundSchema, DeploymentStreamMessagesAudio$, DeploymentStreamMessagesType$inboundSchema, DeploymentStreamMessagesType$outboundSchema, DeploymentStreamMessagesType$, DeploymentStreamMessagesFunction$inboundSchema, DeploymentStreamMessagesFunction$outboundSchema, DeploymentStreamMessagesFunction$, DeploymentStreamMessagesToolCalls$inboundSchema, DeploymentStreamMessagesToolCalls$outboundSchema, DeploymentStreamMessagesToolCalls$, DeploymentStreamMessagesAssistantMessage$inboundSchema, DeploymentStreamMessagesAssistantMessage$outboundSchema, DeploymentStreamMessagesAssistantMessage$, DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRole$, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$, DeploymentStream2DeploymentsFormat$inboundSchema, DeploymentStream2DeploymentsFormat$outboundSchema, DeploymentStream2DeploymentsFormat$, DeploymentStream2DeploymentsInputAudio$inboundSchema, DeploymentStream2DeploymentsInputAudio$outboundSchema, DeploymentStream2DeploymentsInputAudio$, DeploymentStream2Deployments3$inboundSchema, DeploymentStream2Deployments3$outboundSchema, DeploymentStream2Deployments3$, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$, DeploymentStream2DeploymentsDetail$inboundSchema, DeploymentStream2DeploymentsDetail$outboundSchema, DeploymentStream2DeploymentsDetail$, DeploymentStream2DeploymentsImageUrl$inboundSchema, DeploymentStream2DeploymentsImageUrl$outboundSchema, DeploymentStream2DeploymentsImageUrl$, DeploymentStream2Deployments2$inboundSchema, DeploymentStream2Deployments2$outboundSchema, DeploymentStream2Deployments2$, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$, DeploymentStream2Deployments1$inboundSchema, DeploymentStream2Deployments1$outboundSchema, DeploymentStream2Deployments1$, DeploymentStreamContentDeploymentsRequest2$inboundSchema, DeploymentStreamContentDeploymentsRequest2$outboundSchema, DeploymentStreamContentDeploymentsRequest2$, DeploymentStreamMessagesContent$inboundSchema, DeploymentStreamMessagesContent$outboundSchema, DeploymentStreamMessagesContent$, DeploymentStreamMessagesUserMessage$inboundSchema, DeploymentStreamMessagesUserMessage$outboundSchema, DeploymentStreamMessagesUserMessage$, DeploymentStreamMessagesDeploymentsRole$inboundSchema, DeploymentStreamMessagesDeploymentsRole$outboundSchema, DeploymentStreamMessagesDeploymentsRole$, DeploymentStreamMessagesSystemMessage$inboundSchema, DeploymentStreamMessagesSystemMessage$outboundSchema, DeploymentStreamMessagesSystemMessage$, DeploymentStreamMessagesRole$inboundSchema, DeploymentStreamMessagesRole$outboundSchema, DeploymentStreamMessagesRole$, DeploymentStreamMessagesDeveloperMessage$inboundSchema, DeploymentStreamMessagesDeveloperMessage$outboundSchema, DeploymentStreamMessagesDeveloperMessage$, DeploymentStreamMessages$inboundSchema, DeploymentStreamMessages$outboundSchema, DeploymentStreamMessages$, DeploymentStreamMetadata$inboundSchema, DeploymentStreamMetadata$outboundSchema, DeploymentStreamMetadata$, DeploymentStreamDocuments$inboundSchema, DeploymentStreamDocuments$outboundSchema, DeploymentStreamDocuments$, DeploymentStreamInvokeOptions$inboundSchema, DeploymentStreamInvokeOptions$outboundSchema, DeploymentStreamInvokeOptions$, DeploymentStreamRequestBody$inboundSchema, DeploymentStreamRequestBody$outboundSchema, DeploymentStreamRequestBody$, DeploymentStreamObject$inboundSchema, DeploymentStreamObject$outboundSchema, DeploymentStreamObject$, DeploymentStreamProvider$inboundSchema, DeploymentStreamProvider$outboundSchema, DeploymentStreamProvider$, DeploymentStreamMessageDeploymentsResponseRole$inboundSchema, DeploymentStreamMessageDeploymentsResponseRole$outboundSchema, DeploymentStreamMessageDeploymentsResponseRole$, DeploymentStreamMessage3$inboundSchema, DeploymentStreamMessage3$outboundSchema, DeploymentStreamMessage3$, DeploymentStreamMessageDeploymentsRole$inboundSchema, DeploymentStreamMessageDeploymentsRole$outboundSchema, DeploymentStreamMessageDeploymentsRole$, DeploymentStreamMessage2$inboundSchema, DeploymentStreamMessage2$outboundSchema, DeploymentStreamMessage2$, DeploymentStreamMessageRole$inboundSchema, DeploymentStreamMessageRole$outboundSchema, DeploymentStreamMessageRole$, DeploymentStreamMessageType$inboundSchema, DeploymentStreamMessageType$outboundSchema, DeploymentStreamMessageType$, DeploymentStreamMessageFunction$inboundSchema, DeploymentStreamMessageFunction$outboundSchema, DeploymentStreamMessageFunction$, DeploymentStreamMessageToolCalls$inboundSchema, DeploymentStreamMessageToolCalls$outboundSchema, DeploymentStreamMessageToolCalls$, DeploymentStreamMessage1$inboundSchema, DeploymentStreamMessage1$outboundSchema, DeploymentStreamMessage1$, DeploymentStreamMessage$inboundSchema, DeploymentStreamMessage$outboundSchema, DeploymentStreamMessage$, DeploymentStreamChoices$inboundSchema, DeploymentStreamChoices$outboundSchema, DeploymentStreamChoices$, DeploymentStreamDeploymentsMetadata$inboundSchema, DeploymentStreamDeploymentsMetadata$outboundSchema, DeploymentStreamDeploymentsMetadata$, DeploymentStreamRetrievals$inboundSchema, DeploymentStreamRetrievals$outboundSchema, DeploymentStreamRetrievals$, DeploymentStreamData$inboundSchema, DeploymentStreamData$outboundSchema, DeploymentStreamData$, DeploymentStreamResponseBody$inboundSchema, DeploymentStreamResponseBody$outboundSchema, DeploymentStreamResponseBody$;
41721
+ var init_deploymentstream = __esm(() => {
41722
+ init_lib();
41723
+ init_primitives();
41724
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role = {
41725
+ Tool: "tool"
41726
+ };
41727
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType = {
41728
+ Refusal: "refusal"
41729
+ };
41730
+ DeploymentStream2DeploymentsRequestRequestBodyType = {
41731
+ Text: "text"
41732
+ };
41733
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole = {
41734
+ Assistant: "assistant"
41735
+ };
41736
+ DeploymentStreamPrefixMessagesType = {
41737
+ Function: "function"
41738
+ };
41739
+ DeploymentStreamPrefixMessagesDeploymentsRequestRole = {
41740
+ User: "user"
41741
+ };
41742
+ DeploymentStream2DeploymentsRequestType = {
41743
+ InputAudio: "input_audio"
41744
+ };
41745
+ DeploymentStream2Format = {
41746
+ Mp3: "mp3",
41747
+ Wav: "wav"
41748
+ };
41749
+ DeploymentStream2DeploymentsType = {
41750
+ ImageUrl: "image_url"
41751
+ };
41752
+ DeploymentStream2Detail = {
41753
+ Low: "low",
41754
+ High: "high",
41755
+ Auto: "auto"
41756
+ };
41757
+ DeploymentStream2Type = {
41758
+ Text: "text"
41759
+ };
41760
+ DeploymentStreamPrefixMessagesDeploymentsRole = {
41761
+ System: "system"
41762
+ };
41763
+ DeploymentStreamPrefixMessagesRole = {
41764
+ Developer: "developer"
41765
+ };
41766
+ DeploymentStreamMessagesDeploymentsRequestRequestBody5Role = {
41767
+ Tool: "tool"
41768
+ };
41769
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType = {
41770
+ Refusal: "refusal"
41771
+ };
41772
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4Type = {
41773
+ Text: "text"
41774
+ };
41775
+ DeploymentStreamMessagesDeploymentsRequestRequestBodyRole = {
41776
+ Assistant: "assistant"
41777
+ };
41778
+ DeploymentStreamMessagesType = {
41779
+ Function: "function"
41780
+ };
41781
+ DeploymentStreamMessagesDeploymentsRequestRole = {
41782
+ User: "user"
41783
+ };
41784
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType = {
41785
+ InputAudio: "input_audio"
41786
+ };
41787
+ DeploymentStream2DeploymentsFormat = {
41788
+ Mp3: "mp3",
41789
+ Wav: "wav"
41790
+ };
41791
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Type = {
41792
+ ImageUrl: "image_url"
41793
+ };
41794
+ DeploymentStream2DeploymentsDetail = {
41795
+ Low: "low",
41796
+ High: "high",
41797
+ Auto: "auto"
41798
+ };
41799
+ DeploymentStream2DeploymentsRequestRequestBodyMessagesType = {
41800
+ Text: "text"
41801
+ };
41802
+ DeploymentStreamMessagesDeploymentsRole = {
41803
+ System: "system"
41804
+ };
41805
+ DeploymentStreamMessagesRole = {
41806
+ Developer: "developer"
41807
+ };
41808
+ DeploymentStreamObject = {
41809
+ Chat: "chat",
41810
+ Completion: "completion",
41811
+ Image: "image",
41812
+ Vision: "vision"
41813
+ };
41814
+ DeploymentStreamProvider = {
41815
+ Cohere: "cohere",
41816
+ Openai: "openai",
41817
+ Anthropic: "anthropic",
41818
+ Huggingface: "huggingface",
41819
+ Replicate: "replicate",
41820
+ Google: "google",
41821
+ GoogleAi: "google-ai",
41822
+ Azure: "azure",
41823
+ Aws: "aws",
41824
+ Anyscale: "anyscale",
41825
+ Perplexity: "perplexity",
41826
+ Groq: "groq",
41827
+ Fal: "fal",
41828
+ Leonardoai: "leonardoai",
41829
+ Nvidia: "nvidia",
41830
+ Jina: "jina",
41831
+ Togetherai: "togetherai",
41832
+ Elevenlabs: "elevenlabs"
41833
+ };
41834
+ DeploymentStreamMessageDeploymentsResponseRole = {
41835
+ System: "system",
41836
+ Assistant: "assistant",
41837
+ User: "user",
41838
+ Exception: "exception",
41839
+ Tool: "tool",
41840
+ Prompt: "prompt",
41841
+ Correction: "correction",
41842
+ ExpectedOutput: "expected_output"
41843
+ };
41844
+ DeploymentStreamMessageDeploymentsRole = {
41845
+ System: "system",
41846
+ Assistant: "assistant",
41847
+ User: "user",
41848
+ Exception: "exception",
41849
+ Tool: "tool",
41850
+ Prompt: "prompt",
41851
+ Correction: "correction",
41852
+ ExpectedOutput: "expected_output"
41853
+ };
41854
+ DeploymentStreamMessageRole = {
41855
+ System: "system",
41856
+ Assistant: "assistant",
41857
+ User: "user",
41858
+ Exception: "exception",
41859
+ Tool: "tool",
41860
+ Prompt: "prompt",
41861
+ Correction: "correction",
41862
+ ExpectedOutput: "expected_output"
41863
+ };
41864
+ DeploymentStreamMessageType = {
41865
+ Function: "function"
41866
+ };
41867
+ DeploymentStreamGlobals$inboundSchema = objectType({
41868
+ environment: stringType().optional(),
41869
+ contactId: stringType().optional()
41870
+ });
41871
+ DeploymentStreamGlobals$outboundSchema = objectType({
41872
+ environment: stringType().optional(),
41873
+ contactId: stringType().optional()
41874
+ });
41875
+ ((DeploymentStreamGlobals$) => {
41876
+ DeploymentStreamGlobals$.inboundSchema = DeploymentStreamGlobals$inboundSchema;
41877
+ DeploymentStreamGlobals$.outboundSchema = DeploymentStreamGlobals$outboundSchema;
41878
+ })(DeploymentStreamGlobals$ ||= {});
41879
+ DeploymentStreamInputs$inboundSchema = unionType([stringType(), numberType(), booleanType()]);
41880
+ DeploymentStreamInputs$outboundSchema = unionType([stringType(), numberType(), booleanType()]);
41881
+ ((DeploymentStreamInputs$) => {
41882
+ DeploymentStreamInputs$.inboundSchema = DeploymentStreamInputs$inboundSchema;
41883
+ DeploymentStreamInputs$.outboundSchema = DeploymentStreamInputs$outboundSchema;
41884
+ })(DeploymentStreamInputs$ ||= {});
41885
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role);
41886
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
41887
+ ((DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$) => {
41888
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
41889
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema;
41890
+ })(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$ ||= {});
41891
+ DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema = unionType([stringType(), arrayType(stringType())]);
41892
+ DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema = unionType([stringType(), arrayType(stringType())]);
41893
+ ((DeploymentStreamPrefixMessagesDeploymentsRequestContent$) => {
41894
+ DeploymentStreamPrefixMessagesDeploymentsRequestContent$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema;
41895
+ DeploymentStreamPrefixMessagesDeploymentsRequestContent$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema;
41896
+ })(DeploymentStreamPrefixMessagesDeploymentsRequestContent$ ||= {});
41897
+ PrefixMessagesToolMessage$inboundSchema = objectType({
41898
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema,
41899
+ content: unionType([stringType(), arrayType(stringType())]),
41900
+ tool_call_id: stringType()
41901
+ }).transform((v2) => {
41902
+ return remap(v2, {
41903
+ tool_call_id: "toolCallId"
41904
+ });
41905
+ });
41906
+ PrefixMessagesToolMessage$outboundSchema = objectType({
41907
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema,
41908
+ content: unionType([stringType(), arrayType(stringType())]),
41909
+ toolCallId: stringType()
41910
+ }).transform((v2) => {
41911
+ return remap(v2, {
41912
+ toolCallId: "tool_call_id"
41913
+ });
41914
+ });
41915
+ ((PrefixMessagesToolMessage$) => {
41916
+ PrefixMessagesToolMessage$.inboundSchema = PrefixMessagesToolMessage$inboundSchema;
41917
+ PrefixMessagesToolMessage$.outboundSchema = PrefixMessagesToolMessage$outboundSchema;
41918
+ })(PrefixMessagesToolMessage$ ||= {});
41919
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType);
41920
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
41921
+ ((DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$) => {
41922
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
41923
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema;
41924
+ })(DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$ ||= {});
41925
+ DeploymentStream2RefusalContentPart$inboundSchema = objectType({
41926
+ type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
41927
+ refusal: stringType()
41928
+ });
41929
+ DeploymentStream2RefusalContentPart$outboundSchema = objectType({
41930
+ type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
41931
+ refusal: stringType()
41932
+ });
41933
+ ((DeploymentStream2RefusalContentPart$) => {
41934
+ DeploymentStream2RefusalContentPart$.inboundSchema = DeploymentStream2RefusalContentPart$inboundSchema;
41935
+ DeploymentStream2RefusalContentPart$.outboundSchema = DeploymentStream2RefusalContentPart$outboundSchema;
41936
+ })(DeploymentStream2RefusalContentPart$ ||= {});
41937
+ DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyType);
41938
+ DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
41939
+ ((DeploymentStream2DeploymentsRequestRequestBodyType$) => {
41940
+ DeploymentStream2DeploymentsRequestRequestBodyType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
41941
+ DeploymentStream2DeploymentsRequestRequestBodyType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema;
41942
+ })(DeploymentStream2DeploymentsRequestRequestBodyType$ ||= {});
41943
+ DeploymentStream2TextContentPart$inboundSchema = objectType({
41944
+ type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
41945
+ text: stringType()
41946
+ });
41947
+ DeploymentStream2TextContentPart$outboundSchema = objectType({
41948
+ type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
41949
+ text: stringType()
41950
+ });
41951
+ ((DeploymentStream2TextContentPart$) => {
41952
+ DeploymentStream2TextContentPart$.inboundSchema = DeploymentStream2TextContentPart$inboundSchema;
41953
+ DeploymentStream2TextContentPart$.outboundSchema = DeploymentStream2TextContentPart$outboundSchema;
41954
+ })(DeploymentStream2TextContentPart$ ||= {});
41955
+ DeploymentStreamContentDeployments2$inboundSchema = unionType([
41956
+ lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
41957
+ lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
41958
+ ]);
41959
+ DeploymentStreamContentDeployments2$outboundSchema = unionType([
41960
+ lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
41961
+ lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
41962
+ ]);
41963
+ ((DeploymentStreamContentDeployments2$) => {
41964
+ DeploymentStreamContentDeployments2$.inboundSchema = DeploymentStreamContentDeployments2$inboundSchema;
41965
+ DeploymentStreamContentDeployments2$.outboundSchema = DeploymentStreamContentDeployments2$outboundSchema;
41966
+ })(DeploymentStreamContentDeployments2$ ||= {});
41967
+ DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema = unionType([
41968
+ stringType(),
41969
+ arrayType(unionType([
41970
+ lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
41971
+ lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
41972
+ ]))
41973
+ ]);
41974
+ DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema = unionType([
41975
+ stringType(),
41976
+ arrayType(unionType([
41977
+ lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
41978
+ lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
41979
+ ]))
41980
+ ]);
41981
+ ((DeploymentStreamPrefixMessagesDeploymentsContent$) => {
41982
+ DeploymentStreamPrefixMessagesDeploymentsContent$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema;
41983
+ DeploymentStreamPrefixMessagesDeploymentsContent$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema;
41984
+ })(DeploymentStreamPrefixMessagesDeploymentsContent$ ||= {});
41985
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole);
41986
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
41987
+ ((DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$) => {
41988
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
41989
+ DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema;
41990
+ })(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$ ||= {});
41991
+ PrefixMessagesAudio$inboundSchema = objectType({
41992
+ id: stringType()
41993
+ });
41994
+ PrefixMessagesAudio$outboundSchema = objectType({
41995
+ id: stringType()
41996
+ });
41997
+ ((PrefixMessagesAudio$) => {
41998
+ PrefixMessagesAudio$.inboundSchema = PrefixMessagesAudio$inboundSchema;
41999
+ PrefixMessagesAudio$.outboundSchema = PrefixMessagesAudio$outboundSchema;
42000
+ })(PrefixMessagesAudio$ ||= {});
42001
+ DeploymentStreamPrefixMessagesType$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesType);
42002
+ DeploymentStreamPrefixMessagesType$outboundSchema = DeploymentStreamPrefixMessagesType$inboundSchema;
42003
+ ((DeploymentStreamPrefixMessagesType$) => {
42004
+ DeploymentStreamPrefixMessagesType$.inboundSchema = DeploymentStreamPrefixMessagesType$inboundSchema;
42005
+ DeploymentStreamPrefixMessagesType$.outboundSchema = DeploymentStreamPrefixMessagesType$outboundSchema;
42006
+ })(DeploymentStreamPrefixMessagesType$ ||= {});
42007
+ PrefixMessagesFunction$inboundSchema = objectType({
42008
+ name: stringType().optional(),
42009
+ arguments: stringType().optional()
42010
+ });
42011
+ PrefixMessagesFunction$outboundSchema = objectType({
42012
+ name: stringType().optional(),
42013
+ arguments: stringType().optional()
42014
+ });
42015
+ ((PrefixMessagesFunction$) => {
42016
+ PrefixMessagesFunction$.inboundSchema = PrefixMessagesFunction$inboundSchema;
42017
+ PrefixMessagesFunction$.outboundSchema = PrefixMessagesFunction$outboundSchema;
42018
+ })(PrefixMessagesFunction$ ||= {});
42019
+ PrefixMessagesToolCalls$inboundSchema = objectType({
42020
+ id: stringType(),
42021
+ type: DeploymentStreamPrefixMessagesType$inboundSchema,
42022
+ function: lazyType(() => PrefixMessagesFunction$inboundSchema)
42023
+ });
42024
+ PrefixMessagesToolCalls$outboundSchema = objectType({
42025
+ id: stringType(),
42026
+ type: DeploymentStreamPrefixMessagesType$outboundSchema,
42027
+ function: lazyType(() => PrefixMessagesFunction$outboundSchema)
42028
+ });
42029
+ ((PrefixMessagesToolCalls$) => {
42030
+ PrefixMessagesToolCalls$.inboundSchema = PrefixMessagesToolCalls$inboundSchema;
42031
+ PrefixMessagesToolCalls$.outboundSchema = PrefixMessagesToolCalls$outboundSchema;
42032
+ })(PrefixMessagesToolCalls$ ||= {});
42033
+ PrefixMessagesAssistantMessage$inboundSchema = objectType({
42034
+ content: unionType([
42035
+ stringType(),
42036
+ arrayType(unionType([
42037
+ lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
42038
+ lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
42039
+ ]))
42040
+ ]).optional(),
42041
+ refusal: nullableType(stringType()).optional(),
42042
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
42043
+ name: stringType().optional(),
42044
+ audio: nullableType(lazyType(() => PrefixMessagesAudio$inboundSchema)).optional(),
42045
+ tool_calls: arrayType(lazyType(() => PrefixMessagesToolCalls$inboundSchema)).optional()
42046
+ }).transform((v2) => {
42047
+ return remap(v2, {
42048
+ tool_calls: "toolCalls"
42049
+ });
42050
+ });
42051
+ PrefixMessagesAssistantMessage$outboundSchema = objectType({
42052
+ content: unionType([
42053
+ stringType(),
42054
+ arrayType(unionType([
42055
+ lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
42056
+ lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
42057
+ ]))
42058
+ ]).optional(),
42059
+ refusal: nullableType(stringType()).optional(),
42060
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
42061
+ name: stringType().optional(),
42062
+ audio: nullableType(lazyType(() => PrefixMessagesAudio$outboundSchema)).optional(),
42063
+ toolCalls: arrayType(lazyType(() => PrefixMessagesToolCalls$outboundSchema)).optional()
42064
+ }).transform((v2) => {
42065
+ return remap(v2, {
42066
+ toolCalls: "tool_calls"
42067
+ });
42068
+ });
42069
+ ((PrefixMessagesAssistantMessage$) => {
42070
+ PrefixMessagesAssistantMessage$.inboundSchema = PrefixMessagesAssistantMessage$inboundSchema;
42071
+ PrefixMessagesAssistantMessage$.outboundSchema = PrefixMessagesAssistantMessage$outboundSchema;
42072
+ })(PrefixMessagesAssistantMessage$ ||= {});
42073
+ DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRole);
42074
+ DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema;
42075
+ ((DeploymentStreamPrefixMessagesDeploymentsRequestRole$) => {
42076
+ DeploymentStreamPrefixMessagesDeploymentsRequestRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema;
42077
+ DeploymentStreamPrefixMessagesDeploymentsRequestRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema;
42078
+ })(DeploymentStreamPrefixMessagesDeploymentsRequestRole$ ||= {});
42079
+ DeploymentStream2DeploymentsRequestType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestType);
42080
+ DeploymentStream2DeploymentsRequestType$outboundSchema = DeploymentStream2DeploymentsRequestType$inboundSchema;
42081
+ ((DeploymentStream2DeploymentsRequestType$) => {
42082
+ DeploymentStream2DeploymentsRequestType$.inboundSchema = DeploymentStream2DeploymentsRequestType$inboundSchema;
42083
+ DeploymentStream2DeploymentsRequestType$.outboundSchema = DeploymentStream2DeploymentsRequestType$outboundSchema;
42084
+ })(DeploymentStream2DeploymentsRequestType$ ||= {});
42085
+ DeploymentStream2Format$inboundSchema = nativeEnumType(DeploymentStream2Format);
42086
+ DeploymentStream2Format$outboundSchema = DeploymentStream2Format$inboundSchema;
42087
+ ((DeploymentStream2Format$) => {
42088
+ DeploymentStream2Format$.inboundSchema = DeploymentStream2Format$inboundSchema;
42089
+ DeploymentStream2Format$.outboundSchema = DeploymentStream2Format$outboundSchema;
42090
+ })(DeploymentStream2Format$ ||= {});
42091
+ DeploymentStream2InputAudio$inboundSchema = objectType({
42092
+ data: stringType(),
42093
+ format: DeploymentStream2Format$inboundSchema
42094
+ });
42095
+ DeploymentStream2InputAudio$outboundSchema = objectType({
42096
+ data: stringType(),
42097
+ format: DeploymentStream2Format$outboundSchema
42098
+ });
42099
+ ((DeploymentStream2InputAudio$) => {
42100
+ DeploymentStream2InputAudio$.inboundSchema = DeploymentStream2InputAudio$inboundSchema;
42101
+ DeploymentStream2InputAudio$.outboundSchema = DeploymentStream2InputAudio$outboundSchema;
42102
+ })(DeploymentStream2InputAudio$ ||= {});
42103
+ DeploymentStream23$inboundSchema = objectType({
42104
+ type: DeploymentStream2DeploymentsRequestType$inboundSchema,
42105
+ input_audio: lazyType(() => DeploymentStream2InputAudio$inboundSchema)
42106
+ }).transform((v2) => {
42107
+ return remap(v2, {
42108
+ input_audio: "inputAudio"
42109
+ });
42110
+ });
42111
+ DeploymentStream23$outboundSchema = objectType({
42112
+ type: DeploymentStream2DeploymentsRequestType$outboundSchema,
42113
+ inputAudio: lazyType(() => DeploymentStream2InputAudio$outboundSchema)
42114
+ }).transform((v2) => {
42115
+ return remap(v2, {
42116
+ inputAudio: "input_audio"
42117
+ });
42118
+ });
42119
+ ((DeploymentStream23$) => {
42120
+ DeploymentStream23$.inboundSchema = DeploymentStream23$inboundSchema;
42121
+ DeploymentStream23$.outboundSchema = DeploymentStream23$outboundSchema;
42122
+ })(DeploymentStream23$ ||= {});
42123
+ DeploymentStream2DeploymentsType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsType);
42124
+ DeploymentStream2DeploymentsType$outboundSchema = DeploymentStream2DeploymentsType$inboundSchema;
42125
+ ((DeploymentStream2DeploymentsType$) => {
42126
+ DeploymentStream2DeploymentsType$.inboundSchema = DeploymentStream2DeploymentsType$inboundSchema;
42127
+ DeploymentStream2DeploymentsType$.outboundSchema = DeploymentStream2DeploymentsType$outboundSchema;
42128
+ })(DeploymentStream2DeploymentsType$ ||= {});
42129
+ DeploymentStream2Detail$inboundSchema = nativeEnumType(DeploymentStream2Detail);
42130
+ DeploymentStream2Detail$outboundSchema = DeploymentStream2Detail$inboundSchema;
42131
+ ((DeploymentStream2Detail$) => {
42132
+ DeploymentStream2Detail$.inboundSchema = DeploymentStream2Detail$inboundSchema;
42133
+ DeploymentStream2Detail$.outboundSchema = DeploymentStream2Detail$outboundSchema;
42134
+ })(DeploymentStream2Detail$ ||= {});
42135
+ DeploymentStream2ImageUrl$inboundSchema = objectType({
42136
+ url: stringType(),
42137
+ detail: DeploymentStream2Detail$inboundSchema.optional()
42138
+ });
42139
+ DeploymentStream2ImageUrl$outboundSchema = objectType({
42140
+ url: stringType(),
42141
+ detail: DeploymentStream2Detail$outboundSchema.optional()
42142
+ });
42143
+ ((DeploymentStream2ImageUrl$) => {
42144
+ DeploymentStream2ImageUrl$.inboundSchema = DeploymentStream2ImageUrl$inboundSchema;
42145
+ DeploymentStream2ImageUrl$.outboundSchema = DeploymentStream2ImageUrl$outboundSchema;
42146
+ })(DeploymentStream2ImageUrl$ ||= {});
42147
+ DeploymentStream22$inboundSchema = objectType({
42148
+ type: DeploymentStream2DeploymentsType$inboundSchema,
42149
+ image_url: lazyType(() => DeploymentStream2ImageUrl$inboundSchema)
42150
+ }).transform((v2) => {
42151
+ return remap(v2, {
42152
+ image_url: "imageUrl"
42153
+ });
42154
+ });
42155
+ DeploymentStream22$outboundSchema = objectType({
42156
+ type: DeploymentStream2DeploymentsType$outboundSchema,
42157
+ imageUrl: lazyType(() => DeploymentStream2ImageUrl$outboundSchema)
42158
+ }).transform((v2) => {
42159
+ return remap(v2, {
42160
+ imageUrl: "image_url"
42161
+ });
42162
+ });
42163
+ ((DeploymentStream22$) => {
42164
+ DeploymentStream22$.inboundSchema = DeploymentStream22$inboundSchema;
42165
+ DeploymentStream22$.outboundSchema = DeploymentStream22$outboundSchema;
42166
+ })(DeploymentStream22$ ||= {});
42167
+ DeploymentStream2Type$inboundSchema = nativeEnumType(DeploymentStream2Type);
42168
+ DeploymentStream2Type$outboundSchema = DeploymentStream2Type$inboundSchema;
42169
+ ((DeploymentStream2Type$) => {
42170
+ DeploymentStream2Type$.inboundSchema = DeploymentStream2Type$inboundSchema;
42171
+ DeploymentStream2Type$.outboundSchema = DeploymentStream2Type$outboundSchema;
42172
+ })(DeploymentStream2Type$ ||= {});
42173
+ DeploymentStream21$inboundSchema = objectType({
42174
+ type: DeploymentStream2Type$inboundSchema,
42175
+ text: stringType()
42176
+ });
42177
+ DeploymentStream21$outboundSchema = objectType({
42178
+ type: DeploymentStream2Type$outboundSchema,
42179
+ text: stringType()
42180
+ });
42181
+ ((DeploymentStream21$) => {
42182
+ DeploymentStream21$.inboundSchema = DeploymentStream21$inboundSchema;
42183
+ DeploymentStream21$.outboundSchema = DeploymentStream21$outboundSchema;
42184
+ })(DeploymentStream21$ ||= {});
42185
+ DeploymentStreamContent2$inboundSchema = unionType([
42186
+ lazyType(() => DeploymentStream21$inboundSchema),
42187
+ lazyType(() => DeploymentStream22$inboundSchema),
42188
+ lazyType(() => DeploymentStream23$inboundSchema)
42189
+ ]);
42190
+ DeploymentStreamContent2$outboundSchema = unionType([
42191
+ lazyType(() => DeploymentStream21$outboundSchema),
42192
+ lazyType(() => DeploymentStream22$outboundSchema),
42193
+ lazyType(() => DeploymentStream23$outboundSchema)
42194
+ ]);
42195
+ ((DeploymentStreamContent2$) => {
42196
+ DeploymentStreamContent2$.inboundSchema = DeploymentStreamContent2$inboundSchema;
42197
+ DeploymentStreamContent2$.outboundSchema = DeploymentStreamContent2$outboundSchema;
42198
+ })(DeploymentStreamContent2$ ||= {});
42199
+ DeploymentStreamPrefixMessagesContent$inboundSchema = unionType([
42200
+ stringType(),
42201
+ arrayType(unionType([
42202
+ lazyType(() => DeploymentStream21$inboundSchema),
42203
+ lazyType(() => DeploymentStream22$inboundSchema),
42204
+ lazyType(() => DeploymentStream23$inboundSchema)
42205
+ ]))
42206
+ ]);
42207
+ DeploymentStreamPrefixMessagesContent$outboundSchema = unionType([
42208
+ stringType(),
42209
+ arrayType(unionType([
42210
+ lazyType(() => DeploymentStream21$outboundSchema),
42211
+ lazyType(() => DeploymentStream22$outboundSchema),
42212
+ lazyType(() => DeploymentStream23$outboundSchema)
42213
+ ]))
42214
+ ]);
42215
+ ((DeploymentStreamPrefixMessagesContent$) => {
42216
+ DeploymentStreamPrefixMessagesContent$.inboundSchema = DeploymentStreamPrefixMessagesContent$inboundSchema;
42217
+ DeploymentStreamPrefixMessagesContent$.outboundSchema = DeploymentStreamPrefixMessagesContent$outboundSchema;
42218
+ })(DeploymentStreamPrefixMessagesContent$ ||= {});
42219
+ PrefixMessagesUserMessage$inboundSchema = objectType({
42220
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema,
42221
+ name: stringType().optional(),
42222
+ content: unionType([
42223
+ stringType(),
42224
+ arrayType(unionType([
42225
+ lazyType(() => DeploymentStream21$inboundSchema),
42226
+ lazyType(() => DeploymentStream22$inboundSchema),
42227
+ lazyType(() => DeploymentStream23$inboundSchema)
42228
+ ]))
42229
+ ])
42230
+ });
42231
+ PrefixMessagesUserMessage$outboundSchema = objectType({
42232
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema,
42233
+ name: stringType().optional(),
42234
+ content: unionType([
42235
+ stringType(),
42236
+ arrayType(unionType([
42237
+ lazyType(() => DeploymentStream21$outboundSchema),
42238
+ lazyType(() => DeploymentStream22$outboundSchema),
42239
+ lazyType(() => DeploymentStream23$outboundSchema)
42240
+ ]))
42241
+ ])
42242
+ });
42243
+ ((PrefixMessagesUserMessage$) => {
42244
+ PrefixMessagesUserMessage$.inboundSchema = PrefixMessagesUserMessage$inboundSchema;
42245
+ PrefixMessagesUserMessage$.outboundSchema = PrefixMessagesUserMessage$outboundSchema;
42246
+ })(PrefixMessagesUserMessage$ ||= {});
42247
+ DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRole);
42248
+ DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema;
42249
+ ((DeploymentStreamPrefixMessagesDeploymentsRole$) => {
42250
+ DeploymentStreamPrefixMessagesDeploymentsRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema;
42251
+ DeploymentStreamPrefixMessagesDeploymentsRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema;
42252
+ })(DeploymentStreamPrefixMessagesDeploymentsRole$ ||= {});
42253
+ PrefixMessagesSystemMessage$inboundSchema = objectType({
42254
+ role: DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema,
42255
+ content: stringType(),
42256
+ name: stringType().optional()
42257
+ });
42258
+ PrefixMessagesSystemMessage$outboundSchema = objectType({
42259
+ role: DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema,
42260
+ content: stringType(),
42261
+ name: stringType().optional()
42262
+ });
42263
+ ((PrefixMessagesSystemMessage$) => {
42264
+ PrefixMessagesSystemMessage$.inboundSchema = PrefixMessagesSystemMessage$inboundSchema;
42265
+ PrefixMessagesSystemMessage$.outboundSchema = PrefixMessagesSystemMessage$outboundSchema;
42266
+ })(PrefixMessagesSystemMessage$ ||= {});
42267
+ DeploymentStreamPrefixMessagesRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesRole);
42268
+ DeploymentStreamPrefixMessagesRole$outboundSchema = DeploymentStreamPrefixMessagesRole$inboundSchema;
42269
+ ((DeploymentStreamPrefixMessagesRole$) => {
42270
+ DeploymentStreamPrefixMessagesRole$.inboundSchema = DeploymentStreamPrefixMessagesRole$inboundSchema;
42271
+ DeploymentStreamPrefixMessagesRole$.outboundSchema = DeploymentStreamPrefixMessagesRole$outboundSchema;
42272
+ })(DeploymentStreamPrefixMessagesRole$ ||= {});
42273
+ PrefixMessagesDeveloperMessage$inboundSchema = objectType({
42274
+ role: DeploymentStreamPrefixMessagesRole$inboundSchema,
42275
+ content: stringType(),
42276
+ name: stringType().optional()
42277
+ });
42278
+ PrefixMessagesDeveloperMessage$outboundSchema = objectType({
42279
+ role: DeploymentStreamPrefixMessagesRole$outboundSchema,
42280
+ content: stringType(),
42281
+ name: stringType().optional()
42282
+ });
42283
+ ((PrefixMessagesDeveloperMessage$) => {
42284
+ PrefixMessagesDeveloperMessage$.inboundSchema = PrefixMessagesDeveloperMessage$inboundSchema;
42285
+ PrefixMessagesDeveloperMessage$.outboundSchema = PrefixMessagesDeveloperMessage$outboundSchema;
42286
+ })(PrefixMessagesDeveloperMessage$ ||= {});
42287
+ DeploymentStreamPrefixMessages$inboundSchema = unionType([
42288
+ lazyType(() => PrefixMessagesDeveloperMessage$inboundSchema),
42289
+ lazyType(() => PrefixMessagesSystemMessage$inboundSchema),
42290
+ lazyType(() => PrefixMessagesUserMessage$inboundSchema),
42291
+ lazyType(() => PrefixMessagesToolMessage$inboundSchema),
42292
+ lazyType(() => PrefixMessagesAssistantMessage$inboundSchema)
42293
+ ]);
42294
+ DeploymentStreamPrefixMessages$outboundSchema = unionType([
42295
+ lazyType(() => PrefixMessagesDeveloperMessage$outboundSchema),
42296
+ lazyType(() => PrefixMessagesSystemMessage$outboundSchema),
42297
+ lazyType(() => PrefixMessagesUserMessage$outboundSchema),
42298
+ lazyType(() => PrefixMessagesToolMessage$outboundSchema),
42299
+ lazyType(() => PrefixMessagesAssistantMessage$outboundSchema)
42300
+ ]);
42301
+ ((DeploymentStreamPrefixMessages$) => {
42302
+ DeploymentStreamPrefixMessages$.inboundSchema = DeploymentStreamPrefixMessages$inboundSchema;
42303
+ DeploymentStreamPrefixMessages$.outboundSchema = DeploymentStreamPrefixMessages$outboundSchema;
42304
+ })(DeploymentStreamPrefixMessages$ ||= {});
42305
+ DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRequestBody5Role);
42306
+ DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
42307
+ ((DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$) => {
42308
+ DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
42309
+ DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema;
42310
+ })(DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$ ||= {});
42311
+ DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema = unionType([stringType(), arrayType(stringType())]);
42312
+ DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema = unionType([stringType(), arrayType(stringType())]);
42313
+ ((DeploymentStreamMessagesDeploymentsRequestContent$) => {
42314
+ DeploymentStreamMessagesDeploymentsRequestContent$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema;
42315
+ DeploymentStreamMessagesDeploymentsRequestContent$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema;
42316
+ })(DeploymentStreamMessagesDeploymentsRequestContent$ ||= {});
42317
+ DeploymentStreamMessagesToolMessage$inboundSchema = objectType({
42318
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema,
42319
+ content: unionType([stringType(), arrayType(stringType())]),
42320
+ tool_call_id: stringType()
42321
+ }).transform((v2) => {
42322
+ return remap(v2, {
42323
+ tool_call_id: "toolCallId"
42324
+ });
42325
+ });
42326
+ DeploymentStreamMessagesToolMessage$outboundSchema = objectType({
42327
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema,
42328
+ content: unionType([stringType(), arrayType(stringType())]),
42329
+ toolCallId: stringType()
42330
+ }).transform((v2) => {
42331
+ return remap(v2, {
42332
+ toolCallId: "tool_call_id"
42333
+ });
42334
+ });
42335
+ ((DeploymentStreamMessagesToolMessage$) => {
42336
+ DeploymentStreamMessagesToolMessage$.inboundSchema = DeploymentStreamMessagesToolMessage$inboundSchema;
42337
+ DeploymentStreamMessagesToolMessage$.outboundSchema = DeploymentStreamMessagesToolMessage$outboundSchema;
42338
+ })(DeploymentStreamMessagesToolMessage$ ||= {});
42339
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType);
42340
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
42341
+ ((DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$) => {
42342
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
42343
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema;
42344
+ })(DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$ ||= {});
42345
+ DeploymentStream2DeploymentsRefusalContentPart$inboundSchema = objectType({
42346
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
42347
+ refusal: stringType()
42348
+ });
42349
+ DeploymentStream2DeploymentsRefusalContentPart$outboundSchema = objectType({
42350
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
42351
+ refusal: stringType()
42352
+ });
42353
+ ((DeploymentStream2DeploymentsRefusalContentPart$) => {
42354
+ DeploymentStream2DeploymentsRefusalContentPart$.inboundSchema = DeploymentStream2DeploymentsRefusalContentPart$inboundSchema;
42355
+ DeploymentStream2DeploymentsRefusalContentPart$.outboundSchema = DeploymentStream2DeploymentsRefusalContentPart$outboundSchema;
42356
+ })(DeploymentStream2DeploymentsRefusalContentPart$ ||= {});
42357
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages4Type);
42358
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema;
42359
+ ((DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$) => {
42360
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema;
42361
+ DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema;
42362
+ })(DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$ ||= {});
42363
+ DeploymentStream2DeploymentsTextContentPart$inboundSchema = objectType({
42364
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema,
42365
+ text: stringType()
42366
+ });
42367
+ DeploymentStream2DeploymentsTextContentPart$outboundSchema = objectType({
42368
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema,
42369
+ text: stringType()
42370
+ });
42371
+ ((DeploymentStream2DeploymentsTextContentPart$) => {
42372
+ DeploymentStream2DeploymentsTextContentPart$.inboundSchema = DeploymentStream2DeploymentsTextContentPart$inboundSchema;
42373
+ DeploymentStream2DeploymentsTextContentPart$.outboundSchema = DeploymentStream2DeploymentsTextContentPart$outboundSchema;
42374
+ })(DeploymentStream2DeploymentsTextContentPart$ ||= {});
42375
+ DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema = unionType([
42376
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
42377
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
42378
+ ]);
42379
+ DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema = unionType([
42380
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
42381
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
42382
+ ]);
42383
+ ((DeploymentStreamContentDeploymentsRequestRequestBody2$) => {
42384
+ DeploymentStreamContentDeploymentsRequestRequestBody2$.inboundSchema = DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema;
42385
+ DeploymentStreamContentDeploymentsRequestRequestBody2$.outboundSchema = DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema;
42386
+ })(DeploymentStreamContentDeploymentsRequestRequestBody2$ ||= {});
42387
+ DeploymentStreamMessagesDeploymentsContent$inboundSchema = unionType([
42388
+ stringType(),
42389
+ arrayType(unionType([
42390
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
42391
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
42392
+ ]))
42393
+ ]);
42394
+ DeploymentStreamMessagesDeploymentsContent$outboundSchema = unionType([
42395
+ stringType(),
42396
+ arrayType(unionType([
42397
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
42398
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
42399
+ ]))
42400
+ ]);
42401
+ ((DeploymentStreamMessagesDeploymentsContent$) => {
42402
+ DeploymentStreamMessagesDeploymentsContent$.inboundSchema = DeploymentStreamMessagesDeploymentsContent$inboundSchema;
42403
+ DeploymentStreamMessagesDeploymentsContent$.outboundSchema = DeploymentStreamMessagesDeploymentsContent$outboundSchema;
42404
+ })(DeploymentStreamMessagesDeploymentsContent$ ||= {});
42405
+ DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRequestBodyRole);
42406
+ DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
42407
+ ((DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$) => {
42408
+ DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
42409
+ DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema;
42410
+ })(DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$ ||= {});
42411
+ DeploymentStreamMessagesAudio$inboundSchema = objectType({
42412
+ id: stringType()
42413
+ });
42414
+ DeploymentStreamMessagesAudio$outboundSchema = objectType({
42415
+ id: stringType()
42416
+ });
42417
+ ((DeploymentStreamMessagesAudio$) => {
42418
+ DeploymentStreamMessagesAudio$.inboundSchema = DeploymentStreamMessagesAudio$inboundSchema;
42419
+ DeploymentStreamMessagesAudio$.outboundSchema = DeploymentStreamMessagesAudio$outboundSchema;
42420
+ })(DeploymentStreamMessagesAudio$ ||= {});
42421
+ DeploymentStreamMessagesType$inboundSchema = nativeEnumType(DeploymentStreamMessagesType);
42422
+ DeploymentStreamMessagesType$outboundSchema = DeploymentStreamMessagesType$inboundSchema;
42423
+ ((DeploymentStreamMessagesType$) => {
42424
+ DeploymentStreamMessagesType$.inboundSchema = DeploymentStreamMessagesType$inboundSchema;
42425
+ DeploymentStreamMessagesType$.outboundSchema = DeploymentStreamMessagesType$outboundSchema;
42426
+ })(DeploymentStreamMessagesType$ ||= {});
42427
+ DeploymentStreamMessagesFunction$inboundSchema = objectType({
42428
+ name: stringType().optional(),
42429
+ arguments: stringType().optional()
42430
+ });
42431
+ DeploymentStreamMessagesFunction$outboundSchema = objectType({
42432
+ name: stringType().optional(),
42433
+ arguments: stringType().optional()
42434
+ });
42435
+ ((DeploymentStreamMessagesFunction$) => {
42436
+ DeploymentStreamMessagesFunction$.inboundSchema = DeploymentStreamMessagesFunction$inboundSchema;
42437
+ DeploymentStreamMessagesFunction$.outboundSchema = DeploymentStreamMessagesFunction$outboundSchema;
42438
+ })(DeploymentStreamMessagesFunction$ ||= {});
42439
+ DeploymentStreamMessagesToolCalls$inboundSchema = objectType({
42440
+ id: stringType(),
42441
+ type: DeploymentStreamMessagesType$inboundSchema,
42442
+ function: lazyType(() => DeploymentStreamMessagesFunction$inboundSchema)
42443
+ });
42444
+ DeploymentStreamMessagesToolCalls$outboundSchema = objectType({
42445
+ id: stringType(),
42446
+ type: DeploymentStreamMessagesType$outboundSchema,
42447
+ function: lazyType(() => DeploymentStreamMessagesFunction$outboundSchema)
42448
+ });
42449
+ ((DeploymentStreamMessagesToolCalls$) => {
42450
+ DeploymentStreamMessagesToolCalls$.inboundSchema = DeploymentStreamMessagesToolCalls$inboundSchema;
42451
+ DeploymentStreamMessagesToolCalls$.outboundSchema = DeploymentStreamMessagesToolCalls$outboundSchema;
42452
+ })(DeploymentStreamMessagesToolCalls$ ||= {});
42453
+ DeploymentStreamMessagesAssistantMessage$inboundSchema = objectType({
42454
+ content: unionType([
42455
+ stringType(),
42456
+ arrayType(unionType([
42457
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
42458
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
42459
+ ]))
42460
+ ]).optional(),
42461
+ refusal: nullableType(stringType()).optional(),
42462
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
42463
+ name: stringType().optional(),
42464
+ audio: nullableType(lazyType(() => DeploymentStreamMessagesAudio$inboundSchema)).optional(),
42465
+ tool_calls: arrayType(lazyType(() => DeploymentStreamMessagesToolCalls$inboundSchema)).optional()
42466
+ }).transform((v2) => {
42467
+ return remap(v2, {
42468
+ tool_calls: "toolCalls"
42469
+ });
42470
+ });
42471
+ DeploymentStreamMessagesAssistantMessage$outboundSchema = objectType({
42472
+ content: unionType([
42473
+ stringType(),
42474
+ arrayType(unionType([
42475
+ lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
42476
+ lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
42477
+ ]))
42478
+ ]).optional(),
42479
+ refusal: nullableType(stringType()).optional(),
42480
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
42481
+ name: stringType().optional(),
42482
+ audio: nullableType(lazyType(() => DeploymentStreamMessagesAudio$outboundSchema)).optional(),
42483
+ toolCalls: arrayType(lazyType(() => DeploymentStreamMessagesToolCalls$outboundSchema)).optional()
42484
+ }).transform((v2) => {
42485
+ return remap(v2, {
42486
+ toolCalls: "tool_calls"
42487
+ });
42488
+ });
42489
+ ((DeploymentStreamMessagesAssistantMessage$) => {
42490
+ DeploymentStreamMessagesAssistantMessage$.inboundSchema = DeploymentStreamMessagesAssistantMessage$inboundSchema;
42491
+ DeploymentStreamMessagesAssistantMessage$.outboundSchema = DeploymentStreamMessagesAssistantMessage$outboundSchema;
42492
+ })(DeploymentStreamMessagesAssistantMessage$ ||= {});
42493
+ DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRole);
42494
+ DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema;
42495
+ ((DeploymentStreamMessagesDeploymentsRequestRole$) => {
42496
+ DeploymentStreamMessagesDeploymentsRequestRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema;
42497
+ DeploymentStreamMessagesDeploymentsRequestRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema;
42498
+ })(DeploymentStreamMessagesDeploymentsRequestRole$ ||= {});
42499
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType);
42500
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
42501
+ ((DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$) => {
42502
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
42503
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema;
42504
+ })(DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$ ||= {});
42505
+ DeploymentStream2DeploymentsFormat$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsFormat);
42506
+ DeploymentStream2DeploymentsFormat$outboundSchema = DeploymentStream2DeploymentsFormat$inboundSchema;
42507
+ ((DeploymentStream2DeploymentsFormat$) => {
42508
+ DeploymentStream2DeploymentsFormat$.inboundSchema = DeploymentStream2DeploymentsFormat$inboundSchema;
42509
+ DeploymentStream2DeploymentsFormat$.outboundSchema = DeploymentStream2DeploymentsFormat$outboundSchema;
42510
+ })(DeploymentStream2DeploymentsFormat$ ||= {});
42511
+ DeploymentStream2DeploymentsInputAudio$inboundSchema = objectType({
42512
+ data: stringType(),
42513
+ format: DeploymentStream2DeploymentsFormat$inboundSchema
42514
+ });
42515
+ DeploymentStream2DeploymentsInputAudio$outboundSchema = objectType({
42516
+ data: stringType(),
42517
+ format: DeploymentStream2DeploymentsFormat$outboundSchema
42518
+ });
42519
+ ((DeploymentStream2DeploymentsInputAudio$) => {
42520
+ DeploymentStream2DeploymentsInputAudio$.inboundSchema = DeploymentStream2DeploymentsInputAudio$inboundSchema;
42521
+ DeploymentStream2DeploymentsInputAudio$.outboundSchema = DeploymentStream2DeploymentsInputAudio$outboundSchema;
42522
+ })(DeploymentStream2DeploymentsInputAudio$ ||= {});
42523
+ DeploymentStream2Deployments3$inboundSchema = objectType({
42524
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
42525
+ input_audio: lazyType(() => DeploymentStream2DeploymentsInputAudio$inboundSchema)
42526
+ }).transform((v2) => {
42527
+ return remap(v2, {
42528
+ input_audio: "inputAudio"
42529
+ });
42530
+ });
42531
+ DeploymentStream2Deployments3$outboundSchema = objectType({
42532
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
42533
+ inputAudio: lazyType(() => DeploymentStream2DeploymentsInputAudio$outboundSchema)
42534
+ }).transform((v2) => {
42535
+ return remap(v2, {
42536
+ inputAudio: "input_audio"
42537
+ });
42538
+ });
42539
+ ((DeploymentStream2Deployments3$) => {
42540
+ DeploymentStream2Deployments3$.inboundSchema = DeploymentStream2Deployments3$inboundSchema;
42541
+ DeploymentStream2Deployments3$.outboundSchema = DeploymentStream2Deployments3$outboundSchema;
42542
+ })(DeploymentStream2Deployments3$ ||= {});
42543
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages3Type);
42544
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
42545
+ ((DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$) => {
42546
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
42547
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema;
42548
+ })(DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$ ||= {});
42549
+ DeploymentStream2DeploymentsDetail$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsDetail);
42550
+ DeploymentStream2DeploymentsDetail$outboundSchema = DeploymentStream2DeploymentsDetail$inboundSchema;
42551
+ ((DeploymentStream2DeploymentsDetail$) => {
42552
+ DeploymentStream2DeploymentsDetail$.inboundSchema = DeploymentStream2DeploymentsDetail$inboundSchema;
42553
+ DeploymentStream2DeploymentsDetail$.outboundSchema = DeploymentStream2DeploymentsDetail$outboundSchema;
42554
+ })(DeploymentStream2DeploymentsDetail$ ||= {});
42555
+ DeploymentStream2DeploymentsImageUrl$inboundSchema = objectType({
42556
+ url: stringType(),
42557
+ detail: DeploymentStream2DeploymentsDetail$inboundSchema.optional()
42558
+ });
42559
+ DeploymentStream2DeploymentsImageUrl$outboundSchema = objectType({
42560
+ url: stringType(),
42561
+ detail: DeploymentStream2DeploymentsDetail$outboundSchema.optional()
42562
+ });
42563
+ ((DeploymentStream2DeploymentsImageUrl$) => {
42564
+ DeploymentStream2DeploymentsImageUrl$.inboundSchema = DeploymentStream2DeploymentsImageUrl$inboundSchema;
42565
+ DeploymentStream2DeploymentsImageUrl$.outboundSchema = DeploymentStream2DeploymentsImageUrl$outboundSchema;
42566
+ })(DeploymentStream2DeploymentsImageUrl$ ||= {});
42567
+ DeploymentStream2Deployments2$inboundSchema = objectType({
42568
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
42569
+ image_url: lazyType(() => DeploymentStream2DeploymentsImageUrl$inboundSchema)
42570
+ }).transform((v2) => {
42571
+ return remap(v2, {
42572
+ image_url: "imageUrl"
42573
+ });
42574
+ });
42575
+ DeploymentStream2Deployments2$outboundSchema = objectType({
42576
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
42577
+ imageUrl: lazyType(() => DeploymentStream2DeploymentsImageUrl$outboundSchema)
42578
+ }).transform((v2) => {
42579
+ return remap(v2, {
42580
+ imageUrl: "image_url"
42581
+ });
42582
+ });
42583
+ ((DeploymentStream2Deployments2$) => {
42584
+ DeploymentStream2Deployments2$.inboundSchema = DeploymentStream2Deployments2$inboundSchema;
42585
+ DeploymentStream2Deployments2$.outboundSchema = DeploymentStream2Deployments2$outboundSchema;
42586
+ })(DeploymentStream2Deployments2$ ||= {});
42587
+ DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessagesType);
42588
+ DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
42589
+ ((DeploymentStream2DeploymentsRequestRequestBodyMessagesType$) => {
42590
+ DeploymentStream2DeploymentsRequestRequestBodyMessagesType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
42591
+ DeploymentStream2DeploymentsRequestRequestBodyMessagesType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema;
42592
+ })(DeploymentStream2DeploymentsRequestRequestBodyMessagesType$ ||= {});
42593
+ DeploymentStream2Deployments1$inboundSchema = objectType({
42594
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
42595
+ text: stringType()
42596
+ });
42597
+ DeploymentStream2Deployments1$outboundSchema = objectType({
42598
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
42599
+ text: stringType()
42600
+ });
42601
+ ((DeploymentStream2Deployments1$) => {
42602
+ DeploymentStream2Deployments1$.inboundSchema = DeploymentStream2Deployments1$inboundSchema;
42603
+ DeploymentStream2Deployments1$.outboundSchema = DeploymentStream2Deployments1$outboundSchema;
42604
+ })(DeploymentStream2Deployments1$ ||= {});
42605
+ DeploymentStreamContentDeploymentsRequest2$inboundSchema = unionType([
42606
+ lazyType(() => DeploymentStream2Deployments1$inboundSchema),
42607
+ lazyType(() => DeploymentStream2Deployments2$inboundSchema),
42608
+ lazyType(() => DeploymentStream2Deployments3$inboundSchema)
42609
+ ]);
42610
+ DeploymentStreamContentDeploymentsRequest2$outboundSchema = unionType([
42611
+ lazyType(() => DeploymentStream2Deployments1$outboundSchema),
42612
+ lazyType(() => DeploymentStream2Deployments2$outboundSchema),
42613
+ lazyType(() => DeploymentStream2Deployments3$outboundSchema)
42614
+ ]);
42615
+ ((DeploymentStreamContentDeploymentsRequest2$) => {
42616
+ DeploymentStreamContentDeploymentsRequest2$.inboundSchema = DeploymentStreamContentDeploymentsRequest2$inboundSchema;
42617
+ DeploymentStreamContentDeploymentsRequest2$.outboundSchema = DeploymentStreamContentDeploymentsRequest2$outboundSchema;
42618
+ })(DeploymentStreamContentDeploymentsRequest2$ ||= {});
42619
+ DeploymentStreamMessagesContent$inboundSchema = unionType([
42620
+ stringType(),
42621
+ arrayType(unionType([
42622
+ lazyType(() => DeploymentStream2Deployments1$inboundSchema),
42623
+ lazyType(() => DeploymentStream2Deployments2$inboundSchema),
42624
+ lazyType(() => DeploymentStream2Deployments3$inboundSchema)
42625
+ ]))
42626
+ ]);
42627
+ DeploymentStreamMessagesContent$outboundSchema = unionType([
42628
+ stringType(),
42629
+ arrayType(unionType([
42630
+ lazyType(() => DeploymentStream2Deployments1$outboundSchema),
42631
+ lazyType(() => DeploymentStream2Deployments2$outboundSchema),
42632
+ lazyType(() => DeploymentStream2Deployments3$outboundSchema)
42633
+ ]))
42634
+ ]);
42635
+ ((DeploymentStreamMessagesContent$) => {
42636
+ DeploymentStreamMessagesContent$.inboundSchema = DeploymentStreamMessagesContent$inboundSchema;
42637
+ DeploymentStreamMessagesContent$.outboundSchema = DeploymentStreamMessagesContent$outboundSchema;
42638
+ })(DeploymentStreamMessagesContent$ ||= {});
42639
+ DeploymentStreamMessagesUserMessage$inboundSchema = objectType({
42640
+ role: DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema,
42641
+ name: stringType().optional(),
42642
+ content: unionType([
42643
+ stringType(),
42644
+ arrayType(unionType([
42645
+ lazyType(() => DeploymentStream2Deployments1$inboundSchema),
42646
+ lazyType(() => DeploymentStream2Deployments2$inboundSchema),
42647
+ lazyType(() => DeploymentStream2Deployments3$inboundSchema)
42648
+ ]))
42649
+ ])
42650
+ });
42651
+ DeploymentStreamMessagesUserMessage$outboundSchema = objectType({
42652
+ role: DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema,
42653
+ name: stringType().optional(),
42654
+ content: unionType([
42655
+ stringType(),
42656
+ arrayType(unionType([
42657
+ lazyType(() => DeploymentStream2Deployments1$outboundSchema),
42658
+ lazyType(() => DeploymentStream2Deployments2$outboundSchema),
42659
+ lazyType(() => DeploymentStream2Deployments3$outboundSchema)
42660
+ ]))
42661
+ ])
42662
+ });
42663
+ ((DeploymentStreamMessagesUserMessage$) => {
42664
+ DeploymentStreamMessagesUserMessage$.inboundSchema = DeploymentStreamMessagesUserMessage$inboundSchema;
42665
+ DeploymentStreamMessagesUserMessage$.outboundSchema = DeploymentStreamMessagesUserMessage$outboundSchema;
42666
+ })(DeploymentStreamMessagesUserMessage$ ||= {});
42667
+ DeploymentStreamMessagesDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRole);
42668
+ DeploymentStreamMessagesDeploymentsRole$outboundSchema = DeploymentStreamMessagesDeploymentsRole$inboundSchema;
42669
+ ((DeploymentStreamMessagesDeploymentsRole$) => {
42670
+ DeploymentStreamMessagesDeploymentsRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRole$inboundSchema;
42671
+ DeploymentStreamMessagesDeploymentsRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRole$outboundSchema;
42672
+ })(DeploymentStreamMessagesDeploymentsRole$ ||= {});
42673
+ DeploymentStreamMessagesSystemMessage$inboundSchema = objectType({
42674
+ role: DeploymentStreamMessagesDeploymentsRole$inboundSchema,
42675
+ content: stringType(),
42676
+ name: stringType().optional()
42677
+ });
42678
+ DeploymentStreamMessagesSystemMessage$outboundSchema = objectType({
42679
+ role: DeploymentStreamMessagesDeploymentsRole$outboundSchema,
42680
+ content: stringType(),
42681
+ name: stringType().optional()
42682
+ });
42683
+ ((DeploymentStreamMessagesSystemMessage$) => {
42684
+ DeploymentStreamMessagesSystemMessage$.inboundSchema = DeploymentStreamMessagesSystemMessage$inboundSchema;
42685
+ DeploymentStreamMessagesSystemMessage$.outboundSchema = DeploymentStreamMessagesSystemMessage$outboundSchema;
42686
+ })(DeploymentStreamMessagesSystemMessage$ ||= {});
42687
+ DeploymentStreamMessagesRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesRole);
42688
+ DeploymentStreamMessagesRole$outboundSchema = DeploymentStreamMessagesRole$inboundSchema;
42689
+ ((DeploymentStreamMessagesRole$) => {
42690
+ DeploymentStreamMessagesRole$.inboundSchema = DeploymentStreamMessagesRole$inboundSchema;
42691
+ DeploymentStreamMessagesRole$.outboundSchema = DeploymentStreamMessagesRole$outboundSchema;
42692
+ })(DeploymentStreamMessagesRole$ ||= {});
42693
+ DeploymentStreamMessagesDeveloperMessage$inboundSchema = objectType({
42694
+ role: DeploymentStreamMessagesRole$inboundSchema,
42695
+ content: stringType(),
42696
+ name: stringType().optional()
42697
+ });
42698
+ DeploymentStreamMessagesDeveloperMessage$outboundSchema = objectType({
42699
+ role: DeploymentStreamMessagesRole$outboundSchema,
42700
+ content: stringType(),
42701
+ name: stringType().optional()
42702
+ });
42703
+ ((DeploymentStreamMessagesDeveloperMessage$) => {
42704
+ DeploymentStreamMessagesDeveloperMessage$.inboundSchema = DeploymentStreamMessagesDeveloperMessage$inboundSchema;
42705
+ DeploymentStreamMessagesDeveloperMessage$.outboundSchema = DeploymentStreamMessagesDeveloperMessage$outboundSchema;
42706
+ })(DeploymentStreamMessagesDeveloperMessage$ ||= {});
42707
+ DeploymentStreamMessages$inboundSchema = unionType([
42708
+ lazyType(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
42709
+ lazyType(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
42710
+ lazyType(() => DeploymentStreamMessagesUserMessage$inboundSchema),
42711
+ lazyType(() => DeploymentStreamMessagesToolMessage$inboundSchema),
42712
+ lazyType(() => DeploymentStreamMessagesAssistantMessage$inboundSchema)
42713
+ ]);
42714
+ DeploymentStreamMessages$outboundSchema = unionType([
42715
+ lazyType(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
42716
+ lazyType(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
42717
+ lazyType(() => DeploymentStreamMessagesUserMessage$outboundSchema),
42718
+ lazyType(() => DeploymentStreamMessagesToolMessage$outboundSchema),
42719
+ lazyType(() => DeploymentStreamMessagesAssistantMessage$outboundSchema)
42720
+ ]);
42721
+ ((DeploymentStreamMessages$) => {
42722
+ DeploymentStreamMessages$.inboundSchema = DeploymentStreamMessages$inboundSchema;
42723
+ DeploymentStreamMessages$.outboundSchema = DeploymentStreamMessages$outboundSchema;
42724
+ })(DeploymentStreamMessages$ ||= {});
42725
+ DeploymentStreamMetadata$inboundSchema = objectType({
42726
+ file_name: stringType().optional(),
42727
+ file_type: stringType().optional(),
42728
+ page_number: numberType().optional()
42729
+ }).transform((v2) => {
42730
+ return remap(v2, {
42731
+ file_name: "fileName",
42732
+ file_type: "fileType",
42733
+ page_number: "pageNumber"
42734
+ });
42735
+ });
42736
+ DeploymentStreamMetadata$outboundSchema = objectType({
42737
+ fileName: stringType().optional(),
42738
+ fileType: stringType().optional(),
42739
+ pageNumber: numberType().optional()
42740
+ }).transform((v2) => {
42741
+ return remap(v2, {
42742
+ fileName: "file_name",
42743
+ fileType: "file_type",
42744
+ pageNumber: "page_number"
42745
+ });
42746
+ });
42747
+ ((DeploymentStreamMetadata$) => {
42748
+ DeploymentStreamMetadata$.inboundSchema = DeploymentStreamMetadata$inboundSchema;
42749
+ DeploymentStreamMetadata$.outboundSchema = DeploymentStreamMetadata$outboundSchema;
42750
+ })(DeploymentStreamMetadata$ ||= {});
42751
+ DeploymentStreamDocuments$inboundSchema = objectType({
42752
+ text: stringType(),
42753
+ metadata: lazyType(() => DeploymentStreamMetadata$inboundSchema).optional()
42754
+ });
42755
+ DeploymentStreamDocuments$outboundSchema = objectType({
42756
+ text: stringType(),
42757
+ metadata: lazyType(() => DeploymentStreamMetadata$outboundSchema).optional()
42758
+ });
42759
+ ((DeploymentStreamDocuments$) => {
42760
+ DeploymentStreamDocuments$.inboundSchema = DeploymentStreamDocuments$inboundSchema;
42761
+ DeploymentStreamDocuments$.outboundSchema = DeploymentStreamDocuments$outboundSchema;
42762
+ })(DeploymentStreamDocuments$ ||= {});
42763
+ DeploymentStreamInvokeOptions$inboundSchema = objectType({
42764
+ include_retrievals: booleanType().default(false)
42765
+ }).transform((v2) => {
42766
+ return remap(v2, {
42767
+ include_retrievals: "includeRetrievals"
42768
+ });
42769
+ });
42770
+ DeploymentStreamInvokeOptions$outboundSchema = objectType({
42771
+ includeRetrievals: booleanType().default(false)
42772
+ }).transform((v2) => {
42773
+ return remap(v2, {
42774
+ includeRetrievals: "include_retrievals"
42775
+ });
42776
+ });
42777
+ ((DeploymentStreamInvokeOptions$) => {
42778
+ DeploymentStreamInvokeOptions$.inboundSchema = DeploymentStreamInvokeOptions$inboundSchema;
42779
+ DeploymentStreamInvokeOptions$.outboundSchema = DeploymentStreamInvokeOptions$outboundSchema;
42780
+ })(DeploymentStreamInvokeOptions$ ||= {});
42781
+ DeploymentStreamRequestBody$inboundSchema = objectType({
42782
+ key: stringType(),
42783
+ inputs: recordType(unionType([stringType(), numberType(), booleanType()])).optional(),
42784
+ context: recordType(anyType()).optional(),
42785
+ prefix_messages: arrayType(unionType([
42786
+ lazyType(() => PrefixMessagesDeveloperMessage$inboundSchema),
42787
+ lazyType(() => PrefixMessagesSystemMessage$inboundSchema),
42788
+ lazyType(() => PrefixMessagesUserMessage$inboundSchema),
42789
+ lazyType(() => PrefixMessagesToolMessage$inboundSchema),
42790
+ lazyType(() => PrefixMessagesAssistantMessage$inboundSchema)
42791
+ ])).optional(),
42792
+ messages: arrayType(unionType([
42793
+ lazyType(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
42794
+ lazyType(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
42795
+ lazyType(() => DeploymentStreamMessagesUserMessage$inboundSchema),
42796
+ lazyType(() => DeploymentStreamMessagesToolMessage$inboundSchema),
42797
+ lazyType(() => DeploymentStreamMessagesAssistantMessage$inboundSchema)
42798
+ ])).optional(),
42799
+ file_ids: arrayType(stringType()).optional(),
42800
+ metadata: recordType(anyType()).optional(),
42801
+ extra_params: recordType(anyType()).optional(),
42802
+ documents: arrayType(lazyType(() => DeploymentStreamDocuments$inboundSchema)).optional(),
42803
+ invoke_options: lazyType(() => DeploymentStreamInvokeOptions$inboundSchema).optional()
42804
+ }).transform((v2) => {
42805
+ return remap(v2, {
42806
+ prefix_messages: "prefixMessages",
42807
+ file_ids: "fileIds",
42808
+ extra_params: "extraParams",
42809
+ invoke_options: "invokeOptions"
42810
+ });
42811
+ });
42812
+ DeploymentStreamRequestBody$outboundSchema = objectType({
42813
+ key: stringType(),
42814
+ inputs: recordType(unionType([stringType(), numberType(), booleanType()])).optional(),
42815
+ context: recordType(anyType()).optional(),
42816
+ prefixMessages: arrayType(unionType([
42817
+ lazyType(() => PrefixMessagesDeveloperMessage$outboundSchema),
42818
+ lazyType(() => PrefixMessagesSystemMessage$outboundSchema),
42819
+ lazyType(() => PrefixMessagesUserMessage$outboundSchema),
42820
+ lazyType(() => PrefixMessagesToolMessage$outboundSchema),
42821
+ lazyType(() => PrefixMessagesAssistantMessage$outboundSchema)
42822
+ ])).optional(),
42823
+ messages: arrayType(unionType([
42824
+ lazyType(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
42825
+ lazyType(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
42826
+ lazyType(() => DeploymentStreamMessagesUserMessage$outboundSchema),
42827
+ lazyType(() => DeploymentStreamMessagesToolMessage$outboundSchema),
42828
+ lazyType(() => DeploymentStreamMessagesAssistantMessage$outboundSchema)
42829
+ ])).optional(),
42830
+ fileIds: arrayType(stringType()).optional(),
42831
+ metadata: recordType(anyType()).optional(),
42832
+ extraParams: recordType(anyType()).optional(),
42833
+ documents: arrayType(lazyType(() => DeploymentStreamDocuments$outboundSchema)).optional(),
42834
+ invokeOptions: lazyType(() => DeploymentStreamInvokeOptions$outboundSchema).optional()
42835
+ }).transform((v2) => {
42836
+ return remap(v2, {
42837
+ prefixMessages: "prefix_messages",
42838
+ fileIds: "file_ids",
42839
+ extraParams: "extra_params",
42840
+ invokeOptions: "invoke_options"
42841
+ });
42842
+ });
42843
+ ((DeploymentStreamRequestBody$) => {
42844
+ DeploymentStreamRequestBody$.inboundSchema = DeploymentStreamRequestBody$inboundSchema;
42845
+ DeploymentStreamRequestBody$.outboundSchema = DeploymentStreamRequestBody$outboundSchema;
42846
+ })(DeploymentStreamRequestBody$ ||= {});
42847
+ DeploymentStreamObject$inboundSchema = nativeEnumType(DeploymentStreamObject);
42848
+ DeploymentStreamObject$outboundSchema = DeploymentStreamObject$inboundSchema;
42849
+ ((DeploymentStreamObject$) => {
42850
+ DeploymentStreamObject$.inboundSchema = DeploymentStreamObject$inboundSchema;
42851
+ DeploymentStreamObject$.outboundSchema = DeploymentStreamObject$outboundSchema;
42852
+ })(DeploymentStreamObject$ ||= {});
42853
+ DeploymentStreamProvider$inboundSchema = nativeEnumType(DeploymentStreamProvider);
42854
+ DeploymentStreamProvider$outboundSchema = DeploymentStreamProvider$inboundSchema;
42855
+ ((DeploymentStreamProvider$) => {
42856
+ DeploymentStreamProvider$.inboundSchema = DeploymentStreamProvider$inboundSchema;
42857
+ DeploymentStreamProvider$.outboundSchema = DeploymentStreamProvider$outboundSchema;
42858
+ })(DeploymentStreamProvider$ ||= {});
42859
+ DeploymentStreamMessageDeploymentsResponseRole$inboundSchema = nativeEnumType(DeploymentStreamMessageDeploymentsResponseRole);
42860
+ DeploymentStreamMessageDeploymentsResponseRole$outboundSchema = DeploymentStreamMessageDeploymentsResponseRole$inboundSchema;
42861
+ ((DeploymentStreamMessageDeploymentsResponseRole$) => {
42862
+ DeploymentStreamMessageDeploymentsResponseRole$.inboundSchema = DeploymentStreamMessageDeploymentsResponseRole$inboundSchema;
42863
+ DeploymentStreamMessageDeploymentsResponseRole$.outboundSchema = DeploymentStreamMessageDeploymentsResponseRole$outboundSchema;
42864
+ })(DeploymentStreamMessageDeploymentsResponseRole$ ||= {});
42865
+ DeploymentStreamMessage3$inboundSchema = objectType({
42866
+ role: DeploymentStreamMessageDeploymentsResponseRole$inboundSchema,
42867
+ url: stringType()
42868
+ });
42869
+ DeploymentStreamMessage3$outboundSchema = objectType({
42870
+ role: DeploymentStreamMessageDeploymentsResponseRole$outboundSchema,
42871
+ url: stringType()
42872
+ });
42873
+ ((DeploymentStreamMessage3$) => {
42874
+ DeploymentStreamMessage3$.inboundSchema = DeploymentStreamMessage3$inboundSchema;
42875
+ DeploymentStreamMessage3$.outboundSchema = DeploymentStreamMessage3$outboundSchema;
42876
+ })(DeploymentStreamMessage3$ ||= {});
42877
+ DeploymentStreamMessageDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamMessageDeploymentsRole);
42878
+ DeploymentStreamMessageDeploymentsRole$outboundSchema = DeploymentStreamMessageDeploymentsRole$inboundSchema;
42879
+ ((DeploymentStreamMessageDeploymentsRole$) => {
42880
+ DeploymentStreamMessageDeploymentsRole$.inboundSchema = DeploymentStreamMessageDeploymentsRole$inboundSchema;
42881
+ DeploymentStreamMessageDeploymentsRole$.outboundSchema = DeploymentStreamMessageDeploymentsRole$outboundSchema;
42882
+ })(DeploymentStreamMessageDeploymentsRole$ ||= {});
42883
+ DeploymentStreamMessage2$inboundSchema = objectType({
42884
+ role: DeploymentStreamMessageDeploymentsRole$inboundSchema,
42885
+ content: nullableType(stringType())
42886
+ });
42887
+ DeploymentStreamMessage2$outboundSchema = objectType({
42888
+ role: DeploymentStreamMessageDeploymentsRole$outboundSchema,
42889
+ content: nullableType(stringType())
42890
+ });
42891
+ ((DeploymentStreamMessage2$) => {
42892
+ DeploymentStreamMessage2$.inboundSchema = DeploymentStreamMessage2$inboundSchema;
42893
+ DeploymentStreamMessage2$.outboundSchema = DeploymentStreamMessage2$outboundSchema;
42894
+ })(DeploymentStreamMessage2$ ||= {});
42895
+ DeploymentStreamMessageRole$inboundSchema = nativeEnumType(DeploymentStreamMessageRole);
42896
+ DeploymentStreamMessageRole$outboundSchema = DeploymentStreamMessageRole$inboundSchema;
42897
+ ((DeploymentStreamMessageRole$) => {
42898
+ DeploymentStreamMessageRole$.inboundSchema = DeploymentStreamMessageRole$inboundSchema;
42899
+ DeploymentStreamMessageRole$.outboundSchema = DeploymentStreamMessageRole$outboundSchema;
42900
+ })(DeploymentStreamMessageRole$ ||= {});
42901
+ DeploymentStreamMessageType$inboundSchema = nativeEnumType(DeploymentStreamMessageType);
42902
+ DeploymentStreamMessageType$outboundSchema = DeploymentStreamMessageType$inboundSchema;
42903
+ ((DeploymentStreamMessageType$) => {
42904
+ DeploymentStreamMessageType$.inboundSchema = DeploymentStreamMessageType$inboundSchema;
42905
+ DeploymentStreamMessageType$.outboundSchema = DeploymentStreamMessageType$outboundSchema;
42906
+ })(DeploymentStreamMessageType$ ||= {});
42907
+ DeploymentStreamMessageFunction$inboundSchema = objectType({
42908
+ name: stringType(),
42909
+ arguments: stringType()
42910
+ });
42911
+ DeploymentStreamMessageFunction$outboundSchema = objectType({
42912
+ name: stringType(),
42913
+ arguments: stringType()
42914
+ });
42915
+ ((DeploymentStreamMessageFunction$) => {
42916
+ DeploymentStreamMessageFunction$.inboundSchema = DeploymentStreamMessageFunction$inboundSchema;
42917
+ DeploymentStreamMessageFunction$.outboundSchema = DeploymentStreamMessageFunction$outboundSchema;
42918
+ })(DeploymentStreamMessageFunction$ ||= {});
42919
+ DeploymentStreamMessageToolCalls$inboundSchema = objectType({
42920
+ id: stringType().optional(),
42921
+ index: numberType().optional(),
42922
+ type: DeploymentStreamMessageType$inboundSchema,
42923
+ function: lazyType(() => DeploymentStreamMessageFunction$inboundSchema)
42924
+ });
42925
+ DeploymentStreamMessageToolCalls$outboundSchema = objectType({
42926
+ id: stringType().optional(),
42927
+ index: numberType().optional(),
42928
+ type: DeploymentStreamMessageType$outboundSchema,
42929
+ function: lazyType(() => DeploymentStreamMessageFunction$outboundSchema)
42930
+ });
42931
+ ((DeploymentStreamMessageToolCalls$) => {
42932
+ DeploymentStreamMessageToolCalls$.inboundSchema = DeploymentStreamMessageToolCalls$inboundSchema;
42933
+ DeploymentStreamMessageToolCalls$.outboundSchema = DeploymentStreamMessageToolCalls$outboundSchema;
42934
+ })(DeploymentStreamMessageToolCalls$ ||= {});
42935
+ DeploymentStreamMessage1$inboundSchema = objectType({
42936
+ role: DeploymentStreamMessageRole$inboundSchema,
42937
+ content: nullableType(stringType()).optional(),
42938
+ tool_calls: arrayType(lazyType(() => DeploymentStreamMessageToolCalls$inboundSchema))
42939
+ }).transform((v2) => {
42940
+ return remap(v2, {
42941
+ tool_calls: "toolCalls"
42942
+ });
42943
+ });
42944
+ DeploymentStreamMessage1$outboundSchema = objectType({
42945
+ role: DeploymentStreamMessageRole$outboundSchema,
42946
+ content: nullableType(stringType()).optional(),
42947
+ toolCalls: arrayType(lazyType(() => DeploymentStreamMessageToolCalls$outboundSchema))
42948
+ }).transform((v2) => {
42949
+ return remap(v2, {
42950
+ toolCalls: "tool_calls"
42951
+ });
42952
+ });
42953
+ ((DeploymentStreamMessage1$) => {
42954
+ DeploymentStreamMessage1$.inboundSchema = DeploymentStreamMessage1$inboundSchema;
42955
+ DeploymentStreamMessage1$.outboundSchema = DeploymentStreamMessage1$outboundSchema;
42956
+ })(DeploymentStreamMessage1$ ||= {});
42957
+ DeploymentStreamMessage$inboundSchema = unionType([
42958
+ lazyType(() => DeploymentStreamMessage2$inboundSchema),
42959
+ lazyType(() => DeploymentStreamMessage3$inboundSchema),
42960
+ lazyType(() => DeploymentStreamMessage1$inboundSchema)
42961
+ ]);
42962
+ DeploymentStreamMessage$outboundSchema = unionType([
42963
+ lazyType(() => DeploymentStreamMessage2$outboundSchema),
42964
+ lazyType(() => DeploymentStreamMessage3$outboundSchema),
42965
+ lazyType(() => DeploymentStreamMessage1$outboundSchema)
42966
+ ]);
42967
+ ((DeploymentStreamMessage$) => {
42968
+ DeploymentStreamMessage$.inboundSchema = DeploymentStreamMessage$inboundSchema;
42969
+ DeploymentStreamMessage$.outboundSchema = DeploymentStreamMessage$outboundSchema;
42970
+ })(DeploymentStreamMessage$ ||= {});
42971
+ DeploymentStreamChoices$inboundSchema = objectType({
42972
+ index: numberType(),
42973
+ message: unionType([
42974
+ lazyType(() => DeploymentStreamMessage2$inboundSchema),
42975
+ lazyType(() => DeploymentStreamMessage3$inboundSchema),
42976
+ lazyType(() => DeploymentStreamMessage1$inboundSchema)
42977
+ ]).optional(),
42978
+ finish_reason: nullableType(stringType()).optional()
42979
+ }).transform((v2) => {
42980
+ return remap(v2, {
42981
+ finish_reason: "finishReason"
42982
+ });
42983
+ });
42984
+ DeploymentStreamChoices$outboundSchema = objectType({
42985
+ index: numberType(),
42986
+ message: unionType([
42987
+ lazyType(() => DeploymentStreamMessage2$outboundSchema),
42988
+ lazyType(() => DeploymentStreamMessage3$outboundSchema),
42989
+ lazyType(() => DeploymentStreamMessage1$outboundSchema)
42990
+ ]).optional(),
42991
+ finishReason: nullableType(stringType()).optional()
42992
+ }).transform((v2) => {
42993
+ return remap(v2, {
42994
+ finishReason: "finish_reason"
42995
+ });
42996
+ });
42997
+ ((DeploymentStreamChoices$) => {
42998
+ DeploymentStreamChoices$.inboundSchema = DeploymentStreamChoices$inboundSchema;
42999
+ DeploymentStreamChoices$.outboundSchema = DeploymentStreamChoices$outboundSchema;
43000
+ })(DeploymentStreamChoices$ ||= {});
43001
+ DeploymentStreamDeploymentsMetadata$inboundSchema = objectType({
43002
+ file_name: stringType(),
43003
+ page_number: nullableType(numberType()),
43004
+ file_type: stringType(),
43005
+ rerank_score: numberType().optional(),
43006
+ search_score: numberType()
43007
+ }).transform((v2) => {
43008
+ return remap(v2, {
43009
+ file_name: "fileName",
43010
+ page_number: "pageNumber",
43011
+ file_type: "fileType",
43012
+ rerank_score: "rerankScore",
43013
+ search_score: "searchScore"
43014
+ });
43015
+ });
43016
+ DeploymentStreamDeploymentsMetadata$outboundSchema = objectType({
43017
+ fileName: stringType(),
43018
+ pageNumber: nullableType(numberType()),
43019
+ fileType: stringType(),
43020
+ rerankScore: numberType().optional(),
43021
+ searchScore: numberType()
43022
+ }).transform((v2) => {
43023
+ return remap(v2, {
43024
+ fileName: "file_name",
43025
+ pageNumber: "page_number",
43026
+ fileType: "file_type",
43027
+ rerankScore: "rerank_score",
43028
+ searchScore: "search_score"
43029
+ });
43030
+ });
43031
+ ((DeploymentStreamDeploymentsMetadata$) => {
43032
+ DeploymentStreamDeploymentsMetadata$.inboundSchema = DeploymentStreamDeploymentsMetadata$inboundSchema;
43033
+ DeploymentStreamDeploymentsMetadata$.outboundSchema = DeploymentStreamDeploymentsMetadata$outboundSchema;
43034
+ })(DeploymentStreamDeploymentsMetadata$ ||= {});
43035
+ DeploymentStreamRetrievals$inboundSchema = objectType({
43036
+ document: stringType(),
43037
+ metadata: lazyType(() => DeploymentStreamDeploymentsMetadata$inboundSchema)
43038
+ });
43039
+ DeploymentStreamRetrievals$outboundSchema = objectType({
43040
+ document: stringType(),
43041
+ metadata: lazyType(() => DeploymentStreamDeploymentsMetadata$outboundSchema)
43042
+ });
43043
+ ((DeploymentStreamRetrievals$) => {
43044
+ DeploymentStreamRetrievals$.inboundSchema = DeploymentStreamRetrievals$inboundSchema;
43045
+ DeploymentStreamRetrievals$.outboundSchema = DeploymentStreamRetrievals$outboundSchema;
43046
+ })(DeploymentStreamRetrievals$ ||= {});
43047
+ DeploymentStreamData$inboundSchema = objectType({
43048
+ id: stringType().optional(),
43049
+ created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
43050
+ object: DeploymentStreamObject$inboundSchema.optional(),
43051
+ model: stringType().optional(),
43052
+ provider: DeploymentStreamProvider$inboundSchema.optional(),
43053
+ is_final: booleanType().optional(),
43054
+ integration_id: stringType().optional(),
43055
+ finalized: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
43056
+ system_fingerprint: nullableType(stringType()).optional(),
43057
+ choices: arrayType(lazyType(() => DeploymentStreamChoices$inboundSchema)).optional(),
43058
+ retrievals: arrayType(lazyType(() => DeploymentStreamRetrievals$inboundSchema)).optional(),
43059
+ provider_response: anyType().optional()
43060
+ }).transform((v2) => {
43061
+ return remap(v2, {
43062
+ is_final: "isFinal",
43063
+ integration_id: "integrationId",
43064
+ system_fingerprint: "systemFingerprint",
43065
+ provider_response: "providerResponse"
41483
43066
  });
41484
43067
  });
41485
- ((Data$) => {
41486
- Data$.inboundSchema = Data$inboundSchema;
41487
- Data$.outboundSchema = Data$outboundSchema;
41488
- })(Data$ ||= {});
41489
- DeploymentsResponseBody$inboundSchema = objectType({
41490
- object: ObjectT$inboundSchema,
41491
- data: arrayType(lazyType(() => Data$inboundSchema)),
41492
- has_more: booleanType()
43068
+ DeploymentStreamData$outboundSchema = objectType({
43069
+ id: stringType().optional(),
43070
+ created: dateType().transform((v2) => v2.toISOString()).optional(),
43071
+ object: DeploymentStreamObject$outboundSchema.optional(),
43072
+ model: stringType().optional(),
43073
+ provider: DeploymentStreamProvider$outboundSchema.optional(),
43074
+ isFinal: booleanType().optional(),
43075
+ integrationId: stringType().optional(),
43076
+ finalized: dateType().transform((v2) => v2.toISOString()).optional(),
43077
+ systemFingerprint: nullableType(stringType()).optional(),
43078
+ choices: arrayType(lazyType(() => DeploymentStreamChoices$outboundSchema)).optional(),
43079
+ retrievals: arrayType(lazyType(() => DeploymentStreamRetrievals$outboundSchema)).optional(),
43080
+ providerResponse: anyType().optional()
41493
43081
  }).transform((v2) => {
41494
43082
  return remap(v2, {
41495
- has_more: "hasMore"
43083
+ isFinal: "is_final",
43084
+ integrationId: "integration_id",
43085
+ systemFingerprint: "system_fingerprint",
43086
+ providerResponse: "provider_response"
41496
43087
  });
41497
43088
  });
41498
- DeploymentsResponseBody$outboundSchema = objectType({
41499
- object: ObjectT$outboundSchema,
41500
- data: arrayType(lazyType(() => Data$outboundSchema)),
41501
- hasMore: booleanType()
41502
- }).transform((v2) => {
41503
- return remap(v2, {
41504
- hasMore: "has_more"
41505
- });
43089
+ ((DeploymentStreamData$) => {
43090
+ DeploymentStreamData$.inboundSchema = DeploymentStreamData$inboundSchema;
43091
+ DeploymentStreamData$.outboundSchema = DeploymentStreamData$outboundSchema;
43092
+ })(DeploymentStreamData$ ||= {});
43093
+ DeploymentStreamResponseBody$inboundSchema = objectType({
43094
+ data: stringType().transform((v2, ctx) => {
43095
+ try {
43096
+ return JSON.parse(v2);
43097
+ } catch (err) {
43098
+ ctx.addIssue({
43099
+ code: ZodIssueCode.custom,
43100
+ message: `malformed json: ${err}`
43101
+ });
43102
+ return NEVER;
43103
+ }
43104
+ }).pipe(lazyType(() => DeploymentStreamData$inboundSchema).optional())
41506
43105
  });
41507
- ((DeploymentsResponseBody$) => {
41508
- DeploymentsResponseBody$.inboundSchema = DeploymentsResponseBody$inboundSchema;
41509
- DeploymentsResponseBody$.outboundSchema = DeploymentsResponseBody$outboundSchema;
41510
- })(DeploymentsResponseBody$ ||= {});
43106
+ DeploymentStreamResponseBody$outboundSchema = objectType({
43107
+ data: lazyType(() => DeploymentStreamData$outboundSchema).optional()
43108
+ });
43109
+ ((DeploymentStreamResponseBody$) => {
43110
+ DeploymentStreamResponseBody$.inboundSchema = DeploymentStreamResponseBody$inboundSchema;
43111
+ DeploymentStreamResponseBody$.outboundSchema = DeploymentStreamResponseBody$outboundSchema;
43112
+ })(DeploymentStreamResponseBody$ ||= {});
41511
43113
  });
41512
43114
 
41513
43115
  // src/models/operations/filedelete.ts
@@ -41576,7 +43178,7 @@ var init_fileget = __esm(() => {
41576
43178
  bytes: numberType(),
41577
43179
  file_name: stringType(),
41578
43180
  workspace_id: stringType(),
41579
- created: stringType().datetime({ offset: true }).default("2025-03-19T18:21:35.369Z").transform((v2) => new Date(v2))
43181
+ created: stringType().datetime({ offset: true }).default("2025-03-20T11:35:16.103Z").transform((v2) => new Date(v2))
41580
43182
  }).transform((v2) => {
41581
43183
  return remap(v2, {
41582
43184
  _id: "id",
@@ -41592,7 +43194,7 @@ var init_fileget = __esm(() => {
41592
43194
  bytes: numberType(),
41593
43195
  fileName: stringType(),
41594
43196
  workspaceId: stringType(),
41595
- created: dateType().default(() => new Date("2025-03-19T18:21:35.369Z")).transform((v2) => v2.toISOString())
43197
+ created: dateType().default(() => new Date("2025-03-20T11:35:16.103Z")).transform((v2) => v2.toISOString())
41596
43198
  }).transform((v2) => {
41597
43199
  return remap(v2, {
41598
43200
  id: "_id",
@@ -41675,7 +43277,7 @@ var init_filelist = __esm(() => {
41675
43277
  bytes: numberType(),
41676
43278
  file_name: stringType(),
41677
43279
  workspace_id: stringType(),
41678
- created: stringType().datetime({ offset: true }).default("2025-03-19T18:21:35.369Z").transform((v2) => new Date(v2))
43280
+ created: stringType().datetime({ offset: true }).default("2025-03-20T11:35:16.103Z").transform((v2) => new Date(v2))
41679
43281
  }).transform((v2) => {
41680
43282
  return remap(v2, {
41681
43283
  _id: "id",
@@ -41691,7 +43293,7 @@ var init_filelist = __esm(() => {
41691
43293
  bytes: numberType(),
41692
43294
  fileName: stringType(),
41693
43295
  workspaceId: stringType(),
41694
- created: dateType().default(() => new Date("2025-03-19T18:21:35.369Z")).transform((v2) => v2.toISOString())
43296
+ created: dateType().default(() => new Date("2025-03-20T11:35:16.103Z")).transform((v2) => v2.toISOString())
41695
43297
  }).transform((v2) => {
41696
43298
  return remap(v2, {
41697
43299
  id: "_id",
@@ -41823,7 +43425,7 @@ var init_fileupload = __esm(() => {
41823
43425
  bytes: numberType(),
41824
43426
  file_name: stringType(),
41825
43427
  workspace_id: stringType(),
41826
- created: stringType().datetime({ offset: true }).default("2025-03-19T18:21:35.369Z").transform((v2) => new Date(v2))
43428
+ created: stringType().datetime({ offset: true }).default("2025-03-20T11:35:16.103Z").transform((v2) => new Date(v2))
41827
43429
  }).transform((v2) => {
41828
43430
  return remap(v2, {
41829
43431
  _id: "id",
@@ -41839,7 +43441,7 @@ var init_fileupload = __esm(() => {
41839
43441
  bytes: numberType(),
41840
43442
  fileName: stringType(),
41841
43443
  workspaceId: stringType(),
41842
- created: dateType().default(() => new Date("2025-03-19T18:21:35.369Z")).transform((v2) => v2.toISOString())
43444
+ created: dateType().default(() => new Date("2025-03-20T11:35:16.103Z")).transform((v2) => v2.toISOString())
41843
43445
  }).transform((v2) => {
41844
43446
  return remap(v2, {
41845
43447
  id: "_id",
@@ -43891,7 +45493,7 @@ var init_listdatasetdatapoints = __esm(() => {
43891
45493
  created_by_id: stringType().optional(),
43892
45494
  updated_by_id: stringType().optional(),
43893
45495
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
43894
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
45496
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
43895
45497
  }).transform((v2) => {
43896
45498
  return remap(v2, {
43897
45499
  _id: "id",
@@ -43912,7 +45514,7 @@ var init_listdatasetdatapoints = __esm(() => {
43912
45514
  createdById: stringType().optional(),
43913
45515
  updatedById: stringType().optional(),
43914
45516
  created: dateType().transform((v2) => v2.toISOString()).optional(),
43915
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
45517
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
43916
45518
  }).transform((v2) => {
43917
45519
  return remap(v2, {
43918
45520
  id: "_id",
@@ -44032,7 +45634,7 @@ var init_listdatasets = __esm(() => {
44032
45634
  updated_by_id: stringType().optional(),
44033
45635
  metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
44034
45636
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
44035
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
45637
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
44036
45638
  }).transform((v2) => {
44037
45639
  return remap(v2, {
44038
45640
  _id: "id",
@@ -44052,7 +45654,7 @@ var init_listdatasets = __esm(() => {
44052
45654
  updatedById: stringType().optional(),
44053
45655
  metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
44054
45656
  created: dateType().transform((v2) => v2.toISOString()).optional(),
44055
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
45657
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
44056
45658
  }).transform((v2) => {
44057
45659
  return remap(v2, {
44058
45660
  id: "_id",
@@ -44976,7 +46578,7 @@ var init_retrievedatapoint = __esm(() => {
44976
46578
  created_by_id: stringType().optional(),
44977
46579
  updated_by_id: stringType().optional(),
44978
46580
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
44979
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
46581
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
44980
46582
  }).transform((v2) => {
44981
46583
  return remap(v2, {
44982
46584
  _id: "id",
@@ -44997,7 +46599,7 @@ var init_retrievedatapoint = __esm(() => {
44997
46599
  createdById: stringType().optional(),
44998
46600
  updatedById: stringType().optional(),
44999
46601
  created: dateType().transform((v2) => v2.toISOString()).optional(),
45000
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
46602
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
45001
46603
  }).transform((v2) => {
45002
46604
  return remap(v2, {
45003
46605
  id: "_id",
@@ -45068,7 +46670,7 @@ var init_retrievedataset = __esm(() => {
45068
46670
  updated_by_id: stringType().optional(),
45069
46671
  metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
45070
46672
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
45071
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
46673
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
45072
46674
  }).transform((v2) => {
45073
46675
  return remap(v2, {
45074
46676
  _id: "id",
@@ -45088,7 +46690,7 @@ var init_retrievedataset = __esm(() => {
45088
46690
  updatedById: stringType().optional(),
45089
46691
  metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
45090
46692
  created: dateType().transform((v2) => v2.toISOString()).optional(),
45091
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
46693
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
45092
46694
  }).transform((v2) => {
45093
46695
  return remap(v2, {
45094
46696
  id: "_id",
@@ -45528,7 +47130,7 @@ var init_updatedatapoint = __esm(() => {
45528
47130
  created_by_id: stringType().optional(),
45529
47131
  updated_by_id: stringType().optional(),
45530
47132
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
45531
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
47133
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
45532
47134
  }).transform((v2) => {
45533
47135
  return remap(v2, {
45534
47136
  _id: "id",
@@ -45549,7 +47151,7 @@ var init_updatedatapoint = __esm(() => {
45549
47151
  createdById: stringType().optional(),
45550
47152
  updatedById: stringType().optional(),
45551
47153
  created: dateType().transform((v2) => v2.toISOString()).optional(),
45552
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
47154
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
45553
47155
  }).transform((v2) => {
45554
47156
  return remap(v2, {
45555
47157
  id: "_id",
@@ -45644,7 +47246,7 @@ var init_updatedataset = __esm(() => {
45644
47246
  parent_id: stringType().optional(),
45645
47247
  version: stringType().optional(),
45646
47248
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
45647
- updated: stringType().datetime({ offset: true }).default("2025-03-19T18:21:34.241Z").transform((v2) => new Date(v2))
47249
+ updated: stringType().datetime({ offset: true }).default("2025-03-20T11:35:14.966Z").transform((v2) => new Date(v2))
45648
47250
  }).transform((v2) => {
45649
47251
  return remap(v2, {
45650
47252
  _id: "id",
@@ -45667,7 +47269,7 @@ var init_updatedataset = __esm(() => {
45667
47269
  parentId: stringType().optional(),
45668
47270
  version: stringType().optional(),
45669
47271
  created: dateType().transform((v2) => v2.toISOString()).optional(),
45670
- updated: dateType().default(() => new Date("2025-03-19T18:21:34.241Z")).transform((v2) => v2.toISOString())
47272
+ updated: dateType().default(() => new Date("2025-03-20T11:35:14.966Z")).transform((v2) => v2.toISOString())
45671
47273
  }).transform((v2) => {
45672
47274
  return remap(v2, {
45673
47275
  id: "_id",
@@ -46833,6 +48435,7 @@ var init_operations = __esm(() => {
46833
48435
  init_deploymentgetconfig();
46834
48436
  init_deploymentinvoke();
46835
48437
  init_deployments();
48438
+ init_deploymentstream();
46836
48439
  init_filedelete();
46837
48440
  init_fileget();
46838
48441
  init_filelist();
@@ -49835,11 +51438,126 @@ Add metrics to a deployment`,
49835
51438
  };
49836
51439
  });
49837
51440
 
49838
- // src/funcs/feedbackCreate.ts
49839
- function feedbackCreate(client, request, options) {
51441
+ // src/funcs/deploymentsStream.ts
51442
+ function deploymentsStream(client, request, options) {
49840
51443
  return new APIPromise($do18(client, request, options));
49841
51444
  }
49842
51445
  async function $do18(client, request, options) {
51446
+ const parsed = safeParse(request, (value) => DeploymentStreamRequestBody$outboundSchema.parse(value), "Input validation failed");
51447
+ if (!parsed.ok) {
51448
+ return [parsed, { status: "invalid" }];
51449
+ }
51450
+ const payload = parsed.value;
51451
+ const body = encodeJSON("body", payload, { explode: true });
51452
+ const path = pathToFunc("/v2/deployments/stream")();
51453
+ const headers = new Headers(compactMap({
51454
+ "Content-Type": "application/json",
51455
+ Accept: "text/event-stream",
51456
+ contactId: encodeSimple("contactId", client._options.contactId, {
51457
+ explode: false,
51458
+ charEncoding: "none"
51459
+ }),
51460
+ environment: encodeSimple("environment", client._options.environment, {
51461
+ explode: false,
51462
+ charEncoding: "none"
51463
+ })
51464
+ }));
51465
+ const secConfig = await extractSecurity(client._options.apiKey);
51466
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
51467
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51468
+ const context = {
51469
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51470
+ operationID: "DeploymentStream",
51471
+ oAuth2Scopes: [],
51472
+ resolvedSecurity: requestSecurity,
51473
+ securitySource: client._options.apiKey,
51474
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
51475
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
51476
+ };
51477
+ const requestRes = client._createRequest(context, {
51478
+ security: requestSecurity,
51479
+ method: "POST",
51480
+ baseURL: options?.serverURL,
51481
+ path,
51482
+ headers,
51483
+ body,
51484
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000
51485
+ }, options);
51486
+ if (!requestRes.ok) {
51487
+ return [requestRes, { status: "invalid" }];
51488
+ }
51489
+ const req = requestRes.value;
51490
+ const doResult = await client._do(req, {
51491
+ context,
51492
+ errorCodes: ["4XX", "5XX"],
51493
+ retryConfig: context.retryConfig,
51494
+ retryCodes: context.retryCodes
51495
+ });
51496
+ if (!doResult.ok) {
51497
+ return [doResult, { status: "request-error", request: req }];
51498
+ }
51499
+ const response = doResult.value;
51500
+ const [result] = await match(sse(200, instanceOfType(ReadableStream).transform((stream) => {
51501
+ return new EventStream({
51502
+ stream,
51503
+ decoder(rawEvent) {
51504
+ const schema = DeploymentStreamResponseBody$inboundSchema;
51505
+ return schema.parse(rawEvent);
51506
+ }
51507
+ });
51508
+ }), { sseSentinel: "[DONE]" }), fail("4XX"), fail("5XX"))(response);
51509
+ if (!result.ok) {
51510
+ return [result, { status: "complete", request: req, response }];
51511
+ }
51512
+ return [result, { status: "complete", request: req, response }];
51513
+ }
51514
+ var init_deploymentsStream = __esm(() => {
51515
+ init_lib();
51516
+ init_encodings();
51517
+ init_event_streams();
51518
+ init_matchers();
51519
+ init_primitives();
51520
+ init_schemas();
51521
+ init_security();
51522
+ init_url();
51523
+ init_operations();
51524
+ init_async();
51525
+ });
51526
+
51527
+ // src/mcp-server/tools/deploymentsStream.ts
51528
+ var args18, tool$deploymentsStream;
51529
+ var init_deploymentsStream2 = __esm(() => {
51530
+ init_deploymentsStream();
51531
+ init_operations();
51532
+ init_tools();
51533
+ args18 = {
51534
+ request: DeploymentStreamRequestBody$inboundSchema
51535
+ };
51536
+ tool$deploymentsStream = {
51537
+ name: "deployments-stream",
51538
+ description: `Stream
51539
+
51540
+ Stream deployment generation. Only supported for completions and chat completions.`,
51541
+ args: args18,
51542
+ tool: async (client, args19, ctx) => {
51543
+ const [result, apiCall] = await deploymentsStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51544
+ if (!result.ok) {
51545
+ return {
51546
+ content: [{ type: "text", text: result.error.message }],
51547
+ isError: true
51548
+ };
51549
+ }
51550
+ const value = result.value;
51551
+ return formatResult(value, apiCall);
51552
+ }
51553
+ };
51554
+ });
51555
+
51556
+ // src/funcs/feedbackCreate.ts
51557
+ function feedbackCreate(client, request, options) {
51558
+ return new APIPromise($do19(client, request, options));
51559
+ }
51560
+ async function $do19(client, request, options) {
49843
51561
  const parsed = safeParse(request, (value) => CreateFeedbackRequestBody$outboundSchema.parse(value), "Input validation failed");
49844
51562
  if (!parsed.ok) {
49845
51563
  return [parsed, { status: "invalid" }];
@@ -49904,12 +51622,12 @@ var init_feedbackCreate = __esm(() => {
49904
51622
  });
49905
51623
 
49906
51624
  // src/mcp-server/tools/feedbackCreate.ts
49907
- var args18, tool$feedbackCreate;
51625
+ var args19, tool$feedbackCreate;
49908
51626
  var init_feedbackCreate2 = __esm(() => {
49909
51627
  init_feedbackCreate();
49910
51628
  init_operations();
49911
51629
  init_tools();
49912
- args18 = {
51630
+ args19 = {
49913
51631
  request: CreateFeedbackRequestBody$inboundSchema
49914
51632
  };
49915
51633
  tool$feedbackCreate = {
@@ -49917,9 +51635,9 @@ var init_feedbackCreate2 = __esm(() => {
49917
51635
  description: `Submit feedback
49918
51636
 
49919
51637
  Submit feedback for the LLM transaction via the API`,
49920
- args: args18,
49921
- tool: async (client, args19, ctx) => {
49922
- const [result, apiCall] = await feedbackCreate(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51638
+ args: args19,
51639
+ tool: async (client, args20, ctx) => {
51640
+ const [result, apiCall] = await feedbackCreate(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49923
51641
  if (!result.ok) {
49924
51642
  return {
49925
51643
  content: [{ type: "text", text: result.error.message }],
@@ -49967,9 +51685,9 @@ function isReadableStream(val) {
49967
51685
 
49968
51686
  // src/funcs/filesCreate.ts
49969
51687
  function filesCreate(client, request, options) {
49970
- return new APIPromise($do19(client, request, options));
51688
+ return new APIPromise($do20(client, request, options));
49971
51689
  }
49972
- async function $do19(client, request, options) {
51690
+ async function $do20(client, request, options) {
49973
51691
  const parsed = safeParse(request, (value) => FileUploadRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
49974
51692
  if (!parsed.ok) {
49975
51693
  return [parsed, { status: "invalid" }];
@@ -50048,12 +51766,12 @@ var init_filesCreate = __esm(() => {
50048
51766
  });
50049
51767
 
50050
51768
  // src/mcp-server/tools/filesCreate.ts
50051
- var args19, tool$filesCreate;
51769
+ var args20, tool$filesCreate;
50052
51770
  var init_filesCreate2 = __esm(() => {
50053
51771
  init_filesCreate();
50054
51772
  init_operations();
50055
51773
  init_tools();
50056
- args19 = {
51774
+ args20 = {
50057
51775
  request: FileUploadRequestBody$inboundSchema.optional()
50058
51776
  };
50059
51777
  tool$filesCreate = {
@@ -50061,9 +51779,9 @@ var init_filesCreate2 = __esm(() => {
50061
51779
  description: `Create file
50062
51780
 
50063
51781
  Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/deploymentinvoke-1).`,
50064
- args: args19,
50065
- tool: async (client, args20, ctx) => {
50066
- const [result, apiCall] = await filesCreate(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51782
+ args: args20,
51783
+ tool: async (client, args21, ctx) => {
51784
+ const [result, apiCall] = await filesCreate(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50067
51785
  if (!result.ok) {
50068
51786
  return {
50069
51787
  content: [{ type: "text", text: result.error.message }],
@@ -50078,9 +51796,9 @@ Files are used to upload documents that can be used with features like [Deployme
50078
51796
 
50079
51797
  // src/funcs/filesDelete.ts
50080
51798
  function filesDelete(client, request, options) {
50081
- return new APIPromise($do20(client, request, options));
51799
+ return new APIPromise($do21(client, request, options));
50082
51800
  }
50083
- async function $do20(client, request, options) {
51801
+ async function $do21(client, request, options) {
50084
51802
  const parsed = safeParse(request, (value) => FileDeleteRequest$outboundSchema.parse(value), "Input validation failed");
50085
51803
  if (!parsed.ok) {
50086
51804
  return [parsed, { status: "invalid" }];
@@ -50151,20 +51869,20 @@ var init_filesDelete = __esm(() => {
50151
51869
  });
50152
51870
 
50153
51871
  // src/mcp-server/tools/filesDelete.ts
50154
- var args20, tool$filesDelete;
51872
+ var args21, tool$filesDelete;
50155
51873
  var init_filesDelete2 = __esm(() => {
50156
51874
  init_filesDelete();
50157
51875
  init_operations();
50158
51876
  init_tools();
50159
- args20 = {
51877
+ args21 = {
50160
51878
  request: FileDeleteRequest$inboundSchema
50161
51879
  };
50162
51880
  tool$filesDelete = {
50163
51881
  name: "files-delete",
50164
51882
  description: `Delete file`,
50165
- args: args20,
50166
- tool: async (client, args21, ctx) => {
50167
- const [result, apiCall] = await filesDelete(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51883
+ args: args21,
51884
+ tool: async (client, args22, ctx) => {
51885
+ const [result, apiCall] = await filesDelete(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50168
51886
  if (!result.ok) {
50169
51887
  return {
50170
51888
  content: [{ type: "text", text: result.error.message }],
@@ -50178,9 +51896,9 @@ var init_filesDelete2 = __esm(() => {
50178
51896
 
50179
51897
  // src/funcs/filesGet.ts
50180
51898
  function filesGet(client, request, options) {
50181
- return new APIPromise($do21(client, request, options));
51899
+ return new APIPromise($do22(client, request, options));
50182
51900
  }
50183
- async function $do21(client, request, options) {
51901
+ async function $do22(client, request, options) {
50184
51902
  const parsed = safeParse(request, (value) => FileGetRequest$outboundSchema.parse(value), "Input validation failed");
50185
51903
  if (!parsed.ok) {
50186
51904
  return [parsed, { status: "invalid" }];
@@ -50250,12 +51968,12 @@ var init_filesGet = __esm(() => {
50250
51968
  });
50251
51969
 
50252
51970
  // src/mcp-server/tools/filesGet.ts
50253
- var args21, tool$filesGet;
51971
+ var args22, tool$filesGet;
50254
51972
  var init_filesGet2 = __esm(() => {
50255
51973
  init_filesGet();
50256
51974
  init_operations();
50257
51975
  init_tools();
50258
- args21 = {
51976
+ args22 = {
50259
51977
  request: FileGetRequest$inboundSchema
50260
51978
  };
50261
51979
  tool$filesGet = {
@@ -50263,9 +51981,9 @@ var init_filesGet2 = __esm(() => {
50263
51981
  description: `Retrieve a file
50264
51982
 
50265
51983
  Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object`,
50266
- args: args21,
50267
- tool: async (client, args22, ctx) => {
50268
- const [result, apiCall] = await filesGet(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51984
+ args: args22,
51985
+ tool: async (client, args23, ctx) => {
51986
+ const [result, apiCall] = await filesGet(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50269
51987
  if (!result.ok) {
50270
51988
  return {
50271
51989
  content: [{ type: "text", text: result.error.message }],
@@ -50280,9 +51998,9 @@ Retrieves the details of an existing file object. After you supply a unique file
50280
51998
 
50281
51999
  // src/funcs/filesList.ts
50282
52000
  function filesList(client, request, options) {
50283
- return new APIPromise($do22(client, request, options));
52001
+ return new APIPromise($do23(client, request, options));
50284
52002
  }
50285
- async function $do22(client, request, options) {
52003
+ async function $do23(client, request, options) {
50286
52004
  const parsed = safeParse(request, (value) => FileListRequest$outboundSchema.optional().parse(value), "Input validation failed");
50287
52005
  if (!parsed.ok) {
50288
52006
  return [parsed, { status: "invalid" }];
@@ -50353,12 +52071,12 @@ var init_filesList = __esm(() => {
50353
52071
  });
50354
52072
 
50355
52073
  // src/mcp-server/tools/filesList.ts
50356
- var args22, tool$filesList;
52074
+ var args23, tool$filesList;
50357
52075
  var init_filesList2 = __esm(() => {
50358
52076
  init_filesList();
50359
52077
  init_operations();
50360
52078
  init_tools();
50361
- args22 = {
52079
+ args23 = {
50362
52080
  request: FileListRequest$inboundSchema.optional()
50363
52081
  };
50364
52082
  tool$filesList = {
@@ -50366,9 +52084,9 @@ var init_filesList2 = __esm(() => {
50366
52084
  description: `List all files
50367
52085
 
50368
52086
  Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.`,
50369
- args: args22,
50370
- tool: async (client, args23, ctx) => {
50371
- const [result, apiCall] = await filesList(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52087
+ args: args23,
52088
+ tool: async (client, args24, ctx) => {
52089
+ const [result, apiCall] = await filesList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50372
52090
  if (!result.ok) {
50373
52091
  return {
50374
52092
  content: [{ type: "text", text: result.error.message }],
@@ -50383,9 +52101,9 @@ Returns a list of the files that your account has access to. orq.ai sorts and re
50383
52101
 
50384
52102
  // src/funcs/promptsCreate.ts
50385
52103
  function promptsCreate(client, request, options) {
50386
- return new APIPromise($do23(client, request, options));
52104
+ return new APIPromise($do24(client, request, options));
50387
52105
  }
50388
- async function $do23(client, request, options) {
52106
+ async function $do24(client, request, options) {
50389
52107
  const parsed = safeParse(request, (value) => CreatePromptRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
50390
52108
  if (!parsed.ok) {
50391
52109
  return [parsed, { status: "invalid" }];
@@ -50450,20 +52168,20 @@ var init_promptsCreate = __esm(() => {
50450
52168
  });
50451
52169
 
50452
52170
  // src/mcp-server/tools/promptsCreate.ts
50453
- var args23, tool$promptsCreate;
52171
+ var args24, tool$promptsCreate;
50454
52172
  var init_promptsCreate2 = __esm(() => {
50455
52173
  init_promptsCreate();
50456
52174
  init_operations();
50457
52175
  init_tools();
50458
- args23 = {
52176
+ args24 = {
50459
52177
  request: CreatePromptRequestBody$inboundSchema.optional()
50460
52178
  };
50461
52179
  tool$promptsCreate = {
50462
52180
  name: "prompts-create",
50463
52181
  description: `Create a prompt`,
50464
- args: args23,
50465
- tool: async (client, args24, ctx) => {
50466
- const [result, apiCall] = await promptsCreate(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52182
+ args: args24,
52183
+ tool: async (client, args25, ctx) => {
52184
+ const [result, apiCall] = await promptsCreate(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50467
52185
  if (!result.ok) {
50468
52186
  return {
50469
52187
  content: [{ type: "text", text: result.error.message }],
@@ -50478,9 +52196,9 @@ var init_promptsCreate2 = __esm(() => {
50478
52196
 
50479
52197
  // src/funcs/promptsDelete.ts
50480
52198
  function promptsDelete(client, request, options) {
50481
- return new APIPromise($do24(client, request, options));
52199
+ return new APIPromise($do25(client, request, options));
50482
52200
  }
50483
- async function $do24(client, request, options) {
52201
+ async function $do25(client, request, options) {
50484
52202
  const parsed = safeParse(request, (value) => DeletePromptRequest$outboundSchema.parse(value), "Input validation failed");
50485
52203
  if (!parsed.ok) {
50486
52204
  return [parsed, { status: "invalid" }];
@@ -50551,20 +52269,20 @@ var init_promptsDelete = __esm(() => {
50551
52269
  });
50552
52270
 
50553
52271
  // src/mcp-server/tools/promptsDelete.ts
50554
- var args24, tool$promptsDelete;
52272
+ var args25, tool$promptsDelete;
50555
52273
  var init_promptsDelete2 = __esm(() => {
50556
52274
  init_promptsDelete();
50557
52275
  init_operations();
50558
52276
  init_tools();
50559
- args24 = {
52277
+ args25 = {
50560
52278
  request: DeletePromptRequest$inboundSchema
50561
52279
  };
50562
52280
  tool$promptsDelete = {
50563
52281
  name: "prompts-delete",
50564
52282
  description: `Delete a prompt`,
50565
- args: args24,
50566
- tool: async (client, args25, ctx) => {
50567
- const [result, apiCall] = await promptsDelete(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52283
+ args: args25,
52284
+ tool: async (client, args26, ctx) => {
52285
+ const [result, apiCall] = await promptsDelete(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50568
52286
  if (!result.ok) {
50569
52287
  return {
50570
52288
  content: [{ type: "text", text: result.error.message }],
@@ -50578,9 +52296,9 @@ var init_promptsDelete2 = __esm(() => {
50578
52296
 
50579
52297
  // src/funcs/promptsGetVersion.ts
50580
52298
  function promptsGetVersion(client, request, options) {
50581
- return new APIPromise($do25(client, request, options));
52299
+ return new APIPromise($do26(client, request, options));
50582
52300
  }
50583
- async function $do25(client, request, options) {
52301
+ async function $do26(client, request, options) {
50584
52302
  const parsed = safeParse(request, (value) => GetPromptVersionRequest$outboundSchema.parse(value), "Input validation failed");
50585
52303
  if (!parsed.ok) {
50586
52304
  return [parsed, { status: "invalid" }];
@@ -50658,12 +52376,12 @@ var init_promptsGetVersion = __esm(() => {
50658
52376
  });
50659
52377
 
50660
52378
  // src/mcp-server/tools/promptsGetVersion.ts
50661
- var args25, tool$promptsGetVersion;
52379
+ var args26, tool$promptsGetVersion;
50662
52380
  var init_promptsGetVersion2 = __esm(() => {
50663
52381
  init_promptsGetVersion();
50664
52382
  init_operations();
50665
52383
  init_tools();
50666
- args25 = {
52384
+ args26 = {
50667
52385
  request: GetPromptVersionRequest$inboundSchema
50668
52386
  };
50669
52387
  tool$promptsGetVersion = {
@@ -50671,9 +52389,9 @@ var init_promptsGetVersion2 = __esm(() => {
50671
52389
  description: `Retrieve a prompt version
50672
52390
 
50673
52391
  Retrieves a specific version of a prompt by its ID and version ID.`,
50674
- args: args25,
50675
- tool: async (client, args26, ctx) => {
50676
- const [result, apiCall] = await promptsGetVersion(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52392
+ args: args26,
52393
+ tool: async (client, args27, ctx) => {
52394
+ const [result, apiCall] = await promptsGetVersion(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50677
52395
  if (!result.ok) {
50678
52396
  return {
50679
52397
  content: [{ type: "text", text: result.error.message }],
@@ -50688,9 +52406,9 @@ Retrieves a specific version of a prompt by its ID and version ID.`,
50688
52406
 
50689
52407
  // src/funcs/promptsList.ts
50690
52408
  function promptsList(client, request, options) {
50691
- return new APIPromise($do26(client, request, options));
52409
+ return new APIPromise($do27(client, request, options));
50692
52410
  }
50693
- async function $do26(client, request, options) {
52411
+ async function $do27(client, request, options) {
50694
52412
  const parsed = safeParse(request, (value) => GetAllPromptsRequest$outboundSchema.optional().parse(value), "Input validation failed");
50695
52413
  if (!parsed.ok) {
50696
52414
  return [parsed, { status: "invalid" }];
@@ -50761,12 +52479,12 @@ var init_promptsList = __esm(() => {
50761
52479
  });
50762
52480
 
50763
52481
  // src/mcp-server/tools/promptsList.ts
50764
- var args26, tool$promptsList;
52482
+ var args27, tool$promptsList;
50765
52483
  var init_promptsList2 = __esm(() => {
50766
52484
  init_promptsList();
50767
52485
  init_operations();
50768
52486
  init_tools();
50769
- args26 = {
52487
+ args27 = {
50770
52488
  request: GetAllPromptsRequest$inboundSchema.optional()
50771
52489
  };
50772
52490
  tool$promptsList = {
@@ -50774,9 +52492,9 @@ var init_promptsList2 = __esm(() => {
50774
52492
  description: `List all prompts
50775
52493
 
50776
52494
  Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first`,
50777
- args: args26,
50778
- tool: async (client, args27, ctx) => {
50779
- const [result, apiCall] = await promptsList(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52495
+ args: args27,
52496
+ tool: async (client, args28, ctx) => {
52497
+ const [result, apiCall] = await promptsList(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50780
52498
  if (!result.ok) {
50781
52499
  return {
50782
52500
  content: [{ type: "text", text: result.error.message }],
@@ -50791,9 +52509,9 @@ Returns a list of your prompts. The prompts are returned sorted by creation date
50791
52509
 
50792
52510
  // src/funcs/promptsListVersions.ts
50793
52511
  function promptsListVersions(client, request, options) {
50794
- return new APIPromise($do27(client, request, options));
52512
+ return new APIPromise($do28(client, request, options));
50795
52513
  }
50796
- async function $do27(client, request, options) {
52514
+ async function $do28(client, request, options) {
50797
52515
  const parsed = safeParse(request, (value) => ListPromptVersionsRequest$outboundSchema.parse(value), "Input validation failed");
50798
52516
  if (!parsed.ok) {
50799
52517
  return [parsed, { status: "invalid" }];
@@ -50870,12 +52588,12 @@ var init_promptsListVersions = __esm(() => {
50870
52588
  });
50871
52589
 
50872
52590
  // src/mcp-server/tools/promptsListVersions.ts
50873
- var args27, tool$promptsListVersions;
52591
+ var args28, tool$promptsListVersions;
50874
52592
  var init_promptsListVersions2 = __esm(() => {
50875
52593
  init_promptsListVersions();
50876
52594
  init_operations();
50877
52595
  init_tools();
50878
- args27 = {
52596
+ args28 = {
50879
52597
  request: ListPromptVersionsRequest$inboundSchema
50880
52598
  };
50881
52599
  tool$promptsListVersions = {
@@ -50883,9 +52601,9 @@ var init_promptsListVersions2 = __esm(() => {
50883
52601
  description: `List all prompt versions
50884
52602
 
50885
52603
  Returns a list of your prompt versions. The prompt versions are returned sorted by creation date, with the most recent prompt versions appearing first`,
50886
- args: args27,
50887
- tool: async (client, args28, ctx) => {
50888
- const [result, apiCall] = await promptsListVersions(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52604
+ args: args28,
52605
+ tool: async (client, args29, ctx) => {
52606
+ const [result, apiCall] = await promptsListVersions(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50889
52607
  if (!result.ok) {
50890
52608
  return {
50891
52609
  content: [{ type: "text", text: result.error.message }],
@@ -50900,9 +52618,9 @@ Returns a list of your prompt versions. The prompt versions are returned sorted
50900
52618
 
50901
52619
  // src/funcs/promptsRetrieve.ts
50902
52620
  function promptsRetrieve(client, request, options) {
50903
- return new APIPromise($do28(client, request, options));
52621
+ return new APIPromise($do29(client, request, options));
50904
52622
  }
50905
- async function $do28(client, request, options) {
52623
+ async function $do29(client, request, options) {
50906
52624
  const parsed = safeParse(request, (value) => GetOnePromptRequest$outboundSchema.parse(value), "Input validation failed");
50907
52625
  if (!parsed.ok) {
50908
52626
  return [parsed, { status: "invalid" }];
@@ -50972,12 +52690,12 @@ var init_promptsRetrieve = __esm(() => {
50972
52690
  });
50973
52691
 
50974
52692
  // src/mcp-server/tools/promptsRetrieve.ts
50975
- var args28, tool$promptsRetrieve;
52693
+ var args29, tool$promptsRetrieve;
50976
52694
  var init_promptsRetrieve2 = __esm(() => {
50977
52695
  init_promptsRetrieve();
50978
52696
  init_operations();
50979
52697
  init_tools();
50980
- args28 = {
52698
+ args29 = {
50981
52699
  request: GetOnePromptRequest$inboundSchema
50982
52700
  };
50983
52701
  tool$promptsRetrieve = {
@@ -50985,9 +52703,9 @@ var init_promptsRetrieve2 = __esm(() => {
50985
52703
  description: `Retrieve a prompt
50986
52704
 
50987
52705
  Retrieves a prompt object`,
50988
- args: args28,
50989
- tool: async (client, args29, ctx) => {
50990
- const [result, apiCall] = await promptsRetrieve(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52706
+ args: args29,
52707
+ tool: async (client, args30, ctx) => {
52708
+ const [result, apiCall] = await promptsRetrieve(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50991
52709
  if (!result.ok) {
50992
52710
  return {
50993
52711
  content: [{ type: "text", text: result.error.message }],
@@ -51002,9 +52720,9 @@ Retrieves a prompt object`,
51002
52720
 
51003
52721
  // src/funcs/promptsUpdate.ts
51004
52722
  function promptsUpdate(client, request, options) {
51005
- return new APIPromise($do29(client, request, options));
52723
+ return new APIPromise($do30(client, request, options));
51006
52724
  }
51007
- async function $do29(client, request, options) {
52725
+ async function $do30(client, request, options) {
51008
52726
  const parsed = safeParse(request, (value) => UpdatePromptRequest$outboundSchema.parse(value), "Input validation failed");
51009
52727
  if (!parsed.ok) {
51010
52728
  return [parsed, { status: "invalid" }];
@@ -51079,20 +52797,20 @@ var init_promptsUpdate = __esm(() => {
51079
52797
  });
51080
52798
 
51081
52799
  // src/mcp-server/tools/promptsUpdate.ts
51082
- var args29, tool$promptsUpdate;
52800
+ var args30, tool$promptsUpdate;
51083
52801
  var init_promptsUpdate2 = __esm(() => {
51084
52802
  init_promptsUpdate();
51085
52803
  init_operations();
51086
52804
  init_tools();
51087
- args29 = {
52805
+ args30 = {
51088
52806
  request: UpdatePromptRequest$inboundSchema
51089
52807
  };
51090
52808
  tool$promptsUpdate = {
51091
52809
  name: "prompts-update",
51092
52810
  description: `Update a prompt`,
51093
- args: args29,
51094
- tool: async (client, args30, ctx) => {
51095
- const [result, apiCall] = await promptsUpdate(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52811
+ args: args30,
52812
+ tool: async (client, args31, ctx) => {
52813
+ const [result, apiCall] = await promptsUpdate(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51096
52814
  if (!result.ok) {
51097
52815
  return {
51098
52816
  content: [{ type: "text", text: result.error.message }],
@@ -51107,9 +52825,9 @@ var init_promptsUpdate2 = __esm(() => {
51107
52825
 
51108
52826
  // src/funcs/remoteconfigsRetrieve.ts
51109
52827
  function remoteconfigsRetrieve(client, request, options) {
51110
- return new APIPromise($do30(client, request, options));
52828
+ return new APIPromise($do31(client, request, options));
51111
52829
  }
51112
- async function $do30(client, request, options) {
52830
+ async function $do31(client, request, options) {
51113
52831
  const parsed = safeParse(request, (value) => RemoteConfigsGetConfigRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
51114
52832
  if (!parsed.ok) {
51115
52833
  return [parsed, { status: "invalid" }];
@@ -51174,20 +52892,20 @@ var init_remoteconfigsRetrieve = __esm(() => {
51174
52892
  });
51175
52893
 
51176
52894
  // src/mcp-server/tools/remoteconfigsRetrieve.ts
51177
- var args30, tool$remoteconfigsRetrieve;
52895
+ var args31, tool$remoteconfigsRetrieve;
51178
52896
  var init_remoteconfigsRetrieve2 = __esm(() => {
51179
52897
  init_remoteconfigsRetrieve();
51180
52898
  init_operations();
51181
52899
  init_tools();
51182
- args30 = {
52900
+ args31 = {
51183
52901
  request: RemoteConfigsGetConfigRequestBody$inboundSchema.optional()
51184
52902
  };
51185
52903
  tool$remoteconfigsRetrieve = {
51186
52904
  name: "remoteconfigs-retrieve",
51187
52905
  description: `Retrieve a remote config`,
51188
- args: args30,
51189
- tool: async (client, args31, ctx) => {
51190
- const [result, apiCall] = await remoteconfigsRetrieve(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52906
+ args: args31,
52907
+ tool: async (client, args32, ctx) => {
52908
+ const [result, apiCall] = await remoteconfigsRetrieve(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51191
52909
  if (!result.ok) {
51192
52910
  return {
51193
52911
  content: [{ type: "text", text: result.error.message }],
@@ -51204,7 +52922,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
51204
52922
  function createMCPServer(deps) {
51205
52923
  const server = new McpServer({
51206
52924
  name: "Orq",
51207
- version: "3.2.3"
52925
+ version: "3.2.5"
51208
52926
  });
51209
52927
  const client = new OrqCore({
51210
52928
  apiKey: deps.apiKey,
@@ -51225,6 +52943,7 @@ function createMCPServer(deps) {
51225
52943
  tool(tool$deploymentsList);
51226
52944
  tool(tool$deploymentsGetConfig);
51227
52945
  tool(tool$deploymentsInvoke);
52946
+ tool(tool$deploymentsStream);
51228
52947
  tool(tool$filesCreate);
51229
52948
  tool(tool$filesList);
51230
52949
  tool(tool$filesGet);
@@ -51275,6 +52994,7 @@ var init_server2 = __esm(() => {
51275
52994
  init_deploymentsInvoke2();
51276
52995
  init_deploymentsList2();
51277
52996
  init_deploymentsMetricsCreate2();
52997
+ init_deploymentsStream2();
51278
52998
  init_feedbackCreate2();
51279
52999
  init_filesCreate2();
51280
53000
  init_filesDelete2();
@@ -52497,7 +54217,7 @@ var routes = rn({
52497
54217
  var app = Ve(routes, {
52498
54218
  name: "mcp",
52499
54219
  versionInfo: {
52500
- currentVersion: "3.2.3"
54220
+ currentVersion: "3.2.5"
52501
54221
  }
52502
54222
  });
52503
54223
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -52505,5 +54225,5 @@ export {
52505
54225
  app
52506
54226
  };
52507
54227
 
52508
- //# debugId=11CA228C9FF29B3C64756E2164756E21
54228
+ //# debugId=0221D4E44B4A91B964756E2164756E21
52509
54229
  //# sourceMappingURL=mcp-server.js.map