@orq-ai/node 4.2.0 → 4.2.4
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/FUNCTIONS.md +17 -7
- package/README.md +125 -70
- package/examples/contactsCreate.example.ts +42 -0
- package/examples/package-lock.json +1 -1
- package/funcs/contactsCreate.d.ts +3 -5
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +5 -9
- package/funcs/contactsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +6 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +2 -0
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/publiccontact.d.ts +3 -1
- package/models/components/publiccontact.d.ts.map +1 -1
- package/models/components/publiccontact.js.map +1 -1
- package/models/components/publicidentity.d.ts +47 -0
- package/models/components/publicidentity.d.ts.map +1 -0
- package/models/{operations/deletecontact.js → components/publicidentity.js} +17 -6
- package/models/components/publicidentity.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +0 -3
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -3
- package/models/errors/index.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +9 -51
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +5 -24
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +9 -51
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +4 -22
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.d.ts +2 -6
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +1 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +9 -51
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +3 -21
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +9 -51
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +3 -21
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +9 -51
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +3 -21
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +9 -51
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +3 -21
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/creatererank.d.ts +9 -51
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +3 -21
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +9 -51
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +3 -21
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +9 -51
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +3 -21
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +9 -51
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +3 -21
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +5 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +7 -7
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +25 -23
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/index.d.ts +0 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -4
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -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/contactsCreate.ts +7 -14
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +11 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/publiccontact.ts +3 -1
- package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11 -78
- package/packages/orq-rc/src/models/operations/createcompletion.ts +11 -75
- package/packages/orq-rc/src/models/operations/createcontact.ts +3 -9
- package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createembedding.ts +11 -75
- package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimage.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimageedit.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +11 -77
- package/packages/orq-rc/src/models/operations/creatererank.ts +11 -75
- package/packages/orq-rc/src/models/operations/createspeech.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/createtranscription.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtranslation.ts +11 -75
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +35 -39
- package/packages/orq-rc/src/models/operations/index.ts +0 -4
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/contacts.ts +3 -85
- package/sdk/contacts.d.ts +3 -41
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +2 -52
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +7 -14
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invokedeploymentrequest.ts +11 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/publiccontact.ts +3 -1
- package/src/models/components/publicidentity.ts +69 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -3
- package/src/models/operations/createchatcompletion.ts +11 -78
- package/src/models/operations/createcompletion.ts +11 -75
- package/src/models/operations/createcontact.ts +3 -9
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +11 -75
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +11 -75
- package/src/models/operations/createimageedit.ts +11 -75
- package/src/models/operations/createimagevariation.ts +11 -77
- package/src/models/operations/creatererank.ts +11 -75
- package/src/models/operations/createspeech.ts +11 -75
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +11 -75
- package/src/models/operations/createtranslation.ts +11 -75
- package/src/models/operations/deploymentgetconfig.ts +6 -0
- package/src/models/operations/deploymentstream.ts +6 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +35 -39
- package/src/models/operations/index.ts +0 -4
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/contacts.ts +3 -85
- package/examples/feedbackCreate.example.ts +0 -32
- package/funcs/contactsDelete.d.ts +0 -20
- package/funcs/contactsDelete.d.ts.map +0 -1
- package/funcs/contactsDelete.js +0 -126
- package/funcs/contactsDelete.js.map +0 -1
- package/funcs/contactsList.d.ts +0 -19
- package/funcs/contactsList.d.ts.map +0 -1
- package/funcs/contactsList.js +0 -124
- package/funcs/contactsList.js.map +0 -1
- package/funcs/contactsRetrieve.d.ts +0 -20
- package/funcs/contactsRetrieve.d.ts.map +0 -1
- package/funcs/contactsRetrieve.js +0 -125
- package/funcs/contactsRetrieve.js.map +0 -1
- package/funcs/contactsUpdate.d.ts +0 -20
- package/funcs/contactsUpdate.d.ts.map +0 -1
- package/funcs/contactsUpdate.js +0 -126
- package/funcs/contactsUpdate.js.map +0 -1
- package/models/errors/deletecontact.d.ts +0 -30
- package/models/errors/deletecontact.d.ts.map +0 -1
- package/models/errors/deletecontact.js +0 -71
- package/models/errors/deletecontact.js.map +0 -1
- package/models/errors/retrievecontact.d.ts +0 -30
- package/models/errors/retrievecontact.d.ts.map +0 -1
- package/models/errors/retrievecontact.js +0 -71
- package/models/errors/retrievecontact.js.map +0 -1
- package/models/errors/updatecontact.d.ts +0 -26
- package/models/errors/updatecontact.d.ts.map +0 -1
- package/models/errors/updatecontact.js +0 -68
- package/models/errors/updatecontact.js.map +0 -1
- package/models/operations/deletecontact.d.ts +0 -15
- package/models/operations/deletecontact.d.ts.map +0 -1
- package/models/operations/deletecontact.js.map +0 -1
- package/models/operations/listcontacts.d.ts +0 -138
- package/models/operations/listcontacts.d.ts.map +0 -1
- package/models/operations/listcontacts.js +0 -136
- package/models/operations/listcontacts.js.map +0 -1
- package/models/operations/retrievecontact.d.ts +0 -63
- package/models/operations/retrievecontact.d.ts.map +0 -1
- package/models/operations/retrievecontact.js +0 -75
- package/models/operations/retrievecontact.js.map +0 -1
- package/models/operations/updatecontact.d.ts +0 -108
- package/models/operations/updatecontact.d.ts.map +0 -1
- package/models/operations/updatecontact.js +0 -97
- package/models/operations/updatecontact.js.map +0 -1
- package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
- package/src/funcs/contactsDelete.ts +0 -178
- package/src/funcs/contactsList.ts +0 -172
- package/src/funcs/contactsRetrieve.ts +0 -177
- package/src/funcs/contactsUpdate.ts +0 -178
- package/src/models/errors/deletecontact.ts +0 -62
- package/src/models/errors/retrievecontact.ts +0 -62
- package/src/models/errors/updatecontact.ts +0 -54
- package/src/models/operations/deletecontact.ts +0 -34
- package/src/models/operations/listcontacts.ts +0 -274
- package/src/models/operations/retrievecontact.ts +0 -117
- package/src/models/operations/updatecontact.ts +0 -188
|
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2353
2353
|
),
|
|
2354
2354
|
reviewed_by_id: z.string(),
|
|
2355
2355
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2356
|
-
"2026-01-
|
|
2356
|
+
"2026-01-25T12:08:45.149Z",
|
|
2357
2357
|
).transform(v => new Date(v)),
|
|
2358
2358
|
type: z.literal("string_array"),
|
|
2359
2359
|
values: z.array(z.string()),
|
|
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2398
2398
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2399
2399
|
reviewed_by_id: z.string(),
|
|
2400
2400
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2401
|
-
"2026-01-
|
|
2401
|
+
"2026-01-25T12:08:45.148Z",
|
|
2402
2402
|
).transform(v => new Date(v)),
|
|
2403
2403
|
type: z.literal("number"),
|
|
2404
2404
|
value: z.number(),
|
|
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2443
2443
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2444
2444
|
reviewed_by_id: z.string(),
|
|
2445
2445
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2446
|
-
"2026-01-
|
|
2446
|
+
"2026-01-25T12:08:45.147Z",
|
|
2447
2447
|
).transform(v => new Date(v)),
|
|
2448
2448
|
type: z.literal("string"),
|
|
2449
2449
|
value: z.string(),
|
|
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2526
2526
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2527
2527
|
.optional(),
|
|
2528
2528
|
updated: z.string().datetime({ offset: true }).default(
|
|
2529
|
-
"2026-01-
|
|
2529
|
+
"2026-01-25T12:08:31.744Z",
|
|
2530
2530
|
).transform(v => new Date(v)),
|
|
2531
2531
|
}).transform((v) => {
|
|
2532
2532
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KFTGWY6JCJZ9FQHDR4JQQBQQ"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -64,38 +64,6 @@ export type CreateEmbeddingRetry = {
|
|
|
64
64
|
onCodes?: Array<number> | undefined;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
69
|
-
*
|
|
70
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
71
|
-
*/
|
|
72
|
-
export type CreateEmbeddingContact = {
|
|
73
|
-
/**
|
|
74
|
-
* Unique identifier for the contact
|
|
75
|
-
*/
|
|
76
|
-
id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Display name of the contact
|
|
79
|
-
*/
|
|
80
|
-
displayName?: string | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Email address of the contact
|
|
83
|
-
*/
|
|
84
|
-
email?: string | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
87
|
-
*/
|
|
88
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* URL to the contact's avatar or logo
|
|
91
|
-
*/
|
|
92
|
-
logoUrl?: string | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* A list of tags associated with the contact
|
|
95
|
-
*/
|
|
96
|
-
tags?: Array<string> | undefined;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
67
|
export const CreateEmbeddingLoadBalancerType = {
|
|
100
68
|
WeightBased: "weight_based",
|
|
101
69
|
} as const;
|
|
@@ -154,8 +122,13 @@ export type CreateEmbeddingOrq = {
|
|
|
154
122
|
/**
|
|
155
123
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
156
124
|
*/
|
|
157
|
-
identity?: components.
|
|
158
|
-
|
|
125
|
+
identity?: components.PublicIdentity | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
128
|
+
*
|
|
129
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
130
|
+
*/
|
|
131
|
+
contact?: components.PublicContact | undefined;
|
|
159
132
|
/**
|
|
160
133
|
* Array of models with weights for load balancing requests
|
|
161
134
|
*/
|
|
@@ -363,43 +336,6 @@ export function createEmbeddingRetryToJSON(
|
|
|
363
336
|
);
|
|
364
337
|
}
|
|
365
338
|
|
|
366
|
-
/** @internal */
|
|
367
|
-
export type CreateEmbeddingContact$Outbound = {
|
|
368
|
-
id: string;
|
|
369
|
-
display_name?: string | undefined;
|
|
370
|
-
email?: string | undefined;
|
|
371
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
372
|
-
logo_url?: string | undefined;
|
|
373
|
-
tags?: Array<string> | undefined;
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
/** @internal */
|
|
377
|
-
export const CreateEmbeddingContact$outboundSchema: z.ZodType<
|
|
378
|
-
CreateEmbeddingContact$Outbound,
|
|
379
|
-
z.ZodTypeDef,
|
|
380
|
-
CreateEmbeddingContact
|
|
381
|
-
> = z.object({
|
|
382
|
-
id: z.string(),
|
|
383
|
-
displayName: z.string().optional(),
|
|
384
|
-
email: z.string().optional(),
|
|
385
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
386
|
-
logoUrl: z.string().optional(),
|
|
387
|
-
tags: z.array(z.string()).optional(),
|
|
388
|
-
}).transform((v) => {
|
|
389
|
-
return remap$(v, {
|
|
390
|
-
displayName: "display_name",
|
|
391
|
-
logoUrl: "logo_url",
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
export function createEmbeddingContactToJSON(
|
|
396
|
-
createEmbeddingContact: CreateEmbeddingContact,
|
|
397
|
-
): string {
|
|
398
|
-
return JSON.stringify(
|
|
399
|
-
CreateEmbeddingContact$outboundSchema.parse(createEmbeddingContact),
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
339
|
/** @internal */
|
|
404
340
|
export const CreateEmbeddingLoadBalancerType$outboundSchema: z.ZodNativeEnum<
|
|
405
341
|
typeof CreateEmbeddingLoadBalancerType
|
|
@@ -512,8 +448,8 @@ export type CreateEmbeddingOrq$Outbound = {
|
|
|
512
448
|
fallbacks?: Array<CreateEmbeddingFallbacks$Outbound> | undefined;
|
|
513
449
|
cache?: CreateEmbeddingCache$Outbound | undefined;
|
|
514
450
|
retry?: CreateEmbeddingRetry$Outbound | undefined;
|
|
515
|
-
identity?: components.
|
|
516
|
-
contact?:
|
|
451
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
452
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
517
453
|
load_balancer?: CreateEmbeddingLoadBalancer1$Outbound | undefined;
|
|
518
454
|
timeout?: CreateEmbeddingTimeout$Outbound | undefined;
|
|
519
455
|
};
|
|
@@ -529,8 +465,8 @@ export const CreateEmbeddingOrq$outboundSchema: z.ZodType<
|
|
|
529
465
|
.optional(),
|
|
530
466
|
cache: z.lazy(() => CreateEmbeddingCache$outboundSchema).optional(),
|
|
531
467
|
retry: z.lazy(() => CreateEmbeddingRetry$outboundSchema).optional(),
|
|
532
|
-
identity: components.
|
|
533
|
-
contact:
|
|
468
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
469
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
534
470
|
loadBalancer: z.lazy(() => CreateEmbeddingLoadBalancer1$outboundSchema)
|
|
535
471
|
.optional(),
|
|
536
472
|
timeout: z.lazy(() => CreateEmbeddingTimeout$outboundSchema).optional(),
|
|
@@ -1569,8 +1569,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
1569
1569
|
> = z.object({
|
|
1570
1570
|
_id: z.string(),
|
|
1571
1571
|
description: z.string(),
|
|
1572
|
-
created: z.string().default("2026-01-
|
|
1573
|
-
updated: z.string().default("2026-01-
|
|
1572
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
1573
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
1574
1574
|
guardrail_config: z.union([
|
|
1575
1575
|
z.lazy(() =>
|
|
1576
1576
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -1712,8 +1712,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
1712
1712
|
.object({
|
|
1713
1713
|
_id: z.string(),
|
|
1714
1714
|
description: z.string(),
|
|
1715
|
-
created: z.string().default("2026-01-
|
|
1716
|
-
updated: z.string().default("2026-01-
|
|
1715
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
1716
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
1717
1717
|
guardrail_config: z.union([
|
|
1718
1718
|
z.lazy(() =>
|
|
1719
1719
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -2491,8 +2491,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2491
2491
|
> = z.object({
|
|
2492
2492
|
_id: z.string(),
|
|
2493
2493
|
description: z.string(),
|
|
2494
|
-
created: z.string().default("2026-01-
|
|
2495
|
-
updated: z.string().default("2026-01-
|
|
2494
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2495
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2496
2496
|
guardrail_config: z.union([
|
|
2497
2497
|
z.lazy(() =>
|
|
2498
2498
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema
|
|
@@ -2668,8 +2668,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2668
2668
|
> = z.object({
|
|
2669
2669
|
_id: z.string(),
|
|
2670
2670
|
description: z.string(),
|
|
2671
|
-
created: z.string().default("2026-01-
|
|
2672
|
-
updated: z.string().default("2026-01-
|
|
2671
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2672
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2673
2673
|
guardrail_config: z.union([
|
|
2674
2674
|
z.lazy(() =>
|
|
2675
2675
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -2813,8 +2813,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2813
2813
|
> = z.object({
|
|
2814
2814
|
_id: z.string(),
|
|
2815
2815
|
description: z.string(),
|
|
2816
|
-
created: z.string().default("2026-01-
|
|
2817
|
-
updated: z.string().default("2026-01-
|
|
2816
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2817
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2818
2818
|
guardrail_config: z.union([
|
|
2819
2819
|
z.lazy(() =>
|
|
2820
2820
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -2947,8 +2947,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
2947
2947
|
> = z.object({
|
|
2948
2948
|
_id: z.string(),
|
|
2949
2949
|
description: z.string(),
|
|
2950
|
-
created: z.string().default("2026-01-
|
|
2951
|
-
updated: z.string().default("2026-01-
|
|
2950
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2951
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
2952
2952
|
guardrail_config: z.union([
|
|
2953
2953
|
z.lazy(() =>
|
|
2954
2954
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3075,8 +3075,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3075
3075
|
> = z.object({
|
|
3076
3076
|
_id: z.string(),
|
|
3077
3077
|
description: z.string(),
|
|
3078
|
-
created: z.string().default("2026-01-
|
|
3079
|
-
updated: z.string().default("2026-01-
|
|
3078
|
+
created: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
3079
|
+
updated: z.string().default("2026-01-25T12:08:33.377Z"),
|
|
3080
3080
|
guardrail_config: z.union([
|
|
3081
3081
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3082
3082
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-01-
|
|
142
|
+
"2026-01-25T12:08:31.744Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -111,38 +111,6 @@ export type CreateImageFallbacks = {
|
|
|
111
111
|
model: string;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
116
|
-
*
|
|
117
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
118
|
-
*/
|
|
119
|
-
export type CreateImageContact = {
|
|
120
|
-
/**
|
|
121
|
-
* Unique identifier for the contact
|
|
122
|
-
*/
|
|
123
|
-
id: string;
|
|
124
|
-
/**
|
|
125
|
-
* Display name of the contact
|
|
126
|
-
*/
|
|
127
|
-
displayName?: string | undefined;
|
|
128
|
-
/**
|
|
129
|
-
* Email address of the contact
|
|
130
|
-
*/
|
|
131
|
-
email?: string | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
134
|
-
*/
|
|
135
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* URL to the contact's avatar or logo
|
|
138
|
-
*/
|
|
139
|
-
logoUrl?: string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* A list of tags associated with the contact
|
|
142
|
-
*/
|
|
143
|
-
tags?: Array<string> | undefined;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
114
|
export const CreateImageType = {
|
|
147
115
|
ExactMatch: "exact_match",
|
|
148
116
|
} as const;
|
|
@@ -213,8 +181,13 @@ export type CreateImageOrq = {
|
|
|
213
181
|
/**
|
|
214
182
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
215
183
|
*/
|
|
216
|
-
identity?: components.
|
|
217
|
-
|
|
184
|
+
identity?: components.PublicIdentity | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
187
|
+
*
|
|
188
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
189
|
+
*/
|
|
190
|
+
contact?: components.PublicContact | undefined;
|
|
218
191
|
/**
|
|
219
192
|
* Cache configuration for the request.
|
|
220
193
|
*/
|
|
@@ -398,43 +371,6 @@ export function createImageFallbacksToJSON(
|
|
|
398
371
|
);
|
|
399
372
|
}
|
|
400
373
|
|
|
401
|
-
/** @internal */
|
|
402
|
-
export type CreateImageContact$Outbound = {
|
|
403
|
-
id: string;
|
|
404
|
-
display_name?: string | undefined;
|
|
405
|
-
email?: string | undefined;
|
|
406
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
407
|
-
logo_url?: string | undefined;
|
|
408
|
-
tags?: Array<string> | undefined;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
/** @internal */
|
|
412
|
-
export const CreateImageContact$outboundSchema: z.ZodType<
|
|
413
|
-
CreateImageContact$Outbound,
|
|
414
|
-
z.ZodTypeDef,
|
|
415
|
-
CreateImageContact
|
|
416
|
-
> = z.object({
|
|
417
|
-
id: z.string(),
|
|
418
|
-
displayName: z.string().optional(),
|
|
419
|
-
email: z.string().optional(),
|
|
420
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
421
|
-
logoUrl: z.string().optional(),
|
|
422
|
-
tags: z.array(z.string()).optional(),
|
|
423
|
-
}).transform((v) => {
|
|
424
|
-
return remap$(v, {
|
|
425
|
-
displayName: "display_name",
|
|
426
|
-
logoUrl: "logo_url",
|
|
427
|
-
});
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
export function createImageContactToJSON(
|
|
431
|
-
createImageContact: CreateImageContact,
|
|
432
|
-
): string {
|
|
433
|
-
return JSON.stringify(
|
|
434
|
-
CreateImageContact$outboundSchema.parse(createImageContact),
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
374
|
/** @internal */
|
|
439
375
|
export const CreateImageType$outboundSchema: z.ZodNativeEnum<
|
|
440
376
|
typeof CreateImageType
|
|
@@ -569,8 +505,8 @@ export type CreateImageOrq$Outbound = {
|
|
|
569
505
|
name?: string | undefined;
|
|
570
506
|
retry?: CreateImageRetry$Outbound | undefined;
|
|
571
507
|
fallbacks?: Array<CreateImageFallbacks$Outbound> | undefined;
|
|
572
|
-
identity?: components.
|
|
573
|
-
contact?:
|
|
508
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
509
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
574
510
|
cache?: CreateImageCache$Outbound | undefined;
|
|
575
511
|
load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
|
|
576
512
|
timeout?: CreateImageTimeout$Outbound | undefined;
|
|
@@ -586,8 +522,8 @@ export const CreateImageOrq$outboundSchema: z.ZodType<
|
|
|
586
522
|
retry: z.lazy(() => CreateImageRetry$outboundSchema).optional(),
|
|
587
523
|
fallbacks: z.array(z.lazy(() => CreateImageFallbacks$outboundSchema))
|
|
588
524
|
.optional(),
|
|
589
|
-
identity: components.
|
|
590
|
-
contact:
|
|
525
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
526
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
591
527
|
cache: z.lazy(() => CreateImageCache$outboundSchema).optional(),
|
|
592
528
|
loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
|
|
593
529
|
.optional(),
|
|
@@ -85,38 +85,6 @@ export type CreateImageEditPrompt = {
|
|
|
85
85
|
version: CreateImageEditVersion;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
90
|
-
*
|
|
91
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
92
|
-
*/
|
|
93
|
-
export type CreateImageEditContact = {
|
|
94
|
-
/**
|
|
95
|
-
* Unique identifier for the contact
|
|
96
|
-
*/
|
|
97
|
-
id: string;
|
|
98
|
-
/**
|
|
99
|
-
* Display name of the contact
|
|
100
|
-
*/
|
|
101
|
-
displayName?: string | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Email address of the contact
|
|
104
|
-
*/
|
|
105
|
-
email?: string | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
108
|
-
*/
|
|
109
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* URL to the contact's avatar or logo
|
|
112
|
-
*/
|
|
113
|
-
logoUrl?: string | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* A list of tags associated with the contact
|
|
116
|
-
*/
|
|
117
|
-
tags?: Array<string> | undefined;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
88
|
export const CreateImageEditType = {
|
|
121
89
|
ExactMatch: "exact_match",
|
|
122
90
|
} as const;
|
|
@@ -191,8 +159,13 @@ export type CreateImageEditOrq = {
|
|
|
191
159
|
/**
|
|
192
160
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
193
161
|
*/
|
|
194
|
-
identity?: components.
|
|
195
|
-
|
|
162
|
+
identity?: components.PublicIdentity | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
165
|
+
*
|
|
166
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
167
|
+
*/
|
|
168
|
+
contact?: components.PublicContact | undefined;
|
|
196
169
|
/**
|
|
197
170
|
* Cache configuration for the request.
|
|
198
171
|
*/
|
|
@@ -409,43 +382,6 @@ export function createImageEditPromptToJSON(
|
|
|
409
382
|
);
|
|
410
383
|
}
|
|
411
384
|
|
|
412
|
-
/** @internal */
|
|
413
|
-
export type CreateImageEditContact$Outbound = {
|
|
414
|
-
id: string;
|
|
415
|
-
display_name?: string | undefined;
|
|
416
|
-
email?: string | undefined;
|
|
417
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
418
|
-
logo_url?: string | undefined;
|
|
419
|
-
tags?: Array<string> | undefined;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
/** @internal */
|
|
423
|
-
export const CreateImageEditContact$outboundSchema: z.ZodType<
|
|
424
|
-
CreateImageEditContact$Outbound,
|
|
425
|
-
z.ZodTypeDef,
|
|
426
|
-
CreateImageEditContact
|
|
427
|
-
> = z.object({
|
|
428
|
-
id: z.string(),
|
|
429
|
-
displayName: z.string().optional(),
|
|
430
|
-
email: z.string().optional(),
|
|
431
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
432
|
-
logoUrl: z.string().optional(),
|
|
433
|
-
tags: z.array(z.string()).optional(),
|
|
434
|
-
}).transform((v) => {
|
|
435
|
-
return remap$(v, {
|
|
436
|
-
displayName: "display_name",
|
|
437
|
-
logoUrl: "logo_url",
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
|
|
441
|
-
export function createImageEditContactToJSON(
|
|
442
|
-
createImageEditContact: CreateImageEditContact,
|
|
443
|
-
): string {
|
|
444
|
-
return JSON.stringify(
|
|
445
|
-
CreateImageEditContact$outboundSchema.parse(createImageEditContact),
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
385
|
/** @internal */
|
|
450
386
|
export const CreateImageEditType$outboundSchema: z.ZodNativeEnum<
|
|
451
387
|
typeof CreateImageEditType
|
|
@@ -587,8 +523,8 @@ export type CreateImageEditOrq$Outbound = {
|
|
|
587
523
|
retry?: CreateImageEditRetry$Outbound | undefined;
|
|
588
524
|
fallbacks?: Array<CreateImageEditFallbacks$Outbound> | undefined;
|
|
589
525
|
prompt?: CreateImageEditPrompt$Outbound | undefined;
|
|
590
|
-
identity?: components.
|
|
591
|
-
contact?:
|
|
526
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
527
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
592
528
|
cache?: CreateImageEditCache$Outbound | undefined;
|
|
593
529
|
load_balancer?: CreateImageEditLoadBalancer1$Outbound | undefined;
|
|
594
530
|
timeout?: CreateImageEditTimeout$Outbound | undefined;
|
|
@@ -605,8 +541,8 @@ export const CreateImageEditOrq$outboundSchema: z.ZodType<
|
|
|
605
541
|
fallbacks: z.array(z.lazy(() => CreateImageEditFallbacks$outboundSchema))
|
|
606
542
|
.optional(),
|
|
607
543
|
prompt: z.lazy(() => CreateImageEditPrompt$outboundSchema).optional(),
|
|
608
|
-
identity: components.
|
|
609
|
-
contact:
|
|
544
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
545
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
610
546
|
cache: z.lazy(() => CreateImageEditCache$outboundSchema).optional(),
|
|
611
547
|
loadBalancer: z.lazy(() => CreateImageEditLoadBalancer1$outboundSchema)
|
|
612
548
|
.optional(),
|
|
@@ -85,38 +85,6 @@ export type CreateImageVariationPrompt = {
|
|
|
85
85
|
version: CreateImageVariationVersion;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
90
|
-
*
|
|
91
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
92
|
-
*/
|
|
93
|
-
export type CreateImageVariationContact = {
|
|
94
|
-
/**
|
|
95
|
-
* Unique identifier for the contact
|
|
96
|
-
*/
|
|
97
|
-
id: string;
|
|
98
|
-
/**
|
|
99
|
-
* Display name of the contact
|
|
100
|
-
*/
|
|
101
|
-
displayName?: string | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Email address of the contact
|
|
104
|
-
*/
|
|
105
|
-
email?: string | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
108
|
-
*/
|
|
109
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* URL to the contact's avatar or logo
|
|
112
|
-
*/
|
|
113
|
-
logoUrl?: string | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* A list of tags associated with the contact
|
|
116
|
-
*/
|
|
117
|
-
tags?: Array<string> | undefined;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
88
|
export const CreateImageVariationType = {
|
|
121
89
|
ExactMatch: "exact_match",
|
|
122
90
|
} as const;
|
|
@@ -194,8 +162,13 @@ export type CreateImageVariationOrq = {
|
|
|
194
162
|
/**
|
|
195
163
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
196
164
|
*/
|
|
197
|
-
identity?: components.
|
|
198
|
-
|
|
165
|
+
identity?: components.PublicIdentity | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
168
|
+
*
|
|
169
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
170
|
+
*/
|
|
171
|
+
contact?: components.PublicContact | undefined;
|
|
199
172
|
/**
|
|
200
173
|
* Cache configuration for the request.
|
|
201
174
|
*/
|
|
@@ -409,45 +382,6 @@ export function createImageVariationPromptToJSON(
|
|
|
409
382
|
);
|
|
410
383
|
}
|
|
411
384
|
|
|
412
|
-
/** @internal */
|
|
413
|
-
export type CreateImageVariationContact$Outbound = {
|
|
414
|
-
id: string;
|
|
415
|
-
display_name?: string | undefined;
|
|
416
|
-
email?: string | undefined;
|
|
417
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
418
|
-
logo_url?: string | undefined;
|
|
419
|
-
tags?: Array<string> | undefined;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
/** @internal */
|
|
423
|
-
export const CreateImageVariationContact$outboundSchema: z.ZodType<
|
|
424
|
-
CreateImageVariationContact$Outbound,
|
|
425
|
-
z.ZodTypeDef,
|
|
426
|
-
CreateImageVariationContact
|
|
427
|
-
> = z.object({
|
|
428
|
-
id: z.string(),
|
|
429
|
-
displayName: z.string().optional(),
|
|
430
|
-
email: z.string().optional(),
|
|
431
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
432
|
-
logoUrl: z.string().optional(),
|
|
433
|
-
tags: z.array(z.string()).optional(),
|
|
434
|
-
}).transform((v) => {
|
|
435
|
-
return remap$(v, {
|
|
436
|
-
displayName: "display_name",
|
|
437
|
-
logoUrl: "logo_url",
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
|
|
441
|
-
export function createImageVariationContactToJSON(
|
|
442
|
-
createImageVariationContact: CreateImageVariationContact,
|
|
443
|
-
): string {
|
|
444
|
-
return JSON.stringify(
|
|
445
|
-
CreateImageVariationContact$outboundSchema.parse(
|
|
446
|
-
createImageVariationContact,
|
|
447
|
-
),
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
385
|
/** @internal */
|
|
452
386
|
export const CreateImageVariationType$outboundSchema: z.ZodNativeEnum<
|
|
453
387
|
typeof CreateImageVariationType
|
|
@@ -593,8 +527,8 @@ export type CreateImageVariationOrq$Outbound = {
|
|
|
593
527
|
retry?: CreateImageVariationRetry$Outbound | undefined;
|
|
594
528
|
fallbacks?: Array<CreateImageVariationFallbacks$Outbound> | undefined;
|
|
595
529
|
prompt?: CreateImageVariationPrompt$Outbound | undefined;
|
|
596
|
-
identity?: components.
|
|
597
|
-
contact?:
|
|
530
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
531
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
598
532
|
cache?: CreateImageVariationCache$Outbound | undefined;
|
|
599
533
|
load_balancer?: CreateImageVariationLoadBalancer1$Outbound | undefined;
|
|
600
534
|
timeout?: CreateImageVariationTimeout$Outbound | undefined;
|
|
@@ -611,8 +545,8 @@ export const CreateImageVariationOrq$outboundSchema: z.ZodType<
|
|
|
611
545
|
fallbacks: z.array(z.lazy(() => CreateImageVariationFallbacks$outboundSchema))
|
|
612
546
|
.optional(),
|
|
613
547
|
prompt: z.lazy(() => CreateImageVariationPrompt$outboundSchema).optional(),
|
|
614
|
-
identity: components.
|
|
615
|
-
contact:
|
|
548
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
549
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
616
550
|
cache: z.lazy(() => CreateImageVariationCache$outboundSchema).optional(),
|
|
617
551
|
loadBalancer: z.lazy(() => CreateImageVariationLoadBalancer1$outboundSchema)
|
|
618
552
|
.optional(),
|