@orq-ai/node 3.1.0-rc.53 → 3.1.0-rc.55
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/README.md +7 -3
- package/docs/sdks/prompts/README.md +182 -25
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +0 -4
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/deploymentsGetConfig.d.ts.map +1 -1
- package/funcs/deploymentsGetConfig.js +0 -4
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsList.d.ts.map +1 -1
- package/funcs/deploymentsList.js +0 -4
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +0 -4
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/feedbackCreate.d.ts.map +1 -1
- package/funcs/feedbackCreate.js +0 -4
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +0 -4
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +0 -4
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +0 -4
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +0 -4
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/promptSnippetsCreate.d.ts.map +1 -1
- package/funcs/promptSnippetsCreate.js +0 -4
- package/funcs/promptSnippetsCreate.js.map +1 -1
- package/funcs/promptSnippetsDelete.d.ts.map +1 -1
- package/funcs/promptSnippetsDelete.js +0 -4
- package/funcs/promptSnippetsDelete.js.map +1 -1
- package/funcs/promptSnippetsGet.d.ts.map +1 -1
- package/funcs/promptSnippetsGet.js +0 -4
- package/funcs/promptSnippetsGet.js.map +1 -1
- package/funcs/promptSnippetsGetByKey.d.ts.map +1 -1
- package/funcs/promptSnippetsGetByKey.js +0 -4
- package/funcs/promptSnippetsGetByKey.js.map +1 -1
- package/funcs/promptSnippetsList.d.ts.map +1 -1
- package/funcs/promptSnippetsList.js +0 -4
- package/funcs/promptSnippetsList.js.map +1 -1
- package/funcs/promptSnippetsUpdate.d.ts.map +1 -1
- package/funcs/promptSnippetsUpdate.js +0 -4
- package/funcs/promptSnippetsUpdate.js.map +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +0 -4
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +0 -4
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +16 -0
- package/funcs/promptsGetVersion.d.ts.map +1 -0
- package/funcs/promptsGetVersion.js +120 -0
- package/funcs/promptsGetVersion.js.map +1 -0
- package/funcs/promptsList.d.ts +3 -0
- package/funcs/promptsList.d.ts.map +1 -1
- package/funcs/promptsList.js +3 -4
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.d.ts +15 -0
- package/funcs/promptsListVersions.d.ts.map +1 -0
- package/funcs/promptsListVersions.js +118 -0
- package/funcs/promptsListVersions.js.map +1 -0
- package/funcs/{promptsGet.d.ts → promptsRetrieve.d.ts} +5 -2
- package/funcs/promptsRetrieve.d.ts.map +1 -0
- package/funcs/{promptsGet.js → promptsRetrieve.js} +6 -7
- package/funcs/promptsRetrieve.js.map +1 -0
- package/funcs/promptsUpdate.d.ts.map +1 -1
- package/funcs/promptsUpdate.js +0 -4
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigGetConfig.d.ts.map +1 -1
- package/funcs/remoteconfigGetConfig.js +0 -4
- package/funcs/remoteconfigGetConfig.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/errors/getpromptversion.d.ts +36 -0
- package/models/errors/getpromptversion.d.ts.map +1 -0
- package/models/errors/getpromptversion.js +79 -0
- package/models/errors/getpromptversion.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createcontact.d.ts +0 -25
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +3 -30
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createfeedback.d.ts +0 -25
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +1 -28
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +690 -1932
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +49 -1105
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptsnippet.d.ts +0 -25
- package/models/operations/createpromptsnippet.d.ts.map +1 -1
- package/models/operations/createpromptsnippet.js +9 -36
- package/models/operations/createpromptsnippet.js.map +1 -1
- package/models/operations/deleteprompt.d.ts +0 -25
- package/models/operations/deleteprompt.d.ts.map +1 -1
- package/models/operations/deleteprompt.js +1 -28
- package/models/operations/deleteprompt.js.map +1 -1
- package/models/operations/deletepromptsnippet.d.ts +0 -25
- package/models/operations/deletepromptsnippet.d.ts.map +1 -1
- package/models/operations/deletepromptsnippet.js +1 -28
- package/models/operations/deletepromptsnippet.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +0 -25
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +2 -29
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +0 -25
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +4 -31
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +0 -25
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +3 -30
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/filedelete.d.ts +0 -25
- package/models/operations/filedelete.d.ts.map +1 -1
- package/models/operations/filedelete.js +1 -28
- package/models/operations/filedelete.js.map +1 -1
- package/models/operations/fileget.d.ts +0 -25
- package/models/operations/fileget.d.ts.map +1 -1
- package/models/operations/fileget.js +3 -30
- package/models/operations/fileget.js.map +1 -1
- package/models/operations/filelist.d.ts +0 -25
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +3 -30
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.d.ts +0 -25
- package/models/operations/fileupload.d.ts.map +1 -1
- package/models/operations/fileupload.js +3 -30
- package/models/operations/fileupload.js.map +1 -1
- package/models/operations/findonebykeypromptsnippet.d.ts +0 -25
- package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -1
- package/models/operations/findonebykeypromptsnippet.js +7 -34
- package/models/operations/findonebykeypromptsnippet.js.map +1 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -25
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +7 -34
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +426 -1671
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +47 -1099
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getallpromptsnippets.d.ts +0 -25
- package/models/operations/getallpromptsnippets.d.ts.map +1 -1
- package/models/operations/getallpromptsnippets.js +7 -34
- package/models/operations/getallpromptsnippets.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +0 -25
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -28
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1228 -0
- package/models/operations/getpromptversion.d.ts.map +1 -0
- package/models/operations/getpromptversion.js +1080 -0
- package/models/operations/getpromptversion.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1286 -0
- package/models/operations/listpromptversions.d.ts.map +1 -0
- package/models/operations/listpromptversions.js +1142 -0
- package/models/operations/listpromptversions.js.map +1 -0
- package/models/operations/remoteconfigsgetconfig.d.ts +0 -25
- package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -1
- package/models/operations/remoteconfigsgetconfig.js +1 -28
- package/models/operations/remoteconfigsgetconfig.js.map +1 -1
- package/models/operations/updateprompt.d.ts +728 -1958
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +67 -1105
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatepromptsnippet.d.ts +0 -25
- package/models/operations/updatepromptsnippet.d.ts.map +1 -1
- package/models/operations/updatepromptsnippet.js +9 -36
- package/models/operations/updatepromptsnippet.js.map +1 -1
- package/package.json +1 -1
- package/sdk/prompts.d.ts +24 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +33 -7
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +1 -5
- package/src/funcs/deploymentsGetConfig.ts +1 -5
- package/src/funcs/deploymentsList.ts +1 -5
- package/src/funcs/deploymentsMetricsCreate.ts +0 -4
- package/src/funcs/feedbackCreate.ts +1 -5
- package/src/funcs/filesDelete.ts +0 -4
- package/src/funcs/filesGet.ts +0 -4
- package/src/funcs/filesList.ts +1 -5
- package/src/funcs/filesUpload.ts +1 -5
- package/src/funcs/promptSnippetsCreate.ts +1 -5
- package/src/funcs/promptSnippetsDelete.ts +0 -4
- package/src/funcs/promptSnippetsGet.ts +0 -4
- package/src/funcs/promptSnippetsGetByKey.ts +0 -4
- package/src/funcs/promptSnippetsList.ts +1 -5
- package/src/funcs/promptSnippetsUpdate.ts +0 -4
- package/src/funcs/promptsCreate.ts +1 -5
- package/src/funcs/promptsDelete.ts +0 -4
- package/src/funcs/promptsGetVersion.ts +146 -0
- package/src/funcs/promptsList.ts +4 -5
- package/src/funcs/promptsListVersions.ts +139 -0
- package/src/funcs/{promptsGet.ts → promptsRetrieve.ts} +4 -5
- package/src/funcs/promptsUpdate.ts +0 -4
- package/src/funcs/remoteconfigGetConfig.ts +1 -5
- package/src/lib/config.ts +2 -2
- package/src/models/errors/getpromptversion.ts +71 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -60
- package/src/models/operations/createfeedback.ts +0 -58
- package/src/models/operations/createprompt.ts +1375 -3592
- package/src/models/operations/createpromptsnippet.ts +2 -60
- package/src/models/operations/deleteprompt.ts +0 -58
- package/src/models/operations/deletepromptsnippet.ts +0 -58
- package/src/models/operations/deploymentcreatemetric.ts +0 -60
- package/src/models/operations/deploymentgetconfig.ts +0 -58
- package/src/models/operations/deployments.ts +0 -58
- package/src/models/operations/filedelete.ts +0 -58
- package/src/models/operations/fileget.ts +2 -56
- package/src/models/operations/filelist.ts +2 -58
- package/src/models/operations/fileupload.ts +2 -60
- package/src/models/operations/findonebykeypromptsnippet.ts +2 -62
- package/src/models/operations/findonepromptsnippet.ts +2 -62
- package/src/models/operations/getallprompts.ts +732 -2826
- package/src/models/operations/getallpromptsnippets.ts +2 -62
- package/src/models/operations/getoneprompt.ts +0 -58
- package/src/models/operations/getpromptversion.ts +2012 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listpromptversions.ts +2146 -0
- package/src/models/operations/remoteconfigsgetconfig.ts +0 -60
- package/src/models/operations/updateprompt.ts +1544 -3731
- package/src/models/operations/updatepromptsnippet.ts +2 -60
- package/src/sdk/prompts.ts +53 -11
- package/funcs/promptsGet.d.ts.map +0 -1
- package/funcs/promptsGet.js.map +0 -1
|
@@ -9,10 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type GetAllPromptsGlobals = {
|
|
13
|
-
contactId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
export type GetAllPromptsRequest = {
|
|
17
13
|
/**
|
|
18
14
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
@@ -33,12 +29,10 @@ export const GetAllPromptsObject = {
|
|
|
33
29
|
} as const;
|
|
34
30
|
export type GetAllPromptsObject = ClosedEnum<typeof GetAllPromptsObject>;
|
|
35
31
|
|
|
36
|
-
export const
|
|
37
|
-
|
|
32
|
+
export const GetAllPromptsType = {
|
|
33
|
+
Prompt: "prompt",
|
|
38
34
|
} as const;
|
|
39
|
-
export type
|
|
40
|
-
|
|
41
|
-
export type GetAllPromptsOwner = string | GetAllPromptsOwner2;
|
|
35
|
+
export type GetAllPromptsType = ClosedEnum<typeof GetAllPromptsType>;
|
|
42
36
|
|
|
43
37
|
/**
|
|
44
38
|
* The type of the model
|
|
@@ -455,2339 +449,389 @@ export type GetAllPromptsMetadata = {
|
|
|
455
449
|
language?: GetAllPromptsLanguage | undefined;
|
|
456
450
|
};
|
|
457
451
|
|
|
458
|
-
export
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
452
|
+
export type GetAllPromptsData = {
|
|
453
|
+
id: string;
|
|
454
|
+
type: GetAllPromptsType;
|
|
455
|
+
owner: string;
|
|
456
|
+
domainId: string;
|
|
457
|
+
created: string;
|
|
458
|
+
updated: string;
|
|
459
|
+
createdById?: string | undefined;
|
|
460
|
+
updatedById?: string | undefined;
|
|
461
|
+
/**
|
|
462
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
463
|
+
*/
|
|
464
|
+
displayName: string;
|
|
465
|
+
/**
|
|
466
|
+
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
467
|
+
*/
|
|
468
|
+
description?: string | null | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* A list of messages compatible with the openAI schema
|
|
471
|
+
*/
|
|
472
|
+
promptConfig: GetAllPromptsPromptConfig;
|
|
473
|
+
metadata?: GetAllPromptsMetadata | undefined;
|
|
474
|
+
};
|
|
462
475
|
|
|
463
476
|
/**
|
|
464
|
-
*
|
|
465
|
-
*/
|
|
466
|
-
export const GetAllPromptsPromptsModelType = {
|
|
467
|
-
Chat: "chat",
|
|
468
|
-
Completion: "completion",
|
|
469
|
-
Embedding: "embedding",
|
|
470
|
-
Vision: "vision",
|
|
471
|
-
Image: "image",
|
|
472
|
-
Tts: "tts",
|
|
473
|
-
Stt: "stt",
|
|
474
|
-
Rerank: "rerank",
|
|
475
|
-
Moderations: "moderations",
|
|
476
|
-
} as const;
|
|
477
|
-
/**
|
|
478
|
-
* The type of the model
|
|
477
|
+
* Prompts retrieved.
|
|
479
478
|
*/
|
|
480
|
-
export type
|
|
481
|
-
|
|
482
|
-
>;
|
|
479
|
+
export type GetAllPromptsResponseBody = {
|
|
480
|
+
object: GetAllPromptsObject;
|
|
481
|
+
data: Array<GetAllPromptsData>;
|
|
482
|
+
hasMore: boolean;
|
|
483
|
+
};
|
|
483
484
|
|
|
484
|
-
/**
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
485
|
+
/** @internal */
|
|
486
|
+
export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
487
|
+
GetAllPromptsRequest,
|
|
488
|
+
z.ZodTypeDef,
|
|
489
|
+
unknown
|
|
490
|
+
> = z.object({
|
|
491
|
+
limit: z.number().default(10),
|
|
492
|
+
starting_after: z.string().optional(),
|
|
493
|
+
ending_before: z.string().optional(),
|
|
494
|
+
}).transform((v) => {
|
|
495
|
+
return remap$(v, {
|
|
496
|
+
"starting_after": "startingAfter",
|
|
497
|
+
"ending_before": "endingBefore",
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
/** @internal */
|
|
502
|
+
export type GetAllPromptsRequest$Outbound = {
|
|
503
|
+
limit: number;
|
|
504
|
+
starting_after?: string | undefined;
|
|
505
|
+
ending_before?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
/** @internal */
|
|
509
|
+
export const GetAllPromptsRequest$outboundSchema: z.ZodType<
|
|
510
|
+
GetAllPromptsRequest$Outbound,
|
|
511
|
+
z.ZodTypeDef,
|
|
512
|
+
GetAllPromptsRequest
|
|
513
|
+
> = z.object({
|
|
514
|
+
limit: z.number().default(10),
|
|
515
|
+
startingAfter: z.string().optional(),
|
|
516
|
+
endingBefore: z.string().optional(),
|
|
517
|
+
}).transform((v) => {
|
|
518
|
+
return remap$(v, {
|
|
519
|
+
startingAfter: "starting_after",
|
|
520
|
+
endingBefore: "ending_before",
|
|
521
|
+
});
|
|
522
|
+
});
|
|
499
523
|
|
|
500
524
|
/**
|
|
501
|
-
*
|
|
502
|
-
|
|
503
|
-
export const GetAllPromptsPromptsQuality = {
|
|
504
|
-
Standard: "standard",
|
|
505
|
-
Hd: "hd",
|
|
506
|
-
} as const;
|
|
507
|
-
/**
|
|
508
|
-
* Only supported on `image` models.
|
|
525
|
+
* @internal
|
|
526
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
509
527
|
*/
|
|
510
|
-
export
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
export const
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
typeof GetAllPromptsResponseFormatPromptsResponse200Type
|
|
519
|
-
>;
|
|
528
|
+
export namespace GetAllPromptsRequest$ {
|
|
529
|
+
/** @deprecated use `GetAllPromptsRequest$inboundSchema` instead. */
|
|
530
|
+
export const inboundSchema = GetAllPromptsRequest$inboundSchema;
|
|
531
|
+
/** @deprecated use `GetAllPromptsRequest$outboundSchema` instead. */
|
|
532
|
+
export const outboundSchema = GetAllPromptsRequest$outboundSchema;
|
|
533
|
+
/** @deprecated use `GetAllPromptsRequest$Outbound` instead. */
|
|
534
|
+
export type Outbound = GetAllPromptsRequest$Outbound;
|
|
535
|
+
}
|
|
520
536
|
|
|
521
|
-
export
|
|
522
|
-
|
|
523
|
-
|
|
537
|
+
export function getAllPromptsRequestToJSON(
|
|
538
|
+
getAllPromptsRequest: GetAllPromptsRequest,
|
|
539
|
+
): string {
|
|
540
|
+
return JSON.stringify(
|
|
541
|
+
GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
|
|
542
|
+
);
|
|
543
|
+
}
|
|
524
544
|
|
|
525
|
-
export
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
545
|
+
export function getAllPromptsRequestFromJSON(
|
|
546
|
+
jsonString: string,
|
|
547
|
+
): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
|
|
548
|
+
return safeParse(
|
|
549
|
+
jsonString,
|
|
550
|
+
(x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
551
|
+
`Failed to parse 'GetAllPromptsRequest' from JSON`,
|
|
552
|
+
);
|
|
553
|
+
}
|
|
531
554
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
};
|
|
555
|
+
/** @internal */
|
|
556
|
+
export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
|
|
557
|
+
typeof GetAllPromptsObject
|
|
558
|
+
> = z.nativeEnum(GetAllPromptsObject);
|
|
537
559
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
|
|
562
|
+
typeof GetAllPromptsObject
|
|
563
|
+
> = GetAllPromptsObject$inboundSchema;
|
|
542
564
|
|
|
543
565
|
/**
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
* @remarks
|
|
547
|
-
*
|
|
548
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
549
|
-
*
|
|
550
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
551
|
-
*
|
|
552
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
566
|
+
* @internal
|
|
567
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
553
568
|
*/
|
|
554
|
-
export
|
|
555
|
-
|
|
556
|
-
|
|
569
|
+
export namespace GetAllPromptsObject$ {
|
|
570
|
+
/** @deprecated use `GetAllPromptsObject$inboundSchema` instead. */
|
|
571
|
+
export const inboundSchema = GetAllPromptsObject$inboundSchema;
|
|
572
|
+
/** @deprecated use `GetAllPromptsObject$outboundSchema` instead. */
|
|
573
|
+
export const outboundSchema = GetAllPromptsObject$outboundSchema;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/** @internal */
|
|
577
|
+
export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
578
|
+
typeof GetAllPromptsType
|
|
579
|
+
> = z.nativeEnum(GetAllPromptsType);
|
|
580
|
+
|
|
581
|
+
/** @internal */
|
|
582
|
+
export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
583
|
+
typeof GetAllPromptsType
|
|
584
|
+
> = GetAllPromptsType$inboundSchema;
|
|
557
585
|
|
|
558
586
|
/**
|
|
559
|
-
*
|
|
560
|
-
|
|
561
|
-
export const GetAllPromptsPromptsPhotoRealVersion = {
|
|
562
|
-
V1: "v1",
|
|
563
|
-
V2: "v2",
|
|
564
|
-
} as const;
|
|
565
|
-
/**
|
|
566
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
587
|
+
* @internal
|
|
588
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
567
589
|
*/
|
|
568
|
-
export
|
|
569
|
-
|
|
570
|
-
|
|
590
|
+
export namespace GetAllPromptsType$ {
|
|
591
|
+
/** @deprecated use `GetAllPromptsType$inboundSchema` instead. */
|
|
592
|
+
export const inboundSchema = GetAllPromptsType$inboundSchema;
|
|
593
|
+
/** @deprecated use `GetAllPromptsType$outboundSchema` instead. */
|
|
594
|
+
export const outboundSchema = GetAllPromptsType$outboundSchema;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/** @internal */
|
|
598
|
+
export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
|
|
599
|
+
typeof GetAllPromptsModelType
|
|
600
|
+
> = z.nativeEnum(GetAllPromptsModelType);
|
|
601
|
+
|
|
602
|
+
/** @internal */
|
|
603
|
+
export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
|
|
604
|
+
typeof GetAllPromptsModelType
|
|
605
|
+
> = GetAllPromptsModelType$inboundSchema;
|
|
571
606
|
|
|
572
607
|
/**
|
|
573
|
-
*
|
|
608
|
+
* @internal
|
|
609
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
574
610
|
*/
|
|
575
|
-
export
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
611
|
+
export namespace GetAllPromptsModelType$ {
|
|
612
|
+
/** @deprecated use `GetAllPromptsModelType$inboundSchema` instead. */
|
|
613
|
+
export const inboundSchema = GetAllPromptsModelType$inboundSchema;
|
|
614
|
+
/** @deprecated use `GetAllPromptsModelType$outboundSchema` instead. */
|
|
615
|
+
export const outboundSchema = GetAllPromptsModelType$outboundSchema;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/** @internal */
|
|
619
|
+
export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
620
|
+
typeof GetAllPromptsFormat
|
|
621
|
+
> = z.nativeEnum(GetAllPromptsFormat);
|
|
622
|
+
|
|
623
|
+
/** @internal */
|
|
624
|
+
export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
625
|
+
typeof GetAllPromptsFormat
|
|
626
|
+
> = GetAllPromptsFormat$inboundSchema;
|
|
627
|
+
|
|
579
628
|
/**
|
|
580
|
-
*
|
|
629
|
+
* @internal
|
|
630
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
581
631
|
*/
|
|
582
|
-
export
|
|
583
|
-
|
|
584
|
-
|
|
632
|
+
export namespace GetAllPromptsFormat$ {
|
|
633
|
+
/** @deprecated use `GetAllPromptsFormat$inboundSchema` instead. */
|
|
634
|
+
export const inboundSchema = GetAllPromptsFormat$inboundSchema;
|
|
635
|
+
/** @deprecated use `GetAllPromptsFormat$outboundSchema` instead. */
|
|
636
|
+
export const outboundSchema = GetAllPromptsFormat$outboundSchema;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/** @internal */
|
|
640
|
+
export const GetAllPromptsQuality$inboundSchema: z.ZodNativeEnum<
|
|
641
|
+
typeof GetAllPromptsQuality
|
|
642
|
+
> = z.nativeEnum(GetAllPromptsQuality);
|
|
643
|
+
|
|
644
|
+
/** @internal */
|
|
645
|
+
export const GetAllPromptsQuality$outboundSchema: z.ZodNativeEnum<
|
|
646
|
+
typeof GetAllPromptsQuality
|
|
647
|
+
> = GetAllPromptsQuality$inboundSchema;
|
|
585
648
|
|
|
586
649
|
/**
|
|
587
|
-
*
|
|
650
|
+
* @internal
|
|
651
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
588
652
|
*/
|
|
589
|
-
export
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
596
|
-
*/
|
|
597
|
-
export type GetAllPromptsPromptsReasoningEffort = ClosedEnum<
|
|
598
|
-
typeof GetAllPromptsPromptsReasoningEffort
|
|
599
|
-
>;
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Model Parameters: Not all parameters apply to every model
|
|
603
|
-
*/
|
|
604
|
-
export type GetAllPromptsPromptsModelParameters = {
|
|
605
|
-
/**
|
|
606
|
-
* Only supported on `chat` and `completion` models.
|
|
607
|
-
*/
|
|
608
|
-
temperature?: number | undefined;
|
|
609
|
-
/**
|
|
610
|
-
* Only supported on `chat` and `completion` models.
|
|
611
|
-
*/
|
|
612
|
-
maxTokens?: number | undefined;
|
|
613
|
-
/**
|
|
614
|
-
* Only supported on `chat` and `completion` models.
|
|
615
|
-
*/
|
|
616
|
-
topK?: number | undefined;
|
|
617
|
-
/**
|
|
618
|
-
* Only supported on `chat` and `completion` models.
|
|
619
|
-
*/
|
|
620
|
-
topP?: number | undefined;
|
|
621
|
-
/**
|
|
622
|
-
* Only supported on `chat` and `completion` models.
|
|
623
|
-
*/
|
|
624
|
-
frequencyPenalty?: number | undefined;
|
|
625
|
-
/**
|
|
626
|
-
* Only supported on `chat` and `completion` models.
|
|
627
|
-
*/
|
|
628
|
-
presencePenalty?: number | undefined;
|
|
629
|
-
/**
|
|
630
|
-
* Only supported on `image` models.
|
|
631
|
-
*/
|
|
632
|
-
numImages?: number | undefined;
|
|
633
|
-
/**
|
|
634
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
635
|
-
*/
|
|
636
|
-
seed?: number | undefined;
|
|
637
|
-
/**
|
|
638
|
-
* Only supported on `image` models.
|
|
639
|
-
*/
|
|
640
|
-
format?: GetAllPromptsPromptsFormat | undefined;
|
|
641
|
-
/**
|
|
642
|
-
* Only supported on `image` models.
|
|
643
|
-
*/
|
|
644
|
-
dimensions?: string | undefined;
|
|
645
|
-
/**
|
|
646
|
-
* Only supported on `image` models.
|
|
647
|
-
*/
|
|
648
|
-
quality?: GetAllPromptsPromptsQuality | undefined;
|
|
649
|
-
/**
|
|
650
|
-
* Only supported on `image` models.
|
|
651
|
-
*/
|
|
652
|
-
style?: string | undefined;
|
|
653
|
-
/**
|
|
654
|
-
* An object specifying the format that the model must output.
|
|
655
|
-
*
|
|
656
|
-
* @remarks
|
|
657
|
-
*
|
|
658
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
659
|
-
*
|
|
660
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
661
|
-
*
|
|
662
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
663
|
-
*/
|
|
664
|
-
responseFormat?:
|
|
665
|
-
| GetAllPromptsResponseFormatPrompts2
|
|
666
|
-
| GetAllPromptsResponseFormatPrompts1
|
|
667
|
-
| null
|
|
668
|
-
| undefined;
|
|
669
|
-
/**
|
|
670
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
671
|
-
*/
|
|
672
|
-
photoRealVersion?: GetAllPromptsPromptsPhotoRealVersion | undefined;
|
|
673
|
-
/**
|
|
674
|
-
* The format to return the embeddings
|
|
675
|
-
*/
|
|
676
|
-
encodingFormat?: GetAllPromptsPromptsEncodingFormat | undefined;
|
|
677
|
-
/**
|
|
678
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
679
|
-
*/
|
|
680
|
-
reasoningEffort?: GetAllPromptsPromptsReasoningEffort | undefined;
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
export const GetAllPromptsPromptsProvider = {
|
|
684
|
-
Cohere: "cohere",
|
|
685
|
-
Openai: "openai",
|
|
686
|
-
Anthropic: "anthropic",
|
|
687
|
-
Huggingface: "huggingface",
|
|
688
|
-
Replicate: "replicate",
|
|
689
|
-
Google: "google",
|
|
690
|
-
GoogleAi: "google-ai",
|
|
691
|
-
Azure: "azure",
|
|
692
|
-
Aws: "aws",
|
|
693
|
-
Anyscale: "anyscale",
|
|
694
|
-
Perplexity: "perplexity",
|
|
695
|
-
Groq: "groq",
|
|
696
|
-
Fal: "fal",
|
|
697
|
-
Leonardoai: "leonardoai",
|
|
698
|
-
Nvidia: "nvidia",
|
|
699
|
-
Jina: "jina",
|
|
700
|
-
Togetherai: "togetherai",
|
|
701
|
-
Elevenlabs: "elevenlabs",
|
|
702
|
-
} as const;
|
|
703
|
-
export type GetAllPromptsPromptsProvider = ClosedEnum<
|
|
704
|
-
typeof GetAllPromptsPromptsProvider
|
|
705
|
-
>;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* The role of the prompt message
|
|
709
|
-
*/
|
|
710
|
-
export const GetAllPromptsPromptsRole = {
|
|
711
|
-
System: "system",
|
|
712
|
-
Assistant: "assistant",
|
|
713
|
-
User: "user",
|
|
714
|
-
Exception: "exception",
|
|
715
|
-
Tool: "tool",
|
|
716
|
-
Prompt: "prompt",
|
|
717
|
-
Correction: "correction",
|
|
718
|
-
ExpectedOutput: "expected_output",
|
|
719
|
-
} as const;
|
|
720
|
-
/**
|
|
721
|
-
* The role of the prompt message
|
|
722
|
-
*/
|
|
723
|
-
export type GetAllPromptsPromptsRole = ClosedEnum<
|
|
724
|
-
typeof GetAllPromptsPromptsRole
|
|
725
|
-
>;
|
|
726
|
-
|
|
727
|
-
export const GetAllPrompts2PromptsResponse200Type = {
|
|
728
|
-
ImageUrl: "image_url",
|
|
729
|
-
} as const;
|
|
730
|
-
export type GetAllPrompts2PromptsResponse200Type = ClosedEnum<
|
|
731
|
-
typeof GetAllPrompts2PromptsResponse200Type
|
|
732
|
-
>;
|
|
733
|
-
|
|
734
|
-
export type GetAllPrompts2PromptsImageUrl = {
|
|
735
|
-
/**
|
|
736
|
-
* The orq.ai id of the image
|
|
737
|
-
*/
|
|
738
|
-
id?: string | undefined;
|
|
739
|
-
/**
|
|
740
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
741
|
-
*/
|
|
742
|
-
url: string;
|
|
743
|
-
/**
|
|
744
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
745
|
-
*/
|
|
746
|
-
detail?: string | undefined;
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
751
|
-
*/
|
|
752
|
-
export type GetAllPrompts2Prompts2 = {
|
|
753
|
-
type: GetAllPrompts2PromptsResponse200Type;
|
|
754
|
-
imageUrl: GetAllPrompts2PromptsImageUrl;
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
export const GetAllPrompts2PromptsResponseType = {
|
|
758
|
-
Text: "text",
|
|
759
|
-
} as const;
|
|
760
|
-
export type GetAllPrompts2PromptsResponseType = ClosedEnum<
|
|
761
|
-
typeof GetAllPrompts2PromptsResponseType
|
|
762
|
-
>;
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* Text content part of a prompt message
|
|
766
|
-
*/
|
|
767
|
-
export type GetAllPrompts2Prompts1 = {
|
|
768
|
-
type: GetAllPrompts2PromptsResponseType;
|
|
769
|
-
text: string;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
export type GetAllPromptsContentPrompts2 =
|
|
773
|
-
| GetAllPrompts2Prompts1
|
|
774
|
-
| GetAllPrompts2Prompts2;
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
778
|
-
*/
|
|
779
|
-
export type GetAllPromptsPromptsContent =
|
|
780
|
-
| string
|
|
781
|
-
| Array<GetAllPrompts2Prompts1 | GetAllPrompts2Prompts2>;
|
|
782
|
-
|
|
783
|
-
export const GetAllPromptsPromptsResponseType = {
|
|
784
|
-
Function: "function",
|
|
785
|
-
} as const;
|
|
786
|
-
export type GetAllPromptsPromptsResponseType = ClosedEnum<
|
|
787
|
-
typeof GetAllPromptsPromptsResponseType
|
|
788
|
-
>;
|
|
789
|
-
|
|
790
|
-
export type GetAllPromptsPromptsFunction = {
|
|
791
|
-
name: string;
|
|
792
|
-
/**
|
|
793
|
-
* JSON string arguments for the functions
|
|
794
|
-
*/
|
|
795
|
-
arguments: string;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
export type GetAllPromptsPromptsToolCalls = {
|
|
799
|
-
id?: string | undefined;
|
|
800
|
-
index?: number | undefined;
|
|
801
|
-
type: GetAllPromptsPromptsResponseType;
|
|
802
|
-
function: GetAllPromptsPromptsFunction;
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
export type GetAllPromptsPromptsMessages = {
|
|
806
|
-
/**
|
|
807
|
-
* The role of the prompt message
|
|
808
|
-
*/
|
|
809
|
-
role: GetAllPromptsPromptsRole;
|
|
810
|
-
/**
|
|
811
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
812
|
-
*/
|
|
813
|
-
content: string | Array<GetAllPrompts2Prompts1 | GetAllPrompts2Prompts2>;
|
|
814
|
-
toolCalls?: Array<GetAllPromptsPromptsToolCalls> | undefined;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* A list of messages compatible with the openAI schema
|
|
819
|
-
*/
|
|
820
|
-
export type GetAllPromptsPromptsPromptConfig = {
|
|
821
|
-
stream?: boolean | undefined;
|
|
822
|
-
model?: string | undefined;
|
|
823
|
-
/**
|
|
824
|
-
* The id of the resource
|
|
825
|
-
*/
|
|
826
|
-
modelDbId?: string | undefined;
|
|
827
|
-
/**
|
|
828
|
-
* The type of the model
|
|
829
|
-
*/
|
|
830
|
-
modelType?: GetAllPromptsPromptsModelType | undefined;
|
|
831
|
-
/**
|
|
832
|
-
* Model Parameters: Not all parameters apply to every model
|
|
833
|
-
*/
|
|
834
|
-
modelParameters?: GetAllPromptsPromptsModelParameters | undefined;
|
|
835
|
-
provider?: GetAllPromptsPromptsProvider | undefined;
|
|
836
|
-
/**
|
|
837
|
-
* The id of the resource
|
|
838
|
-
*/
|
|
839
|
-
integrationId?: string | null | undefined;
|
|
840
|
-
version?: string | undefined;
|
|
841
|
-
messages: Array<GetAllPromptsPromptsMessages>;
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
export const GetAllPromptsPromptsUseCases = {
|
|
845
|
-
Agents: "Agents",
|
|
846
|
-
AgentsSimulations: "Agents simulations",
|
|
847
|
-
APIInteraction: "API interaction",
|
|
848
|
-
AutonomousAgents: "Autonomous Agents",
|
|
849
|
-
Chatbots: "Chatbots",
|
|
850
|
-
Classification: "Classification",
|
|
851
|
-
CodeUnderstanding: "Code understanding",
|
|
852
|
-
CodeWriting: "Code writing",
|
|
853
|
-
DocumentsQA: "Documents QA",
|
|
854
|
-
Conversation: "Conversation",
|
|
855
|
-
Extraction: "Extraction",
|
|
856
|
-
MultiModal: "Multi-modal",
|
|
857
|
-
SelfChecking: "Self-checking",
|
|
858
|
-
Sql: "SQL",
|
|
859
|
-
Summarization: "Summarization",
|
|
860
|
-
Tagging: "Tagging",
|
|
861
|
-
} as const;
|
|
862
|
-
export type GetAllPromptsPromptsUseCases = ClosedEnum<
|
|
863
|
-
typeof GetAllPromptsPromptsUseCases
|
|
864
|
-
>;
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
868
|
-
*/
|
|
869
|
-
export const GetAllPromptsPromptsLanguage = {
|
|
870
|
-
Chinese: "Chinese",
|
|
871
|
-
Dutch: "Dutch",
|
|
872
|
-
English: "English",
|
|
873
|
-
French: "French",
|
|
874
|
-
German: "German",
|
|
875
|
-
Russian: "Russian",
|
|
876
|
-
Spanish: "Spanish",
|
|
877
|
-
} as const;
|
|
878
|
-
/**
|
|
879
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
880
|
-
*/
|
|
881
|
-
export type GetAllPromptsPromptsLanguage = ClosedEnum<
|
|
882
|
-
typeof GetAllPromptsPromptsLanguage
|
|
883
|
-
>;
|
|
884
|
-
|
|
885
|
-
export type GetAllPromptsPromptsMetadata = {
|
|
886
|
-
/**
|
|
887
|
-
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
888
|
-
*/
|
|
889
|
-
useCases?: Array<GetAllPromptsPromptsUseCases> | undefined;
|
|
890
|
-
/**
|
|
891
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
892
|
-
*/
|
|
893
|
-
language?: GetAllPromptsPromptsLanguage | undefined;
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Prompt version model returned from the API
|
|
898
|
-
*/
|
|
899
|
-
export type GetAllPromptsVersions = {
|
|
900
|
-
id: string;
|
|
901
|
-
createdById?: string | undefined;
|
|
902
|
-
updatedById?: string | undefined;
|
|
903
|
-
/**
|
|
904
|
-
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
905
|
-
*/
|
|
906
|
-
description?: string | null | undefined;
|
|
907
|
-
/**
|
|
908
|
-
* A list of messages compatible with the openAI schema
|
|
909
|
-
*/
|
|
910
|
-
promptConfig: GetAllPromptsPromptsPromptConfig;
|
|
911
|
-
metadata: GetAllPromptsPromptsMetadata;
|
|
912
|
-
timestamp: string;
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Prompt model returned from the API
|
|
917
|
-
*/
|
|
918
|
-
export type GetAllPromptsData = {
|
|
919
|
-
id: string;
|
|
920
|
-
owner: string | GetAllPromptsOwner2;
|
|
921
|
-
domainId: string;
|
|
922
|
-
createdById?: string | undefined;
|
|
923
|
-
/**
|
|
924
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
925
|
-
*/
|
|
926
|
-
displayName: string;
|
|
927
|
-
updatedById?: string | undefined;
|
|
928
|
-
/**
|
|
929
|
-
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
930
|
-
*/
|
|
931
|
-
description?: string | null | undefined;
|
|
932
|
-
/**
|
|
933
|
-
* A list of messages compatible with the openAI schema
|
|
934
|
-
*/
|
|
935
|
-
promptConfig: GetAllPromptsPromptConfig;
|
|
936
|
-
metadata: GetAllPromptsMetadata;
|
|
937
|
-
/**
|
|
938
|
-
* The date and time the resource was created
|
|
939
|
-
*/
|
|
940
|
-
created?: Date | undefined;
|
|
941
|
-
/**
|
|
942
|
-
* The date and time the resource was last updated
|
|
943
|
-
*/
|
|
944
|
-
updated?: Date | undefined;
|
|
945
|
-
type: GetAllPromptsType;
|
|
946
|
-
versions: Array<GetAllPromptsVersions>;
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* Prompts retrieved.
|
|
951
|
-
*/
|
|
952
|
-
export type GetAllPromptsResponseBody = {
|
|
953
|
-
object: GetAllPromptsObject;
|
|
954
|
-
data: Array<GetAllPromptsData>;
|
|
955
|
-
hasMore: boolean;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
/** @internal */
|
|
959
|
-
export const GetAllPromptsGlobals$inboundSchema: z.ZodType<
|
|
960
|
-
GetAllPromptsGlobals,
|
|
961
|
-
z.ZodTypeDef,
|
|
962
|
-
unknown
|
|
963
|
-
> = z.object({
|
|
964
|
-
contactId: z.string().optional(),
|
|
965
|
-
});
|
|
966
|
-
|
|
967
|
-
/** @internal */
|
|
968
|
-
export type GetAllPromptsGlobals$Outbound = {
|
|
969
|
-
contactId?: string | undefined;
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
/** @internal */
|
|
973
|
-
export const GetAllPromptsGlobals$outboundSchema: z.ZodType<
|
|
974
|
-
GetAllPromptsGlobals$Outbound,
|
|
975
|
-
z.ZodTypeDef,
|
|
976
|
-
GetAllPromptsGlobals
|
|
977
|
-
> = z.object({
|
|
978
|
-
contactId: z.string().optional(),
|
|
979
|
-
});
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* @internal
|
|
983
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
984
|
-
*/
|
|
985
|
-
export namespace GetAllPromptsGlobals$ {
|
|
986
|
-
/** @deprecated use `GetAllPromptsGlobals$inboundSchema` instead. */
|
|
987
|
-
export const inboundSchema = GetAllPromptsGlobals$inboundSchema;
|
|
988
|
-
/** @deprecated use `GetAllPromptsGlobals$outboundSchema` instead. */
|
|
989
|
-
export const outboundSchema = GetAllPromptsGlobals$outboundSchema;
|
|
990
|
-
/** @deprecated use `GetAllPromptsGlobals$Outbound` instead. */
|
|
991
|
-
export type Outbound = GetAllPromptsGlobals$Outbound;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
export function getAllPromptsGlobalsToJSON(
|
|
995
|
-
getAllPromptsGlobals: GetAllPromptsGlobals,
|
|
996
|
-
): string {
|
|
997
|
-
return JSON.stringify(
|
|
998
|
-
GetAllPromptsGlobals$outboundSchema.parse(getAllPromptsGlobals),
|
|
999
|
-
);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
export function getAllPromptsGlobalsFromJSON(
|
|
1003
|
-
jsonString: string,
|
|
1004
|
-
): SafeParseResult<GetAllPromptsGlobals, SDKValidationError> {
|
|
1005
|
-
return safeParse(
|
|
1006
|
-
jsonString,
|
|
1007
|
-
(x) => GetAllPromptsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
1008
|
-
`Failed to parse 'GetAllPromptsGlobals' from JSON`,
|
|
1009
|
-
);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/** @internal */
|
|
1013
|
-
export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
1014
|
-
GetAllPromptsRequest,
|
|
1015
|
-
z.ZodTypeDef,
|
|
1016
|
-
unknown
|
|
1017
|
-
> = z.object({
|
|
1018
|
-
limit: z.number().default(10),
|
|
1019
|
-
starting_after: z.string().optional(),
|
|
1020
|
-
ending_before: z.string().optional(),
|
|
1021
|
-
}).transform((v) => {
|
|
1022
|
-
return remap$(v, {
|
|
1023
|
-
"starting_after": "startingAfter",
|
|
1024
|
-
"ending_before": "endingBefore",
|
|
1025
|
-
});
|
|
1026
|
-
});
|
|
1027
|
-
|
|
1028
|
-
/** @internal */
|
|
1029
|
-
export type GetAllPromptsRequest$Outbound = {
|
|
1030
|
-
limit: number;
|
|
1031
|
-
starting_after?: string | undefined;
|
|
1032
|
-
ending_before?: string | undefined;
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
/** @internal */
|
|
1036
|
-
export const GetAllPromptsRequest$outboundSchema: z.ZodType<
|
|
1037
|
-
GetAllPromptsRequest$Outbound,
|
|
1038
|
-
z.ZodTypeDef,
|
|
1039
|
-
GetAllPromptsRequest
|
|
1040
|
-
> = z.object({
|
|
1041
|
-
limit: z.number().default(10),
|
|
1042
|
-
startingAfter: z.string().optional(),
|
|
1043
|
-
endingBefore: z.string().optional(),
|
|
1044
|
-
}).transform((v) => {
|
|
1045
|
-
return remap$(v, {
|
|
1046
|
-
startingAfter: "starting_after",
|
|
1047
|
-
endingBefore: "ending_before",
|
|
1048
|
-
});
|
|
1049
|
-
});
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
* @internal
|
|
1053
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1054
|
-
*/
|
|
1055
|
-
export namespace GetAllPromptsRequest$ {
|
|
1056
|
-
/** @deprecated use `GetAllPromptsRequest$inboundSchema` instead. */
|
|
1057
|
-
export const inboundSchema = GetAllPromptsRequest$inboundSchema;
|
|
1058
|
-
/** @deprecated use `GetAllPromptsRequest$outboundSchema` instead. */
|
|
1059
|
-
export const outboundSchema = GetAllPromptsRequest$outboundSchema;
|
|
1060
|
-
/** @deprecated use `GetAllPromptsRequest$Outbound` instead. */
|
|
1061
|
-
export type Outbound = GetAllPromptsRequest$Outbound;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
export function getAllPromptsRequestToJSON(
|
|
1065
|
-
getAllPromptsRequest: GetAllPromptsRequest,
|
|
1066
|
-
): string {
|
|
1067
|
-
return JSON.stringify(
|
|
1068
|
-
GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
|
|
1069
|
-
);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
export function getAllPromptsRequestFromJSON(
|
|
1073
|
-
jsonString: string,
|
|
1074
|
-
): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
|
|
1075
|
-
return safeParse(
|
|
1076
|
-
jsonString,
|
|
1077
|
-
(x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1078
|
-
`Failed to parse 'GetAllPromptsRequest' from JSON`,
|
|
1079
|
-
);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
/** @internal */
|
|
1083
|
-
export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
|
|
1084
|
-
typeof GetAllPromptsObject
|
|
1085
|
-
> = z.nativeEnum(GetAllPromptsObject);
|
|
1086
|
-
|
|
1087
|
-
/** @internal */
|
|
1088
|
-
export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
|
|
1089
|
-
typeof GetAllPromptsObject
|
|
1090
|
-
> = GetAllPromptsObject$inboundSchema;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* @internal
|
|
1094
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
|
-
*/
|
|
1096
|
-
export namespace GetAllPromptsObject$ {
|
|
1097
|
-
/** @deprecated use `GetAllPromptsObject$inboundSchema` instead. */
|
|
1098
|
-
export const inboundSchema = GetAllPromptsObject$inboundSchema;
|
|
1099
|
-
/** @deprecated use `GetAllPromptsObject$outboundSchema` instead. */
|
|
1100
|
-
export const outboundSchema = GetAllPromptsObject$outboundSchema;
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** @internal */
|
|
1104
|
-
export const GetAllPromptsOwner2$inboundSchema: z.ZodNativeEnum<
|
|
1105
|
-
typeof GetAllPromptsOwner2
|
|
1106
|
-
> = z.nativeEnum(GetAllPromptsOwner2);
|
|
1107
|
-
|
|
1108
|
-
/** @internal */
|
|
1109
|
-
export const GetAllPromptsOwner2$outboundSchema: z.ZodNativeEnum<
|
|
1110
|
-
typeof GetAllPromptsOwner2
|
|
1111
|
-
> = GetAllPromptsOwner2$inboundSchema;
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* @internal
|
|
1115
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1116
|
-
*/
|
|
1117
|
-
export namespace GetAllPromptsOwner2$ {
|
|
1118
|
-
/** @deprecated use `GetAllPromptsOwner2$inboundSchema` instead. */
|
|
1119
|
-
export const inboundSchema = GetAllPromptsOwner2$inboundSchema;
|
|
1120
|
-
/** @deprecated use `GetAllPromptsOwner2$outboundSchema` instead. */
|
|
1121
|
-
export const outboundSchema = GetAllPromptsOwner2$outboundSchema;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
/** @internal */
|
|
1125
|
-
export const GetAllPromptsOwner$inboundSchema: z.ZodType<
|
|
1126
|
-
GetAllPromptsOwner,
|
|
1127
|
-
z.ZodTypeDef,
|
|
1128
|
-
unknown
|
|
1129
|
-
> = z.union([z.string(), GetAllPromptsOwner2$inboundSchema]);
|
|
1130
|
-
|
|
1131
|
-
/** @internal */
|
|
1132
|
-
export type GetAllPromptsOwner$Outbound = string | string;
|
|
1133
|
-
|
|
1134
|
-
/** @internal */
|
|
1135
|
-
export const GetAllPromptsOwner$outboundSchema: z.ZodType<
|
|
1136
|
-
GetAllPromptsOwner$Outbound,
|
|
1137
|
-
z.ZodTypeDef,
|
|
1138
|
-
GetAllPromptsOwner
|
|
1139
|
-
> = z.union([z.string(), GetAllPromptsOwner2$outboundSchema]);
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* @internal
|
|
1143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1144
|
-
*/
|
|
1145
|
-
export namespace GetAllPromptsOwner$ {
|
|
1146
|
-
/** @deprecated use `GetAllPromptsOwner$inboundSchema` instead. */
|
|
1147
|
-
export const inboundSchema = GetAllPromptsOwner$inboundSchema;
|
|
1148
|
-
/** @deprecated use `GetAllPromptsOwner$outboundSchema` instead. */
|
|
1149
|
-
export const outboundSchema = GetAllPromptsOwner$outboundSchema;
|
|
1150
|
-
/** @deprecated use `GetAllPromptsOwner$Outbound` instead. */
|
|
1151
|
-
export type Outbound = GetAllPromptsOwner$Outbound;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
export function getAllPromptsOwnerToJSON(
|
|
1155
|
-
getAllPromptsOwner: GetAllPromptsOwner,
|
|
1156
|
-
): string {
|
|
1157
|
-
return JSON.stringify(
|
|
1158
|
-
GetAllPromptsOwner$outboundSchema.parse(getAllPromptsOwner),
|
|
1159
|
-
);
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
export function getAllPromptsOwnerFromJSON(
|
|
1163
|
-
jsonString: string,
|
|
1164
|
-
): SafeParseResult<GetAllPromptsOwner, SDKValidationError> {
|
|
1165
|
-
return safeParse(
|
|
1166
|
-
jsonString,
|
|
1167
|
-
(x) => GetAllPromptsOwner$inboundSchema.parse(JSON.parse(x)),
|
|
1168
|
-
`Failed to parse 'GetAllPromptsOwner' from JSON`,
|
|
1169
|
-
);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/** @internal */
|
|
1173
|
-
export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
|
|
1174
|
-
typeof GetAllPromptsModelType
|
|
1175
|
-
> = z.nativeEnum(GetAllPromptsModelType);
|
|
1176
|
-
|
|
1177
|
-
/** @internal */
|
|
1178
|
-
export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
|
|
1179
|
-
typeof GetAllPromptsModelType
|
|
1180
|
-
> = GetAllPromptsModelType$inboundSchema;
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* @internal
|
|
1184
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1185
|
-
*/
|
|
1186
|
-
export namespace GetAllPromptsModelType$ {
|
|
1187
|
-
/** @deprecated use `GetAllPromptsModelType$inboundSchema` instead. */
|
|
1188
|
-
export const inboundSchema = GetAllPromptsModelType$inboundSchema;
|
|
1189
|
-
/** @deprecated use `GetAllPromptsModelType$outboundSchema` instead. */
|
|
1190
|
-
export const outboundSchema = GetAllPromptsModelType$outboundSchema;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/** @internal */
|
|
1194
|
-
export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
1195
|
-
typeof GetAllPromptsFormat
|
|
1196
|
-
> = z.nativeEnum(GetAllPromptsFormat);
|
|
1197
|
-
|
|
1198
|
-
/** @internal */
|
|
1199
|
-
export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
1200
|
-
typeof GetAllPromptsFormat
|
|
1201
|
-
> = GetAllPromptsFormat$inboundSchema;
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* @internal
|
|
1205
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1206
|
-
*/
|
|
1207
|
-
export namespace GetAllPromptsFormat$ {
|
|
1208
|
-
/** @deprecated use `GetAllPromptsFormat$inboundSchema` instead. */
|
|
1209
|
-
export const inboundSchema = GetAllPromptsFormat$inboundSchema;
|
|
1210
|
-
/** @deprecated use `GetAllPromptsFormat$outboundSchema` instead. */
|
|
1211
|
-
export const outboundSchema = GetAllPromptsFormat$outboundSchema;
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
/** @internal */
|
|
1215
|
-
export const GetAllPromptsQuality$inboundSchema: z.ZodNativeEnum<
|
|
1216
|
-
typeof GetAllPromptsQuality
|
|
1217
|
-
> = z.nativeEnum(GetAllPromptsQuality);
|
|
1218
|
-
|
|
1219
|
-
/** @internal */
|
|
1220
|
-
export const GetAllPromptsQuality$outboundSchema: z.ZodNativeEnum<
|
|
1221
|
-
typeof GetAllPromptsQuality
|
|
1222
|
-
> = GetAllPromptsQuality$inboundSchema;
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* @internal
|
|
1226
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1227
|
-
*/
|
|
1228
|
-
export namespace GetAllPromptsQuality$ {
|
|
1229
|
-
/** @deprecated use `GetAllPromptsQuality$inboundSchema` instead. */
|
|
1230
|
-
export const inboundSchema = GetAllPromptsQuality$inboundSchema;
|
|
1231
|
-
/** @deprecated use `GetAllPromptsQuality$outboundSchema` instead. */
|
|
1232
|
-
export const outboundSchema = GetAllPromptsQuality$outboundSchema;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
|
|
1237
|
-
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
|
|
1238
|
-
GetAllPromptsResponseFormatPromptsType,
|
|
1239
|
-
);
|
|
1240
|
-
|
|
1241
|
-
/** @internal */
|
|
1242
|
-
export const GetAllPromptsResponseFormatPromptsType$outboundSchema:
|
|
1243
|
-
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> =
|
|
1244
|
-
GetAllPromptsResponseFormatPromptsType$inboundSchema;
|
|
1245
|
-
|
|
1246
|
-
/**
|
|
1247
|
-
* @internal
|
|
1248
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1249
|
-
*/
|
|
1250
|
-
export namespace GetAllPromptsResponseFormatPromptsType$ {
|
|
1251
|
-
/** @deprecated use `GetAllPromptsResponseFormatPromptsType$inboundSchema` instead. */
|
|
1252
|
-
export const inboundSchema =
|
|
1253
|
-
GetAllPromptsResponseFormatPromptsType$inboundSchema;
|
|
1254
|
-
/** @deprecated use `GetAllPromptsResponseFormatPromptsType$outboundSchema` instead. */
|
|
1255
|
-
export const outboundSchema =
|
|
1256
|
-
GetAllPromptsResponseFormatPromptsType$outboundSchema;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
/** @internal */
|
|
1260
|
-
export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
|
|
1261
|
-
GetAllPromptsResponseFormat2,
|
|
1262
|
-
z.ZodTypeDef,
|
|
1263
|
-
unknown
|
|
1264
|
-
> = z.object({
|
|
1265
|
-
type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
|
|
1266
|
-
});
|
|
1267
|
-
|
|
1268
|
-
/** @internal */
|
|
1269
|
-
export type GetAllPromptsResponseFormat2$Outbound = {
|
|
1270
|
-
type: string;
|
|
1271
|
-
};
|
|
1272
|
-
|
|
1273
|
-
/** @internal */
|
|
1274
|
-
export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
|
|
1275
|
-
GetAllPromptsResponseFormat2$Outbound,
|
|
1276
|
-
z.ZodTypeDef,
|
|
1277
|
-
GetAllPromptsResponseFormat2
|
|
1278
|
-
> = z.object({
|
|
1279
|
-
type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
|
|
1280
|
-
});
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* @internal
|
|
1284
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1285
|
-
*/
|
|
1286
|
-
export namespace GetAllPromptsResponseFormat2$ {
|
|
1287
|
-
/** @deprecated use `GetAllPromptsResponseFormat2$inboundSchema` instead. */
|
|
1288
|
-
export const inboundSchema = GetAllPromptsResponseFormat2$inboundSchema;
|
|
1289
|
-
/** @deprecated use `GetAllPromptsResponseFormat2$outboundSchema` instead. */
|
|
1290
|
-
export const outboundSchema = GetAllPromptsResponseFormat2$outboundSchema;
|
|
1291
|
-
/** @deprecated use `GetAllPromptsResponseFormat2$Outbound` instead. */
|
|
1292
|
-
export type Outbound = GetAllPromptsResponseFormat2$Outbound;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
export function getAllPromptsResponseFormat2ToJSON(
|
|
1296
|
-
getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
|
|
1297
|
-
): string {
|
|
1298
|
-
return JSON.stringify(
|
|
1299
|
-
GetAllPromptsResponseFormat2$outboundSchema.parse(
|
|
1300
|
-
getAllPromptsResponseFormat2,
|
|
1301
|
-
),
|
|
1302
|
-
);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
export function getAllPromptsResponseFormat2FromJSON(
|
|
1306
|
-
jsonString: string,
|
|
1307
|
-
): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
|
|
1308
|
-
return safeParse(
|
|
1309
|
-
jsonString,
|
|
1310
|
-
(x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1311
|
-
`Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
|
|
1312
|
-
);
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/** @internal */
|
|
1316
|
-
export const GetAllPromptsResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1317
|
-
typeof GetAllPromptsResponseFormatType
|
|
1318
|
-
> = z.nativeEnum(GetAllPromptsResponseFormatType);
|
|
1319
|
-
|
|
1320
|
-
/** @internal */
|
|
1321
|
-
export const GetAllPromptsResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1322
|
-
typeof GetAllPromptsResponseFormatType
|
|
1323
|
-
> = GetAllPromptsResponseFormatType$inboundSchema;
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* @internal
|
|
1327
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1328
|
-
*/
|
|
1329
|
-
export namespace GetAllPromptsResponseFormatType$ {
|
|
1330
|
-
/** @deprecated use `GetAllPromptsResponseFormatType$inboundSchema` instead. */
|
|
1331
|
-
export const inboundSchema = GetAllPromptsResponseFormatType$inboundSchema;
|
|
1332
|
-
/** @deprecated use `GetAllPromptsResponseFormatType$outboundSchema` instead. */
|
|
1333
|
-
export const outboundSchema = GetAllPromptsResponseFormatType$outboundSchema;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
/** @internal */
|
|
1337
|
-
export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1338
|
-
GetAllPromptsResponseFormatJsonSchema,
|
|
1339
|
-
z.ZodTypeDef,
|
|
1340
|
-
unknown
|
|
1341
|
-
> = z.object({
|
|
1342
|
-
name: z.string(),
|
|
1343
|
-
strict: z.boolean(),
|
|
1344
|
-
schema: z.record(z.any()),
|
|
1345
|
-
});
|
|
1346
|
-
|
|
1347
|
-
/** @internal */
|
|
1348
|
-
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
1349
|
-
name: string;
|
|
1350
|
-
strict: boolean;
|
|
1351
|
-
schema: { [k: string]: any };
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
/** @internal */
|
|
1355
|
-
export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1356
|
-
GetAllPromptsResponseFormatJsonSchema$Outbound,
|
|
1357
|
-
z.ZodTypeDef,
|
|
1358
|
-
GetAllPromptsResponseFormatJsonSchema
|
|
1359
|
-
> = z.object({
|
|
1360
|
-
name: z.string(),
|
|
1361
|
-
strict: z.boolean(),
|
|
1362
|
-
schema: z.record(z.any()),
|
|
1363
|
-
});
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* @internal
|
|
1367
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1368
|
-
*/
|
|
1369
|
-
export namespace GetAllPromptsResponseFormatJsonSchema$ {
|
|
1370
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1371
|
-
export const inboundSchema =
|
|
1372
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema;
|
|
1373
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1374
|
-
export const outboundSchema =
|
|
1375
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema;
|
|
1376
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
|
|
1377
|
-
export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
export function getAllPromptsResponseFormatJsonSchemaToJSON(
|
|
1381
|
-
getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
|
|
1382
|
-
): string {
|
|
1383
|
-
return JSON.stringify(
|
|
1384
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
|
|
1385
|
-
getAllPromptsResponseFormatJsonSchema,
|
|
1386
|
-
),
|
|
1387
|
-
);
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
export function getAllPromptsResponseFormatJsonSchemaFromJSON(
|
|
1391
|
-
jsonString: string,
|
|
1392
|
-
): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
|
|
1393
|
-
return safeParse(
|
|
1394
|
-
jsonString,
|
|
1395
|
-
(x) =>
|
|
1396
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1397
|
-
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
1398
|
-
);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/** @internal */
|
|
1402
|
-
export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
|
|
1403
|
-
GetAllPromptsResponseFormat1,
|
|
1404
|
-
z.ZodTypeDef,
|
|
1405
|
-
unknown
|
|
1406
|
-
> = z.object({
|
|
1407
|
-
type: GetAllPromptsResponseFormatType$inboundSchema,
|
|
1408
|
-
json_schema: z.lazy(() =>
|
|
1409
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema
|
|
1410
|
-
),
|
|
1411
|
-
}).transform((v) => {
|
|
1412
|
-
return remap$(v, {
|
|
1413
|
-
"json_schema": "jsonSchema",
|
|
1414
|
-
});
|
|
1415
|
-
});
|
|
1416
|
-
|
|
1417
|
-
/** @internal */
|
|
1418
|
-
export type GetAllPromptsResponseFormat1$Outbound = {
|
|
1419
|
-
type: string;
|
|
1420
|
-
json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
/** @internal */
|
|
1424
|
-
export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
|
|
1425
|
-
GetAllPromptsResponseFormat1$Outbound,
|
|
1426
|
-
z.ZodTypeDef,
|
|
1427
|
-
GetAllPromptsResponseFormat1
|
|
1428
|
-
> = z.object({
|
|
1429
|
-
type: GetAllPromptsResponseFormatType$outboundSchema,
|
|
1430
|
-
jsonSchema: z.lazy(() =>
|
|
1431
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema
|
|
1432
|
-
),
|
|
1433
|
-
}).transform((v) => {
|
|
1434
|
-
return remap$(v, {
|
|
1435
|
-
jsonSchema: "json_schema",
|
|
1436
|
-
});
|
|
1437
|
-
});
|
|
1438
|
-
|
|
1439
|
-
/**
|
|
1440
|
-
* @internal
|
|
1441
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1442
|
-
*/
|
|
1443
|
-
export namespace GetAllPromptsResponseFormat1$ {
|
|
1444
|
-
/** @deprecated use `GetAllPromptsResponseFormat1$inboundSchema` instead. */
|
|
1445
|
-
export const inboundSchema = GetAllPromptsResponseFormat1$inboundSchema;
|
|
1446
|
-
/** @deprecated use `GetAllPromptsResponseFormat1$outboundSchema` instead. */
|
|
1447
|
-
export const outboundSchema = GetAllPromptsResponseFormat1$outboundSchema;
|
|
1448
|
-
/** @deprecated use `GetAllPromptsResponseFormat1$Outbound` instead. */
|
|
1449
|
-
export type Outbound = GetAllPromptsResponseFormat1$Outbound;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
export function getAllPromptsResponseFormat1ToJSON(
|
|
1453
|
-
getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
|
|
1454
|
-
): string {
|
|
1455
|
-
return JSON.stringify(
|
|
1456
|
-
GetAllPromptsResponseFormat1$outboundSchema.parse(
|
|
1457
|
-
getAllPromptsResponseFormat1,
|
|
1458
|
-
),
|
|
1459
|
-
);
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
export function getAllPromptsResponseFormat1FromJSON(
|
|
1463
|
-
jsonString: string,
|
|
1464
|
-
): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
|
|
1465
|
-
return safeParse(
|
|
1466
|
-
jsonString,
|
|
1467
|
-
(x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1468
|
-
`Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
|
|
1469
|
-
);
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
/** @internal */
|
|
1473
|
-
export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
1474
|
-
GetAllPromptsResponseFormat,
|
|
1475
|
-
z.ZodTypeDef,
|
|
1476
|
-
unknown
|
|
1477
|
-
> = z.union([
|
|
1478
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1479
|
-
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1480
|
-
]);
|
|
1481
|
-
|
|
1482
|
-
/** @internal */
|
|
1483
|
-
export type GetAllPromptsResponseFormat$Outbound =
|
|
1484
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1485
|
-
| GetAllPromptsResponseFormat1$Outbound;
|
|
1486
|
-
|
|
1487
|
-
/** @internal */
|
|
1488
|
-
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
1489
|
-
GetAllPromptsResponseFormat$Outbound,
|
|
1490
|
-
z.ZodTypeDef,
|
|
1491
|
-
GetAllPromptsResponseFormat
|
|
1492
|
-
> = z.union([
|
|
1493
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1494
|
-
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1495
|
-
]);
|
|
1496
|
-
|
|
1497
|
-
/**
|
|
1498
|
-
* @internal
|
|
1499
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1500
|
-
*/
|
|
1501
|
-
export namespace GetAllPromptsResponseFormat$ {
|
|
1502
|
-
/** @deprecated use `GetAllPromptsResponseFormat$inboundSchema` instead. */
|
|
1503
|
-
export const inboundSchema = GetAllPromptsResponseFormat$inboundSchema;
|
|
1504
|
-
/** @deprecated use `GetAllPromptsResponseFormat$outboundSchema` instead. */
|
|
1505
|
-
export const outboundSchema = GetAllPromptsResponseFormat$outboundSchema;
|
|
1506
|
-
/** @deprecated use `GetAllPromptsResponseFormat$Outbound` instead. */
|
|
1507
|
-
export type Outbound = GetAllPromptsResponseFormat$Outbound;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
export function getAllPromptsResponseFormatToJSON(
|
|
1511
|
-
getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
|
|
1512
|
-
): string {
|
|
1513
|
-
return JSON.stringify(
|
|
1514
|
-
GetAllPromptsResponseFormat$outboundSchema.parse(
|
|
1515
|
-
getAllPromptsResponseFormat,
|
|
1516
|
-
),
|
|
1517
|
-
);
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export function getAllPromptsResponseFormatFromJSON(
|
|
1521
|
-
jsonString: string,
|
|
1522
|
-
): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
|
|
1523
|
-
return safeParse(
|
|
1524
|
-
jsonString,
|
|
1525
|
-
(x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1526
|
-
`Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
|
|
1527
|
-
);
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/** @internal */
|
|
1531
|
-
export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1532
|
-
typeof GetAllPromptsPhotoRealVersion
|
|
1533
|
-
> = z.nativeEnum(GetAllPromptsPhotoRealVersion);
|
|
1534
|
-
|
|
1535
|
-
/** @internal */
|
|
1536
|
-
export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1537
|
-
typeof GetAllPromptsPhotoRealVersion
|
|
1538
|
-
> = GetAllPromptsPhotoRealVersion$inboundSchema;
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* @internal
|
|
1542
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1543
|
-
*/
|
|
1544
|
-
export namespace GetAllPromptsPhotoRealVersion$ {
|
|
1545
|
-
/** @deprecated use `GetAllPromptsPhotoRealVersion$inboundSchema` instead. */
|
|
1546
|
-
export const inboundSchema = GetAllPromptsPhotoRealVersion$inboundSchema;
|
|
1547
|
-
/** @deprecated use `GetAllPromptsPhotoRealVersion$outboundSchema` instead. */
|
|
1548
|
-
export const outboundSchema = GetAllPromptsPhotoRealVersion$outboundSchema;
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
/** @internal */
|
|
1552
|
-
export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1553
|
-
typeof GetAllPromptsEncodingFormat
|
|
1554
|
-
> = z.nativeEnum(GetAllPromptsEncodingFormat);
|
|
1555
|
-
|
|
1556
|
-
/** @internal */
|
|
1557
|
-
export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1558
|
-
typeof GetAllPromptsEncodingFormat
|
|
1559
|
-
> = GetAllPromptsEncodingFormat$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 GetAllPromptsEncodingFormat$ {
|
|
1566
|
-
/** @deprecated use `GetAllPromptsEncodingFormat$inboundSchema` instead. */
|
|
1567
|
-
export const inboundSchema = GetAllPromptsEncodingFormat$inboundSchema;
|
|
1568
|
-
/** @deprecated use `GetAllPromptsEncodingFormat$outboundSchema` instead. */
|
|
1569
|
-
export const outboundSchema = GetAllPromptsEncodingFormat$outboundSchema;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
/** @internal */
|
|
1573
|
-
export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1574
|
-
typeof GetAllPromptsReasoningEffort
|
|
1575
|
-
> = z.nativeEnum(GetAllPromptsReasoningEffort);
|
|
1576
|
-
|
|
1577
|
-
/** @internal */
|
|
1578
|
-
export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1579
|
-
typeof GetAllPromptsReasoningEffort
|
|
1580
|
-
> = GetAllPromptsReasoningEffort$inboundSchema;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* @internal
|
|
1584
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1585
|
-
*/
|
|
1586
|
-
export namespace GetAllPromptsReasoningEffort$ {
|
|
1587
|
-
/** @deprecated use `GetAllPromptsReasoningEffort$inboundSchema` instead. */
|
|
1588
|
-
export const inboundSchema = GetAllPromptsReasoningEffort$inboundSchema;
|
|
1589
|
-
/** @deprecated use `GetAllPromptsReasoningEffort$outboundSchema` instead. */
|
|
1590
|
-
export const outboundSchema = GetAllPromptsReasoningEffort$outboundSchema;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
/** @internal */
|
|
1594
|
-
export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
1595
|
-
GetAllPromptsModelParameters,
|
|
1596
|
-
z.ZodTypeDef,
|
|
1597
|
-
unknown
|
|
1598
|
-
> = z.object({
|
|
1599
|
-
temperature: z.number().optional(),
|
|
1600
|
-
maxTokens: z.number().optional(),
|
|
1601
|
-
topK: z.number().optional(),
|
|
1602
|
-
topP: z.number().optional(),
|
|
1603
|
-
frequencyPenalty: z.number().optional(),
|
|
1604
|
-
presencePenalty: z.number().optional(),
|
|
1605
|
-
numImages: z.number().optional(),
|
|
1606
|
-
seed: z.number().optional(),
|
|
1607
|
-
format: GetAllPromptsFormat$inboundSchema.optional(),
|
|
1608
|
-
dimensions: z.string().optional(),
|
|
1609
|
-
quality: GetAllPromptsQuality$inboundSchema.optional(),
|
|
1610
|
-
style: z.string().optional(),
|
|
1611
|
-
responseFormat: z.nullable(
|
|
1612
|
-
z.union([
|
|
1613
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1614
|
-
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1615
|
-
]),
|
|
1616
|
-
).optional(),
|
|
1617
|
-
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
1618
|
-
encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
|
|
1619
|
-
reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
|
|
1620
|
-
}).transform((v) => {
|
|
1621
|
-
return remap$(v, {
|
|
1622
|
-
"encoding_format": "encodingFormat",
|
|
1623
|
-
});
|
|
1624
|
-
});
|
|
1625
|
-
|
|
1626
|
-
/** @internal */
|
|
1627
|
-
export type GetAllPromptsModelParameters$Outbound = {
|
|
1628
|
-
temperature?: number | undefined;
|
|
1629
|
-
maxTokens?: number | undefined;
|
|
1630
|
-
topK?: number | undefined;
|
|
1631
|
-
topP?: number | undefined;
|
|
1632
|
-
frequencyPenalty?: number | undefined;
|
|
1633
|
-
presencePenalty?: number | undefined;
|
|
1634
|
-
numImages?: number | undefined;
|
|
1635
|
-
seed?: number | undefined;
|
|
1636
|
-
format?: string | undefined;
|
|
1637
|
-
dimensions?: string | undefined;
|
|
1638
|
-
quality?: string | undefined;
|
|
1639
|
-
style?: string | undefined;
|
|
1640
|
-
responseFormat?:
|
|
1641
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1642
|
-
| GetAllPromptsResponseFormat1$Outbound
|
|
1643
|
-
| null
|
|
1644
|
-
| undefined;
|
|
1645
|
-
photoRealVersion?: string | undefined;
|
|
1646
|
-
encoding_format?: string | undefined;
|
|
1647
|
-
reasoningEffort?: string | undefined;
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
/** @internal */
|
|
1651
|
-
export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
1652
|
-
GetAllPromptsModelParameters$Outbound,
|
|
1653
|
-
z.ZodTypeDef,
|
|
1654
|
-
GetAllPromptsModelParameters
|
|
1655
|
-
> = z.object({
|
|
1656
|
-
temperature: z.number().optional(),
|
|
1657
|
-
maxTokens: z.number().optional(),
|
|
1658
|
-
topK: z.number().optional(),
|
|
1659
|
-
topP: z.number().optional(),
|
|
1660
|
-
frequencyPenalty: z.number().optional(),
|
|
1661
|
-
presencePenalty: z.number().optional(),
|
|
1662
|
-
numImages: z.number().optional(),
|
|
1663
|
-
seed: z.number().optional(),
|
|
1664
|
-
format: GetAllPromptsFormat$outboundSchema.optional(),
|
|
1665
|
-
dimensions: z.string().optional(),
|
|
1666
|
-
quality: GetAllPromptsQuality$outboundSchema.optional(),
|
|
1667
|
-
style: z.string().optional(),
|
|
1668
|
-
responseFormat: z.nullable(
|
|
1669
|
-
z.union([
|
|
1670
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1671
|
-
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1672
|
-
]),
|
|
1673
|
-
).optional(),
|
|
1674
|
-
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
1675
|
-
encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
|
|
1676
|
-
reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
|
|
1677
|
-
}).transform((v) => {
|
|
1678
|
-
return remap$(v, {
|
|
1679
|
-
encodingFormat: "encoding_format",
|
|
1680
|
-
});
|
|
1681
|
-
});
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* @internal
|
|
1685
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1686
|
-
*/
|
|
1687
|
-
export namespace GetAllPromptsModelParameters$ {
|
|
1688
|
-
/** @deprecated use `GetAllPromptsModelParameters$inboundSchema` instead. */
|
|
1689
|
-
export const inboundSchema = GetAllPromptsModelParameters$inboundSchema;
|
|
1690
|
-
/** @deprecated use `GetAllPromptsModelParameters$outboundSchema` instead. */
|
|
1691
|
-
export const outboundSchema = GetAllPromptsModelParameters$outboundSchema;
|
|
1692
|
-
/** @deprecated use `GetAllPromptsModelParameters$Outbound` instead. */
|
|
1693
|
-
export type Outbound = GetAllPromptsModelParameters$Outbound;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
export function getAllPromptsModelParametersToJSON(
|
|
1697
|
-
getAllPromptsModelParameters: GetAllPromptsModelParameters,
|
|
1698
|
-
): string {
|
|
1699
|
-
return JSON.stringify(
|
|
1700
|
-
GetAllPromptsModelParameters$outboundSchema.parse(
|
|
1701
|
-
getAllPromptsModelParameters,
|
|
1702
|
-
),
|
|
1703
|
-
);
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
export function getAllPromptsModelParametersFromJSON(
|
|
1707
|
-
jsonString: string,
|
|
1708
|
-
): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
|
|
1709
|
-
return safeParse(
|
|
1710
|
-
jsonString,
|
|
1711
|
-
(x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1712
|
-
`Failed to parse 'GetAllPromptsModelParameters' from JSON`,
|
|
1713
|
-
);
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
/** @internal */
|
|
1717
|
-
export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
|
|
1718
|
-
typeof GetAllPromptsProvider
|
|
1719
|
-
> = z.nativeEnum(GetAllPromptsProvider);
|
|
1720
|
-
|
|
1721
|
-
/** @internal */
|
|
1722
|
-
export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1723
|
-
typeof GetAllPromptsProvider
|
|
1724
|
-
> = GetAllPromptsProvider$inboundSchema;
|
|
1725
|
-
|
|
1726
|
-
/**
|
|
1727
|
-
* @internal
|
|
1728
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1729
|
-
*/
|
|
1730
|
-
export namespace GetAllPromptsProvider$ {
|
|
1731
|
-
/** @deprecated use `GetAllPromptsProvider$inboundSchema` instead. */
|
|
1732
|
-
export const inboundSchema = GetAllPromptsProvider$inboundSchema;
|
|
1733
|
-
/** @deprecated use `GetAllPromptsProvider$outboundSchema` instead. */
|
|
1734
|
-
export const outboundSchema = GetAllPromptsProvider$outboundSchema;
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
/** @internal */
|
|
1738
|
-
export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
|
|
1739
|
-
typeof GetAllPromptsRole
|
|
1740
|
-
> = z.nativeEnum(GetAllPromptsRole);
|
|
1741
|
-
|
|
1742
|
-
/** @internal */
|
|
1743
|
-
export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
|
|
1744
|
-
typeof GetAllPromptsRole
|
|
1745
|
-
> = GetAllPromptsRole$inboundSchema;
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* @internal
|
|
1749
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1750
|
-
*/
|
|
1751
|
-
export namespace GetAllPromptsRole$ {
|
|
1752
|
-
/** @deprecated use `GetAllPromptsRole$inboundSchema` instead. */
|
|
1753
|
-
export const inboundSchema = GetAllPromptsRole$inboundSchema;
|
|
1754
|
-
/** @deprecated use `GetAllPromptsRole$outboundSchema` instead. */
|
|
1755
|
-
export const outboundSchema = GetAllPromptsRole$outboundSchema;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
/** @internal */
|
|
1759
|
-
export const GetAllPrompts2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1760
|
-
typeof GetAllPrompts2PromptsType
|
|
1761
|
-
> = z.nativeEnum(GetAllPrompts2PromptsType);
|
|
1762
|
-
|
|
1763
|
-
/** @internal */
|
|
1764
|
-
export const GetAllPrompts2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1765
|
-
typeof GetAllPrompts2PromptsType
|
|
1766
|
-
> = GetAllPrompts2PromptsType$inboundSchema;
|
|
1767
|
-
|
|
1768
|
-
/**
|
|
1769
|
-
* @internal
|
|
1770
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1771
|
-
*/
|
|
1772
|
-
export namespace GetAllPrompts2PromptsType$ {
|
|
1773
|
-
/** @deprecated use `GetAllPrompts2PromptsType$inboundSchema` instead. */
|
|
1774
|
-
export const inboundSchema = GetAllPrompts2PromptsType$inboundSchema;
|
|
1775
|
-
/** @deprecated use `GetAllPrompts2PromptsType$outboundSchema` instead. */
|
|
1776
|
-
export const outboundSchema = GetAllPrompts2PromptsType$outboundSchema;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
/** @internal */
|
|
1780
|
-
export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
|
|
1781
|
-
GetAllPrompts2ImageUrl,
|
|
1782
|
-
z.ZodTypeDef,
|
|
1783
|
-
unknown
|
|
1784
|
-
> = z.object({
|
|
1785
|
-
id: z.string().optional(),
|
|
1786
|
-
url: z.string(),
|
|
1787
|
-
detail: z.string().optional(),
|
|
1788
|
-
});
|
|
1789
|
-
|
|
1790
|
-
/** @internal */
|
|
1791
|
-
export type GetAllPrompts2ImageUrl$Outbound = {
|
|
1792
|
-
id?: string | undefined;
|
|
1793
|
-
url: string;
|
|
1794
|
-
detail?: string | undefined;
|
|
1795
|
-
};
|
|
1796
|
-
|
|
1797
|
-
/** @internal */
|
|
1798
|
-
export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
|
|
1799
|
-
GetAllPrompts2ImageUrl$Outbound,
|
|
1800
|
-
z.ZodTypeDef,
|
|
1801
|
-
GetAllPrompts2ImageUrl
|
|
1802
|
-
> = z.object({
|
|
1803
|
-
id: z.string().optional(),
|
|
1804
|
-
url: z.string(),
|
|
1805
|
-
detail: z.string().optional(),
|
|
1806
|
-
});
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* @internal
|
|
1810
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1811
|
-
*/
|
|
1812
|
-
export namespace GetAllPrompts2ImageUrl$ {
|
|
1813
|
-
/** @deprecated use `GetAllPrompts2ImageUrl$inboundSchema` instead. */
|
|
1814
|
-
export const inboundSchema = GetAllPrompts2ImageUrl$inboundSchema;
|
|
1815
|
-
/** @deprecated use `GetAllPrompts2ImageUrl$outboundSchema` instead. */
|
|
1816
|
-
export const outboundSchema = GetAllPrompts2ImageUrl$outboundSchema;
|
|
1817
|
-
/** @deprecated use `GetAllPrompts2ImageUrl$Outbound` instead. */
|
|
1818
|
-
export type Outbound = GetAllPrompts2ImageUrl$Outbound;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
export function getAllPrompts2ImageUrlToJSON(
|
|
1822
|
-
getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
|
|
1823
|
-
): string {
|
|
1824
|
-
return JSON.stringify(
|
|
1825
|
-
GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
|
|
1826
|
-
);
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
export function getAllPrompts2ImageUrlFromJSON(
|
|
1830
|
-
jsonString: string,
|
|
1831
|
-
): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
|
|
1832
|
-
return safeParse(
|
|
1833
|
-
jsonString,
|
|
1834
|
-
(x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1835
|
-
`Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
|
|
1836
|
-
);
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
/** @internal */
|
|
1840
|
-
export const GetAllPrompts22$inboundSchema: z.ZodType<
|
|
1841
|
-
GetAllPrompts22,
|
|
1842
|
-
z.ZodTypeDef,
|
|
1843
|
-
unknown
|
|
1844
|
-
> = z.object({
|
|
1845
|
-
type: GetAllPrompts2PromptsType$inboundSchema,
|
|
1846
|
-
image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
|
|
1847
|
-
}).transform((v) => {
|
|
1848
|
-
return remap$(v, {
|
|
1849
|
-
"image_url": "imageUrl",
|
|
1850
|
-
});
|
|
1851
|
-
});
|
|
1852
|
-
|
|
1853
|
-
/** @internal */
|
|
1854
|
-
export type GetAllPrompts22$Outbound = {
|
|
1855
|
-
type: string;
|
|
1856
|
-
image_url: GetAllPrompts2ImageUrl$Outbound;
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
/** @internal */
|
|
1860
|
-
export const GetAllPrompts22$outboundSchema: z.ZodType<
|
|
1861
|
-
GetAllPrompts22$Outbound,
|
|
1862
|
-
z.ZodTypeDef,
|
|
1863
|
-
GetAllPrompts22
|
|
1864
|
-
> = z.object({
|
|
1865
|
-
type: GetAllPrompts2PromptsType$outboundSchema,
|
|
1866
|
-
imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
|
|
1867
|
-
}).transform((v) => {
|
|
1868
|
-
return remap$(v, {
|
|
1869
|
-
imageUrl: "image_url",
|
|
1870
|
-
});
|
|
1871
|
-
});
|
|
1872
|
-
|
|
1873
|
-
/**
|
|
1874
|
-
* @internal
|
|
1875
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1876
|
-
*/
|
|
1877
|
-
export namespace GetAllPrompts22$ {
|
|
1878
|
-
/** @deprecated use `GetAllPrompts22$inboundSchema` instead. */
|
|
1879
|
-
export const inboundSchema = GetAllPrompts22$inboundSchema;
|
|
1880
|
-
/** @deprecated use `GetAllPrompts22$outboundSchema` instead. */
|
|
1881
|
-
export const outboundSchema = GetAllPrompts22$outboundSchema;
|
|
1882
|
-
/** @deprecated use `GetAllPrompts22$Outbound` instead. */
|
|
1883
|
-
export type Outbound = GetAllPrompts22$Outbound;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
export function getAllPrompts22ToJSON(
|
|
1887
|
-
getAllPrompts22: GetAllPrompts22,
|
|
1888
|
-
): string {
|
|
1889
|
-
return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
export function getAllPrompts22FromJSON(
|
|
1893
|
-
jsonString: string,
|
|
1894
|
-
): SafeParseResult<GetAllPrompts22, SDKValidationError> {
|
|
1895
|
-
return safeParse(
|
|
1896
|
-
jsonString,
|
|
1897
|
-
(x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
|
|
1898
|
-
`Failed to parse 'GetAllPrompts22' from JSON`,
|
|
1899
|
-
);
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
/** @internal */
|
|
1903
|
-
export const GetAllPrompts2Type$inboundSchema: z.ZodNativeEnum<
|
|
1904
|
-
typeof GetAllPrompts2Type
|
|
1905
|
-
> = z.nativeEnum(GetAllPrompts2Type);
|
|
1906
|
-
|
|
1907
|
-
/** @internal */
|
|
1908
|
-
export const GetAllPrompts2Type$outboundSchema: z.ZodNativeEnum<
|
|
1909
|
-
typeof GetAllPrompts2Type
|
|
1910
|
-
> = GetAllPrompts2Type$inboundSchema;
|
|
1911
|
-
|
|
1912
|
-
/**
|
|
1913
|
-
* @internal
|
|
1914
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1915
|
-
*/
|
|
1916
|
-
export namespace GetAllPrompts2Type$ {
|
|
1917
|
-
/** @deprecated use `GetAllPrompts2Type$inboundSchema` instead. */
|
|
1918
|
-
export const inboundSchema = GetAllPrompts2Type$inboundSchema;
|
|
1919
|
-
/** @deprecated use `GetAllPrompts2Type$outboundSchema` instead. */
|
|
1920
|
-
export const outboundSchema = GetAllPrompts2Type$outboundSchema;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
/** @internal */
|
|
1924
|
-
export const GetAllPrompts21$inboundSchema: z.ZodType<
|
|
1925
|
-
GetAllPrompts21,
|
|
1926
|
-
z.ZodTypeDef,
|
|
1927
|
-
unknown
|
|
1928
|
-
> = z.object({
|
|
1929
|
-
type: GetAllPrompts2Type$inboundSchema,
|
|
1930
|
-
text: z.string(),
|
|
1931
|
-
});
|
|
1932
|
-
|
|
1933
|
-
/** @internal */
|
|
1934
|
-
export type GetAllPrompts21$Outbound = {
|
|
1935
|
-
type: string;
|
|
1936
|
-
text: string;
|
|
1937
|
-
};
|
|
1938
|
-
|
|
1939
|
-
/** @internal */
|
|
1940
|
-
export const GetAllPrompts21$outboundSchema: z.ZodType<
|
|
1941
|
-
GetAllPrompts21$Outbound,
|
|
1942
|
-
z.ZodTypeDef,
|
|
1943
|
-
GetAllPrompts21
|
|
1944
|
-
> = z.object({
|
|
1945
|
-
type: GetAllPrompts2Type$outboundSchema,
|
|
1946
|
-
text: z.string(),
|
|
1947
|
-
});
|
|
1948
|
-
|
|
1949
|
-
/**
|
|
1950
|
-
* @internal
|
|
1951
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1952
|
-
*/
|
|
1953
|
-
export namespace GetAllPrompts21$ {
|
|
1954
|
-
/** @deprecated use `GetAllPrompts21$inboundSchema` instead. */
|
|
1955
|
-
export const inboundSchema = GetAllPrompts21$inboundSchema;
|
|
1956
|
-
/** @deprecated use `GetAllPrompts21$outboundSchema` instead. */
|
|
1957
|
-
export const outboundSchema = GetAllPrompts21$outboundSchema;
|
|
1958
|
-
/** @deprecated use `GetAllPrompts21$Outbound` instead. */
|
|
1959
|
-
export type Outbound = GetAllPrompts21$Outbound;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
export function getAllPrompts21ToJSON(
|
|
1963
|
-
getAllPrompts21: GetAllPrompts21,
|
|
1964
|
-
): string {
|
|
1965
|
-
return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
export function getAllPrompts21FromJSON(
|
|
1969
|
-
jsonString: string,
|
|
1970
|
-
): SafeParseResult<GetAllPrompts21, SDKValidationError> {
|
|
1971
|
-
return safeParse(
|
|
1972
|
-
jsonString,
|
|
1973
|
-
(x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
|
|
1974
|
-
`Failed to parse 'GetAllPrompts21' from JSON`,
|
|
1975
|
-
);
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
/** @internal */
|
|
1979
|
-
export const GetAllPromptsContent2$inboundSchema: z.ZodType<
|
|
1980
|
-
GetAllPromptsContent2,
|
|
1981
|
-
z.ZodTypeDef,
|
|
1982
|
-
unknown
|
|
1983
|
-
> = z.union([
|
|
1984
|
-
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1985
|
-
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
1986
|
-
]);
|
|
1987
|
-
|
|
1988
|
-
/** @internal */
|
|
1989
|
-
export type GetAllPromptsContent2$Outbound =
|
|
1990
|
-
| GetAllPrompts21$Outbound
|
|
1991
|
-
| GetAllPrompts22$Outbound;
|
|
1992
|
-
|
|
1993
|
-
/** @internal */
|
|
1994
|
-
export const GetAllPromptsContent2$outboundSchema: z.ZodType<
|
|
1995
|
-
GetAllPromptsContent2$Outbound,
|
|
1996
|
-
z.ZodTypeDef,
|
|
1997
|
-
GetAllPromptsContent2
|
|
1998
|
-
> = z.union([
|
|
1999
|
-
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2000
|
-
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2001
|
-
]);
|
|
2002
|
-
|
|
2003
|
-
/**
|
|
2004
|
-
* @internal
|
|
2005
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2006
|
-
*/
|
|
2007
|
-
export namespace GetAllPromptsContent2$ {
|
|
2008
|
-
/** @deprecated use `GetAllPromptsContent2$inboundSchema` instead. */
|
|
2009
|
-
export const inboundSchema = GetAllPromptsContent2$inboundSchema;
|
|
2010
|
-
/** @deprecated use `GetAllPromptsContent2$outboundSchema` instead. */
|
|
2011
|
-
export const outboundSchema = GetAllPromptsContent2$outboundSchema;
|
|
2012
|
-
/** @deprecated use `GetAllPromptsContent2$Outbound` instead. */
|
|
2013
|
-
export type Outbound = GetAllPromptsContent2$Outbound;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
export function getAllPromptsContent2ToJSON(
|
|
2017
|
-
getAllPromptsContent2: GetAllPromptsContent2,
|
|
2018
|
-
): string {
|
|
2019
|
-
return JSON.stringify(
|
|
2020
|
-
GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
|
|
2021
|
-
);
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
export function getAllPromptsContent2FromJSON(
|
|
2025
|
-
jsonString: string,
|
|
2026
|
-
): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
|
|
2027
|
-
return safeParse(
|
|
2028
|
-
jsonString,
|
|
2029
|
-
(x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2030
|
-
`Failed to parse 'GetAllPromptsContent2' from JSON`,
|
|
2031
|
-
);
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
/** @internal */
|
|
2035
|
-
export const GetAllPromptsContent$inboundSchema: z.ZodType<
|
|
2036
|
-
GetAllPromptsContent,
|
|
2037
|
-
z.ZodTypeDef,
|
|
2038
|
-
unknown
|
|
2039
|
-
> = z.union([
|
|
2040
|
-
z.string(),
|
|
2041
|
-
z.array(z.union([
|
|
2042
|
-
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
2043
|
-
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
2044
|
-
])),
|
|
2045
|
-
]);
|
|
2046
|
-
|
|
2047
|
-
/** @internal */
|
|
2048
|
-
export type GetAllPromptsContent$Outbound =
|
|
2049
|
-
| string
|
|
2050
|
-
| Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
|
|
2051
|
-
|
|
2052
|
-
/** @internal */
|
|
2053
|
-
export const GetAllPromptsContent$outboundSchema: z.ZodType<
|
|
2054
|
-
GetAllPromptsContent$Outbound,
|
|
2055
|
-
z.ZodTypeDef,
|
|
2056
|
-
GetAllPromptsContent
|
|
2057
|
-
> = z.union([
|
|
2058
|
-
z.string(),
|
|
2059
|
-
z.array(z.union([
|
|
2060
|
-
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2061
|
-
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2062
|
-
])),
|
|
2063
|
-
]);
|
|
2064
|
-
|
|
2065
|
-
/**
|
|
2066
|
-
* @internal
|
|
2067
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2068
|
-
*/
|
|
2069
|
-
export namespace GetAllPromptsContent$ {
|
|
2070
|
-
/** @deprecated use `GetAllPromptsContent$inboundSchema` instead. */
|
|
2071
|
-
export const inboundSchema = GetAllPromptsContent$inboundSchema;
|
|
2072
|
-
/** @deprecated use `GetAllPromptsContent$outboundSchema` instead. */
|
|
2073
|
-
export const outboundSchema = GetAllPromptsContent$outboundSchema;
|
|
2074
|
-
/** @deprecated use `GetAllPromptsContent$Outbound` instead. */
|
|
2075
|
-
export type Outbound = GetAllPromptsContent$Outbound;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
export function getAllPromptsContentToJSON(
|
|
2079
|
-
getAllPromptsContent: GetAllPromptsContent,
|
|
2080
|
-
): string {
|
|
2081
|
-
return JSON.stringify(
|
|
2082
|
-
GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
|
|
2083
|
-
);
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
export function getAllPromptsContentFromJSON(
|
|
2087
|
-
jsonString: string,
|
|
2088
|
-
): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
|
|
2089
|
-
return safeParse(
|
|
2090
|
-
jsonString,
|
|
2091
|
-
(x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
|
|
2092
|
-
`Failed to parse 'GetAllPromptsContent' from JSON`,
|
|
2093
|
-
);
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
/** @internal */
|
|
2097
|
-
export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2098
|
-
typeof GetAllPromptsPromptsType
|
|
2099
|
-
> = z.nativeEnum(GetAllPromptsPromptsType);
|
|
2100
|
-
|
|
2101
|
-
/** @internal */
|
|
2102
|
-
export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2103
|
-
typeof GetAllPromptsPromptsType
|
|
2104
|
-
> = GetAllPromptsPromptsType$inboundSchema;
|
|
2105
|
-
|
|
2106
|
-
/**
|
|
2107
|
-
* @internal
|
|
2108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2109
|
-
*/
|
|
2110
|
-
export namespace GetAllPromptsPromptsType$ {
|
|
2111
|
-
/** @deprecated use `GetAllPromptsPromptsType$inboundSchema` instead. */
|
|
2112
|
-
export const inboundSchema = GetAllPromptsPromptsType$inboundSchema;
|
|
2113
|
-
/** @deprecated use `GetAllPromptsPromptsType$outboundSchema` instead. */
|
|
2114
|
-
export const outboundSchema = GetAllPromptsPromptsType$outboundSchema;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
/** @internal */
|
|
2118
|
-
export const GetAllPromptsFunction$inboundSchema: z.ZodType<
|
|
2119
|
-
GetAllPromptsFunction,
|
|
2120
|
-
z.ZodTypeDef,
|
|
2121
|
-
unknown
|
|
2122
|
-
> = z.object({
|
|
2123
|
-
name: z.string(),
|
|
2124
|
-
arguments: z.string(),
|
|
2125
|
-
});
|
|
2126
|
-
|
|
2127
|
-
/** @internal */
|
|
2128
|
-
export type GetAllPromptsFunction$Outbound = {
|
|
2129
|
-
name: string;
|
|
2130
|
-
arguments: string;
|
|
2131
|
-
};
|
|
2132
|
-
|
|
2133
|
-
/** @internal */
|
|
2134
|
-
export const GetAllPromptsFunction$outboundSchema: z.ZodType<
|
|
2135
|
-
GetAllPromptsFunction$Outbound,
|
|
2136
|
-
z.ZodTypeDef,
|
|
2137
|
-
GetAllPromptsFunction
|
|
2138
|
-
> = z.object({
|
|
2139
|
-
name: z.string(),
|
|
2140
|
-
arguments: z.string(),
|
|
2141
|
-
});
|
|
2142
|
-
|
|
2143
|
-
/**
|
|
2144
|
-
* @internal
|
|
2145
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2146
|
-
*/
|
|
2147
|
-
export namespace GetAllPromptsFunction$ {
|
|
2148
|
-
/** @deprecated use `GetAllPromptsFunction$inboundSchema` instead. */
|
|
2149
|
-
export const inboundSchema = GetAllPromptsFunction$inboundSchema;
|
|
2150
|
-
/** @deprecated use `GetAllPromptsFunction$outboundSchema` instead. */
|
|
2151
|
-
export const outboundSchema = GetAllPromptsFunction$outboundSchema;
|
|
2152
|
-
/** @deprecated use `GetAllPromptsFunction$Outbound` instead. */
|
|
2153
|
-
export type Outbound = GetAllPromptsFunction$Outbound;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
export function getAllPromptsFunctionToJSON(
|
|
2157
|
-
getAllPromptsFunction: GetAllPromptsFunction,
|
|
2158
|
-
): string {
|
|
2159
|
-
return JSON.stringify(
|
|
2160
|
-
GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
|
|
2161
|
-
);
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
export function getAllPromptsFunctionFromJSON(
|
|
2165
|
-
jsonString: string,
|
|
2166
|
-
): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
|
|
2167
|
-
return safeParse(
|
|
2168
|
-
jsonString,
|
|
2169
|
-
(x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2170
|
-
`Failed to parse 'GetAllPromptsFunction' from JSON`,
|
|
2171
|
-
);
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
/** @internal */
|
|
2175
|
-
export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
|
|
2176
|
-
GetAllPromptsToolCalls,
|
|
2177
|
-
z.ZodTypeDef,
|
|
2178
|
-
unknown
|
|
2179
|
-
> = z.object({
|
|
2180
|
-
id: z.string().optional(),
|
|
2181
|
-
index: z.number().optional(),
|
|
2182
|
-
type: GetAllPromptsPromptsType$inboundSchema,
|
|
2183
|
-
function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
|
|
2184
|
-
});
|
|
2185
|
-
|
|
2186
|
-
/** @internal */
|
|
2187
|
-
export type GetAllPromptsToolCalls$Outbound = {
|
|
2188
|
-
id?: string | undefined;
|
|
2189
|
-
index?: number | undefined;
|
|
2190
|
-
type: string;
|
|
2191
|
-
function: GetAllPromptsFunction$Outbound;
|
|
2192
|
-
};
|
|
2193
|
-
|
|
2194
|
-
/** @internal */
|
|
2195
|
-
export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
|
|
2196
|
-
GetAllPromptsToolCalls$Outbound,
|
|
2197
|
-
z.ZodTypeDef,
|
|
2198
|
-
GetAllPromptsToolCalls
|
|
2199
|
-
> = z.object({
|
|
2200
|
-
id: z.string().optional(),
|
|
2201
|
-
index: z.number().optional(),
|
|
2202
|
-
type: GetAllPromptsPromptsType$outboundSchema,
|
|
2203
|
-
function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
|
|
2204
|
-
});
|
|
2205
|
-
|
|
2206
|
-
/**
|
|
2207
|
-
* @internal
|
|
2208
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2209
|
-
*/
|
|
2210
|
-
export namespace GetAllPromptsToolCalls$ {
|
|
2211
|
-
/** @deprecated use `GetAllPromptsToolCalls$inboundSchema` instead. */
|
|
2212
|
-
export const inboundSchema = GetAllPromptsToolCalls$inboundSchema;
|
|
2213
|
-
/** @deprecated use `GetAllPromptsToolCalls$outboundSchema` instead. */
|
|
2214
|
-
export const outboundSchema = GetAllPromptsToolCalls$outboundSchema;
|
|
2215
|
-
/** @deprecated use `GetAllPromptsToolCalls$Outbound` instead. */
|
|
2216
|
-
export type Outbound = GetAllPromptsToolCalls$Outbound;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
export function getAllPromptsToolCallsToJSON(
|
|
2220
|
-
getAllPromptsToolCalls: GetAllPromptsToolCalls,
|
|
2221
|
-
): string {
|
|
2222
|
-
return JSON.stringify(
|
|
2223
|
-
GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
export function getAllPromptsToolCallsFromJSON(
|
|
2228
|
-
jsonString: string,
|
|
2229
|
-
): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
|
|
2230
|
-
return safeParse(
|
|
2231
|
-
jsonString,
|
|
2232
|
-
(x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2233
|
-
`Failed to parse 'GetAllPromptsToolCalls' from JSON`,
|
|
2234
|
-
);
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
/** @internal */
|
|
2238
|
-
export const GetAllPromptsMessages$inboundSchema: z.ZodType<
|
|
2239
|
-
GetAllPromptsMessages,
|
|
2240
|
-
z.ZodTypeDef,
|
|
2241
|
-
unknown
|
|
2242
|
-
> = z.object({
|
|
2243
|
-
role: GetAllPromptsRole$inboundSchema,
|
|
2244
|
-
content: z.union([
|
|
2245
|
-
z.string(),
|
|
2246
|
-
z.array(z.union([
|
|
2247
|
-
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
2248
|
-
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
2249
|
-
])),
|
|
2250
|
-
]),
|
|
2251
|
-
tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
|
|
2252
|
-
.optional(),
|
|
2253
|
-
}).transform((v) => {
|
|
2254
|
-
return remap$(v, {
|
|
2255
|
-
"tool_calls": "toolCalls",
|
|
2256
|
-
});
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
/** @internal */
|
|
2260
|
-
export type GetAllPromptsMessages$Outbound = {
|
|
2261
|
-
role: string;
|
|
2262
|
-
content: string | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
|
|
2263
|
-
tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
/** @internal */
|
|
2267
|
-
export const GetAllPromptsMessages$outboundSchema: z.ZodType<
|
|
2268
|
-
GetAllPromptsMessages$Outbound,
|
|
2269
|
-
z.ZodTypeDef,
|
|
2270
|
-
GetAllPromptsMessages
|
|
2271
|
-
> = z.object({
|
|
2272
|
-
role: GetAllPromptsRole$outboundSchema,
|
|
2273
|
-
content: z.union([
|
|
2274
|
-
z.string(),
|
|
2275
|
-
z.array(z.union([
|
|
2276
|
-
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2277
|
-
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2278
|
-
])),
|
|
2279
|
-
]),
|
|
2280
|
-
toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
|
|
2281
|
-
.optional(),
|
|
2282
|
-
}).transform((v) => {
|
|
2283
|
-
return remap$(v, {
|
|
2284
|
-
toolCalls: "tool_calls",
|
|
2285
|
-
});
|
|
2286
|
-
});
|
|
2287
|
-
|
|
2288
|
-
/**
|
|
2289
|
-
* @internal
|
|
2290
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2291
|
-
*/
|
|
2292
|
-
export namespace GetAllPromptsMessages$ {
|
|
2293
|
-
/** @deprecated use `GetAllPromptsMessages$inboundSchema` instead. */
|
|
2294
|
-
export const inboundSchema = GetAllPromptsMessages$inboundSchema;
|
|
2295
|
-
/** @deprecated use `GetAllPromptsMessages$outboundSchema` instead. */
|
|
2296
|
-
export const outboundSchema = GetAllPromptsMessages$outboundSchema;
|
|
2297
|
-
/** @deprecated use `GetAllPromptsMessages$Outbound` instead. */
|
|
2298
|
-
export type Outbound = GetAllPromptsMessages$Outbound;
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
export function getAllPromptsMessagesToJSON(
|
|
2302
|
-
getAllPromptsMessages: GetAllPromptsMessages,
|
|
2303
|
-
): string {
|
|
2304
|
-
return JSON.stringify(
|
|
2305
|
-
GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
|
|
2306
|
-
);
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
export function getAllPromptsMessagesFromJSON(
|
|
2310
|
-
jsonString: string,
|
|
2311
|
-
): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
|
|
2312
|
-
return safeParse(
|
|
2313
|
-
jsonString,
|
|
2314
|
-
(x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2315
|
-
`Failed to parse 'GetAllPromptsMessages' from JSON`,
|
|
2316
|
-
);
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
/** @internal */
|
|
2320
|
-
export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
2321
|
-
GetAllPromptsPromptConfig,
|
|
2322
|
-
z.ZodTypeDef,
|
|
2323
|
-
unknown
|
|
2324
|
-
> = z.object({
|
|
2325
|
-
stream: z.boolean().optional(),
|
|
2326
|
-
model: z.string().optional(),
|
|
2327
|
-
model_db_id: z.string().optional(),
|
|
2328
|
-
model_type: GetAllPromptsModelType$inboundSchema.optional(),
|
|
2329
|
-
model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
|
|
2330
|
-
.optional(),
|
|
2331
|
-
provider: GetAllPromptsProvider$inboundSchema.optional(),
|
|
2332
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2333
|
-
version: z.string().optional(),
|
|
2334
|
-
messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
|
|
2335
|
-
}).transform((v) => {
|
|
2336
|
-
return remap$(v, {
|
|
2337
|
-
"model_db_id": "modelDbId",
|
|
2338
|
-
"model_type": "modelType",
|
|
2339
|
-
"model_parameters": "modelParameters",
|
|
2340
|
-
"integration_id": "integrationId",
|
|
2341
|
-
});
|
|
2342
|
-
});
|
|
2343
|
-
|
|
2344
|
-
/** @internal */
|
|
2345
|
-
export type GetAllPromptsPromptConfig$Outbound = {
|
|
2346
|
-
stream?: boolean | undefined;
|
|
2347
|
-
model?: string | undefined;
|
|
2348
|
-
model_db_id?: string | undefined;
|
|
2349
|
-
model_type?: string | undefined;
|
|
2350
|
-
model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
|
|
2351
|
-
provider?: string | undefined;
|
|
2352
|
-
integration_id?: string | null | undefined;
|
|
2353
|
-
version?: string | undefined;
|
|
2354
|
-
messages: Array<GetAllPromptsMessages$Outbound>;
|
|
2355
|
-
};
|
|
2356
|
-
|
|
2357
|
-
/** @internal */
|
|
2358
|
-
export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
2359
|
-
GetAllPromptsPromptConfig$Outbound,
|
|
2360
|
-
z.ZodTypeDef,
|
|
2361
|
-
GetAllPromptsPromptConfig
|
|
2362
|
-
> = z.object({
|
|
2363
|
-
stream: z.boolean().optional(),
|
|
2364
|
-
model: z.string().optional(),
|
|
2365
|
-
modelDbId: z.string().optional(),
|
|
2366
|
-
modelType: GetAllPromptsModelType$outboundSchema.optional(),
|
|
2367
|
-
modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
|
|
2368
|
-
.optional(),
|
|
2369
|
-
provider: GetAllPromptsProvider$outboundSchema.optional(),
|
|
2370
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2371
|
-
version: z.string().optional(),
|
|
2372
|
-
messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
|
|
2373
|
-
}).transform((v) => {
|
|
2374
|
-
return remap$(v, {
|
|
2375
|
-
modelDbId: "model_db_id",
|
|
2376
|
-
modelType: "model_type",
|
|
2377
|
-
modelParameters: "model_parameters",
|
|
2378
|
-
integrationId: "integration_id",
|
|
2379
|
-
});
|
|
2380
|
-
});
|
|
2381
|
-
|
|
2382
|
-
/**
|
|
2383
|
-
* @internal
|
|
2384
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2385
|
-
*/
|
|
2386
|
-
export namespace GetAllPromptsPromptConfig$ {
|
|
2387
|
-
/** @deprecated use `GetAllPromptsPromptConfig$inboundSchema` instead. */
|
|
2388
|
-
export const inboundSchema = GetAllPromptsPromptConfig$inboundSchema;
|
|
2389
|
-
/** @deprecated use `GetAllPromptsPromptConfig$outboundSchema` instead. */
|
|
2390
|
-
export const outboundSchema = GetAllPromptsPromptConfig$outboundSchema;
|
|
2391
|
-
/** @deprecated use `GetAllPromptsPromptConfig$Outbound` instead. */
|
|
2392
|
-
export type Outbound = GetAllPromptsPromptConfig$Outbound;
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
export function getAllPromptsPromptConfigToJSON(
|
|
2396
|
-
getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
|
|
2397
|
-
): string {
|
|
2398
|
-
return JSON.stringify(
|
|
2399
|
-
GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
|
|
2400
|
-
);
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
export function getAllPromptsPromptConfigFromJSON(
|
|
2404
|
-
jsonString: string,
|
|
2405
|
-
): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
|
|
2406
|
-
return safeParse(
|
|
2407
|
-
jsonString,
|
|
2408
|
-
(x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2409
|
-
`Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
|
|
2410
|
-
);
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
/** @internal */
|
|
2414
|
-
export const GetAllPromptsUseCases$inboundSchema: z.ZodNativeEnum<
|
|
2415
|
-
typeof GetAllPromptsUseCases
|
|
2416
|
-
> = z.nativeEnum(GetAllPromptsUseCases);
|
|
2417
|
-
|
|
2418
|
-
/** @internal */
|
|
2419
|
-
export const GetAllPromptsUseCases$outboundSchema: z.ZodNativeEnum<
|
|
2420
|
-
typeof GetAllPromptsUseCases
|
|
2421
|
-
> = GetAllPromptsUseCases$inboundSchema;
|
|
2422
|
-
|
|
2423
|
-
/**
|
|
2424
|
-
* @internal
|
|
2425
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2426
|
-
*/
|
|
2427
|
-
export namespace GetAllPromptsUseCases$ {
|
|
2428
|
-
/** @deprecated use `GetAllPromptsUseCases$inboundSchema` instead. */
|
|
2429
|
-
export const inboundSchema = GetAllPromptsUseCases$inboundSchema;
|
|
2430
|
-
/** @deprecated use `GetAllPromptsUseCases$outboundSchema` instead. */
|
|
2431
|
-
export const outboundSchema = GetAllPromptsUseCases$outboundSchema;
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
/** @internal */
|
|
2435
|
-
export const GetAllPromptsLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2436
|
-
typeof GetAllPromptsLanguage
|
|
2437
|
-
> = z.nativeEnum(GetAllPromptsLanguage);
|
|
2438
|
-
|
|
2439
|
-
/** @internal */
|
|
2440
|
-
export const GetAllPromptsLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2441
|
-
typeof GetAllPromptsLanguage
|
|
2442
|
-
> = GetAllPromptsLanguage$inboundSchema;
|
|
2443
|
-
|
|
2444
|
-
/**
|
|
2445
|
-
* @internal
|
|
2446
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2447
|
-
*/
|
|
2448
|
-
export namespace GetAllPromptsLanguage$ {
|
|
2449
|
-
/** @deprecated use `GetAllPromptsLanguage$inboundSchema` instead. */
|
|
2450
|
-
export const inboundSchema = GetAllPromptsLanguage$inboundSchema;
|
|
2451
|
-
/** @deprecated use `GetAllPromptsLanguage$outboundSchema` instead. */
|
|
2452
|
-
export const outboundSchema = GetAllPromptsLanguage$outboundSchema;
|
|
653
|
+
export namespace GetAllPromptsQuality$ {
|
|
654
|
+
/** @deprecated use `GetAllPromptsQuality$inboundSchema` instead. */
|
|
655
|
+
export const inboundSchema = GetAllPromptsQuality$inboundSchema;
|
|
656
|
+
/** @deprecated use `GetAllPromptsQuality$outboundSchema` instead. */
|
|
657
|
+
export const outboundSchema = GetAllPromptsQuality$outboundSchema;
|
|
2453
658
|
}
|
|
2454
659
|
|
|
2455
660
|
/** @internal */
|
|
2456
|
-
export const
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
unknown
|
|
2460
|
-
> = z.object({
|
|
2461
|
-
use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
|
|
2462
|
-
language: GetAllPromptsLanguage$inboundSchema.optional(),
|
|
2463
|
-
}).transform((v) => {
|
|
2464
|
-
return remap$(v, {
|
|
2465
|
-
"use_cases": "useCases",
|
|
2466
|
-
});
|
|
2467
|
-
});
|
|
2468
|
-
|
|
2469
|
-
/** @internal */
|
|
2470
|
-
export type GetAllPromptsMetadata$Outbound = {
|
|
2471
|
-
use_cases?: Array<string> | undefined;
|
|
2472
|
-
language?: string | undefined;
|
|
2473
|
-
};
|
|
2474
|
-
|
|
2475
|
-
/** @internal */
|
|
2476
|
-
export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
|
|
2477
|
-
GetAllPromptsMetadata$Outbound,
|
|
2478
|
-
z.ZodTypeDef,
|
|
2479
|
-
GetAllPromptsMetadata
|
|
2480
|
-
> = z.object({
|
|
2481
|
-
useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
|
|
2482
|
-
language: GetAllPromptsLanguage$outboundSchema.optional(),
|
|
2483
|
-
}).transform((v) => {
|
|
2484
|
-
return remap$(v, {
|
|
2485
|
-
useCases: "use_cases",
|
|
2486
|
-
});
|
|
2487
|
-
});
|
|
2488
|
-
|
|
2489
|
-
/**
|
|
2490
|
-
* @internal
|
|
2491
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2492
|
-
*/
|
|
2493
|
-
export namespace GetAllPromptsMetadata$ {
|
|
2494
|
-
/** @deprecated use `GetAllPromptsMetadata$inboundSchema` instead. */
|
|
2495
|
-
export const inboundSchema = GetAllPromptsMetadata$inboundSchema;
|
|
2496
|
-
/** @deprecated use `GetAllPromptsMetadata$outboundSchema` instead. */
|
|
2497
|
-
export const outboundSchema = GetAllPromptsMetadata$outboundSchema;
|
|
2498
|
-
/** @deprecated use `GetAllPromptsMetadata$Outbound` instead. */
|
|
2499
|
-
export type Outbound = GetAllPromptsMetadata$Outbound;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
export function getAllPromptsMetadataToJSON(
|
|
2503
|
-
getAllPromptsMetadata: GetAllPromptsMetadata,
|
|
2504
|
-
): string {
|
|
2505
|
-
return JSON.stringify(
|
|
2506
|
-
GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata),
|
|
2507
|
-
);
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
export function getAllPromptsMetadataFromJSON(
|
|
2511
|
-
jsonString: string,
|
|
2512
|
-
): SafeParseResult<GetAllPromptsMetadata, SDKValidationError> {
|
|
2513
|
-
return safeParse(
|
|
2514
|
-
jsonString,
|
|
2515
|
-
(x) => GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
2516
|
-
`Failed to parse 'GetAllPromptsMetadata' from JSON`,
|
|
661
|
+
export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
|
|
662
|
+
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
|
|
663
|
+
GetAllPromptsResponseFormatPromptsType,
|
|
2517
664
|
);
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
/** @internal */
|
|
2521
|
-
export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2522
|
-
typeof GetAllPromptsType
|
|
2523
|
-
> = z.nativeEnum(GetAllPromptsType);
|
|
2524
|
-
|
|
2525
|
-
/** @internal */
|
|
2526
|
-
export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2527
|
-
typeof GetAllPromptsType
|
|
2528
|
-
> = GetAllPromptsType$inboundSchema;
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* @internal
|
|
2532
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2533
|
-
*/
|
|
2534
|
-
export namespace GetAllPromptsType$ {
|
|
2535
|
-
/** @deprecated use `GetAllPromptsType$inboundSchema` instead. */
|
|
2536
|
-
export const inboundSchema = GetAllPromptsType$inboundSchema;
|
|
2537
|
-
/** @deprecated use `GetAllPromptsType$outboundSchema` instead. */
|
|
2538
|
-
export const outboundSchema = GetAllPromptsType$outboundSchema;
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
/** @internal */
|
|
2542
|
-
export const GetAllPromptsPromptsModelType$inboundSchema: z.ZodNativeEnum<
|
|
2543
|
-
typeof GetAllPromptsPromptsModelType
|
|
2544
|
-
> = z.nativeEnum(GetAllPromptsPromptsModelType);
|
|
2545
|
-
|
|
2546
|
-
/** @internal */
|
|
2547
|
-
export const GetAllPromptsPromptsModelType$outboundSchema: z.ZodNativeEnum<
|
|
2548
|
-
typeof GetAllPromptsPromptsModelType
|
|
2549
|
-
> = GetAllPromptsPromptsModelType$inboundSchema;
|
|
2550
|
-
|
|
2551
|
-
/**
|
|
2552
|
-
* @internal
|
|
2553
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2554
|
-
*/
|
|
2555
|
-
export namespace GetAllPromptsPromptsModelType$ {
|
|
2556
|
-
/** @deprecated use `GetAllPromptsPromptsModelType$inboundSchema` instead. */
|
|
2557
|
-
export const inboundSchema = GetAllPromptsPromptsModelType$inboundSchema;
|
|
2558
|
-
/** @deprecated use `GetAllPromptsPromptsModelType$outboundSchema` instead. */
|
|
2559
|
-
export const outboundSchema = GetAllPromptsPromptsModelType$outboundSchema;
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
/** @internal */
|
|
2563
|
-
export const GetAllPromptsPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
2564
|
-
typeof GetAllPromptsPromptsFormat
|
|
2565
|
-
> = z.nativeEnum(GetAllPromptsPromptsFormat);
|
|
2566
|
-
|
|
2567
|
-
/** @internal */
|
|
2568
|
-
export const GetAllPromptsPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
2569
|
-
typeof GetAllPromptsPromptsFormat
|
|
2570
|
-
> = GetAllPromptsPromptsFormat$inboundSchema;
|
|
2571
|
-
|
|
2572
|
-
/**
|
|
2573
|
-
* @internal
|
|
2574
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2575
|
-
*/
|
|
2576
|
-
export namespace GetAllPromptsPromptsFormat$ {
|
|
2577
|
-
/** @deprecated use `GetAllPromptsPromptsFormat$inboundSchema` instead. */
|
|
2578
|
-
export const inboundSchema = GetAllPromptsPromptsFormat$inboundSchema;
|
|
2579
|
-
/** @deprecated use `GetAllPromptsPromptsFormat$outboundSchema` instead. */
|
|
2580
|
-
export const outboundSchema = GetAllPromptsPromptsFormat$outboundSchema;
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export const GetAllPromptsPromptsQuality$inboundSchema: z.ZodNativeEnum<
|
|
2585
|
-
typeof GetAllPromptsPromptsQuality
|
|
2586
|
-
> = z.nativeEnum(GetAllPromptsPromptsQuality);
|
|
2587
|
-
|
|
2588
|
-
/** @internal */
|
|
2589
|
-
export const GetAllPromptsPromptsQuality$outboundSchema: z.ZodNativeEnum<
|
|
2590
|
-
typeof GetAllPromptsPromptsQuality
|
|
2591
|
-
> = GetAllPromptsPromptsQuality$inboundSchema;
|
|
2592
|
-
|
|
2593
|
-
/**
|
|
2594
|
-
* @internal
|
|
2595
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2596
|
-
*/
|
|
2597
|
-
export namespace GetAllPromptsPromptsQuality$ {
|
|
2598
|
-
/** @deprecated use `GetAllPromptsPromptsQuality$inboundSchema` instead. */
|
|
2599
|
-
export const inboundSchema = GetAllPromptsPromptsQuality$inboundSchema;
|
|
2600
|
-
/** @deprecated use `GetAllPromptsPromptsQuality$outboundSchema` instead. */
|
|
2601
|
-
export const outboundSchema = GetAllPromptsPromptsQuality$outboundSchema;
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
/** @internal */
|
|
2605
|
-
export const GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema:
|
|
2606
|
-
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponse200Type> = z
|
|
2607
|
-
.nativeEnum(GetAllPromptsResponseFormatPromptsResponse200Type);
|
|
2608
665
|
|
|
2609
666
|
/** @internal */
|
|
2610
|
-
export const
|
|
2611
|
-
z.ZodNativeEnum<typeof
|
|
2612
|
-
|
|
667
|
+
export const GetAllPromptsResponseFormatPromptsType$outboundSchema:
|
|
668
|
+
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> =
|
|
669
|
+
GetAllPromptsResponseFormatPromptsType$inboundSchema;
|
|
2613
670
|
|
|
2614
671
|
/**
|
|
2615
672
|
* @internal
|
|
2616
673
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2617
674
|
*/
|
|
2618
|
-
export namespace
|
|
2619
|
-
/** @deprecated use `
|
|
675
|
+
export namespace GetAllPromptsResponseFormatPromptsType$ {
|
|
676
|
+
/** @deprecated use `GetAllPromptsResponseFormatPromptsType$inboundSchema` instead. */
|
|
2620
677
|
export const inboundSchema =
|
|
2621
|
-
|
|
2622
|
-
/** @deprecated use `
|
|
678
|
+
GetAllPromptsResponseFormatPromptsType$inboundSchema;
|
|
679
|
+
/** @deprecated use `GetAllPromptsResponseFormatPromptsType$outboundSchema` instead. */
|
|
2623
680
|
export const outboundSchema =
|
|
2624
|
-
|
|
681
|
+
GetAllPromptsResponseFormatPromptsType$outboundSchema;
|
|
2625
682
|
}
|
|
2626
683
|
|
|
2627
684
|
/** @internal */
|
|
2628
|
-
export const
|
|
2629
|
-
|
|
685
|
+
export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
|
|
686
|
+
GetAllPromptsResponseFormat2,
|
|
2630
687
|
z.ZodTypeDef,
|
|
2631
688
|
unknown
|
|
2632
689
|
> = z.object({
|
|
2633
|
-
type:
|
|
690
|
+
type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
|
|
2634
691
|
});
|
|
2635
692
|
|
|
2636
693
|
/** @internal */
|
|
2637
|
-
export type
|
|
694
|
+
export type GetAllPromptsResponseFormat2$Outbound = {
|
|
2638
695
|
type: string;
|
|
2639
696
|
};
|
|
2640
697
|
|
|
2641
698
|
/** @internal */
|
|
2642
|
-
export const
|
|
2643
|
-
|
|
699
|
+
export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
|
|
700
|
+
GetAllPromptsResponseFormat2$Outbound,
|
|
2644
701
|
z.ZodTypeDef,
|
|
2645
|
-
|
|
702
|
+
GetAllPromptsResponseFormat2
|
|
2646
703
|
> = z.object({
|
|
2647
|
-
type:
|
|
704
|
+
type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
|
|
2648
705
|
});
|
|
2649
706
|
|
|
2650
707
|
/**
|
|
2651
708
|
* @internal
|
|
2652
709
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2653
710
|
*/
|
|
2654
|
-
export namespace
|
|
2655
|
-
/** @deprecated use `
|
|
2656
|
-
export const inboundSchema =
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
/** @deprecated use `GetAllPromptsResponseFormatPrompts2$Outbound` instead. */
|
|
2662
|
-
export type Outbound = GetAllPromptsResponseFormatPrompts2$Outbound;
|
|
711
|
+
export namespace GetAllPromptsResponseFormat2$ {
|
|
712
|
+
/** @deprecated use `GetAllPromptsResponseFormat2$inboundSchema` instead. */
|
|
713
|
+
export const inboundSchema = GetAllPromptsResponseFormat2$inboundSchema;
|
|
714
|
+
/** @deprecated use `GetAllPromptsResponseFormat2$outboundSchema` instead. */
|
|
715
|
+
export const outboundSchema = GetAllPromptsResponseFormat2$outboundSchema;
|
|
716
|
+
/** @deprecated use `GetAllPromptsResponseFormat2$Outbound` instead. */
|
|
717
|
+
export type Outbound = GetAllPromptsResponseFormat2$Outbound;
|
|
2663
718
|
}
|
|
2664
719
|
|
|
2665
|
-
export function
|
|
2666
|
-
|
|
720
|
+
export function getAllPromptsResponseFormat2ToJSON(
|
|
721
|
+
getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
|
|
2667
722
|
): string {
|
|
2668
723
|
return JSON.stringify(
|
|
2669
|
-
|
|
2670
|
-
|
|
724
|
+
GetAllPromptsResponseFormat2$outboundSchema.parse(
|
|
725
|
+
getAllPromptsResponseFormat2,
|
|
2671
726
|
),
|
|
2672
727
|
);
|
|
2673
728
|
}
|
|
2674
729
|
|
|
2675
|
-
export function
|
|
730
|
+
export function getAllPromptsResponseFormat2FromJSON(
|
|
2676
731
|
jsonString: string,
|
|
2677
|
-
): SafeParseResult<
|
|
732
|
+
): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
|
|
2678
733
|
return safeParse(
|
|
2679
734
|
jsonString,
|
|
2680
|
-
(x) =>
|
|
2681
|
-
|
|
2682
|
-
`Failed to parse 'GetAllPromptsResponseFormatPrompts2' from JSON`,
|
|
735
|
+
(x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
736
|
+
`Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
|
|
2683
737
|
);
|
|
2684
738
|
}
|
|
2685
739
|
|
|
2686
740
|
/** @internal */
|
|
2687
|
-
export const
|
|
2688
|
-
|
|
2689
|
-
|
|
741
|
+
export const GetAllPromptsResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
742
|
+
typeof GetAllPromptsResponseFormatType
|
|
743
|
+
> = z.nativeEnum(GetAllPromptsResponseFormatType);
|
|
2690
744
|
|
|
2691
745
|
/** @internal */
|
|
2692
|
-
export const
|
|
2693
|
-
|
|
2694
|
-
|
|
746
|
+
export const GetAllPromptsResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
747
|
+
typeof GetAllPromptsResponseFormatType
|
|
748
|
+
> = GetAllPromptsResponseFormatType$inboundSchema;
|
|
2695
749
|
|
|
2696
750
|
/**
|
|
2697
751
|
* @internal
|
|
2698
752
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2699
753
|
*/
|
|
2700
|
-
export namespace
|
|
2701
|
-
/** @deprecated use `
|
|
2702
|
-
export const inboundSchema =
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
export const outboundSchema =
|
|
2706
|
-
GetAllPromptsResponseFormatPromptsResponseType$outboundSchema;
|
|
754
|
+
export namespace GetAllPromptsResponseFormatType$ {
|
|
755
|
+
/** @deprecated use `GetAllPromptsResponseFormatType$inboundSchema` instead. */
|
|
756
|
+
export const inboundSchema = GetAllPromptsResponseFormatType$inboundSchema;
|
|
757
|
+
/** @deprecated use `GetAllPromptsResponseFormatType$outboundSchema` instead. */
|
|
758
|
+
export const outboundSchema = GetAllPromptsResponseFormatType$outboundSchema;
|
|
2707
759
|
}
|
|
2708
760
|
|
|
2709
761
|
/** @internal */
|
|
2710
|
-
export const
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
});
|
|
762
|
+
export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
763
|
+
GetAllPromptsResponseFormatJsonSchema,
|
|
764
|
+
z.ZodTypeDef,
|
|
765
|
+
unknown
|
|
766
|
+
> = z.object({
|
|
767
|
+
name: z.string(),
|
|
768
|
+
strict: z.boolean(),
|
|
769
|
+
schema: z.record(z.any()),
|
|
770
|
+
});
|
|
2720
771
|
|
|
2721
772
|
/** @internal */
|
|
2722
|
-
export type
|
|
773
|
+
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
2723
774
|
name: string;
|
|
2724
775
|
strict: boolean;
|
|
2725
776
|
schema: { [k: string]: any };
|
|
2726
777
|
};
|
|
2727
778
|
|
|
2728
779
|
/** @internal */
|
|
2729
|
-
export const
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
});
|
|
780
|
+
export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
781
|
+
GetAllPromptsResponseFormatJsonSchema$Outbound,
|
|
782
|
+
z.ZodTypeDef,
|
|
783
|
+
GetAllPromptsResponseFormatJsonSchema
|
|
784
|
+
> = z.object({
|
|
785
|
+
name: z.string(),
|
|
786
|
+
strict: z.boolean(),
|
|
787
|
+
schema: z.record(z.any()),
|
|
788
|
+
});
|
|
2739
789
|
|
|
2740
790
|
/**
|
|
2741
791
|
* @internal
|
|
2742
792
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2743
793
|
*/
|
|
2744
|
-
export namespace
|
|
2745
|
-
/** @deprecated use `
|
|
794
|
+
export namespace GetAllPromptsResponseFormatJsonSchema$ {
|
|
795
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
2746
796
|
export const inboundSchema =
|
|
2747
|
-
|
|
2748
|
-
/** @deprecated use `
|
|
797
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema;
|
|
798
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
2749
799
|
export const outboundSchema =
|
|
2750
|
-
|
|
2751
|
-
/** @deprecated use `
|
|
2752
|
-
export type Outbound =
|
|
800
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema;
|
|
801
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
|
|
802
|
+
export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
2753
803
|
}
|
|
2754
804
|
|
|
2755
|
-
export function
|
|
2756
|
-
|
|
2757
|
-
GetAllPromptsResponseFormatPromptsJsonSchema,
|
|
805
|
+
export function getAllPromptsResponseFormatJsonSchemaToJSON(
|
|
806
|
+
getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
|
|
2758
807
|
): string {
|
|
2759
808
|
return JSON.stringify(
|
|
2760
|
-
|
|
2761
|
-
|
|
809
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
|
|
810
|
+
getAllPromptsResponseFormatJsonSchema,
|
|
2762
811
|
),
|
|
2763
812
|
);
|
|
2764
813
|
}
|
|
2765
814
|
|
|
2766
|
-
export function
|
|
815
|
+
export function getAllPromptsResponseFormatJsonSchemaFromJSON(
|
|
2767
816
|
jsonString: string,
|
|
2768
|
-
): SafeParseResult<
|
|
2769
|
-
GetAllPromptsResponseFormatPromptsJsonSchema,
|
|
2770
|
-
SDKValidationError
|
|
2771
|
-
> {
|
|
817
|
+
): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
|
|
2772
818
|
return safeParse(
|
|
2773
819
|
jsonString,
|
|
2774
820
|
(x) =>
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
),
|
|
2778
|
-
`Failed to parse 'GetAllPromptsResponseFormatPromptsJsonSchema' from JSON`,
|
|
821
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
822
|
+
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
2779
823
|
);
|
|
2780
824
|
}
|
|
2781
825
|
|
|
2782
826
|
/** @internal */
|
|
2783
|
-
export const
|
|
2784
|
-
|
|
827
|
+
export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
|
|
828
|
+
GetAllPromptsResponseFormat1,
|
|
2785
829
|
z.ZodTypeDef,
|
|
2786
830
|
unknown
|
|
2787
831
|
> = z.object({
|
|
2788
|
-
type:
|
|
832
|
+
type: GetAllPromptsResponseFormatType$inboundSchema,
|
|
2789
833
|
json_schema: z.lazy(() =>
|
|
2790
|
-
|
|
834
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema
|
|
2791
835
|
),
|
|
2792
836
|
}).transform((v) => {
|
|
2793
837
|
return remap$(v, {
|
|
@@ -2796,20 +840,20 @@ export const GetAllPromptsResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2796
840
|
});
|
|
2797
841
|
|
|
2798
842
|
/** @internal */
|
|
2799
|
-
export type
|
|
843
|
+
export type GetAllPromptsResponseFormat1$Outbound = {
|
|
2800
844
|
type: string;
|
|
2801
|
-
json_schema:
|
|
845
|
+
json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
2802
846
|
};
|
|
2803
847
|
|
|
2804
848
|
/** @internal */
|
|
2805
|
-
export const
|
|
2806
|
-
|
|
849
|
+
export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
|
|
850
|
+
GetAllPromptsResponseFormat1$Outbound,
|
|
2807
851
|
z.ZodTypeDef,
|
|
2808
|
-
|
|
852
|
+
GetAllPromptsResponseFormat1
|
|
2809
853
|
> = z.object({
|
|
2810
|
-
type:
|
|
854
|
+
type: GetAllPromptsResponseFormatType$outboundSchema,
|
|
2811
855
|
jsonSchema: z.lazy(() =>
|
|
2812
|
-
|
|
856
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema
|
|
2813
857
|
),
|
|
2814
858
|
}).transform((v) => {
|
|
2815
859
|
return remap$(v, {
|
|
@@ -2821,170 +865,159 @@ export const GetAllPromptsResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
|
2821
865
|
* @internal
|
|
2822
866
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2823
867
|
*/
|
|
2824
|
-
export namespace
|
|
2825
|
-
/** @deprecated use `
|
|
2826
|
-
export const inboundSchema =
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
/** @deprecated use `GetAllPromptsResponseFormatPrompts1$Outbound` instead. */
|
|
2832
|
-
export type Outbound = GetAllPromptsResponseFormatPrompts1$Outbound;
|
|
868
|
+
export namespace GetAllPromptsResponseFormat1$ {
|
|
869
|
+
/** @deprecated use `GetAllPromptsResponseFormat1$inboundSchema` instead. */
|
|
870
|
+
export const inboundSchema = GetAllPromptsResponseFormat1$inboundSchema;
|
|
871
|
+
/** @deprecated use `GetAllPromptsResponseFormat1$outboundSchema` instead. */
|
|
872
|
+
export const outboundSchema = GetAllPromptsResponseFormat1$outboundSchema;
|
|
873
|
+
/** @deprecated use `GetAllPromptsResponseFormat1$Outbound` instead. */
|
|
874
|
+
export type Outbound = GetAllPromptsResponseFormat1$Outbound;
|
|
2833
875
|
}
|
|
2834
876
|
|
|
2835
|
-
export function
|
|
2836
|
-
|
|
877
|
+
export function getAllPromptsResponseFormat1ToJSON(
|
|
878
|
+
getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
|
|
2837
879
|
): string {
|
|
2838
880
|
return JSON.stringify(
|
|
2839
|
-
|
|
2840
|
-
|
|
881
|
+
GetAllPromptsResponseFormat1$outboundSchema.parse(
|
|
882
|
+
getAllPromptsResponseFormat1,
|
|
2841
883
|
),
|
|
2842
884
|
);
|
|
2843
885
|
}
|
|
2844
886
|
|
|
2845
|
-
export function
|
|
887
|
+
export function getAllPromptsResponseFormat1FromJSON(
|
|
2846
888
|
jsonString: string,
|
|
2847
|
-
): SafeParseResult<
|
|
889
|
+
): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
|
|
2848
890
|
return safeParse(
|
|
2849
891
|
jsonString,
|
|
2850
|
-
(x) =>
|
|
2851
|
-
|
|
2852
|
-
`Failed to parse 'GetAllPromptsResponseFormatPrompts1' from JSON`,
|
|
892
|
+
(x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
893
|
+
`Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
|
|
2853
894
|
);
|
|
2854
895
|
}
|
|
2855
896
|
|
|
2856
897
|
/** @internal */
|
|
2857
|
-
export const
|
|
2858
|
-
|
|
898
|
+
export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
899
|
+
GetAllPromptsResponseFormat,
|
|
2859
900
|
z.ZodTypeDef,
|
|
2860
901
|
unknown
|
|
2861
902
|
> = z.union([
|
|
2862
|
-
z.lazy(() =>
|
|
2863
|
-
z.lazy(() =>
|
|
903
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
904
|
+
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
2864
905
|
]);
|
|
2865
906
|
|
|
2866
907
|
/** @internal */
|
|
2867
|
-
export type
|
|
2868
|
-
|
|
|
2869
|
-
|
|
|
908
|
+
export type GetAllPromptsResponseFormat$Outbound =
|
|
909
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
910
|
+
| GetAllPromptsResponseFormat1$Outbound;
|
|
2870
911
|
|
|
2871
912
|
/** @internal */
|
|
2872
|
-
export const
|
|
2873
|
-
|
|
913
|
+
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
914
|
+
GetAllPromptsResponseFormat$Outbound,
|
|
2874
915
|
z.ZodTypeDef,
|
|
2875
|
-
|
|
916
|
+
GetAllPromptsResponseFormat
|
|
2876
917
|
> = z.union([
|
|
2877
|
-
z.lazy(() =>
|
|
2878
|
-
z.lazy(() =>
|
|
918
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
919
|
+
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
2879
920
|
]);
|
|
2880
921
|
|
|
2881
922
|
/**
|
|
2882
923
|
* @internal
|
|
2883
924
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2884
925
|
*/
|
|
2885
|
-
export namespace
|
|
2886
|
-
/** @deprecated use `
|
|
2887
|
-
export const inboundSchema =
|
|
2888
|
-
/** @deprecated use `
|
|
2889
|
-
export const outboundSchema =
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
export type Outbound = GetAllPromptsPromptsResponseFormat$Outbound;
|
|
926
|
+
export namespace GetAllPromptsResponseFormat$ {
|
|
927
|
+
/** @deprecated use `GetAllPromptsResponseFormat$inboundSchema` instead. */
|
|
928
|
+
export const inboundSchema = GetAllPromptsResponseFormat$inboundSchema;
|
|
929
|
+
/** @deprecated use `GetAllPromptsResponseFormat$outboundSchema` instead. */
|
|
930
|
+
export const outboundSchema = GetAllPromptsResponseFormat$outboundSchema;
|
|
931
|
+
/** @deprecated use `GetAllPromptsResponseFormat$Outbound` instead. */
|
|
932
|
+
export type Outbound = GetAllPromptsResponseFormat$Outbound;
|
|
2893
933
|
}
|
|
2894
934
|
|
|
2895
|
-
export function
|
|
2896
|
-
|
|
935
|
+
export function getAllPromptsResponseFormatToJSON(
|
|
936
|
+
getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
|
|
2897
937
|
): string {
|
|
2898
938
|
return JSON.stringify(
|
|
2899
|
-
|
|
2900
|
-
|
|
939
|
+
GetAllPromptsResponseFormat$outboundSchema.parse(
|
|
940
|
+
getAllPromptsResponseFormat,
|
|
2901
941
|
),
|
|
2902
942
|
);
|
|
2903
943
|
}
|
|
2904
944
|
|
|
2905
|
-
export function
|
|
945
|
+
export function getAllPromptsResponseFormatFromJSON(
|
|
2906
946
|
jsonString: string,
|
|
2907
|
-
): SafeParseResult<
|
|
947
|
+
): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
|
|
2908
948
|
return safeParse(
|
|
2909
949
|
jsonString,
|
|
2910
|
-
(x) =>
|
|
2911
|
-
|
|
2912
|
-
`Failed to parse 'GetAllPromptsPromptsResponseFormat' from JSON`,
|
|
950
|
+
(x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
951
|
+
`Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
|
|
2913
952
|
);
|
|
2914
953
|
}
|
|
2915
954
|
|
|
2916
955
|
/** @internal */
|
|
2917
|
-
export const
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
);
|
|
956
|
+
export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
957
|
+
typeof GetAllPromptsPhotoRealVersion
|
|
958
|
+
> = z.nativeEnum(GetAllPromptsPhotoRealVersion);
|
|
2921
959
|
|
|
2922
960
|
/** @internal */
|
|
2923
|
-
export const
|
|
2924
|
-
|
|
2925
|
-
|
|
961
|
+
export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
962
|
+
typeof GetAllPromptsPhotoRealVersion
|
|
963
|
+
> = GetAllPromptsPhotoRealVersion$inboundSchema;
|
|
2926
964
|
|
|
2927
965
|
/**
|
|
2928
966
|
* @internal
|
|
2929
967
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2930
968
|
*/
|
|
2931
|
-
export namespace
|
|
2932
|
-
/** @deprecated use `
|
|
2933
|
-
export const inboundSchema =
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
export const outboundSchema =
|
|
2937
|
-
GetAllPromptsPromptsPhotoRealVersion$outboundSchema;
|
|
969
|
+
export namespace GetAllPromptsPhotoRealVersion$ {
|
|
970
|
+
/** @deprecated use `GetAllPromptsPhotoRealVersion$inboundSchema` instead. */
|
|
971
|
+
export const inboundSchema = GetAllPromptsPhotoRealVersion$inboundSchema;
|
|
972
|
+
/** @deprecated use `GetAllPromptsPhotoRealVersion$outboundSchema` instead. */
|
|
973
|
+
export const outboundSchema = GetAllPromptsPhotoRealVersion$outboundSchema;
|
|
2938
974
|
}
|
|
2939
975
|
|
|
2940
976
|
/** @internal */
|
|
2941
|
-
export const
|
|
2942
|
-
typeof
|
|
2943
|
-
> = z.nativeEnum(
|
|
977
|
+
export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
978
|
+
typeof GetAllPromptsEncodingFormat
|
|
979
|
+
> = z.nativeEnum(GetAllPromptsEncodingFormat);
|
|
2944
980
|
|
|
2945
981
|
/** @internal */
|
|
2946
|
-
export const
|
|
2947
|
-
typeof
|
|
2948
|
-
> =
|
|
982
|
+
export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
983
|
+
typeof GetAllPromptsEncodingFormat
|
|
984
|
+
> = GetAllPromptsEncodingFormat$inboundSchema;
|
|
2949
985
|
|
|
2950
986
|
/**
|
|
2951
987
|
* @internal
|
|
2952
988
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2953
989
|
*/
|
|
2954
|
-
export namespace
|
|
2955
|
-
/** @deprecated use `
|
|
2956
|
-
export const inboundSchema =
|
|
2957
|
-
/** @deprecated use `
|
|
2958
|
-
export const outboundSchema =
|
|
2959
|
-
GetAllPromptsPromptsEncodingFormat$outboundSchema;
|
|
990
|
+
export namespace GetAllPromptsEncodingFormat$ {
|
|
991
|
+
/** @deprecated use `GetAllPromptsEncodingFormat$inboundSchema` instead. */
|
|
992
|
+
export const inboundSchema = GetAllPromptsEncodingFormat$inboundSchema;
|
|
993
|
+
/** @deprecated use `GetAllPromptsEncodingFormat$outboundSchema` instead. */
|
|
994
|
+
export const outboundSchema = GetAllPromptsEncodingFormat$outboundSchema;
|
|
2960
995
|
}
|
|
2961
996
|
|
|
2962
997
|
/** @internal */
|
|
2963
|
-
export const
|
|
2964
|
-
typeof
|
|
2965
|
-
> = z.nativeEnum(
|
|
998
|
+
export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
999
|
+
typeof GetAllPromptsReasoningEffort
|
|
1000
|
+
> = z.nativeEnum(GetAllPromptsReasoningEffort);
|
|
2966
1001
|
|
|
2967
1002
|
/** @internal */
|
|
2968
|
-
export const
|
|
2969
|
-
|
|
2970
|
-
|
|
1003
|
+
export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1004
|
+
typeof GetAllPromptsReasoningEffort
|
|
1005
|
+
> = GetAllPromptsReasoningEffort$inboundSchema;
|
|
2971
1006
|
|
|
2972
1007
|
/**
|
|
2973
1008
|
* @internal
|
|
2974
1009
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2975
1010
|
*/
|
|
2976
|
-
export namespace
|
|
2977
|
-
/** @deprecated use `
|
|
2978
|
-
export const inboundSchema =
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
export const outboundSchema =
|
|
2982
|
-
GetAllPromptsPromptsReasoningEffort$outboundSchema;
|
|
1011
|
+
export namespace GetAllPromptsReasoningEffort$ {
|
|
1012
|
+
/** @deprecated use `GetAllPromptsReasoningEffort$inboundSchema` instead. */
|
|
1013
|
+
export const inboundSchema = GetAllPromptsReasoningEffort$inboundSchema;
|
|
1014
|
+
/** @deprecated use `GetAllPromptsReasoningEffort$outboundSchema` instead. */
|
|
1015
|
+
export const outboundSchema = GetAllPromptsReasoningEffort$outboundSchema;
|
|
2983
1016
|
}
|
|
2984
1017
|
|
|
2985
1018
|
/** @internal */
|
|
2986
|
-
export const
|
|
2987
|
-
|
|
1019
|
+
export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
1020
|
+
GetAllPromptsModelParameters,
|
|
2988
1021
|
z.ZodTypeDef,
|
|
2989
1022
|
unknown
|
|
2990
1023
|
> = z.object({
|
|
@@ -2996,20 +1029,19 @@ export const GetAllPromptsPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
2996
1029
|
presencePenalty: z.number().optional(),
|
|
2997
1030
|
numImages: z.number().optional(),
|
|
2998
1031
|
seed: z.number().optional(),
|
|
2999
|
-
format:
|
|
1032
|
+
format: GetAllPromptsFormat$inboundSchema.optional(),
|
|
3000
1033
|
dimensions: z.string().optional(),
|
|
3001
|
-
quality:
|
|
1034
|
+
quality: GetAllPromptsQuality$inboundSchema.optional(),
|
|
3002
1035
|
style: z.string().optional(),
|
|
3003
1036
|
responseFormat: z.nullable(
|
|
3004
1037
|
z.union([
|
|
3005
|
-
z.lazy(() =>
|
|
3006
|
-
z.lazy(() =>
|
|
1038
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1039
|
+
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
3007
1040
|
]),
|
|
3008
1041
|
).optional(),
|
|
3009
|
-
photoRealVersion:
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
reasoningEffort: GetAllPromptsPromptsReasoningEffort$inboundSchema.optional(),
|
|
1042
|
+
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
1043
|
+
encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
|
|
1044
|
+
reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
|
|
3013
1045
|
}).transform((v) => {
|
|
3014
1046
|
return remap$(v, {
|
|
3015
1047
|
"encoding_format": "encodingFormat",
|
|
@@ -3017,7 +1049,7 @@ export const GetAllPromptsPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
3017
1049
|
});
|
|
3018
1050
|
|
|
3019
1051
|
/** @internal */
|
|
3020
|
-
export type
|
|
1052
|
+
export type GetAllPromptsModelParameters$Outbound = {
|
|
3021
1053
|
temperature?: number | undefined;
|
|
3022
1054
|
maxTokens?: number | undefined;
|
|
3023
1055
|
topK?: number | undefined;
|
|
@@ -3031,8 +1063,8 @@ export type GetAllPromptsPromptsModelParameters$Outbound = {
|
|
|
3031
1063
|
quality?: string | undefined;
|
|
3032
1064
|
style?: string | undefined;
|
|
3033
1065
|
responseFormat?:
|
|
3034
|
-
|
|
|
3035
|
-
|
|
|
1066
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1067
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
3036
1068
|
| null
|
|
3037
1069
|
| undefined;
|
|
3038
1070
|
photoRealVersion?: string | undefined;
|
|
@@ -3041,10 +1073,10 @@ export type GetAllPromptsPromptsModelParameters$Outbound = {
|
|
|
3041
1073
|
};
|
|
3042
1074
|
|
|
3043
1075
|
/** @internal */
|
|
3044
|
-
export const
|
|
3045
|
-
|
|
1076
|
+
export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
1077
|
+
GetAllPromptsModelParameters$Outbound,
|
|
3046
1078
|
z.ZodTypeDef,
|
|
3047
|
-
|
|
1079
|
+
GetAllPromptsModelParameters
|
|
3048
1080
|
> = z.object({
|
|
3049
1081
|
temperature: z.number().optional(),
|
|
3050
1082
|
maxTokens: z.number().optional(),
|
|
@@ -3054,21 +1086,19 @@ export const GetAllPromptsPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
3054
1086
|
presencePenalty: z.number().optional(),
|
|
3055
1087
|
numImages: z.number().optional(),
|
|
3056
1088
|
seed: z.number().optional(),
|
|
3057
|
-
format:
|
|
1089
|
+
format: GetAllPromptsFormat$outboundSchema.optional(),
|
|
3058
1090
|
dimensions: z.string().optional(),
|
|
3059
|
-
quality:
|
|
1091
|
+
quality: GetAllPromptsQuality$outboundSchema.optional(),
|
|
3060
1092
|
style: z.string().optional(),
|
|
3061
1093
|
responseFormat: z.nullable(
|
|
3062
1094
|
z.union([
|
|
3063
|
-
z.lazy(() =>
|
|
3064
|
-
z.lazy(() =>
|
|
1095
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1096
|
+
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
3065
1097
|
]),
|
|
3066
1098
|
).optional(),
|
|
3067
|
-
photoRealVersion:
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
reasoningEffort: GetAllPromptsPromptsReasoningEffort$outboundSchema
|
|
3071
|
-
.optional(),
|
|
1099
|
+
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
1100
|
+
encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
|
|
1101
|
+
reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
|
|
3072
1102
|
}).transform((v) => {
|
|
3073
1103
|
return remap$(v, {
|
|
3074
1104
|
encodingFormat: "encoding_format",
|
|
@@ -3079,107 +1109,101 @@ export const GetAllPromptsPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
3079
1109
|
* @internal
|
|
3080
1110
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3081
1111
|
*/
|
|
3082
|
-
export namespace
|
|
3083
|
-
/** @deprecated use `
|
|
3084
|
-
export const inboundSchema =
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
/** @deprecated use `GetAllPromptsPromptsModelParameters$Outbound` instead. */
|
|
3090
|
-
export type Outbound = GetAllPromptsPromptsModelParameters$Outbound;
|
|
1112
|
+
export namespace GetAllPromptsModelParameters$ {
|
|
1113
|
+
/** @deprecated use `GetAllPromptsModelParameters$inboundSchema` instead. */
|
|
1114
|
+
export const inboundSchema = GetAllPromptsModelParameters$inboundSchema;
|
|
1115
|
+
/** @deprecated use `GetAllPromptsModelParameters$outboundSchema` instead. */
|
|
1116
|
+
export const outboundSchema = GetAllPromptsModelParameters$outboundSchema;
|
|
1117
|
+
/** @deprecated use `GetAllPromptsModelParameters$Outbound` instead. */
|
|
1118
|
+
export type Outbound = GetAllPromptsModelParameters$Outbound;
|
|
3091
1119
|
}
|
|
3092
1120
|
|
|
3093
|
-
export function
|
|
3094
|
-
|
|
1121
|
+
export function getAllPromptsModelParametersToJSON(
|
|
1122
|
+
getAllPromptsModelParameters: GetAllPromptsModelParameters,
|
|
3095
1123
|
): string {
|
|
3096
1124
|
return JSON.stringify(
|
|
3097
|
-
|
|
3098
|
-
|
|
1125
|
+
GetAllPromptsModelParameters$outboundSchema.parse(
|
|
1126
|
+
getAllPromptsModelParameters,
|
|
3099
1127
|
),
|
|
3100
1128
|
);
|
|
3101
1129
|
}
|
|
3102
1130
|
|
|
3103
|
-
export function
|
|
1131
|
+
export function getAllPromptsModelParametersFromJSON(
|
|
3104
1132
|
jsonString: string,
|
|
3105
|
-
): SafeParseResult<
|
|
1133
|
+
): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
|
|
3106
1134
|
return safeParse(
|
|
3107
1135
|
jsonString,
|
|
3108
|
-
(x) =>
|
|
3109
|
-
|
|
3110
|
-
`Failed to parse 'GetAllPromptsPromptsModelParameters' from JSON`,
|
|
1136
|
+
(x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1137
|
+
`Failed to parse 'GetAllPromptsModelParameters' from JSON`,
|
|
3111
1138
|
);
|
|
3112
1139
|
}
|
|
3113
1140
|
|
|
3114
1141
|
/** @internal */
|
|
3115
|
-
export const
|
|
3116
|
-
typeof
|
|
3117
|
-
> = z.nativeEnum(
|
|
1142
|
+
export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
|
|
1143
|
+
typeof GetAllPromptsProvider
|
|
1144
|
+
> = z.nativeEnum(GetAllPromptsProvider);
|
|
3118
1145
|
|
|
3119
1146
|
/** @internal */
|
|
3120
|
-
export const
|
|
3121
|
-
typeof
|
|
3122
|
-
> =
|
|
1147
|
+
export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1148
|
+
typeof GetAllPromptsProvider
|
|
1149
|
+
> = GetAllPromptsProvider$inboundSchema;
|
|
3123
1150
|
|
|
3124
1151
|
/**
|
|
3125
1152
|
* @internal
|
|
3126
1153
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3127
1154
|
*/
|
|
3128
|
-
export namespace
|
|
3129
|
-
/** @deprecated use `
|
|
3130
|
-
export const inboundSchema =
|
|
3131
|
-
/** @deprecated use `
|
|
3132
|
-
export const outboundSchema =
|
|
1155
|
+
export namespace GetAllPromptsProvider$ {
|
|
1156
|
+
/** @deprecated use `GetAllPromptsProvider$inboundSchema` instead. */
|
|
1157
|
+
export const inboundSchema = GetAllPromptsProvider$inboundSchema;
|
|
1158
|
+
/** @deprecated use `GetAllPromptsProvider$outboundSchema` instead. */
|
|
1159
|
+
export const outboundSchema = GetAllPromptsProvider$outboundSchema;
|
|
3133
1160
|
}
|
|
3134
1161
|
|
|
3135
1162
|
/** @internal */
|
|
3136
|
-
export const
|
|
3137
|
-
typeof
|
|
3138
|
-
> = z.nativeEnum(
|
|
1163
|
+
export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
|
|
1164
|
+
typeof GetAllPromptsRole
|
|
1165
|
+
> = z.nativeEnum(GetAllPromptsRole);
|
|
3139
1166
|
|
|
3140
1167
|
/** @internal */
|
|
3141
|
-
export const
|
|
3142
|
-
typeof
|
|
3143
|
-
> =
|
|
1168
|
+
export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
|
|
1169
|
+
typeof GetAllPromptsRole
|
|
1170
|
+
> = GetAllPromptsRole$inboundSchema;
|
|
3144
1171
|
|
|
3145
1172
|
/**
|
|
3146
1173
|
* @internal
|
|
3147
1174
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3148
1175
|
*/
|
|
3149
|
-
export namespace
|
|
3150
|
-
/** @deprecated use `
|
|
3151
|
-
export const inboundSchema =
|
|
3152
|
-
/** @deprecated use `
|
|
3153
|
-
export const outboundSchema =
|
|
1176
|
+
export namespace GetAllPromptsRole$ {
|
|
1177
|
+
/** @deprecated use `GetAllPromptsRole$inboundSchema` instead. */
|
|
1178
|
+
export const inboundSchema = GetAllPromptsRole$inboundSchema;
|
|
1179
|
+
/** @deprecated use `GetAllPromptsRole$outboundSchema` instead. */
|
|
1180
|
+
export const outboundSchema = GetAllPromptsRole$outboundSchema;
|
|
3154
1181
|
}
|
|
3155
1182
|
|
|
3156
1183
|
/** @internal */
|
|
3157
|
-
export const
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
);
|
|
1184
|
+
export const GetAllPrompts2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1185
|
+
typeof GetAllPrompts2PromptsType
|
|
1186
|
+
> = z.nativeEnum(GetAllPrompts2PromptsType);
|
|
3161
1187
|
|
|
3162
1188
|
/** @internal */
|
|
3163
|
-
export const
|
|
3164
|
-
|
|
3165
|
-
|
|
1189
|
+
export const GetAllPrompts2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1190
|
+
typeof GetAllPrompts2PromptsType
|
|
1191
|
+
> = GetAllPrompts2PromptsType$inboundSchema;
|
|
3166
1192
|
|
|
3167
1193
|
/**
|
|
3168
1194
|
* @internal
|
|
3169
1195
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3170
1196
|
*/
|
|
3171
|
-
export namespace
|
|
3172
|
-
/** @deprecated use `
|
|
3173
|
-
export const inboundSchema =
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
export const outboundSchema =
|
|
3177
|
-
GetAllPrompts2PromptsResponse200Type$outboundSchema;
|
|
1197
|
+
export namespace GetAllPrompts2PromptsType$ {
|
|
1198
|
+
/** @deprecated use `GetAllPrompts2PromptsType$inboundSchema` instead. */
|
|
1199
|
+
export const inboundSchema = GetAllPrompts2PromptsType$inboundSchema;
|
|
1200
|
+
/** @deprecated use `GetAllPrompts2PromptsType$outboundSchema` instead. */
|
|
1201
|
+
export const outboundSchema = GetAllPrompts2PromptsType$outboundSchema;
|
|
3178
1202
|
}
|
|
3179
1203
|
|
|
3180
1204
|
/** @internal */
|
|
3181
|
-
export const
|
|
3182
|
-
|
|
1205
|
+
export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
|
|
1206
|
+
GetAllPrompts2ImageUrl,
|
|
3183
1207
|
z.ZodTypeDef,
|
|
3184
1208
|
unknown
|
|
3185
1209
|
> = z.object({
|
|
@@ -3189,17 +1213,17 @@ export const GetAllPrompts2PromptsImageUrl$inboundSchema: z.ZodType<
|
|
|
3189
1213
|
});
|
|
3190
1214
|
|
|
3191
1215
|
/** @internal */
|
|
3192
|
-
export type
|
|
1216
|
+
export type GetAllPrompts2ImageUrl$Outbound = {
|
|
3193
1217
|
id?: string | undefined;
|
|
3194
1218
|
url: string;
|
|
3195
1219
|
detail?: string | undefined;
|
|
3196
1220
|
};
|
|
3197
1221
|
|
|
3198
1222
|
/** @internal */
|
|
3199
|
-
export const
|
|
3200
|
-
|
|
1223
|
+
export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
|
|
1224
|
+
GetAllPrompts2ImageUrl$Outbound,
|
|
3201
1225
|
z.ZodTypeDef,
|
|
3202
|
-
|
|
1226
|
+
GetAllPrompts2ImageUrl
|
|
3203
1227
|
> = z.object({
|
|
3204
1228
|
id: z.string().optional(),
|
|
3205
1229
|
url: z.string(),
|
|
@@ -3210,43 +1234,41 @@ export const GetAllPrompts2PromptsImageUrl$outboundSchema: z.ZodType<
|
|
|
3210
1234
|
* @internal
|
|
3211
1235
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3212
1236
|
*/
|
|
3213
|
-
export namespace
|
|
3214
|
-
/** @deprecated use `
|
|
3215
|
-
export const inboundSchema =
|
|
3216
|
-
/** @deprecated use `
|
|
3217
|
-
export const outboundSchema =
|
|
3218
|
-
/** @deprecated use `
|
|
3219
|
-
export type Outbound =
|
|
1237
|
+
export namespace GetAllPrompts2ImageUrl$ {
|
|
1238
|
+
/** @deprecated use `GetAllPrompts2ImageUrl$inboundSchema` instead. */
|
|
1239
|
+
export const inboundSchema = GetAllPrompts2ImageUrl$inboundSchema;
|
|
1240
|
+
/** @deprecated use `GetAllPrompts2ImageUrl$outboundSchema` instead. */
|
|
1241
|
+
export const outboundSchema = GetAllPrompts2ImageUrl$outboundSchema;
|
|
1242
|
+
/** @deprecated use `GetAllPrompts2ImageUrl$Outbound` instead. */
|
|
1243
|
+
export type Outbound = GetAllPrompts2ImageUrl$Outbound;
|
|
3220
1244
|
}
|
|
3221
1245
|
|
|
3222
|
-
export function
|
|
3223
|
-
|
|
1246
|
+
export function getAllPrompts2ImageUrlToJSON(
|
|
1247
|
+
getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
|
|
3224
1248
|
): string {
|
|
3225
1249
|
return JSON.stringify(
|
|
3226
|
-
|
|
3227
|
-
getAllPrompts2PromptsImageUrl,
|
|
3228
|
-
),
|
|
1250
|
+
GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
|
|
3229
1251
|
);
|
|
3230
1252
|
}
|
|
3231
1253
|
|
|
3232
|
-
export function
|
|
1254
|
+
export function getAllPrompts2ImageUrlFromJSON(
|
|
3233
1255
|
jsonString: string,
|
|
3234
|
-
): SafeParseResult<
|
|
1256
|
+
): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
|
|
3235
1257
|
return safeParse(
|
|
3236
1258
|
jsonString,
|
|
3237
|
-
(x) =>
|
|
3238
|
-
`Failed to parse '
|
|
1259
|
+
(x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1260
|
+
`Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
|
|
3239
1261
|
);
|
|
3240
1262
|
}
|
|
3241
1263
|
|
|
3242
1264
|
/** @internal */
|
|
3243
|
-
export const
|
|
3244
|
-
|
|
1265
|
+
export const GetAllPrompts22$inboundSchema: z.ZodType<
|
|
1266
|
+
GetAllPrompts22,
|
|
3245
1267
|
z.ZodTypeDef,
|
|
3246
1268
|
unknown
|
|
3247
1269
|
> = z.object({
|
|
3248
|
-
type:
|
|
3249
|
-
image_url: z.lazy(() =>
|
|
1270
|
+
type: GetAllPrompts2PromptsType$inboundSchema,
|
|
1271
|
+
image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
|
|
3250
1272
|
}).transform((v) => {
|
|
3251
1273
|
return remap$(v, {
|
|
3252
1274
|
"image_url": "imageUrl",
|
|
@@ -3254,19 +1276,19 @@ export const GetAllPrompts2Prompts2$inboundSchema: z.ZodType<
|
|
|
3254
1276
|
});
|
|
3255
1277
|
|
|
3256
1278
|
/** @internal */
|
|
3257
|
-
export type
|
|
1279
|
+
export type GetAllPrompts22$Outbound = {
|
|
3258
1280
|
type: string;
|
|
3259
|
-
image_url:
|
|
1281
|
+
image_url: GetAllPrompts2ImageUrl$Outbound;
|
|
3260
1282
|
};
|
|
3261
1283
|
|
|
3262
1284
|
/** @internal */
|
|
3263
|
-
export const
|
|
3264
|
-
|
|
1285
|
+
export const GetAllPrompts22$outboundSchema: z.ZodType<
|
|
1286
|
+
GetAllPrompts22$Outbound,
|
|
3265
1287
|
z.ZodTypeDef,
|
|
3266
|
-
|
|
1288
|
+
GetAllPrompts22
|
|
3267
1289
|
> = z.object({
|
|
3268
|
-
type:
|
|
3269
|
-
imageUrl: z.lazy(() =>
|
|
1290
|
+
type: GetAllPrompts2PromptsType$outboundSchema,
|
|
1291
|
+
imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
|
|
3270
1292
|
}).transform((v) => {
|
|
3271
1293
|
return remap$(v, {
|
|
3272
1294
|
imageUrl: "image_url",
|
|
@@ -3277,78 +1299,75 @@ export const GetAllPrompts2Prompts2$outboundSchema: z.ZodType<
|
|
|
3277
1299
|
* @internal
|
|
3278
1300
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3279
1301
|
*/
|
|
3280
|
-
export namespace
|
|
3281
|
-
/** @deprecated use `
|
|
3282
|
-
export const inboundSchema =
|
|
3283
|
-
/** @deprecated use `
|
|
3284
|
-
export const outboundSchema =
|
|
3285
|
-
/** @deprecated use `
|
|
3286
|
-
export type Outbound =
|
|
1302
|
+
export namespace GetAllPrompts22$ {
|
|
1303
|
+
/** @deprecated use `GetAllPrompts22$inboundSchema` instead. */
|
|
1304
|
+
export const inboundSchema = GetAllPrompts22$inboundSchema;
|
|
1305
|
+
/** @deprecated use `GetAllPrompts22$outboundSchema` instead. */
|
|
1306
|
+
export const outboundSchema = GetAllPrompts22$outboundSchema;
|
|
1307
|
+
/** @deprecated use `GetAllPrompts22$Outbound` instead. */
|
|
1308
|
+
export type Outbound = GetAllPrompts22$Outbound;
|
|
3287
1309
|
}
|
|
3288
1310
|
|
|
3289
|
-
export function
|
|
3290
|
-
|
|
1311
|
+
export function getAllPrompts22ToJSON(
|
|
1312
|
+
getAllPrompts22: GetAllPrompts22,
|
|
3291
1313
|
): string {
|
|
3292
|
-
return JSON.stringify(
|
|
3293
|
-
GetAllPrompts2Prompts2$outboundSchema.parse(getAllPrompts2Prompts2),
|
|
3294
|
-
);
|
|
1314
|
+
return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
|
|
3295
1315
|
}
|
|
3296
1316
|
|
|
3297
|
-
export function
|
|
1317
|
+
export function getAllPrompts22FromJSON(
|
|
3298
1318
|
jsonString: string,
|
|
3299
|
-
): SafeParseResult<
|
|
1319
|
+
): SafeParseResult<GetAllPrompts22, SDKValidationError> {
|
|
3300
1320
|
return safeParse(
|
|
3301
1321
|
jsonString,
|
|
3302
|
-
(x) =>
|
|
3303
|
-
`Failed to parse '
|
|
1322
|
+
(x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
|
|
1323
|
+
`Failed to parse 'GetAllPrompts22' from JSON`,
|
|
3304
1324
|
);
|
|
3305
1325
|
}
|
|
3306
1326
|
|
|
3307
1327
|
/** @internal */
|
|
3308
|
-
export const
|
|
3309
|
-
typeof
|
|
3310
|
-
> = z.nativeEnum(
|
|
1328
|
+
export const GetAllPrompts2Type$inboundSchema: z.ZodNativeEnum<
|
|
1329
|
+
typeof GetAllPrompts2Type
|
|
1330
|
+
> = z.nativeEnum(GetAllPrompts2Type);
|
|
3311
1331
|
|
|
3312
1332
|
/** @internal */
|
|
3313
|
-
export const
|
|
3314
|
-
typeof
|
|
3315
|
-
> =
|
|
1333
|
+
export const GetAllPrompts2Type$outboundSchema: z.ZodNativeEnum<
|
|
1334
|
+
typeof GetAllPrompts2Type
|
|
1335
|
+
> = GetAllPrompts2Type$inboundSchema;
|
|
3316
1336
|
|
|
3317
1337
|
/**
|
|
3318
1338
|
* @internal
|
|
3319
1339
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3320
1340
|
*/
|
|
3321
|
-
export namespace
|
|
3322
|
-
/** @deprecated use `
|
|
3323
|
-
export const inboundSchema =
|
|
3324
|
-
/** @deprecated use `
|
|
3325
|
-
export const outboundSchema =
|
|
3326
|
-
GetAllPrompts2PromptsResponseType$outboundSchema;
|
|
1341
|
+
export namespace GetAllPrompts2Type$ {
|
|
1342
|
+
/** @deprecated use `GetAllPrompts2Type$inboundSchema` instead. */
|
|
1343
|
+
export const inboundSchema = GetAllPrompts2Type$inboundSchema;
|
|
1344
|
+
/** @deprecated use `GetAllPrompts2Type$outboundSchema` instead. */
|
|
1345
|
+
export const outboundSchema = GetAllPrompts2Type$outboundSchema;
|
|
3327
1346
|
}
|
|
3328
1347
|
|
|
3329
1348
|
/** @internal */
|
|
3330
|
-
export const
|
|
3331
|
-
|
|
1349
|
+
export const GetAllPrompts21$inboundSchema: z.ZodType<
|
|
1350
|
+
GetAllPrompts21,
|
|
3332
1351
|
z.ZodTypeDef,
|
|
3333
1352
|
unknown
|
|
3334
1353
|
> = z.object({
|
|
3335
|
-
type:
|
|
1354
|
+
type: GetAllPrompts2Type$inboundSchema,
|
|
3336
1355
|
text: z.string(),
|
|
3337
1356
|
});
|
|
3338
1357
|
|
|
3339
1358
|
/** @internal */
|
|
3340
|
-
export type
|
|
1359
|
+
export type GetAllPrompts21$Outbound = {
|
|
3341
1360
|
type: string;
|
|
3342
1361
|
text: string;
|
|
3343
1362
|
};
|
|
3344
1363
|
|
|
3345
1364
|
/** @internal */
|
|
3346
|
-
export const
|
|
3347
|
-
|
|
1365
|
+
export const GetAllPrompts21$outboundSchema: z.ZodType<
|
|
1366
|
+
GetAllPrompts21$Outbound,
|
|
3348
1367
|
z.ZodTypeDef,
|
|
3349
|
-
|
|
1368
|
+
GetAllPrompts21
|
|
3350
1369
|
> = z.object({
|
|
3351
|
-
type:
|
|
1370
|
+
type: GetAllPrompts2Type$outboundSchema,
|
|
3352
1371
|
text: z.string(),
|
|
3353
1372
|
});
|
|
3354
1373
|
|
|
@@ -3356,119 +1375,115 @@ export const GetAllPrompts2Prompts1$outboundSchema: z.ZodType<
|
|
|
3356
1375
|
* @internal
|
|
3357
1376
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3358
1377
|
*/
|
|
3359
|
-
export namespace
|
|
3360
|
-
/** @deprecated use `
|
|
3361
|
-
export const inboundSchema =
|
|
3362
|
-
/** @deprecated use `
|
|
3363
|
-
export const outboundSchema =
|
|
3364
|
-
/** @deprecated use `
|
|
3365
|
-
export type Outbound =
|
|
1378
|
+
export namespace GetAllPrompts21$ {
|
|
1379
|
+
/** @deprecated use `GetAllPrompts21$inboundSchema` instead. */
|
|
1380
|
+
export const inboundSchema = GetAllPrompts21$inboundSchema;
|
|
1381
|
+
/** @deprecated use `GetAllPrompts21$outboundSchema` instead. */
|
|
1382
|
+
export const outboundSchema = GetAllPrompts21$outboundSchema;
|
|
1383
|
+
/** @deprecated use `GetAllPrompts21$Outbound` instead. */
|
|
1384
|
+
export type Outbound = GetAllPrompts21$Outbound;
|
|
3366
1385
|
}
|
|
3367
1386
|
|
|
3368
|
-
export function
|
|
3369
|
-
|
|
1387
|
+
export function getAllPrompts21ToJSON(
|
|
1388
|
+
getAllPrompts21: GetAllPrompts21,
|
|
3370
1389
|
): string {
|
|
3371
|
-
return JSON.stringify(
|
|
3372
|
-
GetAllPrompts2Prompts1$outboundSchema.parse(getAllPrompts2Prompts1),
|
|
3373
|
-
);
|
|
1390
|
+
return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
|
|
3374
1391
|
}
|
|
3375
1392
|
|
|
3376
|
-
export function
|
|
1393
|
+
export function getAllPrompts21FromJSON(
|
|
3377
1394
|
jsonString: string,
|
|
3378
|
-
): SafeParseResult<
|
|
1395
|
+
): SafeParseResult<GetAllPrompts21, SDKValidationError> {
|
|
3379
1396
|
return safeParse(
|
|
3380
1397
|
jsonString,
|
|
3381
|
-
(x) =>
|
|
3382
|
-
`Failed to parse '
|
|
1398
|
+
(x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
+
`Failed to parse 'GetAllPrompts21' from JSON`,
|
|
3383
1400
|
);
|
|
3384
1401
|
}
|
|
3385
1402
|
|
|
3386
1403
|
/** @internal */
|
|
3387
|
-
export const
|
|
3388
|
-
|
|
1404
|
+
export const GetAllPromptsContent2$inboundSchema: z.ZodType<
|
|
1405
|
+
GetAllPromptsContent2,
|
|
3389
1406
|
z.ZodTypeDef,
|
|
3390
1407
|
unknown
|
|
3391
1408
|
> = z.union([
|
|
3392
|
-
z.lazy(() =>
|
|
3393
|
-
z.lazy(() =>
|
|
1409
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1410
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
3394
1411
|
]);
|
|
3395
1412
|
|
|
3396
1413
|
/** @internal */
|
|
3397
|
-
export type
|
|
3398
|
-
|
|
|
3399
|
-
|
|
|
1414
|
+
export type GetAllPromptsContent2$Outbound =
|
|
1415
|
+
| GetAllPrompts21$Outbound
|
|
1416
|
+
| GetAllPrompts22$Outbound;
|
|
3400
1417
|
|
|
3401
1418
|
/** @internal */
|
|
3402
|
-
export const
|
|
3403
|
-
|
|
1419
|
+
export const GetAllPromptsContent2$outboundSchema: z.ZodType<
|
|
1420
|
+
GetAllPromptsContent2$Outbound,
|
|
3404
1421
|
z.ZodTypeDef,
|
|
3405
|
-
|
|
1422
|
+
GetAllPromptsContent2
|
|
3406
1423
|
> = z.union([
|
|
3407
|
-
z.lazy(() =>
|
|
3408
|
-
z.lazy(() =>
|
|
1424
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1425
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
3409
1426
|
]);
|
|
3410
1427
|
|
|
3411
1428
|
/**
|
|
3412
1429
|
* @internal
|
|
3413
1430
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3414
1431
|
*/
|
|
3415
|
-
export namespace
|
|
3416
|
-
/** @deprecated use `
|
|
3417
|
-
export const inboundSchema =
|
|
3418
|
-
/** @deprecated use `
|
|
3419
|
-
export const outboundSchema =
|
|
3420
|
-
/** @deprecated use `
|
|
3421
|
-
export type Outbound =
|
|
1432
|
+
export namespace GetAllPromptsContent2$ {
|
|
1433
|
+
/** @deprecated use `GetAllPromptsContent2$inboundSchema` instead. */
|
|
1434
|
+
export const inboundSchema = GetAllPromptsContent2$inboundSchema;
|
|
1435
|
+
/** @deprecated use `GetAllPromptsContent2$outboundSchema` instead. */
|
|
1436
|
+
export const outboundSchema = GetAllPromptsContent2$outboundSchema;
|
|
1437
|
+
/** @deprecated use `GetAllPromptsContent2$Outbound` instead. */
|
|
1438
|
+
export type Outbound = GetAllPromptsContent2$Outbound;
|
|
3422
1439
|
}
|
|
3423
1440
|
|
|
3424
|
-
export function
|
|
3425
|
-
|
|
1441
|
+
export function getAllPromptsContent2ToJSON(
|
|
1442
|
+
getAllPromptsContent2: GetAllPromptsContent2,
|
|
3426
1443
|
): string {
|
|
3427
1444
|
return JSON.stringify(
|
|
3428
|
-
|
|
3429
|
-
getAllPromptsContentPrompts2,
|
|
3430
|
-
),
|
|
1445
|
+
GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
|
|
3431
1446
|
);
|
|
3432
1447
|
}
|
|
3433
1448
|
|
|
3434
|
-
export function
|
|
1449
|
+
export function getAllPromptsContent2FromJSON(
|
|
3435
1450
|
jsonString: string,
|
|
3436
|
-
): SafeParseResult<
|
|
1451
|
+
): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
|
|
3437
1452
|
return safeParse(
|
|
3438
1453
|
jsonString,
|
|
3439
|
-
(x) =>
|
|
3440
|
-
`Failed to parse '
|
|
1454
|
+
(x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1455
|
+
`Failed to parse 'GetAllPromptsContent2' from JSON`,
|
|
3441
1456
|
);
|
|
3442
1457
|
}
|
|
3443
1458
|
|
|
3444
1459
|
/** @internal */
|
|
3445
|
-
export const
|
|
3446
|
-
|
|
1460
|
+
export const GetAllPromptsContent$inboundSchema: z.ZodType<
|
|
1461
|
+
GetAllPromptsContent,
|
|
3447
1462
|
z.ZodTypeDef,
|
|
3448
1463
|
unknown
|
|
3449
1464
|
> = z.union([
|
|
3450
1465
|
z.string(),
|
|
3451
1466
|
z.array(z.union([
|
|
3452
|
-
z.lazy(() =>
|
|
3453
|
-
z.lazy(() =>
|
|
1467
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1468
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
3454
1469
|
])),
|
|
3455
1470
|
]);
|
|
3456
1471
|
|
|
3457
1472
|
/** @internal */
|
|
3458
|
-
export type
|
|
1473
|
+
export type GetAllPromptsContent$Outbound =
|
|
3459
1474
|
| string
|
|
3460
|
-
| Array<
|
|
1475
|
+
| Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
|
|
3461
1476
|
|
|
3462
1477
|
/** @internal */
|
|
3463
|
-
export const
|
|
3464
|
-
|
|
1478
|
+
export const GetAllPromptsContent$outboundSchema: z.ZodType<
|
|
1479
|
+
GetAllPromptsContent$Outbound,
|
|
3465
1480
|
z.ZodTypeDef,
|
|
3466
|
-
|
|
1481
|
+
GetAllPromptsContent
|
|
3467
1482
|
> = z.union([
|
|
3468
1483
|
z.string(),
|
|
3469
1484
|
z.array(z.union([
|
|
3470
|
-
z.lazy(() =>
|
|
3471
|
-
z.lazy(() =>
|
|
1485
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1486
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
3472
1487
|
])),
|
|
3473
1488
|
]);
|
|
3474
1489
|
|
|
@@ -3476,59 +1491,57 @@ export const GetAllPromptsPromptsContent$outboundSchema: z.ZodType<
|
|
|
3476
1491
|
* @internal
|
|
3477
1492
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3478
1493
|
*/
|
|
3479
|
-
export namespace
|
|
3480
|
-
/** @deprecated use `
|
|
3481
|
-
export const inboundSchema =
|
|
3482
|
-
/** @deprecated use `
|
|
3483
|
-
export const outboundSchema =
|
|
3484
|
-
/** @deprecated use `
|
|
3485
|
-
export type Outbound =
|
|
1494
|
+
export namespace GetAllPromptsContent$ {
|
|
1495
|
+
/** @deprecated use `GetAllPromptsContent$inboundSchema` instead. */
|
|
1496
|
+
export const inboundSchema = GetAllPromptsContent$inboundSchema;
|
|
1497
|
+
/** @deprecated use `GetAllPromptsContent$outboundSchema` instead. */
|
|
1498
|
+
export const outboundSchema = GetAllPromptsContent$outboundSchema;
|
|
1499
|
+
/** @deprecated use `GetAllPromptsContent$Outbound` instead. */
|
|
1500
|
+
export type Outbound = GetAllPromptsContent$Outbound;
|
|
3486
1501
|
}
|
|
3487
1502
|
|
|
3488
|
-
export function
|
|
3489
|
-
|
|
1503
|
+
export function getAllPromptsContentToJSON(
|
|
1504
|
+
getAllPromptsContent: GetAllPromptsContent,
|
|
3490
1505
|
): string {
|
|
3491
1506
|
return JSON.stringify(
|
|
3492
|
-
|
|
3493
|
-
getAllPromptsPromptsContent,
|
|
3494
|
-
),
|
|
1507
|
+
GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
|
|
3495
1508
|
);
|
|
3496
1509
|
}
|
|
3497
1510
|
|
|
3498
|
-
export function
|
|
1511
|
+
export function getAllPromptsContentFromJSON(
|
|
3499
1512
|
jsonString: string,
|
|
3500
|
-
): SafeParseResult<
|
|
1513
|
+
): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
|
|
3501
1514
|
return safeParse(
|
|
3502
1515
|
jsonString,
|
|
3503
|
-
(x) =>
|
|
3504
|
-
`Failed to parse '
|
|
1516
|
+
(x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
|
|
1517
|
+
`Failed to parse 'GetAllPromptsContent' from JSON`,
|
|
3505
1518
|
);
|
|
3506
1519
|
}
|
|
3507
1520
|
|
|
3508
1521
|
/** @internal */
|
|
3509
|
-
export const
|
|
3510
|
-
typeof
|
|
3511
|
-
> = z.nativeEnum(
|
|
1522
|
+
export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1523
|
+
typeof GetAllPromptsPromptsType
|
|
1524
|
+
> = z.nativeEnum(GetAllPromptsPromptsType);
|
|
3512
1525
|
|
|
3513
1526
|
/** @internal */
|
|
3514
|
-
export const
|
|
3515
|
-
typeof
|
|
3516
|
-
> =
|
|
1527
|
+
export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1528
|
+
typeof GetAllPromptsPromptsType
|
|
1529
|
+
> = GetAllPromptsPromptsType$inboundSchema;
|
|
3517
1530
|
|
|
3518
1531
|
/**
|
|
3519
1532
|
* @internal
|
|
3520
1533
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3521
1534
|
*/
|
|
3522
|
-
export namespace
|
|
3523
|
-
/** @deprecated use `
|
|
3524
|
-
export const inboundSchema =
|
|
3525
|
-
/** @deprecated use `
|
|
3526
|
-
export const outboundSchema =
|
|
1535
|
+
export namespace GetAllPromptsPromptsType$ {
|
|
1536
|
+
/** @deprecated use `GetAllPromptsPromptsType$inboundSchema` instead. */
|
|
1537
|
+
export const inboundSchema = GetAllPromptsPromptsType$inboundSchema;
|
|
1538
|
+
/** @deprecated use `GetAllPromptsPromptsType$outboundSchema` instead. */
|
|
1539
|
+
export const outboundSchema = GetAllPromptsPromptsType$outboundSchema;
|
|
3527
1540
|
}
|
|
3528
1541
|
|
|
3529
1542
|
/** @internal */
|
|
3530
|
-
export const
|
|
3531
|
-
|
|
1543
|
+
export const GetAllPromptsFunction$inboundSchema: z.ZodType<
|
|
1544
|
+
GetAllPromptsFunction,
|
|
3532
1545
|
z.ZodTypeDef,
|
|
3533
1546
|
unknown
|
|
3534
1547
|
> = z.object({
|
|
@@ -3537,16 +1550,16 @@ export const GetAllPromptsPromptsFunction$inboundSchema: z.ZodType<
|
|
|
3537
1550
|
});
|
|
3538
1551
|
|
|
3539
1552
|
/** @internal */
|
|
3540
|
-
export type
|
|
1553
|
+
export type GetAllPromptsFunction$Outbound = {
|
|
3541
1554
|
name: string;
|
|
3542
1555
|
arguments: string;
|
|
3543
1556
|
};
|
|
3544
1557
|
|
|
3545
1558
|
/** @internal */
|
|
3546
|
-
export const
|
|
3547
|
-
|
|
1559
|
+
export const GetAllPromptsFunction$outboundSchema: z.ZodType<
|
|
1560
|
+
GetAllPromptsFunction$Outbound,
|
|
3548
1561
|
z.ZodTypeDef,
|
|
3549
|
-
|
|
1562
|
+
GetAllPromptsFunction
|
|
3550
1563
|
> = z.object({
|
|
3551
1564
|
name: z.string(),
|
|
3552
1565
|
arguments: z.string(),
|
|
@@ -3556,115 +1569,111 @@ export const GetAllPromptsPromptsFunction$outboundSchema: z.ZodType<
|
|
|
3556
1569
|
* @internal
|
|
3557
1570
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3558
1571
|
*/
|
|
3559
|
-
export namespace
|
|
3560
|
-
/** @deprecated use `
|
|
3561
|
-
export const inboundSchema =
|
|
3562
|
-
/** @deprecated use `
|
|
3563
|
-
export const outboundSchema =
|
|
3564
|
-
/** @deprecated use `
|
|
3565
|
-
export type Outbound =
|
|
1572
|
+
export namespace GetAllPromptsFunction$ {
|
|
1573
|
+
/** @deprecated use `GetAllPromptsFunction$inboundSchema` instead. */
|
|
1574
|
+
export const inboundSchema = GetAllPromptsFunction$inboundSchema;
|
|
1575
|
+
/** @deprecated use `GetAllPromptsFunction$outboundSchema` instead. */
|
|
1576
|
+
export const outboundSchema = GetAllPromptsFunction$outboundSchema;
|
|
1577
|
+
/** @deprecated use `GetAllPromptsFunction$Outbound` instead. */
|
|
1578
|
+
export type Outbound = GetAllPromptsFunction$Outbound;
|
|
3566
1579
|
}
|
|
3567
1580
|
|
|
3568
|
-
export function
|
|
3569
|
-
|
|
1581
|
+
export function getAllPromptsFunctionToJSON(
|
|
1582
|
+
getAllPromptsFunction: GetAllPromptsFunction,
|
|
3570
1583
|
): string {
|
|
3571
1584
|
return JSON.stringify(
|
|
3572
|
-
|
|
3573
|
-
getAllPromptsPromptsFunction,
|
|
3574
|
-
),
|
|
1585
|
+
GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
|
|
3575
1586
|
);
|
|
3576
1587
|
}
|
|
3577
1588
|
|
|
3578
|
-
export function
|
|
1589
|
+
export function getAllPromptsFunctionFromJSON(
|
|
3579
1590
|
jsonString: string,
|
|
3580
|
-
): SafeParseResult<
|
|
1591
|
+
): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
|
|
3581
1592
|
return safeParse(
|
|
3582
1593
|
jsonString,
|
|
3583
|
-
(x) =>
|
|
3584
|
-
`Failed to parse '
|
|
1594
|
+
(x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1595
|
+
`Failed to parse 'GetAllPromptsFunction' from JSON`,
|
|
3585
1596
|
);
|
|
3586
1597
|
}
|
|
3587
1598
|
|
|
3588
1599
|
/** @internal */
|
|
3589
|
-
export const
|
|
3590
|
-
|
|
1600
|
+
export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
|
|
1601
|
+
GetAllPromptsToolCalls,
|
|
3591
1602
|
z.ZodTypeDef,
|
|
3592
1603
|
unknown
|
|
3593
1604
|
> = z.object({
|
|
3594
1605
|
id: z.string().optional(),
|
|
3595
1606
|
index: z.number().optional(),
|
|
3596
|
-
type:
|
|
3597
|
-
function: z.lazy(() =>
|
|
1607
|
+
type: GetAllPromptsPromptsType$inboundSchema,
|
|
1608
|
+
function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
|
|
3598
1609
|
});
|
|
3599
1610
|
|
|
3600
1611
|
/** @internal */
|
|
3601
|
-
export type
|
|
1612
|
+
export type GetAllPromptsToolCalls$Outbound = {
|
|
3602
1613
|
id?: string | undefined;
|
|
3603
1614
|
index?: number | undefined;
|
|
3604
1615
|
type: string;
|
|
3605
|
-
function:
|
|
1616
|
+
function: GetAllPromptsFunction$Outbound;
|
|
3606
1617
|
};
|
|
3607
1618
|
|
|
3608
1619
|
/** @internal */
|
|
3609
|
-
export const
|
|
3610
|
-
|
|
1620
|
+
export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
|
|
1621
|
+
GetAllPromptsToolCalls$Outbound,
|
|
3611
1622
|
z.ZodTypeDef,
|
|
3612
|
-
|
|
1623
|
+
GetAllPromptsToolCalls
|
|
3613
1624
|
> = z.object({
|
|
3614
1625
|
id: z.string().optional(),
|
|
3615
1626
|
index: z.number().optional(),
|
|
3616
|
-
type:
|
|
3617
|
-
function: z.lazy(() =>
|
|
1627
|
+
type: GetAllPromptsPromptsType$outboundSchema,
|
|
1628
|
+
function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
|
|
3618
1629
|
});
|
|
3619
1630
|
|
|
3620
1631
|
/**
|
|
3621
1632
|
* @internal
|
|
3622
1633
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3623
1634
|
*/
|
|
3624
|
-
export namespace
|
|
3625
|
-
/** @deprecated use `
|
|
3626
|
-
export const inboundSchema =
|
|
3627
|
-
/** @deprecated use `
|
|
3628
|
-
export const outboundSchema =
|
|
3629
|
-
/** @deprecated use `
|
|
3630
|
-
export type Outbound =
|
|
1635
|
+
export namespace GetAllPromptsToolCalls$ {
|
|
1636
|
+
/** @deprecated use `GetAllPromptsToolCalls$inboundSchema` instead. */
|
|
1637
|
+
export const inboundSchema = GetAllPromptsToolCalls$inboundSchema;
|
|
1638
|
+
/** @deprecated use `GetAllPromptsToolCalls$outboundSchema` instead. */
|
|
1639
|
+
export const outboundSchema = GetAllPromptsToolCalls$outboundSchema;
|
|
1640
|
+
/** @deprecated use `GetAllPromptsToolCalls$Outbound` instead. */
|
|
1641
|
+
export type Outbound = GetAllPromptsToolCalls$Outbound;
|
|
3631
1642
|
}
|
|
3632
1643
|
|
|
3633
|
-
export function
|
|
3634
|
-
|
|
1644
|
+
export function getAllPromptsToolCallsToJSON(
|
|
1645
|
+
getAllPromptsToolCalls: GetAllPromptsToolCalls,
|
|
3635
1646
|
): string {
|
|
3636
1647
|
return JSON.stringify(
|
|
3637
|
-
|
|
3638
|
-
getAllPromptsPromptsToolCalls,
|
|
3639
|
-
),
|
|
1648
|
+
GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
|
|
3640
1649
|
);
|
|
3641
1650
|
}
|
|
3642
1651
|
|
|
3643
|
-
export function
|
|
1652
|
+
export function getAllPromptsToolCallsFromJSON(
|
|
3644
1653
|
jsonString: string,
|
|
3645
|
-
): SafeParseResult<
|
|
1654
|
+
): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
|
|
3646
1655
|
return safeParse(
|
|
3647
1656
|
jsonString,
|
|
3648
|
-
(x) =>
|
|
3649
|
-
`Failed to parse '
|
|
1657
|
+
(x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1658
|
+
`Failed to parse 'GetAllPromptsToolCalls' from JSON`,
|
|
3650
1659
|
);
|
|
3651
1660
|
}
|
|
3652
1661
|
|
|
3653
1662
|
/** @internal */
|
|
3654
|
-
export const
|
|
3655
|
-
|
|
1663
|
+
export const GetAllPromptsMessages$inboundSchema: z.ZodType<
|
|
1664
|
+
GetAllPromptsMessages,
|
|
3656
1665
|
z.ZodTypeDef,
|
|
3657
1666
|
unknown
|
|
3658
1667
|
> = z.object({
|
|
3659
|
-
role:
|
|
1668
|
+
role: GetAllPromptsRole$inboundSchema,
|
|
3660
1669
|
content: z.union([
|
|
3661
1670
|
z.string(),
|
|
3662
1671
|
z.array(z.union([
|
|
3663
|
-
z.lazy(() =>
|
|
3664
|
-
z.lazy(() =>
|
|
1672
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1673
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
3665
1674
|
])),
|
|
3666
1675
|
]),
|
|
3667
|
-
tool_calls: z.array(z.lazy(() =>
|
|
1676
|
+
tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
|
|
3668
1677
|
.optional(),
|
|
3669
1678
|
}).transform((v) => {
|
|
3670
1679
|
return remap$(v, {
|
|
@@ -3673,29 +1682,27 @@ export const GetAllPromptsPromptsMessages$inboundSchema: z.ZodType<
|
|
|
3673
1682
|
});
|
|
3674
1683
|
|
|
3675
1684
|
/** @internal */
|
|
3676
|
-
export type
|
|
1685
|
+
export type GetAllPromptsMessages$Outbound = {
|
|
3677
1686
|
role: string;
|
|
3678
|
-
content:
|
|
3679
|
-
|
|
3680
|
-
| Array<GetAllPrompts2Prompts1$Outbound | GetAllPrompts2Prompts2$Outbound>;
|
|
3681
|
-
tool_calls?: Array<GetAllPromptsPromptsToolCalls$Outbound> | undefined;
|
|
1687
|
+
content: string | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
|
|
1688
|
+
tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
|
|
3682
1689
|
};
|
|
3683
1690
|
|
|
3684
1691
|
/** @internal */
|
|
3685
|
-
export const
|
|
3686
|
-
|
|
1692
|
+
export const GetAllPromptsMessages$outboundSchema: z.ZodType<
|
|
1693
|
+
GetAllPromptsMessages$Outbound,
|
|
3687
1694
|
z.ZodTypeDef,
|
|
3688
|
-
|
|
1695
|
+
GetAllPromptsMessages
|
|
3689
1696
|
> = z.object({
|
|
3690
|
-
role:
|
|
1697
|
+
role: GetAllPromptsRole$outboundSchema,
|
|
3691
1698
|
content: z.union([
|
|
3692
1699
|
z.string(),
|
|
3693
1700
|
z.array(z.union([
|
|
3694
|
-
z.lazy(() =>
|
|
3695
|
-
z.lazy(() =>
|
|
1701
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1702
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
3696
1703
|
])),
|
|
3697
1704
|
]),
|
|
3698
|
-
toolCalls: z.array(z.lazy(() =>
|
|
1705
|
+
toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
|
|
3699
1706
|
.optional(),
|
|
3700
1707
|
}).transform((v) => {
|
|
3701
1708
|
return remap$(v, {
|
|
@@ -3707,52 +1714,49 @@ export const GetAllPromptsPromptsMessages$outboundSchema: z.ZodType<
|
|
|
3707
1714
|
* @internal
|
|
3708
1715
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3709
1716
|
*/
|
|
3710
|
-
export namespace
|
|
3711
|
-
/** @deprecated use `
|
|
3712
|
-
export const inboundSchema =
|
|
3713
|
-
/** @deprecated use `
|
|
3714
|
-
export const outboundSchema =
|
|
3715
|
-
/** @deprecated use `
|
|
3716
|
-
export type Outbound =
|
|
1717
|
+
export namespace GetAllPromptsMessages$ {
|
|
1718
|
+
/** @deprecated use `GetAllPromptsMessages$inboundSchema` instead. */
|
|
1719
|
+
export const inboundSchema = GetAllPromptsMessages$inboundSchema;
|
|
1720
|
+
/** @deprecated use `GetAllPromptsMessages$outboundSchema` instead. */
|
|
1721
|
+
export const outboundSchema = GetAllPromptsMessages$outboundSchema;
|
|
1722
|
+
/** @deprecated use `GetAllPromptsMessages$Outbound` instead. */
|
|
1723
|
+
export type Outbound = GetAllPromptsMessages$Outbound;
|
|
3717
1724
|
}
|
|
3718
1725
|
|
|
3719
|
-
export function
|
|
3720
|
-
|
|
1726
|
+
export function getAllPromptsMessagesToJSON(
|
|
1727
|
+
getAllPromptsMessages: GetAllPromptsMessages,
|
|
3721
1728
|
): string {
|
|
3722
1729
|
return JSON.stringify(
|
|
3723
|
-
|
|
3724
|
-
getAllPromptsPromptsMessages,
|
|
3725
|
-
),
|
|
1730
|
+
GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
|
|
3726
1731
|
);
|
|
3727
1732
|
}
|
|
3728
1733
|
|
|
3729
|
-
export function
|
|
1734
|
+
export function getAllPromptsMessagesFromJSON(
|
|
3730
1735
|
jsonString: string,
|
|
3731
|
-
): SafeParseResult<
|
|
1736
|
+
): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
|
|
3732
1737
|
return safeParse(
|
|
3733
1738
|
jsonString,
|
|
3734
|
-
(x) =>
|
|
3735
|
-
`Failed to parse '
|
|
1739
|
+
(x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1740
|
+
`Failed to parse 'GetAllPromptsMessages' from JSON`,
|
|
3736
1741
|
);
|
|
3737
1742
|
}
|
|
3738
1743
|
|
|
3739
1744
|
/** @internal */
|
|
3740
|
-
export const
|
|
3741
|
-
|
|
1745
|
+
export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
1746
|
+
GetAllPromptsPromptConfig,
|
|
3742
1747
|
z.ZodTypeDef,
|
|
3743
1748
|
unknown
|
|
3744
1749
|
> = z.object({
|
|
3745
1750
|
stream: z.boolean().optional(),
|
|
3746
1751
|
model: z.string().optional(),
|
|
3747
1752
|
model_db_id: z.string().optional(),
|
|
3748
|
-
model_type:
|
|
3749
|
-
model_parameters: z.lazy(() =>
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
provider: GetAllPromptsPromptsProvider$inboundSchema.optional(),
|
|
1753
|
+
model_type: GetAllPromptsModelType$inboundSchema.optional(),
|
|
1754
|
+
model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
|
|
1755
|
+
.optional(),
|
|
1756
|
+
provider: GetAllPromptsProvider$inboundSchema.optional(),
|
|
3753
1757
|
integration_id: z.nullable(z.string()).optional(),
|
|
3754
1758
|
version: z.string().optional(),
|
|
3755
|
-
messages: z.array(z.lazy(() =>
|
|
1759
|
+
messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
|
|
3756
1760
|
}).transform((v) => {
|
|
3757
1761
|
return remap$(v, {
|
|
3758
1762
|
"model_db_id": "modelDbId",
|
|
@@ -3763,35 +1767,34 @@ export const GetAllPromptsPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
3763
1767
|
});
|
|
3764
1768
|
|
|
3765
1769
|
/** @internal */
|
|
3766
|
-
export type
|
|
1770
|
+
export type GetAllPromptsPromptConfig$Outbound = {
|
|
3767
1771
|
stream?: boolean | undefined;
|
|
3768
1772
|
model?: string | undefined;
|
|
3769
1773
|
model_db_id?: string | undefined;
|
|
3770
1774
|
model_type?: string | undefined;
|
|
3771
|
-
model_parameters?:
|
|
1775
|
+
model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
|
|
3772
1776
|
provider?: string | undefined;
|
|
3773
1777
|
integration_id?: string | null | undefined;
|
|
3774
1778
|
version?: string | undefined;
|
|
3775
|
-
messages: Array<
|
|
1779
|
+
messages: Array<GetAllPromptsMessages$Outbound>;
|
|
3776
1780
|
};
|
|
3777
1781
|
|
|
3778
1782
|
/** @internal */
|
|
3779
|
-
export const
|
|
3780
|
-
|
|
1783
|
+
export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
1784
|
+
GetAllPromptsPromptConfig$Outbound,
|
|
3781
1785
|
z.ZodTypeDef,
|
|
3782
|
-
|
|
1786
|
+
GetAllPromptsPromptConfig
|
|
3783
1787
|
> = z.object({
|
|
3784
1788
|
stream: z.boolean().optional(),
|
|
3785
1789
|
model: z.string().optional(),
|
|
3786
1790
|
modelDbId: z.string().optional(),
|
|
3787
|
-
modelType:
|
|
3788
|
-
modelParameters: z.lazy(() =>
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
provider: GetAllPromptsPromptsProvider$outboundSchema.optional(),
|
|
1791
|
+
modelType: GetAllPromptsModelType$outboundSchema.optional(),
|
|
1792
|
+
modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
|
|
1793
|
+
.optional(),
|
|
1794
|
+
provider: GetAllPromptsProvider$outboundSchema.optional(),
|
|
3792
1795
|
integrationId: z.nullable(z.string()).optional(),
|
|
3793
1796
|
version: z.string().optional(),
|
|
3794
|
-
messages: z.array(z.lazy(() =>
|
|
1797
|
+
messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
|
|
3795
1798
|
}).transform((v) => {
|
|
3796
1799
|
return remap$(v, {
|
|
3797
1800
|
modelDbId: "model_db_id",
|
|
@@ -3805,85 +1808,83 @@ export const GetAllPromptsPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
|
3805
1808
|
* @internal
|
|
3806
1809
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3807
1810
|
*/
|
|
3808
|
-
export namespace
|
|
3809
|
-
/** @deprecated use `
|
|
3810
|
-
export const inboundSchema =
|
|
3811
|
-
/** @deprecated use `
|
|
3812
|
-
export const outboundSchema =
|
|
3813
|
-
/** @deprecated use `
|
|
3814
|
-
export type Outbound =
|
|
1811
|
+
export namespace GetAllPromptsPromptConfig$ {
|
|
1812
|
+
/** @deprecated use `GetAllPromptsPromptConfig$inboundSchema` instead. */
|
|
1813
|
+
export const inboundSchema = GetAllPromptsPromptConfig$inboundSchema;
|
|
1814
|
+
/** @deprecated use `GetAllPromptsPromptConfig$outboundSchema` instead. */
|
|
1815
|
+
export const outboundSchema = GetAllPromptsPromptConfig$outboundSchema;
|
|
1816
|
+
/** @deprecated use `GetAllPromptsPromptConfig$Outbound` instead. */
|
|
1817
|
+
export type Outbound = GetAllPromptsPromptConfig$Outbound;
|
|
3815
1818
|
}
|
|
3816
1819
|
|
|
3817
|
-
export function
|
|
3818
|
-
|
|
1820
|
+
export function getAllPromptsPromptConfigToJSON(
|
|
1821
|
+
getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
|
|
3819
1822
|
): string {
|
|
3820
1823
|
return JSON.stringify(
|
|
3821
|
-
|
|
3822
|
-
getAllPromptsPromptsPromptConfig,
|
|
3823
|
-
),
|
|
1824
|
+
GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
|
|
3824
1825
|
);
|
|
3825
1826
|
}
|
|
3826
1827
|
|
|
3827
|
-
export function
|
|
1828
|
+
export function getAllPromptsPromptConfigFromJSON(
|
|
3828
1829
|
jsonString: string,
|
|
3829
|
-
): SafeParseResult<
|
|
1830
|
+
): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
|
|
3830
1831
|
return safeParse(
|
|
3831
1832
|
jsonString,
|
|
3832
|
-
(x) =>
|
|
3833
|
-
`Failed to parse '
|
|
1833
|
+
(x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1834
|
+
`Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
|
|
3834
1835
|
);
|
|
3835
1836
|
}
|
|
3836
1837
|
|
|
3837
1838
|
/** @internal */
|
|
3838
|
-
export const
|
|
3839
|
-
typeof
|
|
3840
|
-
> = z.nativeEnum(
|
|
1839
|
+
export const GetAllPromptsUseCases$inboundSchema: z.ZodNativeEnum<
|
|
1840
|
+
typeof GetAllPromptsUseCases
|
|
1841
|
+
> = z.nativeEnum(GetAllPromptsUseCases);
|
|
3841
1842
|
|
|
3842
1843
|
/** @internal */
|
|
3843
|
-
export const
|
|
3844
|
-
typeof
|
|
3845
|
-
> =
|
|
1844
|
+
export const GetAllPromptsUseCases$outboundSchema: z.ZodNativeEnum<
|
|
1845
|
+
typeof GetAllPromptsUseCases
|
|
1846
|
+
> = GetAllPromptsUseCases$inboundSchema;
|
|
3846
1847
|
|
|
3847
1848
|
/**
|
|
3848
1849
|
* @internal
|
|
3849
1850
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3850
1851
|
*/
|
|
3851
|
-
export namespace
|
|
3852
|
-
/** @deprecated use `
|
|
3853
|
-
export const inboundSchema =
|
|
3854
|
-
/** @deprecated use `
|
|
3855
|
-
export const outboundSchema =
|
|
1852
|
+
export namespace GetAllPromptsUseCases$ {
|
|
1853
|
+
/** @deprecated use `GetAllPromptsUseCases$inboundSchema` instead. */
|
|
1854
|
+
export const inboundSchema = GetAllPromptsUseCases$inboundSchema;
|
|
1855
|
+
/** @deprecated use `GetAllPromptsUseCases$outboundSchema` instead. */
|
|
1856
|
+
export const outboundSchema = GetAllPromptsUseCases$outboundSchema;
|
|
3856
1857
|
}
|
|
3857
1858
|
|
|
3858
1859
|
/** @internal */
|
|
3859
|
-
export const
|
|
3860
|
-
typeof
|
|
3861
|
-
> = z.nativeEnum(
|
|
1860
|
+
export const GetAllPromptsLanguage$inboundSchema: z.ZodNativeEnum<
|
|
1861
|
+
typeof GetAllPromptsLanguage
|
|
1862
|
+
> = z.nativeEnum(GetAllPromptsLanguage);
|
|
3862
1863
|
|
|
3863
1864
|
/** @internal */
|
|
3864
|
-
export const
|
|
3865
|
-
typeof
|
|
3866
|
-
> =
|
|
1865
|
+
export const GetAllPromptsLanguage$outboundSchema: z.ZodNativeEnum<
|
|
1866
|
+
typeof GetAllPromptsLanguage
|
|
1867
|
+
> = GetAllPromptsLanguage$inboundSchema;
|
|
3867
1868
|
|
|
3868
1869
|
/**
|
|
3869
1870
|
* @internal
|
|
3870
1871
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3871
1872
|
*/
|
|
3872
|
-
export namespace
|
|
3873
|
-
/** @deprecated use `
|
|
3874
|
-
export const inboundSchema =
|
|
3875
|
-
/** @deprecated use `
|
|
3876
|
-
export const outboundSchema =
|
|
1873
|
+
export namespace GetAllPromptsLanguage$ {
|
|
1874
|
+
/** @deprecated use `GetAllPromptsLanguage$inboundSchema` instead. */
|
|
1875
|
+
export const inboundSchema = GetAllPromptsLanguage$inboundSchema;
|
|
1876
|
+
/** @deprecated use `GetAllPromptsLanguage$outboundSchema` instead. */
|
|
1877
|
+
export const outboundSchema = GetAllPromptsLanguage$outboundSchema;
|
|
3877
1878
|
}
|
|
3878
1879
|
|
|
3879
1880
|
/** @internal */
|
|
3880
|
-
export const
|
|
3881
|
-
|
|
1881
|
+
export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
|
|
1882
|
+
GetAllPromptsMetadata,
|
|
3882
1883
|
z.ZodTypeDef,
|
|
3883
1884
|
unknown
|
|
3884
1885
|
> = z.object({
|
|
3885
|
-
use_cases: z.array(
|
|
3886
|
-
language:
|
|
1886
|
+
use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
|
|
1887
|
+
language: GetAllPromptsLanguage$inboundSchema.optional(),
|
|
3887
1888
|
}).transform((v) => {
|
|
3888
1889
|
return remap$(v, {
|
|
3889
1890
|
"use_cases": "useCases",
|
|
@@ -3891,19 +1892,19 @@ export const GetAllPromptsPromptsMetadata$inboundSchema: z.ZodType<
|
|
|
3891
1892
|
});
|
|
3892
1893
|
|
|
3893
1894
|
/** @internal */
|
|
3894
|
-
export type
|
|
1895
|
+
export type GetAllPromptsMetadata$Outbound = {
|
|
3895
1896
|
use_cases?: Array<string> | undefined;
|
|
3896
1897
|
language?: string | undefined;
|
|
3897
1898
|
};
|
|
3898
1899
|
|
|
3899
1900
|
/** @internal */
|
|
3900
|
-
export const
|
|
3901
|
-
|
|
1901
|
+
export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
|
|
1902
|
+
GetAllPromptsMetadata$Outbound,
|
|
3902
1903
|
z.ZodTypeDef,
|
|
3903
|
-
|
|
1904
|
+
GetAllPromptsMetadata
|
|
3904
1905
|
> = z.object({
|
|
3905
|
-
useCases: z.array(
|
|
3906
|
-
language:
|
|
1906
|
+
useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
|
|
1907
|
+
language: GetAllPromptsLanguage$outboundSchema.optional(),
|
|
3907
1908
|
}).transform((v) => {
|
|
3908
1909
|
return remap$(v, {
|
|
3909
1910
|
useCases: "use_cases",
|
|
@@ -3914,118 +1915,30 @@ export const GetAllPromptsPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3914
1915
|
* @internal
|
|
3915
1916
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3916
1917
|
*/
|
|
3917
|
-
export namespace
|
|
3918
|
-
/** @deprecated use `
|
|
3919
|
-
export const inboundSchema =
|
|
3920
|
-
/** @deprecated use `
|
|
3921
|
-
export const outboundSchema =
|
|
3922
|
-
/** @deprecated use `
|
|
3923
|
-
export type Outbound =
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
|
-
export function getAllPromptsPromptsMetadataToJSON(
|
|
3927
|
-
getAllPromptsPromptsMetadata: GetAllPromptsPromptsMetadata,
|
|
3928
|
-
): string {
|
|
3929
|
-
return JSON.stringify(
|
|
3930
|
-
GetAllPromptsPromptsMetadata$outboundSchema.parse(
|
|
3931
|
-
getAllPromptsPromptsMetadata,
|
|
3932
|
-
),
|
|
3933
|
-
);
|
|
3934
|
-
}
|
|
3935
|
-
|
|
3936
|
-
export function getAllPromptsPromptsMetadataFromJSON(
|
|
3937
|
-
jsonString: string,
|
|
3938
|
-
): SafeParseResult<GetAllPromptsPromptsMetadata, SDKValidationError> {
|
|
3939
|
-
return safeParse(
|
|
3940
|
-
jsonString,
|
|
3941
|
-
(x) => GetAllPromptsPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
3942
|
-
`Failed to parse 'GetAllPromptsPromptsMetadata' from JSON`,
|
|
3943
|
-
);
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
/** @internal */
|
|
3947
|
-
export const GetAllPromptsVersions$inboundSchema: z.ZodType<
|
|
3948
|
-
GetAllPromptsVersions,
|
|
3949
|
-
z.ZodTypeDef,
|
|
3950
|
-
unknown
|
|
3951
|
-
> = z.object({
|
|
3952
|
-
_id: z.string(),
|
|
3953
|
-
created_by_id: z.string().optional(),
|
|
3954
|
-
updated_by_id: z.string().optional(),
|
|
3955
|
-
description: z.nullable(z.string()).optional(),
|
|
3956
|
-
prompt_config: z.lazy(() => GetAllPromptsPromptsPromptConfig$inboundSchema),
|
|
3957
|
-
metadata: z.lazy(() => GetAllPromptsPromptsMetadata$inboundSchema),
|
|
3958
|
-
timestamp: z.string(),
|
|
3959
|
-
}).transform((v) => {
|
|
3960
|
-
return remap$(v, {
|
|
3961
|
-
"_id": "id",
|
|
3962
|
-
"created_by_id": "createdById",
|
|
3963
|
-
"updated_by_id": "updatedById",
|
|
3964
|
-
"prompt_config": "promptConfig",
|
|
3965
|
-
});
|
|
3966
|
-
});
|
|
3967
|
-
|
|
3968
|
-
/** @internal */
|
|
3969
|
-
export type GetAllPromptsVersions$Outbound = {
|
|
3970
|
-
_id: string;
|
|
3971
|
-
created_by_id?: string | undefined;
|
|
3972
|
-
updated_by_id?: string | undefined;
|
|
3973
|
-
description?: string | null | undefined;
|
|
3974
|
-
prompt_config: GetAllPromptsPromptsPromptConfig$Outbound;
|
|
3975
|
-
metadata: GetAllPromptsPromptsMetadata$Outbound;
|
|
3976
|
-
timestamp: string;
|
|
3977
|
-
};
|
|
3978
|
-
|
|
3979
|
-
/** @internal */
|
|
3980
|
-
export const GetAllPromptsVersions$outboundSchema: z.ZodType<
|
|
3981
|
-
GetAllPromptsVersions$Outbound,
|
|
3982
|
-
z.ZodTypeDef,
|
|
3983
|
-
GetAllPromptsVersions
|
|
3984
|
-
> = z.object({
|
|
3985
|
-
id: z.string(),
|
|
3986
|
-
createdById: z.string().optional(),
|
|
3987
|
-
updatedById: z.string().optional(),
|
|
3988
|
-
description: z.nullable(z.string()).optional(),
|
|
3989
|
-
promptConfig: z.lazy(() => GetAllPromptsPromptsPromptConfig$outboundSchema),
|
|
3990
|
-
metadata: z.lazy(() => GetAllPromptsPromptsMetadata$outboundSchema),
|
|
3991
|
-
timestamp: z.string(),
|
|
3992
|
-
}).transform((v) => {
|
|
3993
|
-
return remap$(v, {
|
|
3994
|
-
id: "_id",
|
|
3995
|
-
createdById: "created_by_id",
|
|
3996
|
-
updatedById: "updated_by_id",
|
|
3997
|
-
promptConfig: "prompt_config",
|
|
3998
|
-
});
|
|
3999
|
-
});
|
|
4000
|
-
|
|
4001
|
-
/**
|
|
4002
|
-
* @internal
|
|
4003
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4004
|
-
*/
|
|
4005
|
-
export namespace GetAllPromptsVersions$ {
|
|
4006
|
-
/** @deprecated use `GetAllPromptsVersions$inboundSchema` instead. */
|
|
4007
|
-
export const inboundSchema = GetAllPromptsVersions$inboundSchema;
|
|
4008
|
-
/** @deprecated use `GetAllPromptsVersions$outboundSchema` instead. */
|
|
4009
|
-
export const outboundSchema = GetAllPromptsVersions$outboundSchema;
|
|
4010
|
-
/** @deprecated use `GetAllPromptsVersions$Outbound` instead. */
|
|
4011
|
-
export type Outbound = GetAllPromptsVersions$Outbound;
|
|
1918
|
+
export namespace GetAllPromptsMetadata$ {
|
|
1919
|
+
/** @deprecated use `GetAllPromptsMetadata$inboundSchema` instead. */
|
|
1920
|
+
export const inboundSchema = GetAllPromptsMetadata$inboundSchema;
|
|
1921
|
+
/** @deprecated use `GetAllPromptsMetadata$outboundSchema` instead. */
|
|
1922
|
+
export const outboundSchema = GetAllPromptsMetadata$outboundSchema;
|
|
1923
|
+
/** @deprecated use `GetAllPromptsMetadata$Outbound` instead. */
|
|
1924
|
+
export type Outbound = GetAllPromptsMetadata$Outbound;
|
|
4012
1925
|
}
|
|
4013
1926
|
|
|
4014
|
-
export function
|
|
4015
|
-
|
|
1927
|
+
export function getAllPromptsMetadataToJSON(
|
|
1928
|
+
getAllPromptsMetadata: GetAllPromptsMetadata,
|
|
4016
1929
|
): string {
|
|
4017
1930
|
return JSON.stringify(
|
|
4018
|
-
|
|
1931
|
+
GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata),
|
|
4019
1932
|
);
|
|
4020
1933
|
}
|
|
4021
1934
|
|
|
4022
|
-
export function
|
|
1935
|
+
export function getAllPromptsMetadataFromJSON(
|
|
4023
1936
|
jsonString: string,
|
|
4024
|
-
): SafeParseResult<
|
|
1937
|
+
): SafeParseResult<GetAllPromptsMetadata, SDKValidationError> {
|
|
4025
1938
|
return safeParse(
|
|
4026
1939
|
jsonString,
|
|
4027
|
-
(x) =>
|
|
4028
|
-
`Failed to parse '
|
|
1940
|
+
(x) => GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1941
|
+
`Failed to parse 'GetAllPromptsMetadata' from JSON`,
|
|
4029
1942
|
);
|
|
4030
1943
|
}
|
|
4031
1944
|
|
|
@@ -4036,28 +1949,24 @@ export const GetAllPromptsData$inboundSchema: z.ZodType<
|
|
|
4036
1949
|
unknown
|
|
4037
1950
|
> = z.object({
|
|
4038
1951
|
_id: z.string(),
|
|
4039
|
-
|
|
1952
|
+
type: GetAllPromptsType$inboundSchema,
|
|
1953
|
+
owner: z.string(),
|
|
4040
1954
|
domain_id: z.string(),
|
|
1955
|
+
created: z.string(),
|
|
1956
|
+
updated: z.string(),
|
|
4041
1957
|
created_by_id: z.string().optional(),
|
|
4042
|
-
display_name: z.string(),
|
|
4043
1958
|
updated_by_id: z.string().optional(),
|
|
1959
|
+
display_name: z.string(),
|
|
4044
1960
|
description: z.nullable(z.string()).optional(),
|
|
4045
1961
|
prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
|
|
4046
|
-
metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema),
|
|
4047
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4048
|
-
.optional(),
|
|
4049
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
4050
|
-
"2025-02-10T15:50:12.206Z",
|
|
4051
|
-
).transform(v => new Date(v)),
|
|
4052
|
-
type: GetAllPromptsType$inboundSchema,
|
|
4053
|
-
versions: z.array(z.lazy(() => GetAllPromptsVersions$inboundSchema)),
|
|
1962
|
+
metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema).optional(),
|
|
4054
1963
|
}).transform((v) => {
|
|
4055
1964
|
return remap$(v, {
|
|
4056
1965
|
"_id": "id",
|
|
4057
1966
|
"domain_id": "domainId",
|
|
4058
1967
|
"created_by_id": "createdById",
|
|
4059
|
-
"display_name": "displayName",
|
|
4060
1968
|
"updated_by_id": "updatedById",
|
|
1969
|
+
"display_name": "displayName",
|
|
4061
1970
|
"prompt_config": "promptConfig",
|
|
4062
1971
|
});
|
|
4063
1972
|
});
|
|
@@ -4065,18 +1974,17 @@ export const GetAllPromptsData$inboundSchema: z.ZodType<
|
|
|
4065
1974
|
/** @internal */
|
|
4066
1975
|
export type GetAllPromptsData$Outbound = {
|
|
4067
1976
|
_id: string;
|
|
4068
|
-
|
|
1977
|
+
type: string;
|
|
1978
|
+
owner: string;
|
|
4069
1979
|
domain_id: string;
|
|
1980
|
+
created: string;
|
|
1981
|
+
updated: string;
|
|
4070
1982
|
created_by_id?: string | undefined;
|
|
4071
|
-
display_name: string;
|
|
4072
1983
|
updated_by_id?: string | undefined;
|
|
1984
|
+
display_name: string;
|
|
4073
1985
|
description?: string | null | undefined;
|
|
4074
1986
|
prompt_config: GetAllPromptsPromptConfig$Outbound;
|
|
4075
|
-
metadata
|
|
4076
|
-
created?: string | undefined;
|
|
4077
|
-
updated: string;
|
|
4078
|
-
type: string;
|
|
4079
|
-
versions: Array<GetAllPromptsVersions$Outbound>;
|
|
1987
|
+
metadata?: GetAllPromptsMetadata$Outbound | undefined;
|
|
4080
1988
|
};
|
|
4081
1989
|
|
|
4082
1990
|
/** @internal */
|
|
@@ -4086,26 +1994,24 @@ export const GetAllPromptsData$outboundSchema: z.ZodType<
|
|
|
4086
1994
|
GetAllPromptsData
|
|
4087
1995
|
> = z.object({
|
|
4088
1996
|
id: z.string(),
|
|
4089
|
-
|
|
1997
|
+
type: GetAllPromptsType$outboundSchema,
|
|
1998
|
+
owner: z.string(),
|
|
4090
1999
|
domainId: z.string(),
|
|
2000
|
+
created: z.string(),
|
|
2001
|
+
updated: z.string(),
|
|
4091
2002
|
createdById: z.string().optional(),
|
|
4092
|
-
displayName: z.string(),
|
|
4093
2003
|
updatedById: z.string().optional(),
|
|
2004
|
+
displayName: z.string(),
|
|
4094
2005
|
description: z.nullable(z.string()).optional(),
|
|
4095
2006
|
promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
|
|
4096
|
-
metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema),
|
|
4097
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4098
|
-
updated: z.date().default(() => new Date("2025-02-10T15:50:12.206Z"))
|
|
4099
|
-
.transform(v => v.toISOString()),
|
|
4100
|
-
type: GetAllPromptsType$outboundSchema,
|
|
4101
|
-
versions: z.array(z.lazy(() => GetAllPromptsVersions$outboundSchema)),
|
|
2007
|
+
metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema).optional(),
|
|
4102
2008
|
}).transform((v) => {
|
|
4103
2009
|
return remap$(v, {
|
|
4104
2010
|
id: "_id",
|
|
4105
2011
|
domainId: "domain_id",
|
|
4106
2012
|
createdById: "created_by_id",
|
|
4107
|
-
displayName: "display_name",
|
|
4108
2013
|
updatedById: "updated_by_id",
|
|
2014
|
+
displayName: "display_name",
|
|
4109
2015
|
promptConfig: "prompt_config",
|
|
4110
2016
|
});
|
|
4111
2017
|
});
|