@orq-ai/node 3.1.0-rc.54 → 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
|
@@ -10,10 +10,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export type FileUploadGlobals = {
|
|
14
|
-
contactId?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
13
|
export type FileT = {
|
|
18
14
|
fileName: string;
|
|
19
15
|
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
@@ -79,60 +75,6 @@ export type FileUploadResponseBody = {
|
|
|
79
75
|
created?: Date | undefined;
|
|
80
76
|
};
|
|
81
77
|
|
|
82
|
-
/** @internal */
|
|
83
|
-
export const FileUploadGlobals$inboundSchema: z.ZodType<
|
|
84
|
-
FileUploadGlobals,
|
|
85
|
-
z.ZodTypeDef,
|
|
86
|
-
unknown
|
|
87
|
-
> = z.object({
|
|
88
|
-
contactId: z.string().optional(),
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export type FileUploadGlobals$Outbound = {
|
|
93
|
-
contactId?: string | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const FileUploadGlobals$outboundSchema: z.ZodType<
|
|
98
|
-
FileUploadGlobals$Outbound,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
FileUploadGlobals
|
|
101
|
-
> = z.object({
|
|
102
|
-
contactId: z.string().optional(),
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
-
*/
|
|
109
|
-
export namespace FileUploadGlobals$ {
|
|
110
|
-
/** @deprecated use `FileUploadGlobals$inboundSchema` instead. */
|
|
111
|
-
export const inboundSchema = FileUploadGlobals$inboundSchema;
|
|
112
|
-
/** @deprecated use `FileUploadGlobals$outboundSchema` instead. */
|
|
113
|
-
export const outboundSchema = FileUploadGlobals$outboundSchema;
|
|
114
|
-
/** @deprecated use `FileUploadGlobals$Outbound` instead. */
|
|
115
|
-
export type Outbound = FileUploadGlobals$Outbound;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function fileUploadGlobalsToJSON(
|
|
119
|
-
fileUploadGlobals: FileUploadGlobals,
|
|
120
|
-
): string {
|
|
121
|
-
return JSON.stringify(
|
|
122
|
-
FileUploadGlobals$outboundSchema.parse(fileUploadGlobals),
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function fileUploadGlobalsFromJSON(
|
|
127
|
-
jsonString: string,
|
|
128
|
-
): SafeParseResult<FileUploadGlobals, SDKValidationError> {
|
|
129
|
-
return safeParse(
|
|
130
|
-
jsonString,
|
|
131
|
-
(x) => FileUploadGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
-
`Failed to parse 'FileUploadGlobals' from JSON`,
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
78
|
/** @internal */
|
|
137
79
|
export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
138
80
|
.object({
|
|
@@ -303,7 +245,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
303
245
|
file_name: z.string(),
|
|
304
246
|
workspace_id: z.string(),
|
|
305
247
|
created: z.string().datetime({ offset: true }).default(
|
|
306
|
-
"2025-02-
|
|
248
|
+
"2025-02-10T22:25:10.468Z",
|
|
307
249
|
).transform(v => new Date(v)),
|
|
308
250
|
}).transform((v) => {
|
|
309
251
|
return remap$(v, {
|
|
@@ -337,7 +279,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
337
279
|
bytes: z.number(),
|
|
338
280
|
fileName: z.string(),
|
|
339
281
|
workspaceId: z.string(),
|
|
340
|
-
created: z.date().default(() => new Date("2025-02-
|
|
282
|
+
created: z.date().default(() => new Date("2025-02-10T22:25:10.468Z"))
|
|
341
283
|
.transform(v => v.toISOString()),
|
|
342
284
|
}).transform((v) => {
|
|
343
285
|
return remap$(v, {
|
|
@@ -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 FindOneByKeyPromptSnippetGlobals = {
|
|
13
|
-
contactId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
export type FindOneByKeyPromptSnippetRequest = {
|
|
17
13
|
/**
|
|
18
14
|
* Prompt Key
|
|
@@ -975,62 +971,6 @@ export type FindOneByKeyPromptSnippetResponseBody = {
|
|
|
975
971
|
versions: Array<FindOneByKeyPromptSnippetVersions>;
|
|
976
972
|
};
|
|
977
973
|
|
|
978
|
-
/** @internal */
|
|
979
|
-
export const FindOneByKeyPromptSnippetGlobals$inboundSchema: z.ZodType<
|
|
980
|
-
FindOneByKeyPromptSnippetGlobals,
|
|
981
|
-
z.ZodTypeDef,
|
|
982
|
-
unknown
|
|
983
|
-
> = z.object({
|
|
984
|
-
contactId: z.string().optional(),
|
|
985
|
-
});
|
|
986
|
-
|
|
987
|
-
/** @internal */
|
|
988
|
-
export type FindOneByKeyPromptSnippetGlobals$Outbound = {
|
|
989
|
-
contactId?: string | undefined;
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
/** @internal */
|
|
993
|
-
export const FindOneByKeyPromptSnippetGlobals$outboundSchema: z.ZodType<
|
|
994
|
-
FindOneByKeyPromptSnippetGlobals$Outbound,
|
|
995
|
-
z.ZodTypeDef,
|
|
996
|
-
FindOneByKeyPromptSnippetGlobals
|
|
997
|
-
> = z.object({
|
|
998
|
-
contactId: z.string().optional(),
|
|
999
|
-
});
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* @internal
|
|
1003
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1004
|
-
*/
|
|
1005
|
-
export namespace FindOneByKeyPromptSnippetGlobals$ {
|
|
1006
|
-
/** @deprecated use `FindOneByKeyPromptSnippetGlobals$inboundSchema` instead. */
|
|
1007
|
-
export const inboundSchema = FindOneByKeyPromptSnippetGlobals$inboundSchema;
|
|
1008
|
-
/** @deprecated use `FindOneByKeyPromptSnippetGlobals$outboundSchema` instead. */
|
|
1009
|
-
export const outboundSchema = FindOneByKeyPromptSnippetGlobals$outboundSchema;
|
|
1010
|
-
/** @deprecated use `FindOneByKeyPromptSnippetGlobals$Outbound` instead. */
|
|
1011
|
-
export type Outbound = FindOneByKeyPromptSnippetGlobals$Outbound;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
export function findOneByKeyPromptSnippetGlobalsToJSON(
|
|
1015
|
-
findOneByKeyPromptSnippetGlobals: FindOneByKeyPromptSnippetGlobals,
|
|
1016
|
-
): string {
|
|
1017
|
-
return JSON.stringify(
|
|
1018
|
-
FindOneByKeyPromptSnippetGlobals$outboundSchema.parse(
|
|
1019
|
-
findOneByKeyPromptSnippetGlobals,
|
|
1020
|
-
),
|
|
1021
|
-
);
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
export function findOneByKeyPromptSnippetGlobalsFromJSON(
|
|
1025
|
-
jsonString: string,
|
|
1026
|
-
): SafeParseResult<FindOneByKeyPromptSnippetGlobals, SDKValidationError> {
|
|
1027
|
-
return safeParse(
|
|
1028
|
-
jsonString,
|
|
1029
|
-
(x) => FindOneByKeyPromptSnippetGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
1030
|
-
`Failed to parse 'FindOneByKeyPromptSnippetGlobals' from JSON`,
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
974
|
/** @internal */
|
|
1035
975
|
export const FindOneByKeyPromptSnippetRequest$inboundSchema: z.ZodType<
|
|
1036
976
|
FindOneByKeyPromptSnippetRequest,
|
|
@@ -4439,7 +4379,7 @@ export const FindOneByKeyPromptSnippetResponseBody$inboundSchema: z.ZodType<
|
|
|
4439
4379
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4440
4380
|
.optional(),
|
|
4441
4381
|
updated: z.string().datetime({ offset: true }).default(
|
|
4442
|
-
"2025-02-
|
|
4382
|
+
"2025-02-10T22:25:09.383Z",
|
|
4443
4383
|
).transform(v => new Date(v)),
|
|
4444
4384
|
type: FindOneByKeyPromptSnippetType$inboundSchema,
|
|
4445
4385
|
versions: z.array(
|
|
@@ -4490,7 +4430,7 @@ export const FindOneByKeyPromptSnippetResponseBody$outboundSchema: z.ZodType<
|
|
|
4490
4430
|
createdById: z.string(),
|
|
4491
4431
|
updatedById: z.string(),
|
|
4492
4432
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4493
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
4433
|
+
updated: z.date().default(() => new Date("2025-02-10T22:25:09.383Z"))
|
|
4494
4434
|
.transform(v => v.toISOString()),
|
|
4495
4435
|
type: FindOneByKeyPromptSnippetType$outboundSchema,
|
|
4496
4436
|
versions: z.array(
|
|
@@ -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 FindOnePromptSnippetGlobals = {
|
|
13
|
-
contactId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
12
|
export type FindOnePromptSnippetRequest = {
|
|
17
13
|
/**
|
|
18
14
|
* Prompt ID
|
|
@@ -967,62 +963,6 @@ export type FindOnePromptSnippetResponseBody = {
|
|
|
967
963
|
versions: Array<FindOnePromptSnippetVersions>;
|
|
968
964
|
};
|
|
969
965
|
|
|
970
|
-
/** @internal */
|
|
971
|
-
export const FindOnePromptSnippetGlobals$inboundSchema: z.ZodType<
|
|
972
|
-
FindOnePromptSnippetGlobals,
|
|
973
|
-
z.ZodTypeDef,
|
|
974
|
-
unknown
|
|
975
|
-
> = z.object({
|
|
976
|
-
contactId: z.string().optional(),
|
|
977
|
-
});
|
|
978
|
-
|
|
979
|
-
/** @internal */
|
|
980
|
-
export type FindOnePromptSnippetGlobals$Outbound = {
|
|
981
|
-
contactId?: string | undefined;
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
/** @internal */
|
|
985
|
-
export const FindOnePromptSnippetGlobals$outboundSchema: z.ZodType<
|
|
986
|
-
FindOnePromptSnippetGlobals$Outbound,
|
|
987
|
-
z.ZodTypeDef,
|
|
988
|
-
FindOnePromptSnippetGlobals
|
|
989
|
-
> = z.object({
|
|
990
|
-
contactId: z.string().optional(),
|
|
991
|
-
});
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* @internal
|
|
995
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
996
|
-
*/
|
|
997
|
-
export namespace FindOnePromptSnippetGlobals$ {
|
|
998
|
-
/** @deprecated use `FindOnePromptSnippetGlobals$inboundSchema` instead. */
|
|
999
|
-
export const inboundSchema = FindOnePromptSnippetGlobals$inboundSchema;
|
|
1000
|
-
/** @deprecated use `FindOnePromptSnippetGlobals$outboundSchema` instead. */
|
|
1001
|
-
export const outboundSchema = FindOnePromptSnippetGlobals$outboundSchema;
|
|
1002
|
-
/** @deprecated use `FindOnePromptSnippetGlobals$Outbound` instead. */
|
|
1003
|
-
export type Outbound = FindOnePromptSnippetGlobals$Outbound;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
export function findOnePromptSnippetGlobalsToJSON(
|
|
1007
|
-
findOnePromptSnippetGlobals: FindOnePromptSnippetGlobals,
|
|
1008
|
-
): string {
|
|
1009
|
-
return JSON.stringify(
|
|
1010
|
-
FindOnePromptSnippetGlobals$outboundSchema.parse(
|
|
1011
|
-
findOnePromptSnippetGlobals,
|
|
1012
|
-
),
|
|
1013
|
-
);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
export function findOnePromptSnippetGlobalsFromJSON(
|
|
1017
|
-
jsonString: string,
|
|
1018
|
-
): SafeParseResult<FindOnePromptSnippetGlobals, SDKValidationError> {
|
|
1019
|
-
return safeParse(
|
|
1020
|
-
jsonString,
|
|
1021
|
-
(x) => FindOnePromptSnippetGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
1022
|
-
`Failed to parse 'FindOnePromptSnippetGlobals' from JSON`,
|
|
1023
|
-
);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
966
|
/** @internal */
|
|
1027
967
|
export const FindOnePromptSnippetRequest$inboundSchema: z.ZodType<
|
|
1028
968
|
FindOnePromptSnippetRequest,
|
|
@@ -4308,7 +4248,7 @@ export const FindOnePromptSnippetResponseBody$inboundSchema: z.ZodType<
|
|
|
4308
4248
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4309
4249
|
.optional(),
|
|
4310
4250
|
updated: z.string().datetime({ offset: true }).default(
|
|
4311
|
-
"2025-02-
|
|
4251
|
+
"2025-02-10T22:25:09.383Z",
|
|
4312
4252
|
).transform(v => new Date(v)),
|
|
4313
4253
|
type: FindOnePromptSnippetType$inboundSchema,
|
|
4314
4254
|
versions: z.array(z.lazy(() => FindOnePromptSnippetVersions$inboundSchema)),
|
|
@@ -4355,7 +4295,7 @@ export const FindOnePromptSnippetResponseBody$outboundSchema: z.ZodType<
|
|
|
4355
4295
|
createdById: z.string(),
|
|
4356
4296
|
updatedById: z.string(),
|
|
4357
4297
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4358
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
4298
|
+
updated: z.date().default(() => new Date("2025-02-10T22:25:09.383Z"))
|
|
4359
4299
|
.transform(v => v.toISOString()),
|
|
4360
4300
|
type: FindOnePromptSnippetType$outboundSchema,
|
|
4361
4301
|
versions: z.array(z.lazy(() => FindOnePromptSnippetVersions$outboundSchema)),
|