@orq-ai/node 3.11.7 → 3.11.9
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.
- package/bin/mcp-server.js +104 -104
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +128 -87
- package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/docs/sdks/proxy/README.md +1284 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
- package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
- package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
- package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
- package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
- package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
- package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
- package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
- package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
- package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
- package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
- package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +33 -1
- package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
- package/packages/orq-rc/src/models/components/deployments.ts +861 -0
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
- package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
- package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
- package/packages/orq-rc/src/models/operations/index.ts +16 -0
- package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
- package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
- package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +878 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
- package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
- package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
- package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/batches.ts +81 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/packages/orq-rc/src/sdk/proxy.ts +211 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/temp/example.ts +5 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -92,6 +92,49 @@ export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType =
|
|
|
92
92
|
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
|
|
93
93
|
>;
|
|
94
94
|
|
|
95
|
+
export const DeploymentStreamAnnotationsDeploymentsType = {
|
|
96
|
+
FilePath: "file_path",
|
|
97
|
+
} as const;
|
|
98
|
+
export type DeploymentStreamAnnotationsDeploymentsType = ClosedEnum<
|
|
99
|
+
typeof DeploymentStreamAnnotationsDeploymentsType
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
export type DeploymentStreamAnnotationsFilePath = {
|
|
103
|
+
fileId: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type DeploymentStreamAnnotations2 = {
|
|
107
|
+
type: DeploymentStreamAnnotationsDeploymentsType;
|
|
108
|
+
text: string;
|
|
109
|
+
filePath: DeploymentStreamAnnotationsFilePath;
|
|
110
|
+
startIndex: number;
|
|
111
|
+
endIndex: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const DeploymentStreamAnnotationsType = {
|
|
115
|
+
FileCitation: "file_citation",
|
|
116
|
+
} as const;
|
|
117
|
+
export type DeploymentStreamAnnotationsType = ClosedEnum<
|
|
118
|
+
typeof DeploymentStreamAnnotationsType
|
|
119
|
+
>;
|
|
120
|
+
|
|
121
|
+
export type DeploymentStreamAnnotationsFileCitation = {
|
|
122
|
+
fileId: string;
|
|
123
|
+
quote?: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type DeploymentStreamAnnotations1 = {
|
|
127
|
+
type: DeploymentStreamAnnotationsType;
|
|
128
|
+
text: string;
|
|
129
|
+
fileCitation: DeploymentStreamAnnotationsFileCitation;
|
|
130
|
+
startIndex: number;
|
|
131
|
+
endIndex: number;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export type DeploymentStream2Annotations =
|
|
135
|
+
| DeploymentStreamAnnotations1
|
|
136
|
+
| DeploymentStreamAnnotations2;
|
|
137
|
+
|
|
95
138
|
export type DeploymentStream2TextContentPart = {
|
|
96
139
|
/**
|
|
97
140
|
* The type of the content part.
|
|
@@ -101,6 +144,12 @@ export type DeploymentStream2TextContentPart = {
|
|
|
101
144
|
* The text content.
|
|
102
145
|
*/
|
|
103
146
|
text: string;
|
|
147
|
+
/**
|
|
148
|
+
* Annotations for the text content.
|
|
149
|
+
*/
|
|
150
|
+
annotations?:
|
|
151
|
+
| Array<DeploymentStreamAnnotations1 | DeploymentStreamAnnotations2>
|
|
152
|
+
| undefined;
|
|
104
153
|
};
|
|
105
154
|
|
|
106
155
|
export type DeploymentStreamContentDeployments2 =
|
|
@@ -528,6 +577,50 @@ export type DeploymentStream2DeploymentsRequestRequestBodyMessages4Type =
|
|
|
528
577
|
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type
|
|
529
578
|
>;
|
|
530
579
|
|
|
580
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType = {
|
|
581
|
+
FilePath: "file_path",
|
|
582
|
+
} as const;
|
|
583
|
+
export type DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType =
|
|
584
|
+
ClosedEnum<
|
|
585
|
+
typeof DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType
|
|
586
|
+
>;
|
|
587
|
+
|
|
588
|
+
export type DeploymentStreamAnnotationsDeploymentsFilePath = {
|
|
589
|
+
fileId: string;
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
export type DeploymentStreamAnnotationsDeployments2 = {
|
|
593
|
+
type: DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType;
|
|
594
|
+
text: string;
|
|
595
|
+
filePath: DeploymentStreamAnnotationsDeploymentsFilePath;
|
|
596
|
+
startIndex: number;
|
|
597
|
+
endIndex: number;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestType = {
|
|
601
|
+
FileCitation: "file_citation",
|
|
602
|
+
} as const;
|
|
603
|
+
export type DeploymentStreamAnnotationsDeploymentsRequestType = ClosedEnum<
|
|
604
|
+
typeof DeploymentStreamAnnotationsDeploymentsRequestType
|
|
605
|
+
>;
|
|
606
|
+
|
|
607
|
+
export type DeploymentStreamAnnotationsDeploymentsFileCitation = {
|
|
608
|
+
fileId: string;
|
|
609
|
+
quote?: string | undefined;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
export type DeploymentStreamAnnotationsDeployments1 = {
|
|
613
|
+
type: DeploymentStreamAnnotationsDeploymentsRequestType;
|
|
614
|
+
text: string;
|
|
615
|
+
fileCitation: DeploymentStreamAnnotationsDeploymentsFileCitation;
|
|
616
|
+
startIndex: number;
|
|
617
|
+
endIndex: number;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
export type DeploymentStream2DeploymentsAnnotations =
|
|
621
|
+
| DeploymentStreamAnnotationsDeployments1
|
|
622
|
+
| DeploymentStreamAnnotationsDeployments2;
|
|
623
|
+
|
|
531
624
|
export type DeploymentStream2DeploymentsTextContentPart = {
|
|
532
625
|
/**
|
|
533
626
|
* The type of the content part.
|
|
@@ -537,6 +630,15 @@ export type DeploymentStream2DeploymentsTextContentPart = {
|
|
|
537
630
|
* The text content.
|
|
538
631
|
*/
|
|
539
632
|
text: string;
|
|
633
|
+
/**
|
|
634
|
+
* Annotations for the text content.
|
|
635
|
+
*/
|
|
636
|
+
annotations?:
|
|
637
|
+
| Array<
|
|
638
|
+
| DeploymentStreamAnnotationsDeployments1
|
|
639
|
+
| DeploymentStreamAnnotationsDeployments2
|
|
640
|
+
>
|
|
641
|
+
| undefined;
|
|
540
642
|
};
|
|
541
643
|
|
|
542
644
|
export type DeploymentStreamContentDeploymentsRequestRequestBody2 =
|
|
@@ -1355,6 +1457,10 @@ export const DeploymentStreamProvider = {
|
|
|
1355
1457
|
Jina: "jina",
|
|
1356
1458
|
Togetherai: "togetherai",
|
|
1357
1459
|
Elevenlabs: "elevenlabs",
|
|
1460
|
+
Litellm: "litellm",
|
|
1461
|
+
Openailike: "openailike",
|
|
1462
|
+
Cerebras: "cerebras",
|
|
1463
|
+
Bytedance: "bytedance",
|
|
1358
1464
|
} as const;
|
|
1359
1465
|
/**
|
|
1360
1466
|
* The provider used to generate the response
|
|
@@ -1363,6 +1469,50 @@ export type DeploymentStreamProvider = ClosedEnum<
|
|
|
1363
1469
|
typeof DeploymentStreamProvider
|
|
1364
1470
|
>;
|
|
1365
1471
|
|
|
1472
|
+
/**
|
|
1473
|
+
* Metadata of the retrieved chunk from the knowledge base
|
|
1474
|
+
*/
|
|
1475
|
+
export type DeploymentStreamDeploymentsMetadata = {
|
|
1476
|
+
/**
|
|
1477
|
+
* Name of the file
|
|
1478
|
+
*/
|
|
1479
|
+
fileName: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* Page number of the chunk
|
|
1482
|
+
*/
|
|
1483
|
+
pageNumber: number | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Type of the file
|
|
1486
|
+
*/
|
|
1487
|
+
fileType: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* Rerank scores are normalized to be in the range [0, 1]. Scores close to 1 indicate a high relevance to the query, and scores closer to 0 indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45
|
|
1490
|
+
*/
|
|
1491
|
+
rerankScore?: number | undefined;
|
|
1492
|
+
/**
|
|
1493
|
+
* Search scores are normalized to be in the range [0, 1]. Search score is calculated based on `[Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)` algorithm. Scores close to 1 indicate the document is closer to the query, and scores closer to 0 indicate the document is farther from the query.
|
|
1494
|
+
*/
|
|
1495
|
+
searchScore: number;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
export type DeploymentStreamRetrievals = {
|
|
1499
|
+
/**
|
|
1500
|
+
* Content of the retrieved chunk from the knowledge base
|
|
1501
|
+
*/
|
|
1502
|
+
document: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* Metadata of the retrieved chunk from the knowledge base
|
|
1505
|
+
*/
|
|
1506
|
+
metadata: DeploymentStreamDeploymentsMetadata;
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
export const DeploymentStreamMessageDeploymentsResponseType = {
|
|
1510
|
+
Image: "image",
|
|
1511
|
+
} as const;
|
|
1512
|
+
export type DeploymentStreamMessageDeploymentsResponseType = ClosedEnum<
|
|
1513
|
+
typeof DeploymentStreamMessageDeploymentsResponseType
|
|
1514
|
+
>;
|
|
1515
|
+
|
|
1366
1516
|
/**
|
|
1367
1517
|
* The role of the prompt message
|
|
1368
1518
|
*/
|
|
@@ -1384,6 +1534,7 @@ export type DeploymentStreamMessageDeploymentsResponseRole = ClosedEnum<
|
|
|
1384
1534
|
>;
|
|
1385
1535
|
|
|
1386
1536
|
export type DeploymentStreamMessage3 = {
|
|
1537
|
+
type: DeploymentStreamMessageDeploymentsResponseType;
|
|
1387
1538
|
/**
|
|
1388
1539
|
* The role of the prompt message
|
|
1389
1540
|
*/
|
|
@@ -1391,6 +1542,13 @@ export type DeploymentStreamMessage3 = {
|
|
|
1391
1542
|
url: string;
|
|
1392
1543
|
};
|
|
1393
1544
|
|
|
1545
|
+
export const DeploymentStreamMessageDeploymentsType = {
|
|
1546
|
+
Content: "content",
|
|
1547
|
+
} as const;
|
|
1548
|
+
export type DeploymentStreamMessageDeploymentsType = ClosedEnum<
|
|
1549
|
+
typeof DeploymentStreamMessageDeploymentsType
|
|
1550
|
+
>;
|
|
1551
|
+
|
|
1394
1552
|
/**
|
|
1395
1553
|
* The role of the prompt message
|
|
1396
1554
|
*/
|
|
@@ -1412,13 +1570,33 @@ export type DeploymentStreamMessageDeploymentsRole = ClosedEnum<
|
|
|
1412
1570
|
>;
|
|
1413
1571
|
|
|
1414
1572
|
export type DeploymentStreamMessage2 = {
|
|
1573
|
+
type: DeploymentStreamMessageDeploymentsType;
|
|
1415
1574
|
/**
|
|
1416
1575
|
* The role of the prompt message
|
|
1417
1576
|
*/
|
|
1418
1577
|
role: DeploymentStreamMessageDeploymentsRole;
|
|
1419
1578
|
content: string | null;
|
|
1579
|
+
/**
|
|
1580
|
+
* Internal thought process of the model
|
|
1581
|
+
*/
|
|
1582
|
+
reasoning?: string | undefined;
|
|
1583
|
+
/**
|
|
1584
|
+
* The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
|
|
1585
|
+
*/
|
|
1586
|
+
reasoningSignature?: string | undefined;
|
|
1587
|
+
/**
|
|
1588
|
+
* Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
|
|
1589
|
+
*/
|
|
1590
|
+
redactedReasoning?: string | undefined;
|
|
1420
1591
|
};
|
|
1421
1592
|
|
|
1593
|
+
export const DeploymentStreamMessageType = {
|
|
1594
|
+
ToolCalls: "tool_calls",
|
|
1595
|
+
} as const;
|
|
1596
|
+
export type DeploymentStreamMessageType = ClosedEnum<
|
|
1597
|
+
typeof DeploymentStreamMessageType
|
|
1598
|
+
>;
|
|
1599
|
+
|
|
1422
1600
|
/**
|
|
1423
1601
|
* The role of the prompt message
|
|
1424
1602
|
*/
|
|
@@ -1439,11 +1617,11 @@ export type DeploymentStreamMessageRole = ClosedEnum<
|
|
|
1439
1617
|
typeof DeploymentStreamMessageRole
|
|
1440
1618
|
>;
|
|
1441
1619
|
|
|
1442
|
-
export const
|
|
1620
|
+
export const DeploymentStreamMessageDeploymentsResponse200Type = {
|
|
1443
1621
|
Function: "function",
|
|
1444
1622
|
} as const;
|
|
1445
|
-
export type
|
|
1446
|
-
typeof
|
|
1623
|
+
export type DeploymentStreamMessageDeploymentsResponse200Type = ClosedEnum<
|
|
1624
|
+
typeof DeploymentStreamMessageDeploymentsResponse200Type
|
|
1447
1625
|
>;
|
|
1448
1626
|
|
|
1449
1627
|
export type DeploymentStreamMessageFunction = {
|
|
@@ -1457,17 +1635,30 @@ export type DeploymentStreamMessageFunction = {
|
|
|
1457
1635
|
export type DeploymentStreamMessageToolCalls = {
|
|
1458
1636
|
id?: string | undefined;
|
|
1459
1637
|
index?: number | undefined;
|
|
1460
|
-
type:
|
|
1638
|
+
type: DeploymentStreamMessageDeploymentsResponse200Type;
|
|
1461
1639
|
function: DeploymentStreamMessageFunction;
|
|
1462
1640
|
};
|
|
1463
1641
|
|
|
1464
1642
|
export type DeploymentStreamMessage1 = {
|
|
1643
|
+
type: DeploymentStreamMessageType;
|
|
1465
1644
|
/**
|
|
1466
1645
|
* The role of the prompt message
|
|
1467
1646
|
*/
|
|
1468
1647
|
role: DeploymentStreamMessageRole;
|
|
1469
1648
|
content?: string | null | undefined;
|
|
1470
1649
|
toolCalls: Array<DeploymentStreamMessageToolCalls>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Internal thought process of the model
|
|
1652
|
+
*/
|
|
1653
|
+
reasoning?: string | undefined;
|
|
1654
|
+
/**
|
|
1655
|
+
* The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
|
|
1656
|
+
*/
|
|
1657
|
+
reasoningSignature?: string | undefined;
|
|
1658
|
+
/**
|
|
1659
|
+
* Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
|
|
1660
|
+
*/
|
|
1661
|
+
redactedReasoning?: string | undefined;
|
|
1471
1662
|
};
|
|
1472
1663
|
|
|
1473
1664
|
export type DeploymentStreamMessage =
|
|
@@ -1477,76 +1668,38 @@ export type DeploymentStreamMessage =
|
|
|
1477
1668
|
|
|
1478
1669
|
export type DeploymentStreamChoices = {
|
|
1479
1670
|
index: number;
|
|
1480
|
-
message
|
|
1671
|
+
message:
|
|
1481
1672
|
| DeploymentStreamMessage1
|
|
1482
1673
|
| DeploymentStreamMessage2
|
|
1483
|
-
| DeploymentStreamMessage3
|
|
1484
|
-
| undefined;
|
|
1674
|
+
| DeploymentStreamMessage3;
|
|
1485
1675
|
finishReason?: string | null | undefined;
|
|
1486
1676
|
};
|
|
1487
1677
|
|
|
1488
|
-
/**
|
|
1489
|
-
* Metadata of the retrieved chunk from the knowledge base
|
|
1490
|
-
*/
|
|
1491
|
-
export type DeploymentStreamDeploymentsMetadata = {
|
|
1492
|
-
/**
|
|
1493
|
-
* Name of the file
|
|
1494
|
-
*/
|
|
1495
|
-
fileName: string;
|
|
1496
|
-
/**
|
|
1497
|
-
* Page number of the chunk
|
|
1498
|
-
*/
|
|
1499
|
-
pageNumber: number | null;
|
|
1500
|
-
/**
|
|
1501
|
-
* Type of the file
|
|
1502
|
-
*/
|
|
1503
|
-
fileType: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* Rerank scores are normalized to be in the range [0, 1]. Scores close to 1 indicate a high relevance to the query, and scores closer to 0 indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45
|
|
1506
|
-
*/
|
|
1507
|
-
rerankScore?: number | undefined;
|
|
1508
|
-
/**
|
|
1509
|
-
* Search scores are normalized to be in the range [0, 1]. Search score is calculated based on `[Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)` algorithm. Scores close to 1 indicate the document is closer to the query, and scores closer to 0 indicate the document is farther from the query.
|
|
1510
|
-
*/
|
|
1511
|
-
searchScore: number;
|
|
1512
|
-
};
|
|
1513
|
-
|
|
1514
|
-
export type DeploymentStreamRetrievals = {
|
|
1515
|
-
/**
|
|
1516
|
-
* Content of the retrieved chunk from the knowledge base
|
|
1517
|
-
*/
|
|
1518
|
-
document: string;
|
|
1519
|
-
/**
|
|
1520
|
-
* Metadata of the retrieved chunk from the knowledge base
|
|
1521
|
-
*/
|
|
1522
|
-
metadata: DeploymentStreamDeploymentsMetadata;
|
|
1523
|
-
};
|
|
1524
|
-
|
|
1525
1678
|
export type DeploymentStreamData = {
|
|
1526
1679
|
/**
|
|
1527
1680
|
* A unique identifier for the response. Can be used to add metrics to the transaction.
|
|
1528
1681
|
*/
|
|
1529
|
-
id
|
|
1682
|
+
id: string;
|
|
1530
1683
|
/**
|
|
1531
1684
|
* A timestamp indicating when the object was created. Usually in a standardized format like ISO 8601
|
|
1532
1685
|
*/
|
|
1533
|
-
created
|
|
1686
|
+
created: Date;
|
|
1534
1687
|
/**
|
|
1535
1688
|
* Indicates the type of model used to generate the response
|
|
1536
1689
|
*/
|
|
1537
|
-
object
|
|
1690
|
+
object: DeploymentStreamObject;
|
|
1538
1691
|
/**
|
|
1539
1692
|
* The model used to generate the response
|
|
1540
1693
|
*/
|
|
1541
|
-
model
|
|
1694
|
+
model: string;
|
|
1542
1695
|
/**
|
|
1543
1696
|
* The provider used to generate the response
|
|
1544
1697
|
*/
|
|
1545
|
-
provider
|
|
1698
|
+
provider: DeploymentStreamProvider;
|
|
1546
1699
|
/**
|
|
1547
1700
|
* Indicates if the response is the final response
|
|
1548
1701
|
*/
|
|
1549
|
-
isFinal
|
|
1702
|
+
isFinal: boolean;
|
|
1550
1703
|
/**
|
|
1551
1704
|
* Indicates integration id used to generate the response
|
|
1552
1705
|
*/
|
|
@@ -1559,10 +1712,6 @@ export type DeploymentStreamData = {
|
|
|
1559
1712
|
* Provider backed system fingerprint.
|
|
1560
1713
|
*/
|
|
1561
1714
|
systemFingerprint?: string | null | undefined;
|
|
1562
|
-
/**
|
|
1563
|
-
* A list of choices generated by the model
|
|
1564
|
-
*/
|
|
1565
|
-
choices?: Array<DeploymentStreamChoices> | undefined;
|
|
1566
1715
|
/**
|
|
1567
1716
|
* List of documents retrieved from the knowledge base. This property is only available when the `include_retrievals` flag is set to `true` in the invoke settings. When stream is set to true, the `retrievals` property will be returned in the last streamed chunk where the property `is_final` is set to `true`.
|
|
1568
1717
|
*/
|
|
@@ -1571,6 +1720,10 @@ export type DeploymentStreamData = {
|
|
|
1571
1720
|
* Response returned by the model provider. This functionality is only supported when streaming is not used. If streaming is used, the `provider_response` property will be set to `null`.
|
|
1572
1721
|
*/
|
|
1573
1722
|
providerResponse?: any | undefined;
|
|
1723
|
+
/**
|
|
1724
|
+
* A list of choices generated by the model
|
|
1725
|
+
*/
|
|
1726
|
+
choices: Array<DeploymentStreamChoices>;
|
|
1574
1727
|
};
|
|
1575
1728
|
|
|
1576
1729
|
/**
|
|
@@ -1918,102 +2071,529 @@ export namespace DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesTyp
|
|
|
1918
2071
|
}
|
|
1919
2072
|
|
|
1920
2073
|
/** @internal */
|
|
1921
|
-
export const
|
|
1922
|
-
|
|
2074
|
+
export const DeploymentStreamAnnotationsDeploymentsType$inboundSchema:
|
|
2075
|
+
z.ZodNativeEnum<typeof DeploymentStreamAnnotationsDeploymentsType> = z
|
|
2076
|
+
.nativeEnum(DeploymentStreamAnnotationsDeploymentsType);
|
|
2077
|
+
|
|
2078
|
+
/** @internal */
|
|
2079
|
+
export const DeploymentStreamAnnotationsDeploymentsType$outboundSchema:
|
|
2080
|
+
z.ZodNativeEnum<typeof DeploymentStreamAnnotationsDeploymentsType> =
|
|
2081
|
+
DeploymentStreamAnnotationsDeploymentsType$inboundSchema;
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* @internal
|
|
2085
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2086
|
+
*/
|
|
2087
|
+
export namespace DeploymentStreamAnnotationsDeploymentsType$ {
|
|
2088
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsType$inboundSchema` instead. */
|
|
2089
|
+
export const inboundSchema =
|
|
2090
|
+
DeploymentStreamAnnotationsDeploymentsType$inboundSchema;
|
|
2091
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsType$outboundSchema` instead. */
|
|
2092
|
+
export const outboundSchema =
|
|
2093
|
+
DeploymentStreamAnnotationsDeploymentsType$outboundSchema;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/** @internal */
|
|
2097
|
+
export const DeploymentStreamAnnotationsFilePath$inboundSchema: z.ZodType<
|
|
2098
|
+
DeploymentStreamAnnotationsFilePath,
|
|
1923
2099
|
z.ZodTypeDef,
|
|
1924
2100
|
unknown
|
|
1925
2101
|
> = z.object({
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
2102
|
+
file_id: z.string(),
|
|
2103
|
+
}).transform((v) => {
|
|
2104
|
+
return remap$(v, {
|
|
2105
|
+
"file_id": "fileId",
|
|
2106
|
+
});
|
|
1929
2107
|
});
|
|
1930
2108
|
|
|
1931
2109
|
/** @internal */
|
|
1932
|
-
export type
|
|
1933
|
-
|
|
1934
|
-
text: string;
|
|
2110
|
+
export type DeploymentStreamAnnotationsFilePath$Outbound = {
|
|
2111
|
+
file_id: string;
|
|
1935
2112
|
};
|
|
1936
2113
|
|
|
1937
2114
|
/** @internal */
|
|
1938
|
-
export const
|
|
1939
|
-
|
|
2115
|
+
export const DeploymentStreamAnnotationsFilePath$outboundSchema: z.ZodType<
|
|
2116
|
+
DeploymentStreamAnnotationsFilePath$Outbound,
|
|
1940
2117
|
z.ZodTypeDef,
|
|
1941
|
-
|
|
2118
|
+
DeploymentStreamAnnotationsFilePath
|
|
1942
2119
|
> = z.object({
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2120
|
+
fileId: z.string(),
|
|
2121
|
+
}).transform((v) => {
|
|
2122
|
+
return remap$(v, {
|
|
2123
|
+
fileId: "file_id",
|
|
2124
|
+
});
|
|
1946
2125
|
});
|
|
1947
2126
|
|
|
1948
2127
|
/**
|
|
1949
2128
|
* @internal
|
|
1950
2129
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1951
2130
|
*/
|
|
1952
|
-
export namespace
|
|
1953
|
-
/** @deprecated use `
|
|
1954
|
-
export const inboundSchema =
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2131
|
+
export namespace DeploymentStreamAnnotationsFilePath$ {
|
|
2132
|
+
/** @deprecated use `DeploymentStreamAnnotationsFilePath$inboundSchema` instead. */
|
|
2133
|
+
export const inboundSchema =
|
|
2134
|
+
DeploymentStreamAnnotationsFilePath$inboundSchema;
|
|
2135
|
+
/** @deprecated use `DeploymentStreamAnnotationsFilePath$outboundSchema` instead. */
|
|
2136
|
+
export const outboundSchema =
|
|
2137
|
+
DeploymentStreamAnnotationsFilePath$outboundSchema;
|
|
2138
|
+
/** @deprecated use `DeploymentStreamAnnotationsFilePath$Outbound` instead. */
|
|
2139
|
+
export type Outbound = DeploymentStreamAnnotationsFilePath$Outbound;
|
|
1959
2140
|
}
|
|
1960
2141
|
|
|
1961
|
-
export function
|
|
1962
|
-
|
|
2142
|
+
export function deploymentStreamAnnotationsFilePathToJSON(
|
|
2143
|
+
deploymentStreamAnnotationsFilePath: DeploymentStreamAnnotationsFilePath,
|
|
1963
2144
|
): string {
|
|
1964
2145
|
return JSON.stringify(
|
|
1965
|
-
|
|
1966
|
-
|
|
2146
|
+
DeploymentStreamAnnotationsFilePath$outboundSchema.parse(
|
|
2147
|
+
deploymentStreamAnnotationsFilePath,
|
|
1967
2148
|
),
|
|
1968
2149
|
);
|
|
1969
2150
|
}
|
|
1970
2151
|
|
|
1971
|
-
export function
|
|
2152
|
+
export function deploymentStreamAnnotationsFilePathFromJSON(
|
|
1972
2153
|
jsonString: string,
|
|
1973
|
-
): SafeParseResult<
|
|
2154
|
+
): SafeParseResult<DeploymentStreamAnnotationsFilePath, SDKValidationError> {
|
|
1974
2155
|
return safeParse(
|
|
1975
2156
|
jsonString,
|
|
1976
|
-
(x) =>
|
|
1977
|
-
|
|
2157
|
+
(x) =>
|
|
2158
|
+
DeploymentStreamAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
|
|
2159
|
+
`Failed to parse 'DeploymentStreamAnnotationsFilePath' from JSON`,
|
|
1978
2160
|
);
|
|
1979
2161
|
}
|
|
1980
2162
|
|
|
1981
2163
|
/** @internal */
|
|
1982
|
-
export const
|
|
1983
|
-
|
|
2164
|
+
export const DeploymentStreamAnnotations2$inboundSchema: z.ZodType<
|
|
2165
|
+
DeploymentStreamAnnotations2,
|
|
1984
2166
|
z.ZodTypeDef,
|
|
1985
2167
|
unknown
|
|
1986
|
-
> = z.
|
|
1987
|
-
|
|
1988
|
-
z.
|
|
1989
|
-
|
|
2168
|
+
> = z.object({
|
|
2169
|
+
type: DeploymentStreamAnnotationsDeploymentsType$inboundSchema,
|
|
2170
|
+
text: z.string(),
|
|
2171
|
+
file_path: z.lazy(() => DeploymentStreamAnnotationsFilePath$inboundSchema),
|
|
2172
|
+
start_index: z.number().int(),
|
|
2173
|
+
end_index: z.number().int(),
|
|
2174
|
+
}).transform((v) => {
|
|
2175
|
+
return remap$(v, {
|
|
2176
|
+
"file_path": "filePath",
|
|
2177
|
+
"start_index": "startIndex",
|
|
2178
|
+
"end_index": "endIndex",
|
|
2179
|
+
});
|
|
2180
|
+
});
|
|
1990
2181
|
|
|
1991
2182
|
/** @internal */
|
|
1992
|
-
export type
|
|
1993
|
-
|
|
1994
|
-
|
|
2183
|
+
export type DeploymentStreamAnnotations2$Outbound = {
|
|
2184
|
+
type: string;
|
|
2185
|
+
text: string;
|
|
2186
|
+
file_path: DeploymentStreamAnnotationsFilePath$Outbound;
|
|
2187
|
+
start_index: number;
|
|
2188
|
+
end_index: number;
|
|
2189
|
+
};
|
|
1995
2190
|
|
|
1996
2191
|
/** @internal */
|
|
1997
|
-
export const
|
|
1998
|
-
|
|
2192
|
+
export const DeploymentStreamAnnotations2$outboundSchema: z.ZodType<
|
|
2193
|
+
DeploymentStreamAnnotations2$Outbound,
|
|
1999
2194
|
z.ZodTypeDef,
|
|
2000
|
-
|
|
2001
|
-
> = z.
|
|
2002
|
-
|
|
2003
|
-
z.
|
|
2004
|
-
|
|
2195
|
+
DeploymentStreamAnnotations2
|
|
2196
|
+
> = z.object({
|
|
2197
|
+
type: DeploymentStreamAnnotationsDeploymentsType$outboundSchema,
|
|
2198
|
+
text: z.string(),
|
|
2199
|
+
filePath: z.lazy(() => DeploymentStreamAnnotationsFilePath$outboundSchema),
|
|
2200
|
+
startIndex: z.number().int(),
|
|
2201
|
+
endIndex: z.number().int(),
|
|
2202
|
+
}).transform((v) => {
|
|
2203
|
+
return remap$(v, {
|
|
2204
|
+
filePath: "file_path",
|
|
2205
|
+
startIndex: "start_index",
|
|
2206
|
+
endIndex: "end_index",
|
|
2207
|
+
});
|
|
2208
|
+
});
|
|
2005
2209
|
|
|
2006
2210
|
/**
|
|
2007
2211
|
* @internal
|
|
2008
2212
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2009
2213
|
*/
|
|
2010
|
-
export namespace
|
|
2011
|
-
/** @deprecated use `
|
|
2012
|
-
export const inboundSchema =
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2214
|
+
export namespace DeploymentStreamAnnotations2$ {
|
|
2215
|
+
/** @deprecated use `DeploymentStreamAnnotations2$inboundSchema` instead. */
|
|
2216
|
+
export const inboundSchema = DeploymentStreamAnnotations2$inboundSchema;
|
|
2217
|
+
/** @deprecated use `DeploymentStreamAnnotations2$outboundSchema` instead. */
|
|
2218
|
+
export const outboundSchema = DeploymentStreamAnnotations2$outboundSchema;
|
|
2219
|
+
/** @deprecated use `DeploymentStreamAnnotations2$Outbound` instead. */
|
|
2220
|
+
export type Outbound = DeploymentStreamAnnotations2$Outbound;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
export function deploymentStreamAnnotations2ToJSON(
|
|
2224
|
+
deploymentStreamAnnotations2: DeploymentStreamAnnotations2,
|
|
2225
|
+
): string {
|
|
2226
|
+
return JSON.stringify(
|
|
2227
|
+
DeploymentStreamAnnotations2$outboundSchema.parse(
|
|
2228
|
+
deploymentStreamAnnotations2,
|
|
2229
|
+
),
|
|
2230
|
+
);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export function deploymentStreamAnnotations2FromJSON(
|
|
2234
|
+
jsonString: string,
|
|
2235
|
+
): SafeParseResult<DeploymentStreamAnnotations2, SDKValidationError> {
|
|
2236
|
+
return safeParse(
|
|
2237
|
+
jsonString,
|
|
2238
|
+
(x) => DeploymentStreamAnnotations2$inboundSchema.parse(JSON.parse(x)),
|
|
2239
|
+
`Failed to parse 'DeploymentStreamAnnotations2' from JSON`,
|
|
2240
|
+
);
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
/** @internal */
|
|
2244
|
+
export const DeploymentStreamAnnotationsType$inboundSchema: z.ZodNativeEnum<
|
|
2245
|
+
typeof DeploymentStreamAnnotationsType
|
|
2246
|
+
> = z.nativeEnum(DeploymentStreamAnnotationsType);
|
|
2247
|
+
|
|
2248
|
+
/** @internal */
|
|
2249
|
+
export const DeploymentStreamAnnotationsType$outboundSchema: z.ZodNativeEnum<
|
|
2250
|
+
typeof DeploymentStreamAnnotationsType
|
|
2251
|
+
> = DeploymentStreamAnnotationsType$inboundSchema;
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* @internal
|
|
2255
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2256
|
+
*/
|
|
2257
|
+
export namespace DeploymentStreamAnnotationsType$ {
|
|
2258
|
+
/** @deprecated use `DeploymentStreamAnnotationsType$inboundSchema` instead. */
|
|
2259
|
+
export const inboundSchema = DeploymentStreamAnnotationsType$inboundSchema;
|
|
2260
|
+
/** @deprecated use `DeploymentStreamAnnotationsType$outboundSchema` instead. */
|
|
2261
|
+
export const outboundSchema = DeploymentStreamAnnotationsType$outboundSchema;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
/** @internal */
|
|
2265
|
+
export const DeploymentStreamAnnotationsFileCitation$inboundSchema: z.ZodType<
|
|
2266
|
+
DeploymentStreamAnnotationsFileCitation,
|
|
2267
|
+
z.ZodTypeDef,
|
|
2268
|
+
unknown
|
|
2269
|
+
> = z.object({
|
|
2270
|
+
file_id: z.string(),
|
|
2271
|
+
quote: z.string().optional(),
|
|
2272
|
+
}).transform((v) => {
|
|
2273
|
+
return remap$(v, {
|
|
2274
|
+
"file_id": "fileId",
|
|
2275
|
+
});
|
|
2276
|
+
});
|
|
2277
|
+
|
|
2278
|
+
/** @internal */
|
|
2279
|
+
export type DeploymentStreamAnnotationsFileCitation$Outbound = {
|
|
2280
|
+
file_id: string;
|
|
2281
|
+
quote?: string | undefined;
|
|
2282
|
+
};
|
|
2283
|
+
|
|
2284
|
+
/** @internal */
|
|
2285
|
+
export const DeploymentStreamAnnotationsFileCitation$outboundSchema: z.ZodType<
|
|
2286
|
+
DeploymentStreamAnnotationsFileCitation$Outbound,
|
|
2287
|
+
z.ZodTypeDef,
|
|
2288
|
+
DeploymentStreamAnnotationsFileCitation
|
|
2289
|
+
> = z.object({
|
|
2290
|
+
fileId: z.string(),
|
|
2291
|
+
quote: z.string().optional(),
|
|
2292
|
+
}).transform((v) => {
|
|
2293
|
+
return remap$(v, {
|
|
2294
|
+
fileId: "file_id",
|
|
2295
|
+
});
|
|
2296
|
+
});
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* @internal
|
|
2300
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2301
|
+
*/
|
|
2302
|
+
export namespace DeploymentStreamAnnotationsFileCitation$ {
|
|
2303
|
+
/** @deprecated use `DeploymentStreamAnnotationsFileCitation$inboundSchema` instead. */
|
|
2304
|
+
export const inboundSchema =
|
|
2305
|
+
DeploymentStreamAnnotationsFileCitation$inboundSchema;
|
|
2306
|
+
/** @deprecated use `DeploymentStreamAnnotationsFileCitation$outboundSchema` instead. */
|
|
2307
|
+
export const outboundSchema =
|
|
2308
|
+
DeploymentStreamAnnotationsFileCitation$outboundSchema;
|
|
2309
|
+
/** @deprecated use `DeploymentStreamAnnotationsFileCitation$Outbound` instead. */
|
|
2310
|
+
export type Outbound = DeploymentStreamAnnotationsFileCitation$Outbound;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
export function deploymentStreamAnnotationsFileCitationToJSON(
|
|
2314
|
+
deploymentStreamAnnotationsFileCitation:
|
|
2315
|
+
DeploymentStreamAnnotationsFileCitation,
|
|
2316
|
+
): string {
|
|
2317
|
+
return JSON.stringify(
|
|
2318
|
+
DeploymentStreamAnnotationsFileCitation$outboundSchema.parse(
|
|
2319
|
+
deploymentStreamAnnotationsFileCitation,
|
|
2320
|
+
),
|
|
2321
|
+
);
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
export function deploymentStreamAnnotationsFileCitationFromJSON(
|
|
2325
|
+
jsonString: string,
|
|
2326
|
+
): SafeParseResult<
|
|
2327
|
+
DeploymentStreamAnnotationsFileCitation,
|
|
2328
|
+
SDKValidationError
|
|
2329
|
+
> {
|
|
2330
|
+
return safeParse(
|
|
2331
|
+
jsonString,
|
|
2332
|
+
(x) =>
|
|
2333
|
+
DeploymentStreamAnnotationsFileCitation$inboundSchema.parse(
|
|
2334
|
+
JSON.parse(x),
|
|
2335
|
+
),
|
|
2336
|
+
`Failed to parse 'DeploymentStreamAnnotationsFileCitation' from JSON`,
|
|
2337
|
+
);
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
/** @internal */
|
|
2341
|
+
export const DeploymentStreamAnnotations1$inboundSchema: z.ZodType<
|
|
2342
|
+
DeploymentStreamAnnotations1,
|
|
2343
|
+
z.ZodTypeDef,
|
|
2344
|
+
unknown
|
|
2345
|
+
> = z.object({
|
|
2346
|
+
type: DeploymentStreamAnnotationsType$inboundSchema,
|
|
2347
|
+
text: z.string(),
|
|
2348
|
+
file_citation: z.lazy(() =>
|
|
2349
|
+
DeploymentStreamAnnotationsFileCitation$inboundSchema
|
|
2350
|
+
),
|
|
2351
|
+
start_index: z.number().int(),
|
|
2352
|
+
end_index: z.number().int(),
|
|
2353
|
+
}).transform((v) => {
|
|
2354
|
+
return remap$(v, {
|
|
2355
|
+
"file_citation": "fileCitation",
|
|
2356
|
+
"start_index": "startIndex",
|
|
2357
|
+
"end_index": "endIndex",
|
|
2358
|
+
});
|
|
2359
|
+
});
|
|
2360
|
+
|
|
2361
|
+
/** @internal */
|
|
2362
|
+
export type DeploymentStreamAnnotations1$Outbound = {
|
|
2363
|
+
type: string;
|
|
2364
|
+
text: string;
|
|
2365
|
+
file_citation: DeploymentStreamAnnotationsFileCitation$Outbound;
|
|
2366
|
+
start_index: number;
|
|
2367
|
+
end_index: number;
|
|
2368
|
+
};
|
|
2369
|
+
|
|
2370
|
+
/** @internal */
|
|
2371
|
+
export const DeploymentStreamAnnotations1$outboundSchema: z.ZodType<
|
|
2372
|
+
DeploymentStreamAnnotations1$Outbound,
|
|
2373
|
+
z.ZodTypeDef,
|
|
2374
|
+
DeploymentStreamAnnotations1
|
|
2375
|
+
> = z.object({
|
|
2376
|
+
type: DeploymentStreamAnnotationsType$outboundSchema,
|
|
2377
|
+
text: z.string(),
|
|
2378
|
+
fileCitation: z.lazy(() =>
|
|
2379
|
+
DeploymentStreamAnnotationsFileCitation$outboundSchema
|
|
2380
|
+
),
|
|
2381
|
+
startIndex: z.number().int(),
|
|
2382
|
+
endIndex: z.number().int(),
|
|
2383
|
+
}).transform((v) => {
|
|
2384
|
+
return remap$(v, {
|
|
2385
|
+
fileCitation: "file_citation",
|
|
2386
|
+
startIndex: "start_index",
|
|
2387
|
+
endIndex: "end_index",
|
|
2388
|
+
});
|
|
2389
|
+
});
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* @internal
|
|
2393
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2394
|
+
*/
|
|
2395
|
+
export namespace DeploymentStreamAnnotations1$ {
|
|
2396
|
+
/** @deprecated use `DeploymentStreamAnnotations1$inboundSchema` instead. */
|
|
2397
|
+
export const inboundSchema = DeploymentStreamAnnotations1$inboundSchema;
|
|
2398
|
+
/** @deprecated use `DeploymentStreamAnnotations1$outboundSchema` instead. */
|
|
2399
|
+
export const outboundSchema = DeploymentStreamAnnotations1$outboundSchema;
|
|
2400
|
+
/** @deprecated use `DeploymentStreamAnnotations1$Outbound` instead. */
|
|
2401
|
+
export type Outbound = DeploymentStreamAnnotations1$Outbound;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
export function deploymentStreamAnnotations1ToJSON(
|
|
2405
|
+
deploymentStreamAnnotations1: DeploymentStreamAnnotations1,
|
|
2406
|
+
): string {
|
|
2407
|
+
return JSON.stringify(
|
|
2408
|
+
DeploymentStreamAnnotations1$outboundSchema.parse(
|
|
2409
|
+
deploymentStreamAnnotations1,
|
|
2410
|
+
),
|
|
2411
|
+
);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export function deploymentStreamAnnotations1FromJSON(
|
|
2415
|
+
jsonString: string,
|
|
2416
|
+
): SafeParseResult<DeploymentStreamAnnotations1, SDKValidationError> {
|
|
2417
|
+
return safeParse(
|
|
2418
|
+
jsonString,
|
|
2419
|
+
(x) => DeploymentStreamAnnotations1$inboundSchema.parse(JSON.parse(x)),
|
|
2420
|
+
`Failed to parse 'DeploymentStreamAnnotations1' from JSON`,
|
|
2421
|
+
);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
/** @internal */
|
|
2425
|
+
export const DeploymentStream2Annotations$inboundSchema: z.ZodType<
|
|
2426
|
+
DeploymentStream2Annotations,
|
|
2427
|
+
z.ZodTypeDef,
|
|
2428
|
+
unknown
|
|
2429
|
+
> = z.union([
|
|
2430
|
+
z.lazy(() => DeploymentStreamAnnotations1$inboundSchema),
|
|
2431
|
+
z.lazy(() => DeploymentStreamAnnotations2$inboundSchema),
|
|
2432
|
+
]);
|
|
2433
|
+
|
|
2434
|
+
/** @internal */
|
|
2435
|
+
export type DeploymentStream2Annotations$Outbound =
|
|
2436
|
+
| DeploymentStreamAnnotations1$Outbound
|
|
2437
|
+
| DeploymentStreamAnnotations2$Outbound;
|
|
2438
|
+
|
|
2439
|
+
/** @internal */
|
|
2440
|
+
export const DeploymentStream2Annotations$outboundSchema: z.ZodType<
|
|
2441
|
+
DeploymentStream2Annotations$Outbound,
|
|
2442
|
+
z.ZodTypeDef,
|
|
2443
|
+
DeploymentStream2Annotations
|
|
2444
|
+
> = z.union([
|
|
2445
|
+
z.lazy(() => DeploymentStreamAnnotations1$outboundSchema),
|
|
2446
|
+
z.lazy(() => DeploymentStreamAnnotations2$outboundSchema),
|
|
2447
|
+
]);
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* @internal
|
|
2451
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2452
|
+
*/
|
|
2453
|
+
export namespace DeploymentStream2Annotations$ {
|
|
2454
|
+
/** @deprecated use `DeploymentStream2Annotations$inboundSchema` instead. */
|
|
2455
|
+
export const inboundSchema = DeploymentStream2Annotations$inboundSchema;
|
|
2456
|
+
/** @deprecated use `DeploymentStream2Annotations$outboundSchema` instead. */
|
|
2457
|
+
export const outboundSchema = DeploymentStream2Annotations$outboundSchema;
|
|
2458
|
+
/** @deprecated use `DeploymentStream2Annotations$Outbound` instead. */
|
|
2459
|
+
export type Outbound = DeploymentStream2Annotations$Outbound;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
export function deploymentStream2AnnotationsToJSON(
|
|
2463
|
+
deploymentStream2Annotations: DeploymentStream2Annotations,
|
|
2464
|
+
): string {
|
|
2465
|
+
return JSON.stringify(
|
|
2466
|
+
DeploymentStream2Annotations$outboundSchema.parse(
|
|
2467
|
+
deploymentStream2Annotations,
|
|
2468
|
+
),
|
|
2469
|
+
);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
export function deploymentStream2AnnotationsFromJSON(
|
|
2473
|
+
jsonString: string,
|
|
2474
|
+
): SafeParseResult<DeploymentStream2Annotations, SDKValidationError> {
|
|
2475
|
+
return safeParse(
|
|
2476
|
+
jsonString,
|
|
2477
|
+
(x) => DeploymentStream2Annotations$inboundSchema.parse(JSON.parse(x)),
|
|
2478
|
+
`Failed to parse 'DeploymentStream2Annotations' from JSON`,
|
|
2479
|
+
);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
/** @internal */
|
|
2483
|
+
export const DeploymentStream2TextContentPart$inboundSchema: z.ZodType<
|
|
2484
|
+
DeploymentStream2TextContentPart,
|
|
2485
|
+
z.ZodTypeDef,
|
|
2486
|
+
unknown
|
|
2487
|
+
> = z.object({
|
|
2488
|
+
type:
|
|
2489
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
|
|
2490
|
+
text: z.string(),
|
|
2491
|
+
annotations: z.array(
|
|
2492
|
+
z.union([
|
|
2493
|
+
z.lazy(() => DeploymentStreamAnnotations1$inboundSchema),
|
|
2494
|
+
z.lazy(() => DeploymentStreamAnnotations2$inboundSchema),
|
|
2495
|
+
]),
|
|
2496
|
+
).optional(),
|
|
2497
|
+
});
|
|
2498
|
+
|
|
2499
|
+
/** @internal */
|
|
2500
|
+
export type DeploymentStream2TextContentPart$Outbound = {
|
|
2501
|
+
type: string;
|
|
2502
|
+
text: string;
|
|
2503
|
+
annotations?:
|
|
2504
|
+
| Array<
|
|
2505
|
+
| DeploymentStreamAnnotations1$Outbound
|
|
2506
|
+
| DeploymentStreamAnnotations2$Outbound
|
|
2507
|
+
>
|
|
2508
|
+
| undefined;
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2511
|
+
/** @internal */
|
|
2512
|
+
export const DeploymentStream2TextContentPart$outboundSchema: z.ZodType<
|
|
2513
|
+
DeploymentStream2TextContentPart$Outbound,
|
|
2514
|
+
z.ZodTypeDef,
|
|
2515
|
+
DeploymentStream2TextContentPart
|
|
2516
|
+
> = z.object({
|
|
2517
|
+
type:
|
|
2518
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
|
|
2519
|
+
text: z.string(),
|
|
2520
|
+
annotations: z.array(
|
|
2521
|
+
z.union([
|
|
2522
|
+
z.lazy(() => DeploymentStreamAnnotations1$outboundSchema),
|
|
2523
|
+
z.lazy(() => DeploymentStreamAnnotations2$outboundSchema),
|
|
2524
|
+
]),
|
|
2525
|
+
).optional(),
|
|
2526
|
+
});
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* @internal
|
|
2530
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2531
|
+
*/
|
|
2532
|
+
export namespace DeploymentStream2TextContentPart$ {
|
|
2533
|
+
/** @deprecated use `DeploymentStream2TextContentPart$inboundSchema` instead. */
|
|
2534
|
+
export const inboundSchema = DeploymentStream2TextContentPart$inboundSchema;
|
|
2535
|
+
/** @deprecated use `DeploymentStream2TextContentPart$outboundSchema` instead. */
|
|
2536
|
+
export const outboundSchema = DeploymentStream2TextContentPart$outboundSchema;
|
|
2537
|
+
/** @deprecated use `DeploymentStream2TextContentPart$Outbound` instead. */
|
|
2538
|
+
export type Outbound = DeploymentStream2TextContentPart$Outbound;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
export function deploymentStream2TextContentPartToJSON(
|
|
2542
|
+
deploymentStream2TextContentPart: DeploymentStream2TextContentPart,
|
|
2543
|
+
): string {
|
|
2544
|
+
return JSON.stringify(
|
|
2545
|
+
DeploymentStream2TextContentPart$outboundSchema.parse(
|
|
2546
|
+
deploymentStream2TextContentPart,
|
|
2547
|
+
),
|
|
2548
|
+
);
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
export function deploymentStream2TextContentPartFromJSON(
|
|
2552
|
+
jsonString: string,
|
|
2553
|
+
): SafeParseResult<DeploymentStream2TextContentPart, SDKValidationError> {
|
|
2554
|
+
return safeParse(
|
|
2555
|
+
jsonString,
|
|
2556
|
+
(x) => DeploymentStream2TextContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
2557
|
+
`Failed to parse 'DeploymentStream2TextContentPart' from JSON`,
|
|
2558
|
+
);
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
/** @internal */
|
|
2562
|
+
export const DeploymentStreamContentDeployments2$inboundSchema: z.ZodType<
|
|
2563
|
+
DeploymentStreamContentDeployments2,
|
|
2564
|
+
z.ZodTypeDef,
|
|
2565
|
+
unknown
|
|
2566
|
+
> = z.union([
|
|
2567
|
+
z.lazy(() => DeploymentStream2TextContentPart$inboundSchema),
|
|
2568
|
+
z.lazy(() => DeploymentStream2RefusalContentPart$inboundSchema),
|
|
2569
|
+
]);
|
|
2570
|
+
|
|
2571
|
+
/** @internal */
|
|
2572
|
+
export type DeploymentStreamContentDeployments2$Outbound =
|
|
2573
|
+
| DeploymentStream2TextContentPart$Outbound
|
|
2574
|
+
| DeploymentStream2RefusalContentPart$Outbound;
|
|
2575
|
+
|
|
2576
|
+
/** @internal */
|
|
2577
|
+
export const DeploymentStreamContentDeployments2$outboundSchema: z.ZodType<
|
|
2578
|
+
DeploymentStreamContentDeployments2$Outbound,
|
|
2579
|
+
z.ZodTypeDef,
|
|
2580
|
+
DeploymentStreamContentDeployments2
|
|
2581
|
+
> = z.union([
|
|
2582
|
+
z.lazy(() => DeploymentStream2TextContentPart$outboundSchema),
|
|
2583
|
+
z.lazy(() => DeploymentStream2RefusalContentPart$outboundSchema),
|
|
2584
|
+
]);
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* @internal
|
|
2588
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2589
|
+
*/
|
|
2590
|
+
export namespace DeploymentStreamContentDeployments2$ {
|
|
2591
|
+
/** @deprecated use `DeploymentStreamContentDeployments2$inboundSchema` instead. */
|
|
2592
|
+
export const inboundSchema =
|
|
2593
|
+
DeploymentStreamContentDeployments2$inboundSchema;
|
|
2594
|
+
/** @deprecated use `DeploymentStreamContentDeployments2$outboundSchema` instead. */
|
|
2595
|
+
export const outboundSchema =
|
|
2596
|
+
DeploymentStreamContentDeployments2$outboundSchema;
|
|
2017
2597
|
/** @deprecated use `DeploymentStreamContentDeployments2$Outbound` instead. */
|
|
2018
2598
|
export type Outbound = DeploymentStreamContentDeployments2$Outbound;
|
|
2019
2599
|
}
|
|
@@ -3789,21 +4369,494 @@ export namespace DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$ {
|
|
|
3789
4369
|
}
|
|
3790
4370
|
|
|
3791
4371
|
/** @internal */
|
|
3792
|
-
export const
|
|
3793
|
-
z.
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
4372
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$inboundSchema:
|
|
4373
|
+
z.ZodNativeEnum<
|
|
4374
|
+
typeof DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType
|
|
4375
|
+
> = z.nativeEnum(
|
|
4376
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType,
|
|
4377
|
+
);
|
|
4378
|
+
|
|
4379
|
+
/** @internal */
|
|
4380
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$outboundSchema:
|
|
4381
|
+
z.ZodNativeEnum<
|
|
4382
|
+
typeof DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType
|
|
4383
|
+
> =
|
|
4384
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$inboundSchema;
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* @internal
|
|
4388
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4389
|
+
*/
|
|
4390
|
+
export namespace DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$ {
|
|
4391
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$inboundSchema` instead. */
|
|
4392
|
+
export const inboundSchema =
|
|
4393
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$inboundSchema;
|
|
4394
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$outboundSchema` instead. */
|
|
4395
|
+
export const outboundSchema =
|
|
4396
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$outboundSchema;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
/** @internal */
|
|
4400
|
+
export const DeploymentStreamAnnotationsDeploymentsFilePath$inboundSchema:
|
|
4401
|
+
z.ZodType<
|
|
4402
|
+
DeploymentStreamAnnotationsDeploymentsFilePath,
|
|
4403
|
+
z.ZodTypeDef,
|
|
4404
|
+
unknown
|
|
4405
|
+
> = z.object({
|
|
4406
|
+
file_id: z.string(),
|
|
4407
|
+
}).transform((v) => {
|
|
4408
|
+
return remap$(v, {
|
|
4409
|
+
"file_id": "fileId",
|
|
4410
|
+
});
|
|
4411
|
+
});
|
|
4412
|
+
|
|
4413
|
+
/** @internal */
|
|
4414
|
+
export type DeploymentStreamAnnotationsDeploymentsFilePath$Outbound = {
|
|
4415
|
+
file_id: string;
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4418
|
+
/** @internal */
|
|
4419
|
+
export const DeploymentStreamAnnotationsDeploymentsFilePath$outboundSchema:
|
|
4420
|
+
z.ZodType<
|
|
4421
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$Outbound,
|
|
4422
|
+
z.ZodTypeDef,
|
|
4423
|
+
DeploymentStreamAnnotationsDeploymentsFilePath
|
|
4424
|
+
> = z.object({
|
|
4425
|
+
fileId: z.string(),
|
|
4426
|
+
}).transform((v) => {
|
|
4427
|
+
return remap$(v, {
|
|
4428
|
+
fileId: "file_id",
|
|
4429
|
+
});
|
|
4430
|
+
});
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* @internal
|
|
4434
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4435
|
+
*/
|
|
4436
|
+
export namespace DeploymentStreamAnnotationsDeploymentsFilePath$ {
|
|
4437
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFilePath$inboundSchema` instead. */
|
|
4438
|
+
export const inboundSchema =
|
|
4439
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$inboundSchema;
|
|
4440
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFilePath$outboundSchema` instead. */
|
|
4441
|
+
export const outboundSchema =
|
|
4442
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$outboundSchema;
|
|
4443
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFilePath$Outbound` instead. */
|
|
4444
|
+
export type Outbound =
|
|
4445
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$Outbound;
|
|
4446
|
+
}
|
|
4447
|
+
|
|
4448
|
+
export function deploymentStreamAnnotationsDeploymentsFilePathToJSON(
|
|
4449
|
+
deploymentStreamAnnotationsDeploymentsFilePath:
|
|
4450
|
+
DeploymentStreamAnnotationsDeploymentsFilePath,
|
|
4451
|
+
): string {
|
|
4452
|
+
return JSON.stringify(
|
|
4453
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$outboundSchema.parse(
|
|
4454
|
+
deploymentStreamAnnotationsDeploymentsFilePath,
|
|
4455
|
+
),
|
|
4456
|
+
);
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
export function deploymentStreamAnnotationsDeploymentsFilePathFromJSON(
|
|
4460
|
+
jsonString: string,
|
|
4461
|
+
): SafeParseResult<
|
|
4462
|
+
DeploymentStreamAnnotationsDeploymentsFilePath,
|
|
4463
|
+
SDKValidationError
|
|
4464
|
+
> {
|
|
4465
|
+
return safeParse(
|
|
4466
|
+
jsonString,
|
|
4467
|
+
(x) =>
|
|
4468
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$inboundSchema.parse(
|
|
4469
|
+
JSON.parse(x),
|
|
4470
|
+
),
|
|
4471
|
+
`Failed to parse 'DeploymentStreamAnnotationsDeploymentsFilePath' from JSON`,
|
|
4472
|
+
);
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
/** @internal */
|
|
4476
|
+
export const DeploymentStreamAnnotationsDeployments2$inboundSchema: z.ZodType<
|
|
4477
|
+
DeploymentStreamAnnotationsDeployments2,
|
|
4478
|
+
z.ZodTypeDef,
|
|
4479
|
+
unknown
|
|
4480
|
+
> = z.object({
|
|
4481
|
+
type:
|
|
4482
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$inboundSchema,
|
|
4483
|
+
text: z.string(),
|
|
4484
|
+
file_path: z.lazy(() =>
|
|
4485
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$inboundSchema
|
|
4486
|
+
),
|
|
4487
|
+
start_index: z.number().int(),
|
|
4488
|
+
end_index: z.number().int(),
|
|
4489
|
+
}).transform((v) => {
|
|
4490
|
+
return remap$(v, {
|
|
4491
|
+
"file_path": "filePath",
|
|
4492
|
+
"start_index": "startIndex",
|
|
4493
|
+
"end_index": "endIndex",
|
|
4494
|
+
});
|
|
4495
|
+
});
|
|
4496
|
+
|
|
4497
|
+
/** @internal */
|
|
4498
|
+
export type DeploymentStreamAnnotationsDeployments2$Outbound = {
|
|
4499
|
+
type: string;
|
|
4500
|
+
text: string;
|
|
4501
|
+
file_path: DeploymentStreamAnnotationsDeploymentsFilePath$Outbound;
|
|
4502
|
+
start_index: number;
|
|
4503
|
+
end_index: number;
|
|
4504
|
+
};
|
|
4505
|
+
|
|
4506
|
+
/** @internal */
|
|
4507
|
+
export const DeploymentStreamAnnotationsDeployments2$outboundSchema: z.ZodType<
|
|
4508
|
+
DeploymentStreamAnnotationsDeployments2$Outbound,
|
|
4509
|
+
z.ZodTypeDef,
|
|
4510
|
+
DeploymentStreamAnnotationsDeployments2
|
|
4511
|
+
> = z.object({
|
|
4512
|
+
type:
|
|
4513
|
+
DeploymentStreamAnnotationsDeploymentsRequestRequestBodyType$outboundSchema,
|
|
4514
|
+
text: z.string(),
|
|
4515
|
+
filePath: z.lazy(() =>
|
|
4516
|
+
DeploymentStreamAnnotationsDeploymentsFilePath$outboundSchema
|
|
4517
|
+
),
|
|
4518
|
+
startIndex: z.number().int(),
|
|
4519
|
+
endIndex: z.number().int(),
|
|
4520
|
+
}).transform((v) => {
|
|
4521
|
+
return remap$(v, {
|
|
4522
|
+
filePath: "file_path",
|
|
4523
|
+
startIndex: "start_index",
|
|
4524
|
+
endIndex: "end_index",
|
|
4525
|
+
});
|
|
4526
|
+
});
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* @internal
|
|
4530
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4531
|
+
*/
|
|
4532
|
+
export namespace DeploymentStreamAnnotationsDeployments2$ {
|
|
4533
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments2$inboundSchema` instead. */
|
|
4534
|
+
export const inboundSchema =
|
|
4535
|
+
DeploymentStreamAnnotationsDeployments2$inboundSchema;
|
|
4536
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments2$outboundSchema` instead. */
|
|
4537
|
+
export const outboundSchema =
|
|
4538
|
+
DeploymentStreamAnnotationsDeployments2$outboundSchema;
|
|
4539
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments2$Outbound` instead. */
|
|
4540
|
+
export type Outbound = DeploymentStreamAnnotationsDeployments2$Outbound;
|
|
4541
|
+
}
|
|
4542
|
+
|
|
4543
|
+
export function deploymentStreamAnnotationsDeployments2ToJSON(
|
|
4544
|
+
deploymentStreamAnnotationsDeployments2:
|
|
4545
|
+
DeploymentStreamAnnotationsDeployments2,
|
|
4546
|
+
): string {
|
|
4547
|
+
return JSON.stringify(
|
|
4548
|
+
DeploymentStreamAnnotationsDeployments2$outboundSchema.parse(
|
|
4549
|
+
deploymentStreamAnnotationsDeployments2,
|
|
4550
|
+
),
|
|
4551
|
+
);
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
export function deploymentStreamAnnotationsDeployments2FromJSON(
|
|
4555
|
+
jsonString: string,
|
|
4556
|
+
): SafeParseResult<
|
|
4557
|
+
DeploymentStreamAnnotationsDeployments2,
|
|
4558
|
+
SDKValidationError
|
|
4559
|
+
> {
|
|
4560
|
+
return safeParse(
|
|
4561
|
+
jsonString,
|
|
4562
|
+
(x) =>
|
|
4563
|
+
DeploymentStreamAnnotationsDeployments2$inboundSchema.parse(
|
|
4564
|
+
JSON.parse(x),
|
|
4565
|
+
),
|
|
4566
|
+
`Failed to parse 'DeploymentStreamAnnotationsDeployments2' from JSON`,
|
|
4567
|
+
);
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
/** @internal */
|
|
4571
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestType$inboundSchema:
|
|
4572
|
+
z.ZodNativeEnum<typeof DeploymentStreamAnnotationsDeploymentsRequestType> = z
|
|
4573
|
+
.nativeEnum(DeploymentStreamAnnotationsDeploymentsRequestType);
|
|
4574
|
+
|
|
4575
|
+
/** @internal */
|
|
4576
|
+
export const DeploymentStreamAnnotationsDeploymentsRequestType$outboundSchema:
|
|
4577
|
+
z.ZodNativeEnum<typeof DeploymentStreamAnnotationsDeploymentsRequestType> =
|
|
4578
|
+
DeploymentStreamAnnotationsDeploymentsRequestType$inboundSchema;
|
|
4579
|
+
|
|
4580
|
+
/**
|
|
4581
|
+
* @internal
|
|
4582
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4583
|
+
*/
|
|
4584
|
+
export namespace DeploymentStreamAnnotationsDeploymentsRequestType$ {
|
|
4585
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsRequestType$inboundSchema` instead. */
|
|
4586
|
+
export const inboundSchema =
|
|
4587
|
+
DeploymentStreamAnnotationsDeploymentsRequestType$inboundSchema;
|
|
4588
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsRequestType$outboundSchema` instead. */
|
|
4589
|
+
export const outboundSchema =
|
|
4590
|
+
DeploymentStreamAnnotationsDeploymentsRequestType$outboundSchema;
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
/** @internal */
|
|
4594
|
+
export const DeploymentStreamAnnotationsDeploymentsFileCitation$inboundSchema:
|
|
4595
|
+
z.ZodType<
|
|
4596
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation,
|
|
4597
|
+
z.ZodTypeDef,
|
|
4598
|
+
unknown
|
|
4599
|
+
> = z.object({
|
|
4600
|
+
file_id: z.string(),
|
|
4601
|
+
quote: z.string().optional(),
|
|
4602
|
+
}).transform((v) => {
|
|
4603
|
+
return remap$(v, {
|
|
4604
|
+
"file_id": "fileId",
|
|
4605
|
+
});
|
|
4606
|
+
});
|
|
4607
|
+
|
|
4608
|
+
/** @internal */
|
|
4609
|
+
export type DeploymentStreamAnnotationsDeploymentsFileCitation$Outbound = {
|
|
4610
|
+
file_id: string;
|
|
4611
|
+
quote?: string | undefined;
|
|
4612
|
+
};
|
|
4613
|
+
|
|
4614
|
+
/** @internal */
|
|
4615
|
+
export const DeploymentStreamAnnotationsDeploymentsFileCitation$outboundSchema:
|
|
4616
|
+
z.ZodType<
|
|
4617
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$Outbound,
|
|
4618
|
+
z.ZodTypeDef,
|
|
4619
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation
|
|
4620
|
+
> = z.object({
|
|
4621
|
+
fileId: z.string(),
|
|
4622
|
+
quote: z.string().optional(),
|
|
4623
|
+
}).transform((v) => {
|
|
4624
|
+
return remap$(v, {
|
|
4625
|
+
fileId: "file_id",
|
|
4626
|
+
});
|
|
4627
|
+
});
|
|
4628
|
+
|
|
4629
|
+
/**
|
|
4630
|
+
* @internal
|
|
4631
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4632
|
+
*/
|
|
4633
|
+
export namespace DeploymentStreamAnnotationsDeploymentsFileCitation$ {
|
|
4634
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFileCitation$inboundSchema` instead. */
|
|
4635
|
+
export const inboundSchema =
|
|
4636
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$inboundSchema;
|
|
4637
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFileCitation$outboundSchema` instead. */
|
|
4638
|
+
export const outboundSchema =
|
|
4639
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$outboundSchema;
|
|
4640
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeploymentsFileCitation$Outbound` instead. */
|
|
4641
|
+
export type Outbound =
|
|
4642
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$Outbound;
|
|
4643
|
+
}
|
|
4644
|
+
|
|
4645
|
+
export function deploymentStreamAnnotationsDeploymentsFileCitationToJSON(
|
|
4646
|
+
deploymentStreamAnnotationsDeploymentsFileCitation:
|
|
4647
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation,
|
|
4648
|
+
): string {
|
|
4649
|
+
return JSON.stringify(
|
|
4650
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$outboundSchema.parse(
|
|
4651
|
+
deploymentStreamAnnotationsDeploymentsFileCitation,
|
|
4652
|
+
),
|
|
4653
|
+
);
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
export function deploymentStreamAnnotationsDeploymentsFileCitationFromJSON(
|
|
4657
|
+
jsonString: string,
|
|
4658
|
+
): SafeParseResult<
|
|
4659
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation,
|
|
4660
|
+
SDKValidationError
|
|
4661
|
+
> {
|
|
4662
|
+
return safeParse(
|
|
4663
|
+
jsonString,
|
|
4664
|
+
(x) =>
|
|
4665
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$inboundSchema.parse(
|
|
4666
|
+
JSON.parse(x),
|
|
4667
|
+
),
|
|
4668
|
+
`Failed to parse 'DeploymentStreamAnnotationsDeploymentsFileCitation' from JSON`,
|
|
4669
|
+
);
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
/** @internal */
|
|
4673
|
+
export const DeploymentStreamAnnotationsDeployments1$inboundSchema: z.ZodType<
|
|
4674
|
+
DeploymentStreamAnnotationsDeployments1,
|
|
4675
|
+
z.ZodTypeDef,
|
|
4676
|
+
unknown
|
|
4677
|
+
> = z.object({
|
|
4678
|
+
type: DeploymentStreamAnnotationsDeploymentsRequestType$inboundSchema,
|
|
4679
|
+
text: z.string(),
|
|
4680
|
+
file_citation: z.lazy(() =>
|
|
4681
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$inboundSchema
|
|
4682
|
+
),
|
|
4683
|
+
start_index: z.number().int(),
|
|
4684
|
+
end_index: z.number().int(),
|
|
4685
|
+
}).transform((v) => {
|
|
4686
|
+
return remap$(v, {
|
|
4687
|
+
"file_citation": "fileCitation",
|
|
4688
|
+
"start_index": "startIndex",
|
|
4689
|
+
"end_index": "endIndex",
|
|
4690
|
+
});
|
|
4691
|
+
});
|
|
4692
|
+
|
|
4693
|
+
/** @internal */
|
|
4694
|
+
export type DeploymentStreamAnnotationsDeployments1$Outbound = {
|
|
4695
|
+
type: string;
|
|
4696
|
+
text: string;
|
|
4697
|
+
file_citation: DeploymentStreamAnnotationsDeploymentsFileCitation$Outbound;
|
|
4698
|
+
start_index: number;
|
|
4699
|
+
end_index: number;
|
|
4700
|
+
};
|
|
4701
|
+
|
|
4702
|
+
/** @internal */
|
|
4703
|
+
export const DeploymentStreamAnnotationsDeployments1$outboundSchema: z.ZodType<
|
|
4704
|
+
DeploymentStreamAnnotationsDeployments1$Outbound,
|
|
4705
|
+
z.ZodTypeDef,
|
|
4706
|
+
DeploymentStreamAnnotationsDeployments1
|
|
4707
|
+
> = z.object({
|
|
4708
|
+
type: DeploymentStreamAnnotationsDeploymentsRequestType$outboundSchema,
|
|
4709
|
+
text: z.string(),
|
|
4710
|
+
fileCitation: z.lazy(() =>
|
|
4711
|
+
DeploymentStreamAnnotationsDeploymentsFileCitation$outboundSchema
|
|
4712
|
+
),
|
|
4713
|
+
startIndex: z.number().int(),
|
|
4714
|
+
endIndex: z.number().int(),
|
|
4715
|
+
}).transform((v) => {
|
|
4716
|
+
return remap$(v, {
|
|
4717
|
+
fileCitation: "file_citation",
|
|
4718
|
+
startIndex: "start_index",
|
|
4719
|
+
endIndex: "end_index",
|
|
4720
|
+
});
|
|
4721
|
+
});
|
|
4722
|
+
|
|
4723
|
+
/**
|
|
4724
|
+
* @internal
|
|
4725
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4726
|
+
*/
|
|
4727
|
+
export namespace DeploymentStreamAnnotationsDeployments1$ {
|
|
4728
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments1$inboundSchema` instead. */
|
|
4729
|
+
export const inboundSchema =
|
|
4730
|
+
DeploymentStreamAnnotationsDeployments1$inboundSchema;
|
|
4731
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments1$outboundSchema` instead. */
|
|
4732
|
+
export const outboundSchema =
|
|
4733
|
+
DeploymentStreamAnnotationsDeployments1$outboundSchema;
|
|
4734
|
+
/** @deprecated use `DeploymentStreamAnnotationsDeployments1$Outbound` instead. */
|
|
4735
|
+
export type Outbound = DeploymentStreamAnnotationsDeployments1$Outbound;
|
|
4736
|
+
}
|
|
4737
|
+
|
|
4738
|
+
export function deploymentStreamAnnotationsDeployments1ToJSON(
|
|
4739
|
+
deploymentStreamAnnotationsDeployments1:
|
|
4740
|
+
DeploymentStreamAnnotationsDeployments1,
|
|
4741
|
+
): string {
|
|
4742
|
+
return JSON.stringify(
|
|
4743
|
+
DeploymentStreamAnnotationsDeployments1$outboundSchema.parse(
|
|
4744
|
+
deploymentStreamAnnotationsDeployments1,
|
|
4745
|
+
),
|
|
4746
|
+
);
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
export function deploymentStreamAnnotationsDeployments1FromJSON(
|
|
4750
|
+
jsonString: string,
|
|
4751
|
+
): SafeParseResult<
|
|
4752
|
+
DeploymentStreamAnnotationsDeployments1,
|
|
4753
|
+
SDKValidationError
|
|
4754
|
+
> {
|
|
4755
|
+
return safeParse(
|
|
4756
|
+
jsonString,
|
|
4757
|
+
(x) =>
|
|
4758
|
+
DeploymentStreamAnnotationsDeployments1$inboundSchema.parse(
|
|
4759
|
+
JSON.parse(x),
|
|
4760
|
+
),
|
|
4761
|
+
`Failed to parse 'DeploymentStreamAnnotationsDeployments1' from JSON`,
|
|
4762
|
+
);
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
/** @internal */
|
|
4766
|
+
export const DeploymentStream2DeploymentsAnnotations$inboundSchema: z.ZodType<
|
|
4767
|
+
DeploymentStream2DeploymentsAnnotations,
|
|
4768
|
+
z.ZodTypeDef,
|
|
4769
|
+
unknown
|
|
4770
|
+
> = z.union([
|
|
4771
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments1$inboundSchema),
|
|
4772
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments2$inboundSchema),
|
|
4773
|
+
]);
|
|
4774
|
+
|
|
4775
|
+
/** @internal */
|
|
4776
|
+
export type DeploymentStream2DeploymentsAnnotations$Outbound =
|
|
4777
|
+
| DeploymentStreamAnnotationsDeployments1$Outbound
|
|
4778
|
+
| DeploymentStreamAnnotationsDeployments2$Outbound;
|
|
4779
|
+
|
|
4780
|
+
/** @internal */
|
|
4781
|
+
export const DeploymentStream2DeploymentsAnnotations$outboundSchema: z.ZodType<
|
|
4782
|
+
DeploymentStream2DeploymentsAnnotations$Outbound,
|
|
4783
|
+
z.ZodTypeDef,
|
|
4784
|
+
DeploymentStream2DeploymentsAnnotations
|
|
4785
|
+
> = z.union([
|
|
4786
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments1$outboundSchema),
|
|
4787
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments2$outboundSchema),
|
|
4788
|
+
]);
|
|
4789
|
+
|
|
4790
|
+
/**
|
|
4791
|
+
* @internal
|
|
4792
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4793
|
+
*/
|
|
4794
|
+
export namespace DeploymentStream2DeploymentsAnnotations$ {
|
|
4795
|
+
/** @deprecated use `DeploymentStream2DeploymentsAnnotations$inboundSchema` instead. */
|
|
4796
|
+
export const inboundSchema =
|
|
4797
|
+
DeploymentStream2DeploymentsAnnotations$inboundSchema;
|
|
4798
|
+
/** @deprecated use `DeploymentStream2DeploymentsAnnotations$outboundSchema` instead. */
|
|
4799
|
+
export const outboundSchema =
|
|
4800
|
+
DeploymentStream2DeploymentsAnnotations$outboundSchema;
|
|
4801
|
+
/** @deprecated use `DeploymentStream2DeploymentsAnnotations$Outbound` instead. */
|
|
4802
|
+
export type Outbound = DeploymentStream2DeploymentsAnnotations$Outbound;
|
|
4803
|
+
}
|
|
4804
|
+
|
|
4805
|
+
export function deploymentStream2DeploymentsAnnotationsToJSON(
|
|
4806
|
+
deploymentStream2DeploymentsAnnotations:
|
|
4807
|
+
DeploymentStream2DeploymentsAnnotations,
|
|
4808
|
+
): string {
|
|
4809
|
+
return JSON.stringify(
|
|
4810
|
+
DeploymentStream2DeploymentsAnnotations$outboundSchema.parse(
|
|
4811
|
+
deploymentStream2DeploymentsAnnotations,
|
|
4812
|
+
),
|
|
4813
|
+
);
|
|
4814
|
+
}
|
|
4815
|
+
|
|
4816
|
+
export function deploymentStream2DeploymentsAnnotationsFromJSON(
|
|
4817
|
+
jsonString: string,
|
|
4818
|
+
): SafeParseResult<
|
|
4819
|
+
DeploymentStream2DeploymentsAnnotations,
|
|
4820
|
+
SDKValidationError
|
|
4821
|
+
> {
|
|
4822
|
+
return safeParse(
|
|
4823
|
+
jsonString,
|
|
4824
|
+
(x) =>
|
|
4825
|
+
DeploymentStream2DeploymentsAnnotations$inboundSchema.parse(
|
|
4826
|
+
JSON.parse(x),
|
|
4827
|
+
),
|
|
4828
|
+
`Failed to parse 'DeploymentStream2DeploymentsAnnotations' from JSON`,
|
|
4829
|
+
);
|
|
4830
|
+
}
|
|
4831
|
+
|
|
4832
|
+
/** @internal */
|
|
4833
|
+
export const DeploymentStream2DeploymentsTextContentPart$inboundSchema:
|
|
4834
|
+
z.ZodType<
|
|
4835
|
+
DeploymentStream2DeploymentsTextContentPart,
|
|
4836
|
+
z.ZodTypeDef,
|
|
4837
|
+
unknown
|
|
3797
4838
|
> = z.object({
|
|
3798
4839
|
type:
|
|
3799
4840
|
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema,
|
|
3800
4841
|
text: z.string(),
|
|
4842
|
+
annotations: z.array(
|
|
4843
|
+
z.union([
|
|
4844
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments1$inboundSchema),
|
|
4845
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments2$inboundSchema),
|
|
4846
|
+
]),
|
|
4847
|
+
).optional(),
|
|
3801
4848
|
});
|
|
3802
4849
|
|
|
3803
4850
|
/** @internal */
|
|
3804
4851
|
export type DeploymentStream2DeploymentsTextContentPart$Outbound = {
|
|
3805
4852
|
type: string;
|
|
3806
4853
|
text: string;
|
|
4854
|
+
annotations?:
|
|
4855
|
+
| Array<
|
|
4856
|
+
| DeploymentStreamAnnotationsDeployments1$Outbound
|
|
4857
|
+
| DeploymentStreamAnnotationsDeployments2$Outbound
|
|
4858
|
+
>
|
|
4859
|
+
| undefined;
|
|
3807
4860
|
};
|
|
3808
4861
|
|
|
3809
4862
|
/** @internal */
|
|
@@ -3816,6 +4869,12 @@ export const DeploymentStream2DeploymentsTextContentPart$outboundSchema:
|
|
|
3816
4869
|
type:
|
|
3817
4870
|
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema,
|
|
3818
4871
|
text: z.string(),
|
|
4872
|
+
annotations: z.array(
|
|
4873
|
+
z.union([
|
|
4874
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments1$outboundSchema),
|
|
4875
|
+
z.lazy(() => DeploymentStreamAnnotationsDeployments2$outboundSchema),
|
|
4876
|
+
]),
|
|
4877
|
+
).optional(),
|
|
3819
4878
|
});
|
|
3820
4879
|
|
|
3821
4880
|
/**
|
|
@@ -8578,19 +9637,186 @@ export const DeploymentStreamProvider$inboundSchema: z.ZodNativeEnum<
|
|
|
8578
9637
|
> = z.nativeEnum(DeploymentStreamProvider);
|
|
8579
9638
|
|
|
8580
9639
|
/** @internal */
|
|
8581
|
-
export const DeploymentStreamProvider$outboundSchema: z.ZodNativeEnum<
|
|
8582
|
-
typeof DeploymentStreamProvider
|
|
8583
|
-
> = DeploymentStreamProvider$inboundSchema;
|
|
9640
|
+
export const DeploymentStreamProvider$outboundSchema: z.ZodNativeEnum<
|
|
9641
|
+
typeof DeploymentStreamProvider
|
|
9642
|
+
> = DeploymentStreamProvider$inboundSchema;
|
|
9643
|
+
|
|
9644
|
+
/**
|
|
9645
|
+
* @internal
|
|
9646
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9647
|
+
*/
|
|
9648
|
+
export namespace DeploymentStreamProvider$ {
|
|
9649
|
+
/** @deprecated use `DeploymentStreamProvider$inboundSchema` instead. */
|
|
9650
|
+
export const inboundSchema = DeploymentStreamProvider$inboundSchema;
|
|
9651
|
+
/** @deprecated use `DeploymentStreamProvider$outboundSchema` instead. */
|
|
9652
|
+
export const outboundSchema = DeploymentStreamProvider$outboundSchema;
|
|
9653
|
+
}
|
|
9654
|
+
|
|
9655
|
+
/** @internal */
|
|
9656
|
+
export const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<
|
|
9657
|
+
DeploymentStreamDeploymentsMetadata,
|
|
9658
|
+
z.ZodTypeDef,
|
|
9659
|
+
unknown
|
|
9660
|
+
> = z.object({
|
|
9661
|
+
file_name: z.string(),
|
|
9662
|
+
page_number: z.nullable(z.number()),
|
|
9663
|
+
file_type: z.string(),
|
|
9664
|
+
rerank_score: z.number().optional(),
|
|
9665
|
+
search_score: z.number(),
|
|
9666
|
+
}).transform((v) => {
|
|
9667
|
+
return remap$(v, {
|
|
9668
|
+
"file_name": "fileName",
|
|
9669
|
+
"page_number": "pageNumber",
|
|
9670
|
+
"file_type": "fileType",
|
|
9671
|
+
"rerank_score": "rerankScore",
|
|
9672
|
+
"search_score": "searchScore",
|
|
9673
|
+
});
|
|
9674
|
+
});
|
|
9675
|
+
|
|
9676
|
+
/** @internal */
|
|
9677
|
+
export type DeploymentStreamDeploymentsMetadata$Outbound = {
|
|
9678
|
+
file_name: string;
|
|
9679
|
+
page_number: number | null;
|
|
9680
|
+
file_type: string;
|
|
9681
|
+
rerank_score?: number | undefined;
|
|
9682
|
+
search_score: number;
|
|
9683
|
+
};
|
|
9684
|
+
|
|
9685
|
+
/** @internal */
|
|
9686
|
+
export const DeploymentStreamDeploymentsMetadata$outboundSchema: z.ZodType<
|
|
9687
|
+
DeploymentStreamDeploymentsMetadata$Outbound,
|
|
9688
|
+
z.ZodTypeDef,
|
|
9689
|
+
DeploymentStreamDeploymentsMetadata
|
|
9690
|
+
> = z.object({
|
|
9691
|
+
fileName: z.string(),
|
|
9692
|
+
pageNumber: z.nullable(z.number()),
|
|
9693
|
+
fileType: z.string(),
|
|
9694
|
+
rerankScore: z.number().optional(),
|
|
9695
|
+
searchScore: z.number(),
|
|
9696
|
+
}).transform((v) => {
|
|
9697
|
+
return remap$(v, {
|
|
9698
|
+
fileName: "file_name",
|
|
9699
|
+
pageNumber: "page_number",
|
|
9700
|
+
fileType: "file_type",
|
|
9701
|
+
rerankScore: "rerank_score",
|
|
9702
|
+
searchScore: "search_score",
|
|
9703
|
+
});
|
|
9704
|
+
});
|
|
9705
|
+
|
|
9706
|
+
/**
|
|
9707
|
+
* @internal
|
|
9708
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9709
|
+
*/
|
|
9710
|
+
export namespace DeploymentStreamDeploymentsMetadata$ {
|
|
9711
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$inboundSchema` instead. */
|
|
9712
|
+
export const inboundSchema =
|
|
9713
|
+
DeploymentStreamDeploymentsMetadata$inboundSchema;
|
|
9714
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$outboundSchema` instead. */
|
|
9715
|
+
export const outboundSchema =
|
|
9716
|
+
DeploymentStreamDeploymentsMetadata$outboundSchema;
|
|
9717
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$Outbound` instead. */
|
|
9718
|
+
export type Outbound = DeploymentStreamDeploymentsMetadata$Outbound;
|
|
9719
|
+
}
|
|
9720
|
+
|
|
9721
|
+
export function deploymentStreamDeploymentsMetadataToJSON(
|
|
9722
|
+
deploymentStreamDeploymentsMetadata: DeploymentStreamDeploymentsMetadata,
|
|
9723
|
+
): string {
|
|
9724
|
+
return JSON.stringify(
|
|
9725
|
+
DeploymentStreamDeploymentsMetadata$outboundSchema.parse(
|
|
9726
|
+
deploymentStreamDeploymentsMetadata,
|
|
9727
|
+
),
|
|
9728
|
+
);
|
|
9729
|
+
}
|
|
9730
|
+
|
|
9731
|
+
export function deploymentStreamDeploymentsMetadataFromJSON(
|
|
9732
|
+
jsonString: string,
|
|
9733
|
+
): SafeParseResult<DeploymentStreamDeploymentsMetadata, SDKValidationError> {
|
|
9734
|
+
return safeParse(
|
|
9735
|
+
jsonString,
|
|
9736
|
+
(x) =>
|
|
9737
|
+
DeploymentStreamDeploymentsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
9738
|
+
`Failed to parse 'DeploymentStreamDeploymentsMetadata' from JSON`,
|
|
9739
|
+
);
|
|
9740
|
+
}
|
|
9741
|
+
|
|
9742
|
+
/** @internal */
|
|
9743
|
+
export const DeploymentStreamRetrievals$inboundSchema: z.ZodType<
|
|
9744
|
+
DeploymentStreamRetrievals,
|
|
9745
|
+
z.ZodTypeDef,
|
|
9746
|
+
unknown
|
|
9747
|
+
> = z.object({
|
|
9748
|
+
document: z.string(),
|
|
9749
|
+
metadata: z.lazy(() => DeploymentStreamDeploymentsMetadata$inboundSchema),
|
|
9750
|
+
});
|
|
9751
|
+
|
|
9752
|
+
/** @internal */
|
|
9753
|
+
export type DeploymentStreamRetrievals$Outbound = {
|
|
9754
|
+
document: string;
|
|
9755
|
+
metadata: DeploymentStreamDeploymentsMetadata$Outbound;
|
|
9756
|
+
};
|
|
9757
|
+
|
|
9758
|
+
/** @internal */
|
|
9759
|
+
export const DeploymentStreamRetrievals$outboundSchema: z.ZodType<
|
|
9760
|
+
DeploymentStreamRetrievals$Outbound,
|
|
9761
|
+
z.ZodTypeDef,
|
|
9762
|
+
DeploymentStreamRetrievals
|
|
9763
|
+
> = z.object({
|
|
9764
|
+
document: z.string(),
|
|
9765
|
+
metadata: z.lazy(() => DeploymentStreamDeploymentsMetadata$outboundSchema),
|
|
9766
|
+
});
|
|
9767
|
+
|
|
9768
|
+
/**
|
|
9769
|
+
* @internal
|
|
9770
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9771
|
+
*/
|
|
9772
|
+
export namespace DeploymentStreamRetrievals$ {
|
|
9773
|
+
/** @deprecated use `DeploymentStreamRetrievals$inboundSchema` instead. */
|
|
9774
|
+
export const inboundSchema = DeploymentStreamRetrievals$inboundSchema;
|
|
9775
|
+
/** @deprecated use `DeploymentStreamRetrievals$outboundSchema` instead. */
|
|
9776
|
+
export const outboundSchema = DeploymentStreamRetrievals$outboundSchema;
|
|
9777
|
+
/** @deprecated use `DeploymentStreamRetrievals$Outbound` instead. */
|
|
9778
|
+
export type Outbound = DeploymentStreamRetrievals$Outbound;
|
|
9779
|
+
}
|
|
9780
|
+
|
|
9781
|
+
export function deploymentStreamRetrievalsToJSON(
|
|
9782
|
+
deploymentStreamRetrievals: DeploymentStreamRetrievals,
|
|
9783
|
+
): string {
|
|
9784
|
+
return JSON.stringify(
|
|
9785
|
+
DeploymentStreamRetrievals$outboundSchema.parse(deploymentStreamRetrievals),
|
|
9786
|
+
);
|
|
9787
|
+
}
|
|
9788
|
+
|
|
9789
|
+
export function deploymentStreamRetrievalsFromJSON(
|
|
9790
|
+
jsonString: string,
|
|
9791
|
+
): SafeParseResult<DeploymentStreamRetrievals, SDKValidationError> {
|
|
9792
|
+
return safeParse(
|
|
9793
|
+
jsonString,
|
|
9794
|
+
(x) => DeploymentStreamRetrievals$inboundSchema.parse(JSON.parse(x)),
|
|
9795
|
+
`Failed to parse 'DeploymentStreamRetrievals' from JSON`,
|
|
9796
|
+
);
|
|
9797
|
+
}
|
|
9798
|
+
|
|
9799
|
+
/** @internal */
|
|
9800
|
+
export const DeploymentStreamMessageDeploymentsResponseType$inboundSchema:
|
|
9801
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseType> = z
|
|
9802
|
+
.nativeEnum(DeploymentStreamMessageDeploymentsResponseType);
|
|
9803
|
+
|
|
9804
|
+
/** @internal */
|
|
9805
|
+
export const DeploymentStreamMessageDeploymentsResponseType$outboundSchema:
|
|
9806
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseType> =
|
|
9807
|
+
DeploymentStreamMessageDeploymentsResponseType$inboundSchema;
|
|
8584
9808
|
|
|
8585
9809
|
/**
|
|
8586
9810
|
* @internal
|
|
8587
9811
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
8588
9812
|
*/
|
|
8589
|
-
export namespace
|
|
8590
|
-
/** @deprecated use `
|
|
8591
|
-
export const inboundSchema =
|
|
8592
|
-
|
|
8593
|
-
|
|
9813
|
+
export namespace DeploymentStreamMessageDeploymentsResponseType$ {
|
|
9814
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponseType$inboundSchema` instead. */
|
|
9815
|
+
export const inboundSchema =
|
|
9816
|
+
DeploymentStreamMessageDeploymentsResponseType$inboundSchema;
|
|
9817
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponseType$outboundSchema` instead. */
|
|
9818
|
+
export const outboundSchema =
|
|
9819
|
+
DeploymentStreamMessageDeploymentsResponseType$outboundSchema;
|
|
8594
9820
|
}
|
|
8595
9821
|
|
|
8596
9822
|
/** @internal */
|
|
@@ -8622,12 +9848,14 @@ export const DeploymentStreamMessage3$inboundSchema: z.ZodType<
|
|
|
8622
9848
|
z.ZodTypeDef,
|
|
8623
9849
|
unknown
|
|
8624
9850
|
> = z.object({
|
|
9851
|
+
type: DeploymentStreamMessageDeploymentsResponseType$inboundSchema,
|
|
8625
9852
|
role: DeploymentStreamMessageDeploymentsResponseRole$inboundSchema,
|
|
8626
9853
|
url: z.string(),
|
|
8627
9854
|
});
|
|
8628
9855
|
|
|
8629
9856
|
/** @internal */
|
|
8630
9857
|
export type DeploymentStreamMessage3$Outbound = {
|
|
9858
|
+
type: string;
|
|
8631
9859
|
role: string;
|
|
8632
9860
|
url: string;
|
|
8633
9861
|
};
|
|
@@ -8638,6 +9866,7 @@ export const DeploymentStreamMessage3$outboundSchema: z.ZodType<
|
|
|
8638
9866
|
z.ZodTypeDef,
|
|
8639
9867
|
DeploymentStreamMessage3
|
|
8640
9868
|
> = z.object({
|
|
9869
|
+
type: DeploymentStreamMessageDeploymentsResponseType$outboundSchema,
|
|
8641
9870
|
role: DeploymentStreamMessageDeploymentsResponseRole$outboundSchema,
|
|
8642
9871
|
url: z.string(),
|
|
8643
9872
|
});
|
|
@@ -8673,6 +9902,30 @@ export function deploymentStreamMessage3FromJSON(
|
|
|
8673
9902
|
);
|
|
8674
9903
|
}
|
|
8675
9904
|
|
|
9905
|
+
/** @internal */
|
|
9906
|
+
export const DeploymentStreamMessageDeploymentsType$inboundSchema:
|
|
9907
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsType> = z.nativeEnum(
|
|
9908
|
+
DeploymentStreamMessageDeploymentsType,
|
|
9909
|
+
);
|
|
9910
|
+
|
|
9911
|
+
/** @internal */
|
|
9912
|
+
export const DeploymentStreamMessageDeploymentsType$outboundSchema:
|
|
9913
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsType> =
|
|
9914
|
+
DeploymentStreamMessageDeploymentsType$inboundSchema;
|
|
9915
|
+
|
|
9916
|
+
/**
|
|
9917
|
+
* @internal
|
|
9918
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9919
|
+
*/
|
|
9920
|
+
export namespace DeploymentStreamMessageDeploymentsType$ {
|
|
9921
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsType$inboundSchema` instead. */
|
|
9922
|
+
export const inboundSchema =
|
|
9923
|
+
DeploymentStreamMessageDeploymentsType$inboundSchema;
|
|
9924
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsType$outboundSchema` instead. */
|
|
9925
|
+
export const outboundSchema =
|
|
9926
|
+
DeploymentStreamMessageDeploymentsType$outboundSchema;
|
|
9927
|
+
}
|
|
9928
|
+
|
|
8676
9929
|
/** @internal */
|
|
8677
9930
|
export const DeploymentStreamMessageDeploymentsRole$inboundSchema:
|
|
8678
9931
|
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole> = z.nativeEnum(
|
|
@@ -8703,14 +9956,27 @@ export const DeploymentStreamMessage2$inboundSchema: z.ZodType<
|
|
|
8703
9956
|
z.ZodTypeDef,
|
|
8704
9957
|
unknown
|
|
8705
9958
|
> = z.object({
|
|
9959
|
+
type: DeploymentStreamMessageDeploymentsType$inboundSchema,
|
|
8706
9960
|
role: DeploymentStreamMessageDeploymentsRole$inboundSchema,
|
|
8707
9961
|
content: z.nullable(z.string()),
|
|
9962
|
+
reasoning: z.string().optional(),
|
|
9963
|
+
reasoning_signature: z.string().optional(),
|
|
9964
|
+
redacted_reasoning: z.string().optional(),
|
|
9965
|
+
}).transform((v) => {
|
|
9966
|
+
return remap$(v, {
|
|
9967
|
+
"reasoning_signature": "reasoningSignature",
|
|
9968
|
+
"redacted_reasoning": "redactedReasoning",
|
|
9969
|
+
});
|
|
8708
9970
|
});
|
|
8709
9971
|
|
|
8710
9972
|
/** @internal */
|
|
8711
9973
|
export type DeploymentStreamMessage2$Outbound = {
|
|
9974
|
+
type: string;
|
|
8712
9975
|
role: string;
|
|
8713
9976
|
content: string | null;
|
|
9977
|
+
reasoning?: string | undefined;
|
|
9978
|
+
reasoning_signature?: string | undefined;
|
|
9979
|
+
redacted_reasoning?: string | undefined;
|
|
8714
9980
|
};
|
|
8715
9981
|
|
|
8716
9982
|
/** @internal */
|
|
@@ -8719,8 +9985,17 @@ export const DeploymentStreamMessage2$outboundSchema: z.ZodType<
|
|
|
8719
9985
|
z.ZodTypeDef,
|
|
8720
9986
|
DeploymentStreamMessage2
|
|
8721
9987
|
> = z.object({
|
|
9988
|
+
type: DeploymentStreamMessageDeploymentsType$outboundSchema,
|
|
8722
9989
|
role: DeploymentStreamMessageDeploymentsRole$outboundSchema,
|
|
8723
9990
|
content: z.nullable(z.string()),
|
|
9991
|
+
reasoning: z.string().optional(),
|
|
9992
|
+
reasoningSignature: z.string().optional(),
|
|
9993
|
+
redactedReasoning: z.string().optional(),
|
|
9994
|
+
}).transform((v) => {
|
|
9995
|
+
return remap$(v, {
|
|
9996
|
+
reasoningSignature: "reasoning_signature",
|
|
9997
|
+
redactedReasoning: "redacted_reasoning",
|
|
9998
|
+
});
|
|
8724
9999
|
});
|
|
8725
10000
|
|
|
8726
10001
|
/**
|
|
@@ -8754,6 +10029,27 @@ export function deploymentStreamMessage2FromJSON(
|
|
|
8754
10029
|
);
|
|
8755
10030
|
}
|
|
8756
10031
|
|
|
10032
|
+
/** @internal */
|
|
10033
|
+
export const DeploymentStreamMessageType$inboundSchema: z.ZodNativeEnum<
|
|
10034
|
+
typeof DeploymentStreamMessageType
|
|
10035
|
+
> = z.nativeEnum(DeploymentStreamMessageType);
|
|
10036
|
+
|
|
10037
|
+
/** @internal */
|
|
10038
|
+
export const DeploymentStreamMessageType$outboundSchema: z.ZodNativeEnum<
|
|
10039
|
+
typeof DeploymentStreamMessageType
|
|
10040
|
+
> = DeploymentStreamMessageType$inboundSchema;
|
|
10041
|
+
|
|
10042
|
+
/**
|
|
10043
|
+
* @internal
|
|
10044
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
10045
|
+
*/
|
|
10046
|
+
export namespace DeploymentStreamMessageType$ {
|
|
10047
|
+
/** @deprecated use `DeploymentStreamMessageType$inboundSchema` instead. */
|
|
10048
|
+
export const inboundSchema = DeploymentStreamMessageType$inboundSchema;
|
|
10049
|
+
/** @deprecated use `DeploymentStreamMessageType$outboundSchema` instead. */
|
|
10050
|
+
export const outboundSchema = DeploymentStreamMessageType$outboundSchema;
|
|
10051
|
+
}
|
|
10052
|
+
|
|
8757
10053
|
/** @internal */
|
|
8758
10054
|
export const DeploymentStreamMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
8759
10055
|
typeof DeploymentStreamMessageRole
|
|
@@ -8776,24 +10072,26 @@ export namespace DeploymentStreamMessageRole$ {
|
|
|
8776
10072
|
}
|
|
8777
10073
|
|
|
8778
10074
|
/** @internal */
|
|
8779
|
-
export const
|
|
8780
|
-
typeof
|
|
8781
|
-
|
|
10075
|
+
export const DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema:
|
|
10076
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponse200Type> = z
|
|
10077
|
+
.nativeEnum(DeploymentStreamMessageDeploymentsResponse200Type);
|
|
8782
10078
|
|
|
8783
10079
|
/** @internal */
|
|
8784
|
-
export const
|
|
8785
|
-
typeof
|
|
8786
|
-
|
|
10080
|
+
export const DeploymentStreamMessageDeploymentsResponse200Type$outboundSchema:
|
|
10081
|
+
z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponse200Type> =
|
|
10082
|
+
DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema;
|
|
8787
10083
|
|
|
8788
10084
|
/**
|
|
8789
10085
|
* @internal
|
|
8790
10086
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
8791
10087
|
*/
|
|
8792
|
-
export namespace
|
|
8793
|
-
/** @deprecated use `
|
|
8794
|
-
export const inboundSchema =
|
|
8795
|
-
|
|
8796
|
-
|
|
10088
|
+
export namespace DeploymentStreamMessageDeploymentsResponse200Type$ {
|
|
10089
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema` instead. */
|
|
10090
|
+
export const inboundSchema =
|
|
10091
|
+
DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema;
|
|
10092
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponse200Type$outboundSchema` instead. */
|
|
10093
|
+
export const outboundSchema =
|
|
10094
|
+
DeploymentStreamMessageDeploymentsResponse200Type$outboundSchema;
|
|
8797
10095
|
}
|
|
8798
10096
|
|
|
8799
10097
|
/** @internal */
|
|
@@ -8863,7 +10161,7 @@ export const DeploymentStreamMessageToolCalls$inboundSchema: z.ZodType<
|
|
|
8863
10161
|
> = z.object({
|
|
8864
10162
|
id: z.string().optional(),
|
|
8865
10163
|
index: z.number().optional(),
|
|
8866
|
-
type:
|
|
10164
|
+
type: DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema,
|
|
8867
10165
|
function: z.lazy(() => DeploymentStreamMessageFunction$inboundSchema),
|
|
8868
10166
|
});
|
|
8869
10167
|
|
|
@@ -8883,7 +10181,7 @@ export const DeploymentStreamMessageToolCalls$outboundSchema: z.ZodType<
|
|
|
8883
10181
|
> = z.object({
|
|
8884
10182
|
id: z.string().optional(),
|
|
8885
10183
|
index: z.number().optional(),
|
|
8886
|
-
type:
|
|
10184
|
+
type: DeploymentStreamMessageDeploymentsResponse200Type$outboundSchema,
|
|
8887
10185
|
function: z.lazy(() => DeploymentStreamMessageFunction$outboundSchema),
|
|
8888
10186
|
});
|
|
8889
10187
|
|
|
@@ -8926,22 +10224,32 @@ export const DeploymentStreamMessage1$inboundSchema: z.ZodType<
|
|
|
8926
10224
|
z.ZodTypeDef,
|
|
8927
10225
|
unknown
|
|
8928
10226
|
> = z.object({
|
|
10227
|
+
type: DeploymentStreamMessageType$inboundSchema,
|
|
8929
10228
|
role: DeploymentStreamMessageRole$inboundSchema,
|
|
8930
10229
|
content: z.nullable(z.string()).optional(),
|
|
8931
10230
|
tool_calls: z.array(
|
|
8932
10231
|
z.lazy(() => DeploymentStreamMessageToolCalls$inboundSchema),
|
|
8933
10232
|
),
|
|
10233
|
+
reasoning: z.string().optional(),
|
|
10234
|
+
reasoning_signature: z.string().optional(),
|
|
10235
|
+
redacted_reasoning: z.string().optional(),
|
|
8934
10236
|
}).transform((v) => {
|
|
8935
10237
|
return remap$(v, {
|
|
8936
10238
|
"tool_calls": "toolCalls",
|
|
10239
|
+
"reasoning_signature": "reasoningSignature",
|
|
10240
|
+
"redacted_reasoning": "redactedReasoning",
|
|
8937
10241
|
});
|
|
8938
10242
|
});
|
|
8939
10243
|
|
|
8940
10244
|
/** @internal */
|
|
8941
10245
|
export type DeploymentStreamMessage1$Outbound = {
|
|
10246
|
+
type: string;
|
|
8942
10247
|
role: string;
|
|
8943
10248
|
content?: string | null | undefined;
|
|
8944
10249
|
tool_calls: Array<DeploymentStreamMessageToolCalls$Outbound>;
|
|
10250
|
+
reasoning?: string | undefined;
|
|
10251
|
+
reasoning_signature?: string | undefined;
|
|
10252
|
+
redacted_reasoning?: string | undefined;
|
|
8945
10253
|
};
|
|
8946
10254
|
|
|
8947
10255
|
/** @internal */
|
|
@@ -8950,14 +10258,20 @@ export const DeploymentStreamMessage1$outboundSchema: z.ZodType<
|
|
|
8950
10258
|
z.ZodTypeDef,
|
|
8951
10259
|
DeploymentStreamMessage1
|
|
8952
10260
|
> = z.object({
|
|
10261
|
+
type: DeploymentStreamMessageType$outboundSchema,
|
|
8953
10262
|
role: DeploymentStreamMessageRole$outboundSchema,
|
|
8954
10263
|
content: z.nullable(z.string()).optional(),
|
|
8955
10264
|
toolCalls: z.array(
|
|
8956
10265
|
z.lazy(() => DeploymentStreamMessageToolCalls$outboundSchema),
|
|
8957
10266
|
),
|
|
10267
|
+
reasoning: z.string().optional(),
|
|
10268
|
+
reasoningSignature: z.string().optional(),
|
|
10269
|
+
redactedReasoning: z.string().optional(),
|
|
8958
10270
|
}).transform((v) => {
|
|
8959
10271
|
return remap$(v, {
|
|
8960
10272
|
toolCalls: "tool_calls",
|
|
10273
|
+
reasoningSignature: "reasoning_signature",
|
|
10274
|
+
redactedReasoning: "redacted_reasoning",
|
|
8961
10275
|
});
|
|
8962
10276
|
});
|
|
8963
10277
|
|
|
@@ -9062,7 +10376,7 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
|
|
|
9062
10376
|
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
9063
10377
|
z.lazy(() => DeploymentStreamMessage2$inboundSchema),
|
|
9064
10378
|
z.lazy(() => DeploymentStreamMessage3$inboundSchema),
|
|
9065
|
-
])
|
|
10379
|
+
]),
|
|
9066
10380
|
finish_reason: z.nullable(z.string()).optional(),
|
|
9067
10381
|
}).transform((v) => {
|
|
9068
10382
|
return remap$(v, {
|
|
@@ -9073,11 +10387,10 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
|
|
|
9073
10387
|
/** @internal */
|
|
9074
10388
|
export type DeploymentStreamChoices$Outbound = {
|
|
9075
10389
|
index: number;
|
|
9076
|
-
message
|
|
10390
|
+
message:
|
|
9077
10391
|
| DeploymentStreamMessage1$Outbound
|
|
9078
10392
|
| DeploymentStreamMessage2$Outbound
|
|
9079
|
-
| DeploymentStreamMessage3$Outbound
|
|
9080
|
-
| undefined;
|
|
10393
|
+
| DeploymentStreamMessage3$Outbound;
|
|
9081
10394
|
finish_reason?: string | null | undefined;
|
|
9082
10395
|
};
|
|
9083
10396
|
|
|
@@ -9092,7 +10405,7 @@ export const DeploymentStreamChoices$outboundSchema: z.ZodType<
|
|
|
9092
10405
|
z.lazy(() => DeploymentStreamMessage1$outboundSchema),
|
|
9093
10406
|
z.lazy(() => DeploymentStreamMessage2$outboundSchema),
|
|
9094
10407
|
z.lazy(() => DeploymentStreamMessage3$outboundSchema),
|
|
9095
|
-
])
|
|
10408
|
+
]),
|
|
9096
10409
|
finishReason: z.nullable(z.string()).optional(),
|
|
9097
10410
|
}).transform((v) => {
|
|
9098
10411
|
return remap$(v, {
|
|
@@ -9131,172 +10444,26 @@ export function deploymentStreamChoicesFromJSON(
|
|
|
9131
10444
|
);
|
|
9132
10445
|
}
|
|
9133
10446
|
|
|
9134
|
-
/** @internal */
|
|
9135
|
-
export const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<
|
|
9136
|
-
DeploymentStreamDeploymentsMetadata,
|
|
9137
|
-
z.ZodTypeDef,
|
|
9138
|
-
unknown
|
|
9139
|
-
> = z.object({
|
|
9140
|
-
file_name: z.string(),
|
|
9141
|
-
page_number: z.nullable(z.number()),
|
|
9142
|
-
file_type: z.string(),
|
|
9143
|
-
rerank_score: z.number().optional(),
|
|
9144
|
-
search_score: z.number(),
|
|
9145
|
-
}).transform((v) => {
|
|
9146
|
-
return remap$(v, {
|
|
9147
|
-
"file_name": "fileName",
|
|
9148
|
-
"page_number": "pageNumber",
|
|
9149
|
-
"file_type": "fileType",
|
|
9150
|
-
"rerank_score": "rerankScore",
|
|
9151
|
-
"search_score": "searchScore",
|
|
9152
|
-
});
|
|
9153
|
-
});
|
|
9154
|
-
|
|
9155
|
-
/** @internal */
|
|
9156
|
-
export type DeploymentStreamDeploymentsMetadata$Outbound = {
|
|
9157
|
-
file_name: string;
|
|
9158
|
-
page_number: number | null;
|
|
9159
|
-
file_type: string;
|
|
9160
|
-
rerank_score?: number | undefined;
|
|
9161
|
-
search_score: number;
|
|
9162
|
-
};
|
|
9163
|
-
|
|
9164
|
-
/** @internal */
|
|
9165
|
-
export const DeploymentStreamDeploymentsMetadata$outboundSchema: z.ZodType<
|
|
9166
|
-
DeploymentStreamDeploymentsMetadata$Outbound,
|
|
9167
|
-
z.ZodTypeDef,
|
|
9168
|
-
DeploymentStreamDeploymentsMetadata
|
|
9169
|
-
> = z.object({
|
|
9170
|
-
fileName: z.string(),
|
|
9171
|
-
pageNumber: z.nullable(z.number()),
|
|
9172
|
-
fileType: z.string(),
|
|
9173
|
-
rerankScore: z.number().optional(),
|
|
9174
|
-
searchScore: z.number(),
|
|
9175
|
-
}).transform((v) => {
|
|
9176
|
-
return remap$(v, {
|
|
9177
|
-
fileName: "file_name",
|
|
9178
|
-
pageNumber: "page_number",
|
|
9179
|
-
fileType: "file_type",
|
|
9180
|
-
rerankScore: "rerank_score",
|
|
9181
|
-
searchScore: "search_score",
|
|
9182
|
-
});
|
|
9183
|
-
});
|
|
9184
|
-
|
|
9185
|
-
/**
|
|
9186
|
-
* @internal
|
|
9187
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9188
|
-
*/
|
|
9189
|
-
export namespace DeploymentStreamDeploymentsMetadata$ {
|
|
9190
|
-
/** @deprecated use `DeploymentStreamDeploymentsMetadata$inboundSchema` instead. */
|
|
9191
|
-
export const inboundSchema =
|
|
9192
|
-
DeploymentStreamDeploymentsMetadata$inboundSchema;
|
|
9193
|
-
/** @deprecated use `DeploymentStreamDeploymentsMetadata$outboundSchema` instead. */
|
|
9194
|
-
export const outboundSchema =
|
|
9195
|
-
DeploymentStreamDeploymentsMetadata$outboundSchema;
|
|
9196
|
-
/** @deprecated use `DeploymentStreamDeploymentsMetadata$Outbound` instead. */
|
|
9197
|
-
export type Outbound = DeploymentStreamDeploymentsMetadata$Outbound;
|
|
9198
|
-
}
|
|
9199
|
-
|
|
9200
|
-
export function deploymentStreamDeploymentsMetadataToJSON(
|
|
9201
|
-
deploymentStreamDeploymentsMetadata: DeploymentStreamDeploymentsMetadata,
|
|
9202
|
-
): string {
|
|
9203
|
-
return JSON.stringify(
|
|
9204
|
-
DeploymentStreamDeploymentsMetadata$outboundSchema.parse(
|
|
9205
|
-
deploymentStreamDeploymentsMetadata,
|
|
9206
|
-
),
|
|
9207
|
-
);
|
|
9208
|
-
}
|
|
9209
|
-
|
|
9210
|
-
export function deploymentStreamDeploymentsMetadataFromJSON(
|
|
9211
|
-
jsonString: string,
|
|
9212
|
-
): SafeParseResult<DeploymentStreamDeploymentsMetadata, SDKValidationError> {
|
|
9213
|
-
return safeParse(
|
|
9214
|
-
jsonString,
|
|
9215
|
-
(x) =>
|
|
9216
|
-
DeploymentStreamDeploymentsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
9217
|
-
`Failed to parse 'DeploymentStreamDeploymentsMetadata' from JSON`,
|
|
9218
|
-
);
|
|
9219
|
-
}
|
|
9220
|
-
|
|
9221
|
-
/** @internal */
|
|
9222
|
-
export const DeploymentStreamRetrievals$inboundSchema: z.ZodType<
|
|
9223
|
-
DeploymentStreamRetrievals,
|
|
9224
|
-
z.ZodTypeDef,
|
|
9225
|
-
unknown
|
|
9226
|
-
> = z.object({
|
|
9227
|
-
document: z.string(),
|
|
9228
|
-
metadata: z.lazy(() => DeploymentStreamDeploymentsMetadata$inboundSchema),
|
|
9229
|
-
});
|
|
9230
|
-
|
|
9231
|
-
/** @internal */
|
|
9232
|
-
export type DeploymentStreamRetrievals$Outbound = {
|
|
9233
|
-
document: string;
|
|
9234
|
-
metadata: DeploymentStreamDeploymentsMetadata$Outbound;
|
|
9235
|
-
};
|
|
9236
|
-
|
|
9237
|
-
/** @internal */
|
|
9238
|
-
export const DeploymentStreamRetrievals$outboundSchema: z.ZodType<
|
|
9239
|
-
DeploymentStreamRetrievals$Outbound,
|
|
9240
|
-
z.ZodTypeDef,
|
|
9241
|
-
DeploymentStreamRetrievals
|
|
9242
|
-
> = z.object({
|
|
9243
|
-
document: z.string(),
|
|
9244
|
-
metadata: z.lazy(() => DeploymentStreamDeploymentsMetadata$outboundSchema),
|
|
9245
|
-
});
|
|
9246
|
-
|
|
9247
|
-
/**
|
|
9248
|
-
* @internal
|
|
9249
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9250
|
-
*/
|
|
9251
|
-
export namespace DeploymentStreamRetrievals$ {
|
|
9252
|
-
/** @deprecated use `DeploymentStreamRetrievals$inboundSchema` instead. */
|
|
9253
|
-
export const inboundSchema = DeploymentStreamRetrievals$inboundSchema;
|
|
9254
|
-
/** @deprecated use `DeploymentStreamRetrievals$outboundSchema` instead. */
|
|
9255
|
-
export const outboundSchema = DeploymentStreamRetrievals$outboundSchema;
|
|
9256
|
-
/** @deprecated use `DeploymentStreamRetrievals$Outbound` instead. */
|
|
9257
|
-
export type Outbound = DeploymentStreamRetrievals$Outbound;
|
|
9258
|
-
}
|
|
9259
|
-
|
|
9260
|
-
export function deploymentStreamRetrievalsToJSON(
|
|
9261
|
-
deploymentStreamRetrievals: DeploymentStreamRetrievals,
|
|
9262
|
-
): string {
|
|
9263
|
-
return JSON.stringify(
|
|
9264
|
-
DeploymentStreamRetrievals$outboundSchema.parse(deploymentStreamRetrievals),
|
|
9265
|
-
);
|
|
9266
|
-
}
|
|
9267
|
-
|
|
9268
|
-
export function deploymentStreamRetrievalsFromJSON(
|
|
9269
|
-
jsonString: string,
|
|
9270
|
-
): SafeParseResult<DeploymentStreamRetrievals, SDKValidationError> {
|
|
9271
|
-
return safeParse(
|
|
9272
|
-
jsonString,
|
|
9273
|
-
(x) => DeploymentStreamRetrievals$inboundSchema.parse(JSON.parse(x)),
|
|
9274
|
-
`Failed to parse 'DeploymentStreamRetrievals' from JSON`,
|
|
9275
|
-
);
|
|
9276
|
-
}
|
|
9277
|
-
|
|
9278
10447
|
/** @internal */
|
|
9279
10448
|
export const DeploymentStreamData$inboundSchema: z.ZodType<
|
|
9280
10449
|
DeploymentStreamData,
|
|
9281
10450
|
z.ZodTypeDef,
|
|
9282
10451
|
unknown
|
|
9283
10452
|
> = z.object({
|
|
9284
|
-
id: z.string()
|
|
9285
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
is_final: z.boolean().optional(),
|
|
10453
|
+
id: z.string(),
|
|
10454
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
10455
|
+
object: DeploymentStreamObject$inboundSchema,
|
|
10456
|
+
model: z.string(),
|
|
10457
|
+
provider: DeploymentStreamProvider$inboundSchema,
|
|
10458
|
+
is_final: z.boolean(),
|
|
9291
10459
|
integration_id: z.string().optional(),
|
|
9292
10460
|
finalized: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9293
10461
|
.optional(),
|
|
9294
10462
|
system_fingerprint: z.nullable(z.string()).optional(),
|
|
9295
|
-
choices: z.array(z.lazy(() => DeploymentStreamChoices$inboundSchema))
|
|
9296
|
-
.optional(),
|
|
9297
10463
|
retrievals: z.array(z.lazy(() => DeploymentStreamRetrievals$inboundSchema))
|
|
9298
10464
|
.optional(),
|
|
9299
10465
|
provider_response: z.any().optional(),
|
|
10466
|
+
choices: z.array(z.lazy(() => DeploymentStreamChoices$inboundSchema)),
|
|
9300
10467
|
}).transform((v) => {
|
|
9301
10468
|
return remap$(v, {
|
|
9302
10469
|
"is_final": "isFinal",
|
|
@@ -9308,18 +10475,18 @@ export const DeploymentStreamData$inboundSchema: z.ZodType<
|
|
|
9308
10475
|
|
|
9309
10476
|
/** @internal */
|
|
9310
10477
|
export type DeploymentStreamData$Outbound = {
|
|
9311
|
-
id
|
|
9312
|
-
created
|
|
9313
|
-
object
|
|
9314
|
-
model
|
|
9315
|
-
provider
|
|
9316
|
-
is_final
|
|
10478
|
+
id: string;
|
|
10479
|
+
created: string;
|
|
10480
|
+
object: string;
|
|
10481
|
+
model: string;
|
|
10482
|
+
provider: string;
|
|
10483
|
+
is_final: boolean;
|
|
9317
10484
|
integration_id?: string | undefined;
|
|
9318
10485
|
finalized?: string | undefined;
|
|
9319
10486
|
system_fingerprint?: string | null | undefined;
|
|
9320
|
-
choices?: Array<DeploymentStreamChoices$Outbound> | undefined;
|
|
9321
10487
|
retrievals?: Array<DeploymentStreamRetrievals$Outbound> | undefined;
|
|
9322
10488
|
provider_response?: any | undefined;
|
|
10489
|
+
choices: Array<DeploymentStreamChoices$Outbound>;
|
|
9323
10490
|
};
|
|
9324
10491
|
|
|
9325
10492
|
/** @internal */
|
|
@@ -9328,20 +10495,19 @@ export const DeploymentStreamData$outboundSchema: z.ZodType<
|
|
|
9328
10495
|
z.ZodTypeDef,
|
|
9329
10496
|
DeploymentStreamData
|
|
9330
10497
|
> = z.object({
|
|
9331
|
-
id: z.string()
|
|
9332
|
-
created: z.date().transform(v => v.toISOString())
|
|
9333
|
-
object: DeploymentStreamObject$outboundSchema
|
|
9334
|
-
model: z.string()
|
|
9335
|
-
provider: DeploymentStreamProvider$outboundSchema
|
|
9336
|
-
isFinal: z.boolean()
|
|
10498
|
+
id: z.string(),
|
|
10499
|
+
created: z.date().transform(v => v.toISOString()),
|
|
10500
|
+
object: DeploymentStreamObject$outboundSchema,
|
|
10501
|
+
model: z.string(),
|
|
10502
|
+
provider: DeploymentStreamProvider$outboundSchema,
|
|
10503
|
+
isFinal: z.boolean(),
|
|
9337
10504
|
integrationId: z.string().optional(),
|
|
9338
10505
|
finalized: z.date().transform(v => v.toISOString()).optional(),
|
|
9339
10506
|
systemFingerprint: z.nullable(z.string()).optional(),
|
|
9340
|
-
choices: z.array(z.lazy(() => DeploymentStreamChoices$outboundSchema))
|
|
9341
|
-
.optional(),
|
|
9342
10507
|
retrievals: z.array(z.lazy(() => DeploymentStreamRetrievals$outboundSchema))
|
|
9343
10508
|
.optional(),
|
|
9344
10509
|
providerResponse: z.any().optional(),
|
|
10510
|
+
choices: z.array(z.lazy(() => DeploymentStreamChoices$outboundSchema)),
|
|
9345
10511
|
}).transform((v) => {
|
|
9346
10512
|
return remap$(v, {
|
|
9347
10513
|
isFinal: "is_final",
|