@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
|
@@ -79,6 +79,45 @@ export type Deployments2PrefixMessages4Type = ClosedEnum<
|
|
|
79
79
|
typeof Deployments2PrefixMessages4Type
|
|
80
80
|
>;
|
|
81
81
|
|
|
82
|
+
export const DeploymentsAnnotationsType = {
|
|
83
|
+
FilePath: "file_path",
|
|
84
|
+
} as const;
|
|
85
|
+
export type DeploymentsAnnotationsType = ClosedEnum<
|
|
86
|
+
typeof DeploymentsAnnotationsType
|
|
87
|
+
>;
|
|
88
|
+
|
|
89
|
+
export type FilePath = {
|
|
90
|
+
fileId: string;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type Annotations2 = {
|
|
94
|
+
type: DeploymentsAnnotationsType;
|
|
95
|
+
text: string;
|
|
96
|
+
filePath: FilePath;
|
|
97
|
+
startIndex: number;
|
|
98
|
+
endIndex: number;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const AnnotationsType = {
|
|
102
|
+
FileCitation: "file_citation",
|
|
103
|
+
} as const;
|
|
104
|
+
export type AnnotationsType = ClosedEnum<typeof AnnotationsType>;
|
|
105
|
+
|
|
106
|
+
export type FileCitation = {
|
|
107
|
+
fileId: string;
|
|
108
|
+
quote?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type Annotations1 = {
|
|
112
|
+
type: AnnotationsType;
|
|
113
|
+
text: string;
|
|
114
|
+
fileCitation: FileCitation;
|
|
115
|
+
startIndex: number;
|
|
116
|
+
endIndex: number;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type Annotations = Annotations1 | Annotations2;
|
|
120
|
+
|
|
82
121
|
export type TextContentPart = {
|
|
83
122
|
/**
|
|
84
123
|
* The type of the content part.
|
|
@@ -88,6 +127,10 @@ export type TextContentPart = {
|
|
|
88
127
|
* The text content.
|
|
89
128
|
*/
|
|
90
129
|
text: string;
|
|
130
|
+
/**
|
|
131
|
+
* Annotations for the text content.
|
|
132
|
+
*/
|
|
133
|
+
annotations?: Array<Annotations1 | Annotations2> | undefined;
|
|
91
134
|
};
|
|
92
135
|
|
|
93
136
|
export type Content2 = TextContentPart | RefusalContentPart;
|
|
@@ -476,6 +519,47 @@ export type Deployments2Messages4Type = ClosedEnum<
|
|
|
476
519
|
typeof Deployments2Messages4Type
|
|
477
520
|
>;
|
|
478
521
|
|
|
522
|
+
export const DeploymentsAnnotationsMessages4Type = {
|
|
523
|
+
FilePath: "file_path",
|
|
524
|
+
} as const;
|
|
525
|
+
export type DeploymentsAnnotationsMessages4Type = ClosedEnum<
|
|
526
|
+
typeof DeploymentsAnnotationsMessages4Type
|
|
527
|
+
>;
|
|
528
|
+
|
|
529
|
+
export type AnnotationsFilePath = {
|
|
530
|
+
fileId: string;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
export type DeploymentsAnnotations2 = {
|
|
534
|
+
type: DeploymentsAnnotationsMessages4Type;
|
|
535
|
+
text: string;
|
|
536
|
+
filePath: AnnotationsFilePath;
|
|
537
|
+
startIndex: number;
|
|
538
|
+
endIndex: number;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
export const DeploymentsAnnotationsMessagesType = {
|
|
542
|
+
FileCitation: "file_citation",
|
|
543
|
+
} as const;
|
|
544
|
+
export type DeploymentsAnnotationsMessagesType = ClosedEnum<
|
|
545
|
+
typeof DeploymentsAnnotationsMessagesType
|
|
546
|
+
>;
|
|
547
|
+
|
|
548
|
+
export type AnnotationsFileCitation = {
|
|
549
|
+
fileId: string;
|
|
550
|
+
quote?: string | undefined;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
export type DeploymentsAnnotations1 = {
|
|
554
|
+
type: DeploymentsAnnotationsMessagesType;
|
|
555
|
+
text: string;
|
|
556
|
+
fileCitation: AnnotationsFileCitation;
|
|
557
|
+
startIndex: number;
|
|
558
|
+
endIndex: number;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
export type TwoAnnotations = DeploymentsAnnotations1 | DeploymentsAnnotations2;
|
|
562
|
+
|
|
479
563
|
export type TwoTextContentPart = {
|
|
480
564
|
/**
|
|
481
565
|
* The type of the content part.
|
|
@@ -485,6 +569,12 @@ export type TwoTextContentPart = {
|
|
|
485
569
|
* The text content.
|
|
486
570
|
*/
|
|
487
571
|
text: string;
|
|
572
|
+
/**
|
|
573
|
+
* Annotations for the text content.
|
|
574
|
+
*/
|
|
575
|
+
annotations?:
|
|
576
|
+
| Array<DeploymentsAnnotations1 | DeploymentsAnnotations2>
|
|
577
|
+
| undefined;
|
|
488
578
|
};
|
|
489
579
|
|
|
490
580
|
export type DeploymentsContentMessages2 =
|
|
@@ -1458,6 +1548,367 @@ export namespace Deployments2PrefixMessages4Type$ {
|
|
|
1458
1548
|
export const outboundSchema = Deployments2PrefixMessages4Type$outboundSchema;
|
|
1459
1549
|
}
|
|
1460
1550
|
|
|
1551
|
+
/** @internal */
|
|
1552
|
+
export const DeploymentsAnnotationsType$inboundSchema: z.ZodNativeEnum<
|
|
1553
|
+
typeof DeploymentsAnnotationsType
|
|
1554
|
+
> = z.nativeEnum(DeploymentsAnnotationsType);
|
|
1555
|
+
|
|
1556
|
+
/** @internal */
|
|
1557
|
+
export const DeploymentsAnnotationsType$outboundSchema: z.ZodNativeEnum<
|
|
1558
|
+
typeof DeploymentsAnnotationsType
|
|
1559
|
+
> = DeploymentsAnnotationsType$inboundSchema;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* @internal
|
|
1563
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1564
|
+
*/
|
|
1565
|
+
export namespace DeploymentsAnnotationsType$ {
|
|
1566
|
+
/** @deprecated use `DeploymentsAnnotationsType$inboundSchema` instead. */
|
|
1567
|
+
export const inboundSchema = DeploymentsAnnotationsType$inboundSchema;
|
|
1568
|
+
/** @deprecated use `DeploymentsAnnotationsType$outboundSchema` instead. */
|
|
1569
|
+
export const outboundSchema = DeploymentsAnnotationsType$outboundSchema;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/** @internal */
|
|
1573
|
+
export const FilePath$inboundSchema: z.ZodType<
|
|
1574
|
+
FilePath,
|
|
1575
|
+
z.ZodTypeDef,
|
|
1576
|
+
unknown
|
|
1577
|
+
> = z.object({
|
|
1578
|
+
file_id: z.string(),
|
|
1579
|
+
}).transform((v) => {
|
|
1580
|
+
return remap$(v, {
|
|
1581
|
+
"file_id": "fileId",
|
|
1582
|
+
});
|
|
1583
|
+
});
|
|
1584
|
+
|
|
1585
|
+
/** @internal */
|
|
1586
|
+
export type FilePath$Outbound = {
|
|
1587
|
+
file_id: string;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export const FilePath$outboundSchema: z.ZodType<
|
|
1592
|
+
FilePath$Outbound,
|
|
1593
|
+
z.ZodTypeDef,
|
|
1594
|
+
FilePath
|
|
1595
|
+
> = z.object({
|
|
1596
|
+
fileId: z.string(),
|
|
1597
|
+
}).transform((v) => {
|
|
1598
|
+
return remap$(v, {
|
|
1599
|
+
fileId: "file_id",
|
|
1600
|
+
});
|
|
1601
|
+
});
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* @internal
|
|
1605
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1606
|
+
*/
|
|
1607
|
+
export namespace FilePath$ {
|
|
1608
|
+
/** @deprecated use `FilePath$inboundSchema` instead. */
|
|
1609
|
+
export const inboundSchema = FilePath$inboundSchema;
|
|
1610
|
+
/** @deprecated use `FilePath$outboundSchema` instead. */
|
|
1611
|
+
export const outboundSchema = FilePath$outboundSchema;
|
|
1612
|
+
/** @deprecated use `FilePath$Outbound` instead. */
|
|
1613
|
+
export type Outbound = FilePath$Outbound;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
export function filePathToJSON(filePath: FilePath): string {
|
|
1617
|
+
return JSON.stringify(FilePath$outboundSchema.parse(filePath));
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export function filePathFromJSON(
|
|
1621
|
+
jsonString: string,
|
|
1622
|
+
): SafeParseResult<FilePath, SDKValidationError> {
|
|
1623
|
+
return safeParse(
|
|
1624
|
+
jsonString,
|
|
1625
|
+
(x) => FilePath$inboundSchema.parse(JSON.parse(x)),
|
|
1626
|
+
`Failed to parse 'FilePath' from JSON`,
|
|
1627
|
+
);
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/** @internal */
|
|
1631
|
+
export const Annotations2$inboundSchema: z.ZodType<
|
|
1632
|
+
Annotations2,
|
|
1633
|
+
z.ZodTypeDef,
|
|
1634
|
+
unknown
|
|
1635
|
+
> = z.object({
|
|
1636
|
+
type: DeploymentsAnnotationsType$inboundSchema,
|
|
1637
|
+
text: z.string(),
|
|
1638
|
+
file_path: z.lazy(() => FilePath$inboundSchema),
|
|
1639
|
+
start_index: z.number().int(),
|
|
1640
|
+
end_index: z.number().int(),
|
|
1641
|
+
}).transform((v) => {
|
|
1642
|
+
return remap$(v, {
|
|
1643
|
+
"file_path": "filePath",
|
|
1644
|
+
"start_index": "startIndex",
|
|
1645
|
+
"end_index": "endIndex",
|
|
1646
|
+
});
|
|
1647
|
+
});
|
|
1648
|
+
|
|
1649
|
+
/** @internal */
|
|
1650
|
+
export type Annotations2$Outbound = {
|
|
1651
|
+
type: string;
|
|
1652
|
+
text: string;
|
|
1653
|
+
file_path: FilePath$Outbound;
|
|
1654
|
+
start_index: number;
|
|
1655
|
+
end_index: number;
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
/** @internal */
|
|
1659
|
+
export const Annotations2$outboundSchema: z.ZodType<
|
|
1660
|
+
Annotations2$Outbound,
|
|
1661
|
+
z.ZodTypeDef,
|
|
1662
|
+
Annotations2
|
|
1663
|
+
> = z.object({
|
|
1664
|
+
type: DeploymentsAnnotationsType$outboundSchema,
|
|
1665
|
+
text: z.string(),
|
|
1666
|
+
filePath: z.lazy(() => FilePath$outboundSchema),
|
|
1667
|
+
startIndex: z.number().int(),
|
|
1668
|
+
endIndex: z.number().int(),
|
|
1669
|
+
}).transform((v) => {
|
|
1670
|
+
return remap$(v, {
|
|
1671
|
+
filePath: "file_path",
|
|
1672
|
+
startIndex: "start_index",
|
|
1673
|
+
endIndex: "end_index",
|
|
1674
|
+
});
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @internal
|
|
1679
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1680
|
+
*/
|
|
1681
|
+
export namespace Annotations2$ {
|
|
1682
|
+
/** @deprecated use `Annotations2$inboundSchema` instead. */
|
|
1683
|
+
export const inboundSchema = Annotations2$inboundSchema;
|
|
1684
|
+
/** @deprecated use `Annotations2$outboundSchema` instead. */
|
|
1685
|
+
export const outboundSchema = Annotations2$outboundSchema;
|
|
1686
|
+
/** @deprecated use `Annotations2$Outbound` instead. */
|
|
1687
|
+
export type Outbound = Annotations2$Outbound;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
export function annotations2ToJSON(annotations2: Annotations2): string {
|
|
1691
|
+
return JSON.stringify(Annotations2$outboundSchema.parse(annotations2));
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
export function annotations2FromJSON(
|
|
1695
|
+
jsonString: string,
|
|
1696
|
+
): SafeParseResult<Annotations2, SDKValidationError> {
|
|
1697
|
+
return safeParse(
|
|
1698
|
+
jsonString,
|
|
1699
|
+
(x) => Annotations2$inboundSchema.parse(JSON.parse(x)),
|
|
1700
|
+
`Failed to parse 'Annotations2' from JSON`,
|
|
1701
|
+
);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
/** @internal */
|
|
1705
|
+
export const AnnotationsType$inboundSchema: z.ZodNativeEnum<
|
|
1706
|
+
typeof AnnotationsType
|
|
1707
|
+
> = z.nativeEnum(AnnotationsType);
|
|
1708
|
+
|
|
1709
|
+
/** @internal */
|
|
1710
|
+
export const AnnotationsType$outboundSchema: z.ZodNativeEnum<
|
|
1711
|
+
typeof AnnotationsType
|
|
1712
|
+
> = AnnotationsType$inboundSchema;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* @internal
|
|
1716
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1717
|
+
*/
|
|
1718
|
+
export namespace AnnotationsType$ {
|
|
1719
|
+
/** @deprecated use `AnnotationsType$inboundSchema` instead. */
|
|
1720
|
+
export const inboundSchema = AnnotationsType$inboundSchema;
|
|
1721
|
+
/** @deprecated use `AnnotationsType$outboundSchema` instead. */
|
|
1722
|
+
export const outboundSchema = AnnotationsType$outboundSchema;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
export const FileCitation$inboundSchema: z.ZodType<
|
|
1727
|
+
FileCitation,
|
|
1728
|
+
z.ZodTypeDef,
|
|
1729
|
+
unknown
|
|
1730
|
+
> = z.object({
|
|
1731
|
+
file_id: z.string(),
|
|
1732
|
+
quote: z.string().optional(),
|
|
1733
|
+
}).transform((v) => {
|
|
1734
|
+
return remap$(v, {
|
|
1735
|
+
"file_id": "fileId",
|
|
1736
|
+
});
|
|
1737
|
+
});
|
|
1738
|
+
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export type FileCitation$Outbound = {
|
|
1741
|
+
file_id: string;
|
|
1742
|
+
quote?: string | undefined;
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
/** @internal */
|
|
1746
|
+
export const FileCitation$outboundSchema: z.ZodType<
|
|
1747
|
+
FileCitation$Outbound,
|
|
1748
|
+
z.ZodTypeDef,
|
|
1749
|
+
FileCitation
|
|
1750
|
+
> = z.object({
|
|
1751
|
+
fileId: z.string(),
|
|
1752
|
+
quote: z.string().optional(),
|
|
1753
|
+
}).transform((v) => {
|
|
1754
|
+
return remap$(v, {
|
|
1755
|
+
fileId: "file_id",
|
|
1756
|
+
});
|
|
1757
|
+
});
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* @internal
|
|
1761
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1762
|
+
*/
|
|
1763
|
+
export namespace FileCitation$ {
|
|
1764
|
+
/** @deprecated use `FileCitation$inboundSchema` instead. */
|
|
1765
|
+
export const inboundSchema = FileCitation$inboundSchema;
|
|
1766
|
+
/** @deprecated use `FileCitation$outboundSchema` instead. */
|
|
1767
|
+
export const outboundSchema = FileCitation$outboundSchema;
|
|
1768
|
+
/** @deprecated use `FileCitation$Outbound` instead. */
|
|
1769
|
+
export type Outbound = FileCitation$Outbound;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
export function fileCitationToJSON(fileCitation: FileCitation): string {
|
|
1773
|
+
return JSON.stringify(FileCitation$outboundSchema.parse(fileCitation));
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
export function fileCitationFromJSON(
|
|
1777
|
+
jsonString: string,
|
|
1778
|
+
): SafeParseResult<FileCitation, SDKValidationError> {
|
|
1779
|
+
return safeParse(
|
|
1780
|
+
jsonString,
|
|
1781
|
+
(x) => FileCitation$inboundSchema.parse(JSON.parse(x)),
|
|
1782
|
+
`Failed to parse 'FileCitation' from JSON`,
|
|
1783
|
+
);
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
/** @internal */
|
|
1787
|
+
export const Annotations1$inboundSchema: z.ZodType<
|
|
1788
|
+
Annotations1,
|
|
1789
|
+
z.ZodTypeDef,
|
|
1790
|
+
unknown
|
|
1791
|
+
> = z.object({
|
|
1792
|
+
type: AnnotationsType$inboundSchema,
|
|
1793
|
+
text: z.string(),
|
|
1794
|
+
file_citation: z.lazy(() => FileCitation$inboundSchema),
|
|
1795
|
+
start_index: z.number().int(),
|
|
1796
|
+
end_index: z.number().int(),
|
|
1797
|
+
}).transform((v) => {
|
|
1798
|
+
return remap$(v, {
|
|
1799
|
+
"file_citation": "fileCitation",
|
|
1800
|
+
"start_index": "startIndex",
|
|
1801
|
+
"end_index": "endIndex",
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
|
|
1805
|
+
/** @internal */
|
|
1806
|
+
export type Annotations1$Outbound = {
|
|
1807
|
+
type: string;
|
|
1808
|
+
text: string;
|
|
1809
|
+
file_citation: FileCitation$Outbound;
|
|
1810
|
+
start_index: number;
|
|
1811
|
+
end_index: number;
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
/** @internal */
|
|
1815
|
+
export const Annotations1$outboundSchema: z.ZodType<
|
|
1816
|
+
Annotations1$Outbound,
|
|
1817
|
+
z.ZodTypeDef,
|
|
1818
|
+
Annotations1
|
|
1819
|
+
> = z.object({
|
|
1820
|
+
type: AnnotationsType$outboundSchema,
|
|
1821
|
+
text: z.string(),
|
|
1822
|
+
fileCitation: z.lazy(() => FileCitation$outboundSchema),
|
|
1823
|
+
startIndex: z.number().int(),
|
|
1824
|
+
endIndex: z.number().int(),
|
|
1825
|
+
}).transform((v) => {
|
|
1826
|
+
return remap$(v, {
|
|
1827
|
+
fileCitation: "file_citation",
|
|
1828
|
+
startIndex: "start_index",
|
|
1829
|
+
endIndex: "end_index",
|
|
1830
|
+
});
|
|
1831
|
+
});
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* @internal
|
|
1835
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1836
|
+
*/
|
|
1837
|
+
export namespace Annotations1$ {
|
|
1838
|
+
/** @deprecated use `Annotations1$inboundSchema` instead. */
|
|
1839
|
+
export const inboundSchema = Annotations1$inboundSchema;
|
|
1840
|
+
/** @deprecated use `Annotations1$outboundSchema` instead. */
|
|
1841
|
+
export const outboundSchema = Annotations1$outboundSchema;
|
|
1842
|
+
/** @deprecated use `Annotations1$Outbound` instead. */
|
|
1843
|
+
export type Outbound = Annotations1$Outbound;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export function annotations1ToJSON(annotations1: Annotations1): string {
|
|
1847
|
+
return JSON.stringify(Annotations1$outboundSchema.parse(annotations1));
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
export function annotations1FromJSON(
|
|
1851
|
+
jsonString: string,
|
|
1852
|
+
): SafeParseResult<Annotations1, SDKValidationError> {
|
|
1853
|
+
return safeParse(
|
|
1854
|
+
jsonString,
|
|
1855
|
+
(x) => Annotations1$inboundSchema.parse(JSON.parse(x)),
|
|
1856
|
+
`Failed to parse 'Annotations1' from JSON`,
|
|
1857
|
+
);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/** @internal */
|
|
1861
|
+
export const Annotations$inboundSchema: z.ZodType<
|
|
1862
|
+
Annotations,
|
|
1863
|
+
z.ZodTypeDef,
|
|
1864
|
+
unknown
|
|
1865
|
+
> = z.union([
|
|
1866
|
+
z.lazy(() => Annotations1$inboundSchema),
|
|
1867
|
+
z.lazy(() => Annotations2$inboundSchema),
|
|
1868
|
+
]);
|
|
1869
|
+
|
|
1870
|
+
/** @internal */
|
|
1871
|
+
export type Annotations$Outbound =
|
|
1872
|
+
| Annotations1$Outbound
|
|
1873
|
+
| Annotations2$Outbound;
|
|
1874
|
+
|
|
1875
|
+
/** @internal */
|
|
1876
|
+
export const Annotations$outboundSchema: z.ZodType<
|
|
1877
|
+
Annotations$Outbound,
|
|
1878
|
+
z.ZodTypeDef,
|
|
1879
|
+
Annotations
|
|
1880
|
+
> = z.union([
|
|
1881
|
+
z.lazy(() => Annotations1$outboundSchema),
|
|
1882
|
+
z.lazy(() => Annotations2$outboundSchema),
|
|
1883
|
+
]);
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* @internal
|
|
1887
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1888
|
+
*/
|
|
1889
|
+
export namespace Annotations$ {
|
|
1890
|
+
/** @deprecated use `Annotations$inboundSchema` instead. */
|
|
1891
|
+
export const inboundSchema = Annotations$inboundSchema;
|
|
1892
|
+
/** @deprecated use `Annotations$outboundSchema` instead. */
|
|
1893
|
+
export const outboundSchema = Annotations$outboundSchema;
|
|
1894
|
+
/** @deprecated use `Annotations$Outbound` instead. */
|
|
1895
|
+
export type Outbound = Annotations$Outbound;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export function annotationsToJSON(annotations: Annotations): string {
|
|
1899
|
+
return JSON.stringify(Annotations$outboundSchema.parse(annotations));
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
export function annotationsFromJSON(
|
|
1903
|
+
jsonString: string,
|
|
1904
|
+
): SafeParseResult<Annotations, SDKValidationError> {
|
|
1905
|
+
return safeParse(
|
|
1906
|
+
jsonString,
|
|
1907
|
+
(x) => Annotations$inboundSchema.parse(JSON.parse(x)),
|
|
1908
|
+
`Failed to parse 'Annotations' from JSON`,
|
|
1909
|
+
);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1461
1912
|
/** @internal */
|
|
1462
1913
|
export const TextContentPart$inboundSchema: z.ZodType<
|
|
1463
1914
|
TextContentPart,
|
|
@@ -1466,12 +1917,21 @@ export const TextContentPart$inboundSchema: z.ZodType<
|
|
|
1466
1917
|
> = z.object({
|
|
1467
1918
|
type: Deployments2PrefixMessages4Type$inboundSchema,
|
|
1468
1919
|
text: z.string(),
|
|
1920
|
+
annotations: z.array(
|
|
1921
|
+
z.union([
|
|
1922
|
+
z.lazy(() => Annotations1$inboundSchema),
|
|
1923
|
+
z.lazy(() => Annotations2$inboundSchema),
|
|
1924
|
+
]),
|
|
1925
|
+
).optional(),
|
|
1469
1926
|
});
|
|
1470
1927
|
|
|
1471
1928
|
/** @internal */
|
|
1472
1929
|
export type TextContentPart$Outbound = {
|
|
1473
1930
|
type: string;
|
|
1474
1931
|
text: string;
|
|
1932
|
+
annotations?:
|
|
1933
|
+
| Array<Annotations1$Outbound | Annotations2$Outbound>
|
|
1934
|
+
| undefined;
|
|
1475
1935
|
};
|
|
1476
1936
|
|
|
1477
1937
|
/** @internal */
|
|
@@ -1482,6 +1942,12 @@ export const TextContentPart$outboundSchema: z.ZodType<
|
|
|
1482
1942
|
> = z.object({
|
|
1483
1943
|
type: Deployments2PrefixMessages4Type$outboundSchema,
|
|
1484
1944
|
text: z.string(),
|
|
1945
|
+
annotations: z.array(
|
|
1946
|
+
z.union([
|
|
1947
|
+
z.lazy(() => Annotations1$outboundSchema),
|
|
1948
|
+
z.lazy(() => Annotations2$outboundSchema),
|
|
1949
|
+
]),
|
|
1950
|
+
).optional(),
|
|
1485
1951
|
});
|
|
1486
1952
|
|
|
1487
1953
|
/**
|
|
@@ -3109,6 +3575,386 @@ export namespace Deployments2Messages4Type$ {
|
|
|
3109
3575
|
export const outboundSchema = Deployments2Messages4Type$outboundSchema;
|
|
3110
3576
|
}
|
|
3111
3577
|
|
|
3578
|
+
/** @internal */
|
|
3579
|
+
export const DeploymentsAnnotationsMessages4Type$inboundSchema: z.ZodNativeEnum<
|
|
3580
|
+
typeof DeploymentsAnnotationsMessages4Type
|
|
3581
|
+
> = z.nativeEnum(DeploymentsAnnotationsMessages4Type);
|
|
3582
|
+
|
|
3583
|
+
/** @internal */
|
|
3584
|
+
export const DeploymentsAnnotationsMessages4Type$outboundSchema:
|
|
3585
|
+
z.ZodNativeEnum<typeof DeploymentsAnnotationsMessages4Type> =
|
|
3586
|
+
DeploymentsAnnotationsMessages4Type$inboundSchema;
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* @internal
|
|
3590
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3591
|
+
*/
|
|
3592
|
+
export namespace DeploymentsAnnotationsMessages4Type$ {
|
|
3593
|
+
/** @deprecated use `DeploymentsAnnotationsMessages4Type$inboundSchema` instead. */
|
|
3594
|
+
export const inboundSchema =
|
|
3595
|
+
DeploymentsAnnotationsMessages4Type$inboundSchema;
|
|
3596
|
+
/** @deprecated use `DeploymentsAnnotationsMessages4Type$outboundSchema` instead. */
|
|
3597
|
+
export const outboundSchema =
|
|
3598
|
+
DeploymentsAnnotationsMessages4Type$outboundSchema;
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
/** @internal */
|
|
3602
|
+
export const AnnotationsFilePath$inboundSchema: z.ZodType<
|
|
3603
|
+
AnnotationsFilePath,
|
|
3604
|
+
z.ZodTypeDef,
|
|
3605
|
+
unknown
|
|
3606
|
+
> = z.object({
|
|
3607
|
+
file_id: z.string(),
|
|
3608
|
+
}).transform((v) => {
|
|
3609
|
+
return remap$(v, {
|
|
3610
|
+
"file_id": "fileId",
|
|
3611
|
+
});
|
|
3612
|
+
});
|
|
3613
|
+
|
|
3614
|
+
/** @internal */
|
|
3615
|
+
export type AnnotationsFilePath$Outbound = {
|
|
3616
|
+
file_id: string;
|
|
3617
|
+
};
|
|
3618
|
+
|
|
3619
|
+
/** @internal */
|
|
3620
|
+
export const AnnotationsFilePath$outboundSchema: z.ZodType<
|
|
3621
|
+
AnnotationsFilePath$Outbound,
|
|
3622
|
+
z.ZodTypeDef,
|
|
3623
|
+
AnnotationsFilePath
|
|
3624
|
+
> = z.object({
|
|
3625
|
+
fileId: z.string(),
|
|
3626
|
+
}).transform((v) => {
|
|
3627
|
+
return remap$(v, {
|
|
3628
|
+
fileId: "file_id",
|
|
3629
|
+
});
|
|
3630
|
+
});
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* @internal
|
|
3634
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3635
|
+
*/
|
|
3636
|
+
export namespace AnnotationsFilePath$ {
|
|
3637
|
+
/** @deprecated use `AnnotationsFilePath$inboundSchema` instead. */
|
|
3638
|
+
export const inboundSchema = AnnotationsFilePath$inboundSchema;
|
|
3639
|
+
/** @deprecated use `AnnotationsFilePath$outboundSchema` instead. */
|
|
3640
|
+
export const outboundSchema = AnnotationsFilePath$outboundSchema;
|
|
3641
|
+
/** @deprecated use `AnnotationsFilePath$Outbound` instead. */
|
|
3642
|
+
export type Outbound = AnnotationsFilePath$Outbound;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
export function annotationsFilePathToJSON(
|
|
3646
|
+
annotationsFilePath: AnnotationsFilePath,
|
|
3647
|
+
): string {
|
|
3648
|
+
return JSON.stringify(
|
|
3649
|
+
AnnotationsFilePath$outboundSchema.parse(annotationsFilePath),
|
|
3650
|
+
);
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
export function annotationsFilePathFromJSON(
|
|
3654
|
+
jsonString: string,
|
|
3655
|
+
): SafeParseResult<AnnotationsFilePath, SDKValidationError> {
|
|
3656
|
+
return safeParse(
|
|
3657
|
+
jsonString,
|
|
3658
|
+
(x) => AnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
|
|
3659
|
+
`Failed to parse 'AnnotationsFilePath' from JSON`,
|
|
3660
|
+
);
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
/** @internal */
|
|
3664
|
+
export const DeploymentsAnnotations2$inboundSchema: z.ZodType<
|
|
3665
|
+
DeploymentsAnnotations2,
|
|
3666
|
+
z.ZodTypeDef,
|
|
3667
|
+
unknown
|
|
3668
|
+
> = z.object({
|
|
3669
|
+
type: DeploymentsAnnotationsMessages4Type$inboundSchema,
|
|
3670
|
+
text: z.string(),
|
|
3671
|
+
file_path: z.lazy(() => AnnotationsFilePath$inboundSchema),
|
|
3672
|
+
start_index: z.number().int(),
|
|
3673
|
+
end_index: z.number().int(),
|
|
3674
|
+
}).transform((v) => {
|
|
3675
|
+
return remap$(v, {
|
|
3676
|
+
"file_path": "filePath",
|
|
3677
|
+
"start_index": "startIndex",
|
|
3678
|
+
"end_index": "endIndex",
|
|
3679
|
+
});
|
|
3680
|
+
});
|
|
3681
|
+
|
|
3682
|
+
/** @internal */
|
|
3683
|
+
export type DeploymentsAnnotations2$Outbound = {
|
|
3684
|
+
type: string;
|
|
3685
|
+
text: string;
|
|
3686
|
+
file_path: AnnotationsFilePath$Outbound;
|
|
3687
|
+
start_index: number;
|
|
3688
|
+
end_index: number;
|
|
3689
|
+
};
|
|
3690
|
+
|
|
3691
|
+
/** @internal */
|
|
3692
|
+
export const DeploymentsAnnotations2$outboundSchema: z.ZodType<
|
|
3693
|
+
DeploymentsAnnotations2$Outbound,
|
|
3694
|
+
z.ZodTypeDef,
|
|
3695
|
+
DeploymentsAnnotations2
|
|
3696
|
+
> = z.object({
|
|
3697
|
+
type: DeploymentsAnnotationsMessages4Type$outboundSchema,
|
|
3698
|
+
text: z.string(),
|
|
3699
|
+
filePath: z.lazy(() => AnnotationsFilePath$outboundSchema),
|
|
3700
|
+
startIndex: z.number().int(),
|
|
3701
|
+
endIndex: z.number().int(),
|
|
3702
|
+
}).transform((v) => {
|
|
3703
|
+
return remap$(v, {
|
|
3704
|
+
filePath: "file_path",
|
|
3705
|
+
startIndex: "start_index",
|
|
3706
|
+
endIndex: "end_index",
|
|
3707
|
+
});
|
|
3708
|
+
});
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* @internal
|
|
3712
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3713
|
+
*/
|
|
3714
|
+
export namespace DeploymentsAnnotations2$ {
|
|
3715
|
+
/** @deprecated use `DeploymentsAnnotations2$inboundSchema` instead. */
|
|
3716
|
+
export const inboundSchema = DeploymentsAnnotations2$inboundSchema;
|
|
3717
|
+
/** @deprecated use `DeploymentsAnnotations2$outboundSchema` instead. */
|
|
3718
|
+
export const outboundSchema = DeploymentsAnnotations2$outboundSchema;
|
|
3719
|
+
/** @deprecated use `DeploymentsAnnotations2$Outbound` instead. */
|
|
3720
|
+
export type Outbound = DeploymentsAnnotations2$Outbound;
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
export function deploymentsAnnotations2ToJSON(
|
|
3724
|
+
deploymentsAnnotations2: DeploymentsAnnotations2,
|
|
3725
|
+
): string {
|
|
3726
|
+
return JSON.stringify(
|
|
3727
|
+
DeploymentsAnnotations2$outboundSchema.parse(deploymentsAnnotations2),
|
|
3728
|
+
);
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
export function deploymentsAnnotations2FromJSON(
|
|
3732
|
+
jsonString: string,
|
|
3733
|
+
): SafeParseResult<DeploymentsAnnotations2, SDKValidationError> {
|
|
3734
|
+
return safeParse(
|
|
3735
|
+
jsonString,
|
|
3736
|
+
(x) => DeploymentsAnnotations2$inboundSchema.parse(JSON.parse(x)),
|
|
3737
|
+
`Failed to parse 'DeploymentsAnnotations2' from JSON`,
|
|
3738
|
+
);
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
/** @internal */
|
|
3742
|
+
export const DeploymentsAnnotationsMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
3743
|
+
typeof DeploymentsAnnotationsMessagesType
|
|
3744
|
+
> = z.nativeEnum(DeploymentsAnnotationsMessagesType);
|
|
3745
|
+
|
|
3746
|
+
/** @internal */
|
|
3747
|
+
export const DeploymentsAnnotationsMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
3748
|
+
typeof DeploymentsAnnotationsMessagesType
|
|
3749
|
+
> = DeploymentsAnnotationsMessagesType$inboundSchema;
|
|
3750
|
+
|
|
3751
|
+
/**
|
|
3752
|
+
* @internal
|
|
3753
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3754
|
+
*/
|
|
3755
|
+
export namespace DeploymentsAnnotationsMessagesType$ {
|
|
3756
|
+
/** @deprecated use `DeploymentsAnnotationsMessagesType$inboundSchema` instead. */
|
|
3757
|
+
export const inboundSchema = DeploymentsAnnotationsMessagesType$inboundSchema;
|
|
3758
|
+
/** @deprecated use `DeploymentsAnnotationsMessagesType$outboundSchema` instead. */
|
|
3759
|
+
export const outboundSchema =
|
|
3760
|
+
DeploymentsAnnotationsMessagesType$outboundSchema;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
/** @internal */
|
|
3764
|
+
export const AnnotationsFileCitation$inboundSchema: z.ZodType<
|
|
3765
|
+
AnnotationsFileCitation,
|
|
3766
|
+
z.ZodTypeDef,
|
|
3767
|
+
unknown
|
|
3768
|
+
> = z.object({
|
|
3769
|
+
file_id: z.string(),
|
|
3770
|
+
quote: z.string().optional(),
|
|
3771
|
+
}).transform((v) => {
|
|
3772
|
+
return remap$(v, {
|
|
3773
|
+
"file_id": "fileId",
|
|
3774
|
+
});
|
|
3775
|
+
});
|
|
3776
|
+
|
|
3777
|
+
/** @internal */
|
|
3778
|
+
export type AnnotationsFileCitation$Outbound = {
|
|
3779
|
+
file_id: string;
|
|
3780
|
+
quote?: string | undefined;
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
/** @internal */
|
|
3784
|
+
export const AnnotationsFileCitation$outboundSchema: z.ZodType<
|
|
3785
|
+
AnnotationsFileCitation$Outbound,
|
|
3786
|
+
z.ZodTypeDef,
|
|
3787
|
+
AnnotationsFileCitation
|
|
3788
|
+
> = z.object({
|
|
3789
|
+
fileId: z.string(),
|
|
3790
|
+
quote: z.string().optional(),
|
|
3791
|
+
}).transform((v) => {
|
|
3792
|
+
return remap$(v, {
|
|
3793
|
+
fileId: "file_id",
|
|
3794
|
+
});
|
|
3795
|
+
});
|
|
3796
|
+
|
|
3797
|
+
/**
|
|
3798
|
+
* @internal
|
|
3799
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3800
|
+
*/
|
|
3801
|
+
export namespace AnnotationsFileCitation$ {
|
|
3802
|
+
/** @deprecated use `AnnotationsFileCitation$inboundSchema` instead. */
|
|
3803
|
+
export const inboundSchema = AnnotationsFileCitation$inboundSchema;
|
|
3804
|
+
/** @deprecated use `AnnotationsFileCitation$outboundSchema` instead. */
|
|
3805
|
+
export const outboundSchema = AnnotationsFileCitation$outboundSchema;
|
|
3806
|
+
/** @deprecated use `AnnotationsFileCitation$Outbound` instead. */
|
|
3807
|
+
export type Outbound = AnnotationsFileCitation$Outbound;
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
export function annotationsFileCitationToJSON(
|
|
3811
|
+
annotationsFileCitation: AnnotationsFileCitation,
|
|
3812
|
+
): string {
|
|
3813
|
+
return JSON.stringify(
|
|
3814
|
+
AnnotationsFileCitation$outboundSchema.parse(annotationsFileCitation),
|
|
3815
|
+
);
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3818
|
+
export function annotationsFileCitationFromJSON(
|
|
3819
|
+
jsonString: string,
|
|
3820
|
+
): SafeParseResult<AnnotationsFileCitation, SDKValidationError> {
|
|
3821
|
+
return safeParse(
|
|
3822
|
+
jsonString,
|
|
3823
|
+
(x) => AnnotationsFileCitation$inboundSchema.parse(JSON.parse(x)),
|
|
3824
|
+
`Failed to parse 'AnnotationsFileCitation' from JSON`,
|
|
3825
|
+
);
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3828
|
+
/** @internal */
|
|
3829
|
+
export const DeploymentsAnnotations1$inboundSchema: z.ZodType<
|
|
3830
|
+
DeploymentsAnnotations1,
|
|
3831
|
+
z.ZodTypeDef,
|
|
3832
|
+
unknown
|
|
3833
|
+
> = z.object({
|
|
3834
|
+
type: DeploymentsAnnotationsMessagesType$inboundSchema,
|
|
3835
|
+
text: z.string(),
|
|
3836
|
+
file_citation: z.lazy(() => AnnotationsFileCitation$inboundSchema),
|
|
3837
|
+
start_index: z.number().int(),
|
|
3838
|
+
end_index: z.number().int(),
|
|
3839
|
+
}).transform((v) => {
|
|
3840
|
+
return remap$(v, {
|
|
3841
|
+
"file_citation": "fileCitation",
|
|
3842
|
+
"start_index": "startIndex",
|
|
3843
|
+
"end_index": "endIndex",
|
|
3844
|
+
});
|
|
3845
|
+
});
|
|
3846
|
+
|
|
3847
|
+
/** @internal */
|
|
3848
|
+
export type DeploymentsAnnotations1$Outbound = {
|
|
3849
|
+
type: string;
|
|
3850
|
+
text: string;
|
|
3851
|
+
file_citation: AnnotationsFileCitation$Outbound;
|
|
3852
|
+
start_index: number;
|
|
3853
|
+
end_index: number;
|
|
3854
|
+
};
|
|
3855
|
+
|
|
3856
|
+
/** @internal */
|
|
3857
|
+
export const DeploymentsAnnotations1$outboundSchema: z.ZodType<
|
|
3858
|
+
DeploymentsAnnotations1$Outbound,
|
|
3859
|
+
z.ZodTypeDef,
|
|
3860
|
+
DeploymentsAnnotations1
|
|
3861
|
+
> = z.object({
|
|
3862
|
+
type: DeploymentsAnnotationsMessagesType$outboundSchema,
|
|
3863
|
+
text: z.string(),
|
|
3864
|
+
fileCitation: z.lazy(() => AnnotationsFileCitation$outboundSchema),
|
|
3865
|
+
startIndex: z.number().int(),
|
|
3866
|
+
endIndex: z.number().int(),
|
|
3867
|
+
}).transform((v) => {
|
|
3868
|
+
return remap$(v, {
|
|
3869
|
+
fileCitation: "file_citation",
|
|
3870
|
+
startIndex: "start_index",
|
|
3871
|
+
endIndex: "end_index",
|
|
3872
|
+
});
|
|
3873
|
+
});
|
|
3874
|
+
|
|
3875
|
+
/**
|
|
3876
|
+
* @internal
|
|
3877
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3878
|
+
*/
|
|
3879
|
+
export namespace DeploymentsAnnotations1$ {
|
|
3880
|
+
/** @deprecated use `DeploymentsAnnotations1$inboundSchema` instead. */
|
|
3881
|
+
export const inboundSchema = DeploymentsAnnotations1$inboundSchema;
|
|
3882
|
+
/** @deprecated use `DeploymentsAnnotations1$outboundSchema` instead. */
|
|
3883
|
+
export const outboundSchema = DeploymentsAnnotations1$outboundSchema;
|
|
3884
|
+
/** @deprecated use `DeploymentsAnnotations1$Outbound` instead. */
|
|
3885
|
+
export type Outbound = DeploymentsAnnotations1$Outbound;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
export function deploymentsAnnotations1ToJSON(
|
|
3889
|
+
deploymentsAnnotations1: DeploymentsAnnotations1,
|
|
3890
|
+
): string {
|
|
3891
|
+
return JSON.stringify(
|
|
3892
|
+
DeploymentsAnnotations1$outboundSchema.parse(deploymentsAnnotations1),
|
|
3893
|
+
);
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
export function deploymentsAnnotations1FromJSON(
|
|
3897
|
+
jsonString: string,
|
|
3898
|
+
): SafeParseResult<DeploymentsAnnotations1, SDKValidationError> {
|
|
3899
|
+
return safeParse(
|
|
3900
|
+
jsonString,
|
|
3901
|
+
(x) => DeploymentsAnnotations1$inboundSchema.parse(JSON.parse(x)),
|
|
3902
|
+
`Failed to parse 'DeploymentsAnnotations1' from JSON`,
|
|
3903
|
+
);
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
/** @internal */
|
|
3907
|
+
export const TwoAnnotations$inboundSchema: z.ZodType<
|
|
3908
|
+
TwoAnnotations,
|
|
3909
|
+
z.ZodTypeDef,
|
|
3910
|
+
unknown
|
|
3911
|
+
> = z.union([
|
|
3912
|
+
z.lazy(() => DeploymentsAnnotations1$inboundSchema),
|
|
3913
|
+
z.lazy(() => DeploymentsAnnotations2$inboundSchema),
|
|
3914
|
+
]);
|
|
3915
|
+
|
|
3916
|
+
/** @internal */
|
|
3917
|
+
export type TwoAnnotations$Outbound =
|
|
3918
|
+
| DeploymentsAnnotations1$Outbound
|
|
3919
|
+
| DeploymentsAnnotations2$Outbound;
|
|
3920
|
+
|
|
3921
|
+
/** @internal */
|
|
3922
|
+
export const TwoAnnotations$outboundSchema: z.ZodType<
|
|
3923
|
+
TwoAnnotations$Outbound,
|
|
3924
|
+
z.ZodTypeDef,
|
|
3925
|
+
TwoAnnotations
|
|
3926
|
+
> = z.union([
|
|
3927
|
+
z.lazy(() => DeploymentsAnnotations1$outboundSchema),
|
|
3928
|
+
z.lazy(() => DeploymentsAnnotations2$outboundSchema),
|
|
3929
|
+
]);
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* @internal
|
|
3933
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3934
|
+
*/
|
|
3935
|
+
export namespace TwoAnnotations$ {
|
|
3936
|
+
/** @deprecated use `TwoAnnotations$inboundSchema` instead. */
|
|
3937
|
+
export const inboundSchema = TwoAnnotations$inboundSchema;
|
|
3938
|
+
/** @deprecated use `TwoAnnotations$outboundSchema` instead. */
|
|
3939
|
+
export const outboundSchema = TwoAnnotations$outboundSchema;
|
|
3940
|
+
/** @deprecated use `TwoAnnotations$Outbound` instead. */
|
|
3941
|
+
export type Outbound = TwoAnnotations$Outbound;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
export function twoAnnotationsToJSON(twoAnnotations: TwoAnnotations): string {
|
|
3945
|
+
return JSON.stringify(TwoAnnotations$outboundSchema.parse(twoAnnotations));
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
export function twoAnnotationsFromJSON(
|
|
3949
|
+
jsonString: string,
|
|
3950
|
+
): SafeParseResult<TwoAnnotations, SDKValidationError> {
|
|
3951
|
+
return safeParse(
|
|
3952
|
+
jsonString,
|
|
3953
|
+
(x) => TwoAnnotations$inboundSchema.parse(JSON.parse(x)),
|
|
3954
|
+
`Failed to parse 'TwoAnnotations' from JSON`,
|
|
3955
|
+
);
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3112
3958
|
/** @internal */
|
|
3113
3959
|
export const TwoTextContentPart$inboundSchema: z.ZodType<
|
|
3114
3960
|
TwoTextContentPart,
|
|
@@ -3117,12 +3963,21 @@ export const TwoTextContentPart$inboundSchema: z.ZodType<
|
|
|
3117
3963
|
> = z.object({
|
|
3118
3964
|
type: Deployments2Messages4Type$inboundSchema,
|
|
3119
3965
|
text: z.string(),
|
|
3966
|
+
annotations: z.array(
|
|
3967
|
+
z.union([
|
|
3968
|
+
z.lazy(() => DeploymentsAnnotations1$inboundSchema),
|
|
3969
|
+
z.lazy(() => DeploymentsAnnotations2$inboundSchema),
|
|
3970
|
+
]),
|
|
3971
|
+
).optional(),
|
|
3120
3972
|
});
|
|
3121
3973
|
|
|
3122
3974
|
/** @internal */
|
|
3123
3975
|
export type TwoTextContentPart$Outbound = {
|
|
3124
3976
|
type: string;
|
|
3125
3977
|
text: string;
|
|
3978
|
+
annotations?:
|
|
3979
|
+
| Array<DeploymentsAnnotations1$Outbound | DeploymentsAnnotations2$Outbound>
|
|
3980
|
+
| undefined;
|
|
3126
3981
|
};
|
|
3127
3982
|
|
|
3128
3983
|
/** @internal */
|
|
@@ -3133,6 +3988,12 @@ export const TwoTextContentPart$outboundSchema: z.ZodType<
|
|
|
3133
3988
|
> = z.object({
|
|
3134
3989
|
type: Deployments2Messages4Type$outboundSchema,
|
|
3135
3990
|
text: z.string(),
|
|
3991
|
+
annotations: z.array(
|
|
3992
|
+
z.union([
|
|
3993
|
+
z.lazy(() => DeploymentsAnnotations1$outboundSchema),
|
|
3994
|
+
z.lazy(() => DeploymentsAnnotations2$outboundSchema),
|
|
3995
|
+
]),
|
|
3996
|
+
).optional(),
|
|
3136
3997
|
});
|
|
3137
3998
|
|
|
3138
3999
|
/**
|