@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.
Files changed (240) hide show
  1. package/README.md +7 -3
  2. package/docs/sdks/prompts/README.md +182 -25
  3. package/funcs/contactsCreate.d.ts.map +1 -1
  4. package/funcs/contactsCreate.js +0 -4
  5. package/funcs/contactsCreate.js.map +1 -1
  6. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  7. package/funcs/deploymentsGetConfig.js +0 -4
  8. package/funcs/deploymentsGetConfig.js.map +1 -1
  9. package/funcs/deploymentsList.d.ts.map +1 -1
  10. package/funcs/deploymentsList.js +0 -4
  11. package/funcs/deploymentsList.js.map +1 -1
  12. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  13. package/funcs/deploymentsMetricsCreate.js +0 -4
  14. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  15. package/funcs/feedbackCreate.d.ts.map +1 -1
  16. package/funcs/feedbackCreate.js +0 -4
  17. package/funcs/feedbackCreate.js.map +1 -1
  18. package/funcs/filesDelete.d.ts.map +1 -1
  19. package/funcs/filesDelete.js +0 -4
  20. package/funcs/filesDelete.js.map +1 -1
  21. package/funcs/filesGet.d.ts.map +1 -1
  22. package/funcs/filesGet.js +0 -4
  23. package/funcs/filesGet.js.map +1 -1
  24. package/funcs/filesList.d.ts.map +1 -1
  25. package/funcs/filesList.js +0 -4
  26. package/funcs/filesList.js.map +1 -1
  27. package/funcs/filesUpload.d.ts.map +1 -1
  28. package/funcs/filesUpload.js +0 -4
  29. package/funcs/filesUpload.js.map +1 -1
  30. package/funcs/promptSnippetsCreate.d.ts.map +1 -1
  31. package/funcs/promptSnippetsCreate.js +0 -4
  32. package/funcs/promptSnippetsCreate.js.map +1 -1
  33. package/funcs/promptSnippetsDelete.d.ts.map +1 -1
  34. package/funcs/promptSnippetsDelete.js +0 -4
  35. package/funcs/promptSnippetsDelete.js.map +1 -1
  36. package/funcs/promptSnippetsGet.d.ts.map +1 -1
  37. package/funcs/promptSnippetsGet.js +0 -4
  38. package/funcs/promptSnippetsGet.js.map +1 -1
  39. package/funcs/promptSnippetsGetByKey.d.ts.map +1 -1
  40. package/funcs/promptSnippetsGetByKey.js +0 -4
  41. package/funcs/promptSnippetsGetByKey.js.map +1 -1
  42. package/funcs/promptSnippetsList.d.ts.map +1 -1
  43. package/funcs/promptSnippetsList.js +0 -4
  44. package/funcs/promptSnippetsList.js.map +1 -1
  45. package/funcs/promptSnippetsUpdate.d.ts.map +1 -1
  46. package/funcs/promptSnippetsUpdate.js +0 -4
  47. package/funcs/promptSnippetsUpdate.js.map +1 -1
  48. package/funcs/promptsCreate.d.ts.map +1 -1
  49. package/funcs/promptsCreate.js +0 -4
  50. package/funcs/promptsCreate.js.map +1 -1
  51. package/funcs/promptsDelete.d.ts.map +1 -1
  52. package/funcs/promptsDelete.js +0 -4
  53. package/funcs/promptsDelete.js.map +1 -1
  54. package/funcs/promptsGetVersion.d.ts +16 -0
  55. package/funcs/promptsGetVersion.d.ts.map +1 -0
  56. package/funcs/promptsGetVersion.js +120 -0
  57. package/funcs/promptsGetVersion.js.map +1 -0
  58. package/funcs/promptsList.d.ts +3 -0
  59. package/funcs/promptsList.d.ts.map +1 -1
  60. package/funcs/promptsList.js +3 -4
  61. package/funcs/promptsList.js.map +1 -1
  62. package/funcs/promptsListVersions.d.ts +15 -0
  63. package/funcs/promptsListVersions.d.ts.map +1 -0
  64. package/funcs/promptsListVersions.js +118 -0
  65. package/funcs/promptsListVersions.js.map +1 -0
  66. package/funcs/{promptsGet.d.ts → promptsRetrieve.d.ts} +5 -2
  67. package/funcs/promptsRetrieve.d.ts.map +1 -0
  68. package/funcs/{promptsGet.js → promptsRetrieve.js} +6 -7
  69. package/funcs/promptsRetrieve.js.map +1 -0
  70. package/funcs/promptsUpdate.d.ts.map +1 -1
  71. package/funcs/promptsUpdate.js +0 -4
  72. package/funcs/promptsUpdate.js.map +1 -1
  73. package/funcs/remoteconfigGetConfig.d.ts.map +1 -1
  74. package/funcs/remoteconfigGetConfig.js +0 -4
  75. package/funcs/remoteconfigGetConfig.js.map +1 -1
  76. package/jsr.json +1 -1
  77. package/lib/config.d.ts +2 -2
  78. package/lib/config.js +2 -2
  79. package/models/errors/getpromptversion.d.ts +36 -0
  80. package/models/errors/getpromptversion.d.ts.map +1 -0
  81. package/models/errors/getpromptversion.js +79 -0
  82. package/models/errors/getpromptversion.js.map +1 -0
  83. package/models/errors/index.d.ts +1 -0
  84. package/models/errors/index.d.ts.map +1 -1
  85. package/models/errors/index.js +1 -0
  86. package/models/errors/index.js.map +1 -1
  87. package/models/operations/createcontact.d.ts +0 -25
  88. package/models/operations/createcontact.d.ts.map +1 -1
  89. package/models/operations/createcontact.js +3 -30
  90. package/models/operations/createcontact.js.map +1 -1
  91. package/models/operations/createfeedback.d.ts +0 -25
  92. package/models/operations/createfeedback.d.ts.map +1 -1
  93. package/models/operations/createfeedback.js +1 -28
  94. package/models/operations/createfeedback.js.map +1 -1
  95. package/models/operations/createprompt.d.ts +690 -1932
  96. package/models/operations/createprompt.d.ts.map +1 -1
  97. package/models/operations/createprompt.js +49 -1105
  98. package/models/operations/createprompt.js.map +1 -1
  99. package/models/operations/createpromptsnippet.d.ts +0 -25
  100. package/models/operations/createpromptsnippet.d.ts.map +1 -1
  101. package/models/operations/createpromptsnippet.js +9 -36
  102. package/models/operations/createpromptsnippet.js.map +1 -1
  103. package/models/operations/deleteprompt.d.ts +0 -25
  104. package/models/operations/deleteprompt.d.ts.map +1 -1
  105. package/models/operations/deleteprompt.js +1 -28
  106. package/models/operations/deleteprompt.js.map +1 -1
  107. package/models/operations/deletepromptsnippet.d.ts +0 -25
  108. package/models/operations/deletepromptsnippet.d.ts.map +1 -1
  109. package/models/operations/deletepromptsnippet.js +1 -28
  110. package/models/operations/deletepromptsnippet.js.map +1 -1
  111. package/models/operations/deploymentcreatemetric.d.ts +0 -25
  112. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  113. package/models/operations/deploymentcreatemetric.js +2 -29
  114. package/models/operations/deploymentcreatemetric.js.map +1 -1
  115. package/models/operations/deploymentgetconfig.d.ts +0 -25
  116. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  117. package/models/operations/deploymentgetconfig.js +4 -31
  118. package/models/operations/deploymentgetconfig.js.map +1 -1
  119. package/models/operations/deployments.d.ts +0 -25
  120. package/models/operations/deployments.d.ts.map +1 -1
  121. package/models/operations/deployments.js +3 -30
  122. package/models/operations/deployments.js.map +1 -1
  123. package/models/operations/filedelete.d.ts +0 -25
  124. package/models/operations/filedelete.d.ts.map +1 -1
  125. package/models/operations/filedelete.js +1 -28
  126. package/models/operations/filedelete.js.map +1 -1
  127. package/models/operations/fileget.d.ts +0 -25
  128. package/models/operations/fileget.d.ts.map +1 -1
  129. package/models/operations/fileget.js +3 -30
  130. package/models/operations/fileget.js.map +1 -1
  131. package/models/operations/filelist.d.ts +0 -25
  132. package/models/operations/filelist.d.ts.map +1 -1
  133. package/models/operations/filelist.js +3 -30
  134. package/models/operations/filelist.js.map +1 -1
  135. package/models/operations/fileupload.d.ts +0 -25
  136. package/models/operations/fileupload.d.ts.map +1 -1
  137. package/models/operations/fileupload.js +3 -30
  138. package/models/operations/fileupload.js.map +1 -1
  139. package/models/operations/findonebykeypromptsnippet.d.ts +0 -25
  140. package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -1
  141. package/models/operations/findonebykeypromptsnippet.js +7 -34
  142. package/models/operations/findonebykeypromptsnippet.js.map +1 -1
  143. package/models/operations/findonepromptsnippet.d.ts +0 -25
  144. package/models/operations/findonepromptsnippet.d.ts.map +1 -1
  145. package/models/operations/findonepromptsnippet.js +7 -34
  146. package/models/operations/findonepromptsnippet.js.map +1 -1
  147. package/models/operations/getallprompts.d.ts +426 -1671
  148. package/models/operations/getallprompts.d.ts.map +1 -1
  149. package/models/operations/getallprompts.js +47 -1099
  150. package/models/operations/getallprompts.js.map +1 -1
  151. package/models/operations/getallpromptsnippets.d.ts +0 -25
  152. package/models/operations/getallpromptsnippets.d.ts.map +1 -1
  153. package/models/operations/getallpromptsnippets.js +7 -34
  154. package/models/operations/getallpromptsnippets.js.map +1 -1
  155. package/models/operations/getoneprompt.d.ts +0 -25
  156. package/models/operations/getoneprompt.d.ts.map +1 -1
  157. package/models/operations/getoneprompt.js +1 -28
  158. package/models/operations/getoneprompt.js.map +1 -1
  159. package/models/operations/getpromptversion.d.ts +1228 -0
  160. package/models/operations/getpromptversion.d.ts.map +1 -0
  161. package/models/operations/getpromptversion.js +1080 -0
  162. package/models/operations/getpromptversion.js.map +1 -0
  163. package/models/operations/index.d.ts +2 -0
  164. package/models/operations/index.d.ts.map +1 -1
  165. package/models/operations/index.js +2 -0
  166. package/models/operations/index.js.map +1 -1
  167. package/models/operations/listpromptversions.d.ts +1286 -0
  168. package/models/operations/listpromptversions.d.ts.map +1 -0
  169. package/models/operations/listpromptversions.js +1142 -0
  170. package/models/operations/listpromptversions.js.map +1 -0
  171. package/models/operations/remoteconfigsgetconfig.d.ts +0 -25
  172. package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -1
  173. package/models/operations/remoteconfigsgetconfig.js +1 -28
  174. package/models/operations/remoteconfigsgetconfig.js.map +1 -1
  175. package/models/operations/updateprompt.d.ts +728 -1958
  176. package/models/operations/updateprompt.d.ts.map +1 -1
  177. package/models/operations/updateprompt.js +67 -1105
  178. package/models/operations/updateprompt.js.map +1 -1
  179. package/models/operations/updatepromptsnippet.d.ts +0 -25
  180. package/models/operations/updatepromptsnippet.d.ts.map +1 -1
  181. package/models/operations/updatepromptsnippet.js +9 -36
  182. package/models/operations/updatepromptsnippet.js.map +1 -1
  183. package/package.json +1 -1
  184. package/sdk/prompts.d.ts +24 -4
  185. package/sdk/prompts.d.ts.map +1 -1
  186. package/sdk/prompts.js +33 -7
  187. package/sdk/prompts.js.map +1 -1
  188. package/src/funcs/contactsCreate.ts +1 -5
  189. package/src/funcs/deploymentsGetConfig.ts +1 -5
  190. package/src/funcs/deploymentsList.ts +1 -5
  191. package/src/funcs/deploymentsMetricsCreate.ts +0 -4
  192. package/src/funcs/feedbackCreate.ts +1 -5
  193. package/src/funcs/filesDelete.ts +0 -4
  194. package/src/funcs/filesGet.ts +0 -4
  195. package/src/funcs/filesList.ts +1 -5
  196. package/src/funcs/filesUpload.ts +1 -5
  197. package/src/funcs/promptSnippetsCreate.ts +1 -5
  198. package/src/funcs/promptSnippetsDelete.ts +0 -4
  199. package/src/funcs/promptSnippetsGet.ts +0 -4
  200. package/src/funcs/promptSnippetsGetByKey.ts +0 -4
  201. package/src/funcs/promptSnippetsList.ts +1 -5
  202. package/src/funcs/promptSnippetsUpdate.ts +0 -4
  203. package/src/funcs/promptsCreate.ts +1 -5
  204. package/src/funcs/promptsDelete.ts +0 -4
  205. package/src/funcs/promptsGetVersion.ts +146 -0
  206. package/src/funcs/promptsList.ts +4 -5
  207. package/src/funcs/promptsListVersions.ts +139 -0
  208. package/src/funcs/{promptsGet.ts → promptsRetrieve.ts} +4 -5
  209. package/src/funcs/promptsUpdate.ts +0 -4
  210. package/src/funcs/remoteconfigGetConfig.ts +1 -5
  211. package/src/lib/config.ts +2 -2
  212. package/src/models/errors/getpromptversion.ts +71 -0
  213. package/src/models/errors/index.ts +1 -0
  214. package/src/models/operations/createcontact.ts +2 -60
  215. package/src/models/operations/createfeedback.ts +0 -58
  216. package/src/models/operations/createprompt.ts +1375 -3592
  217. package/src/models/operations/createpromptsnippet.ts +2 -60
  218. package/src/models/operations/deleteprompt.ts +0 -58
  219. package/src/models/operations/deletepromptsnippet.ts +0 -58
  220. package/src/models/operations/deploymentcreatemetric.ts +0 -60
  221. package/src/models/operations/deploymentgetconfig.ts +0 -58
  222. package/src/models/operations/deployments.ts +0 -58
  223. package/src/models/operations/filedelete.ts +0 -58
  224. package/src/models/operations/fileget.ts +2 -56
  225. package/src/models/operations/filelist.ts +2 -58
  226. package/src/models/operations/fileupload.ts +2 -60
  227. package/src/models/operations/findonebykeypromptsnippet.ts +2 -62
  228. package/src/models/operations/findonepromptsnippet.ts +2 -62
  229. package/src/models/operations/getallprompts.ts +732 -2826
  230. package/src/models/operations/getallpromptsnippets.ts +2 -62
  231. package/src/models/operations/getoneprompt.ts +0 -58
  232. package/src/models/operations/getpromptversion.ts +2012 -0
  233. package/src/models/operations/index.ts +2 -0
  234. package/src/models/operations/listpromptversions.ts +2146 -0
  235. package/src/models/operations/remoteconfigsgetconfig.ts +0 -60
  236. package/src/models/operations/updateprompt.ts +1544 -3731
  237. package/src/models/operations/updatepromptsnippet.ts +2 -60
  238. package/src/sdk/prompts.ts +53 -11
  239. package/funcs/promptsGet.d.ts.map +0 -1
  240. 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 CreatePromptSnippetGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  /**
17
13
  * The type of the model
18
14
  */
@@ -1387,60 +1383,6 @@ export type CreatePromptSnippetResponseBody = {
1387
1383
  versions: Array<Versions>;
1388
1384
  };
1389
1385
 
1390
- /** @internal */
1391
- export const CreatePromptSnippetGlobals$inboundSchema: z.ZodType<
1392
- CreatePromptSnippetGlobals,
1393
- z.ZodTypeDef,
1394
- unknown
1395
- > = z.object({
1396
- contactId: z.string().optional(),
1397
- });
1398
-
1399
- /** @internal */
1400
- export type CreatePromptSnippetGlobals$Outbound = {
1401
- contactId?: string | undefined;
1402
- };
1403
-
1404
- /** @internal */
1405
- export const CreatePromptSnippetGlobals$outboundSchema: z.ZodType<
1406
- CreatePromptSnippetGlobals$Outbound,
1407
- z.ZodTypeDef,
1408
- CreatePromptSnippetGlobals
1409
- > = z.object({
1410
- contactId: z.string().optional(),
1411
- });
1412
-
1413
- /**
1414
- * @internal
1415
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1416
- */
1417
- export namespace CreatePromptSnippetGlobals$ {
1418
- /** @deprecated use `CreatePromptSnippetGlobals$inboundSchema` instead. */
1419
- export const inboundSchema = CreatePromptSnippetGlobals$inboundSchema;
1420
- /** @deprecated use `CreatePromptSnippetGlobals$outboundSchema` instead. */
1421
- export const outboundSchema = CreatePromptSnippetGlobals$outboundSchema;
1422
- /** @deprecated use `CreatePromptSnippetGlobals$Outbound` instead. */
1423
- export type Outbound = CreatePromptSnippetGlobals$Outbound;
1424
- }
1425
-
1426
- export function createPromptSnippetGlobalsToJSON(
1427
- createPromptSnippetGlobals: CreatePromptSnippetGlobals,
1428
- ): string {
1429
- return JSON.stringify(
1430
- CreatePromptSnippetGlobals$outboundSchema.parse(createPromptSnippetGlobals),
1431
- );
1432
- }
1433
-
1434
- export function createPromptSnippetGlobalsFromJSON(
1435
- jsonString: string,
1436
- ): SafeParseResult<CreatePromptSnippetGlobals, SDKValidationError> {
1437
- return safeParse(
1438
- jsonString,
1439
- (x) => CreatePromptSnippetGlobals$inboundSchema.parse(JSON.parse(x)),
1440
- `Failed to parse 'CreatePromptSnippetGlobals' from JSON`,
1441
- );
1442
- }
1443
-
1444
1386
  /** @internal */
1445
1387
  export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
1446
1388
  .nativeEnum(ModelType);
@@ -6200,7 +6142,7 @@ export const CreatePromptSnippetResponseBody$inboundSchema: z.ZodType<
6200
6142
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6201
6143
  .optional(),
6202
6144
  updated: z.string().datetime({ offset: true }).default(
6203
- "2025-02-10T15:50:12.206Z",
6145
+ "2025-02-10T22:25:09.383Z",
6204
6146
  ).transform(v => new Date(v)),
6205
6147
  type: CreatePromptSnippetPromptSnippetsType$inboundSchema,
6206
6148
  versions: z.array(z.lazy(() => Versions$inboundSchema)),
@@ -6249,7 +6191,7 @@ export const CreatePromptSnippetResponseBody$outboundSchema: z.ZodType<
6249
6191
  createdById: z.string(),
6250
6192
  updatedById: z.string(),
6251
6193
  created: z.date().transform(v => v.toISOString()).optional(),
6252
- updated: z.date().default(() => new Date("2025-02-10T15:50:12.206Z"))
6194
+ updated: z.date().default(() => new Date("2025-02-10T22:25:09.383Z"))
6253
6195
  .transform(v => v.toISOString()),
6254
6196
  type: CreatePromptSnippetPromptSnippetsType$outboundSchema,
6255
6197
  versions: z.array(z.lazy(() => Versions$outboundSchema)),
@@ -7,10 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type DeletePromptGlobals = {
11
- contactId?: string | undefined;
12
- };
13
-
14
10
  export type DeletePromptRequest = {
15
11
  /**
16
12
  * Prompt ID
@@ -18,60 +14,6 @@ export type DeletePromptRequest = {
18
14
  id: string;
19
15
  };
20
16
 
21
- /** @internal */
22
- export const DeletePromptGlobals$inboundSchema: z.ZodType<
23
- DeletePromptGlobals,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- contactId: z.string().optional(),
28
- });
29
-
30
- /** @internal */
31
- export type DeletePromptGlobals$Outbound = {
32
- contactId?: string | undefined;
33
- };
34
-
35
- /** @internal */
36
- export const DeletePromptGlobals$outboundSchema: z.ZodType<
37
- DeletePromptGlobals$Outbound,
38
- z.ZodTypeDef,
39
- DeletePromptGlobals
40
- > = z.object({
41
- contactId: z.string().optional(),
42
- });
43
-
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- export namespace DeletePromptGlobals$ {
49
- /** @deprecated use `DeletePromptGlobals$inboundSchema` instead. */
50
- export const inboundSchema = DeletePromptGlobals$inboundSchema;
51
- /** @deprecated use `DeletePromptGlobals$outboundSchema` instead. */
52
- export const outboundSchema = DeletePromptGlobals$outboundSchema;
53
- /** @deprecated use `DeletePromptGlobals$Outbound` instead. */
54
- export type Outbound = DeletePromptGlobals$Outbound;
55
- }
56
-
57
- export function deletePromptGlobalsToJSON(
58
- deletePromptGlobals: DeletePromptGlobals,
59
- ): string {
60
- return JSON.stringify(
61
- DeletePromptGlobals$outboundSchema.parse(deletePromptGlobals),
62
- );
63
- }
64
-
65
- export function deletePromptGlobalsFromJSON(
66
- jsonString: string,
67
- ): SafeParseResult<DeletePromptGlobals, SDKValidationError> {
68
- return safeParse(
69
- jsonString,
70
- (x) => DeletePromptGlobals$inboundSchema.parse(JSON.parse(x)),
71
- `Failed to parse 'DeletePromptGlobals' from JSON`,
72
- );
73
- }
74
-
75
17
  /** @internal */
76
18
  export const DeletePromptRequest$inboundSchema: z.ZodType<
77
19
  DeletePromptRequest,
@@ -7,10 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type DeletePromptSnippetGlobals = {
11
- contactId?: string | undefined;
12
- };
13
-
14
10
  export type DeletePromptSnippetRequest = {
15
11
  /**
16
12
  * Prompt ID
@@ -18,60 +14,6 @@ export type DeletePromptSnippetRequest = {
18
14
  id: string;
19
15
  };
20
16
 
21
- /** @internal */
22
- export const DeletePromptSnippetGlobals$inboundSchema: z.ZodType<
23
- DeletePromptSnippetGlobals,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- contactId: z.string().optional(),
28
- });
29
-
30
- /** @internal */
31
- export type DeletePromptSnippetGlobals$Outbound = {
32
- contactId?: string | undefined;
33
- };
34
-
35
- /** @internal */
36
- export const DeletePromptSnippetGlobals$outboundSchema: z.ZodType<
37
- DeletePromptSnippetGlobals$Outbound,
38
- z.ZodTypeDef,
39
- DeletePromptSnippetGlobals
40
- > = z.object({
41
- contactId: z.string().optional(),
42
- });
43
-
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- export namespace DeletePromptSnippetGlobals$ {
49
- /** @deprecated use `DeletePromptSnippetGlobals$inboundSchema` instead. */
50
- export const inboundSchema = DeletePromptSnippetGlobals$inboundSchema;
51
- /** @deprecated use `DeletePromptSnippetGlobals$outboundSchema` instead. */
52
- export const outboundSchema = DeletePromptSnippetGlobals$outboundSchema;
53
- /** @deprecated use `DeletePromptSnippetGlobals$Outbound` instead. */
54
- export type Outbound = DeletePromptSnippetGlobals$Outbound;
55
- }
56
-
57
- export function deletePromptSnippetGlobalsToJSON(
58
- deletePromptSnippetGlobals: DeletePromptSnippetGlobals,
59
- ): string {
60
- return JSON.stringify(
61
- DeletePromptSnippetGlobals$outboundSchema.parse(deletePromptSnippetGlobals),
62
- );
63
- }
64
-
65
- export function deletePromptSnippetGlobalsFromJSON(
66
- jsonString: string,
67
- ): SafeParseResult<DeletePromptSnippetGlobals, SDKValidationError> {
68
- return safeParse(
69
- jsonString,
70
- (x) => DeletePromptSnippetGlobals$inboundSchema.parse(JSON.parse(x)),
71
- `Failed to parse 'DeletePromptSnippetGlobals' from JSON`,
72
- );
73
- }
74
-
75
17
  /** @internal */
76
18
  export const DeletePromptSnippetRequest$inboundSchema: z.ZodType<
77
19
  DeletePromptSnippetRequest,
@@ -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 DeploymentCreateMetricGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  /**
17
13
  * Usage statistics to add to the deployment
18
14
  */
@@ -321,62 +317,6 @@ export type DeploymentCreateMetricResponseBody = {
321
317
  success: boolean;
322
318
  };
323
319
 
324
- /** @internal */
325
- export const DeploymentCreateMetricGlobals$inboundSchema: z.ZodType<
326
- DeploymentCreateMetricGlobals,
327
- z.ZodTypeDef,
328
- unknown
329
- > = z.object({
330
- contactId: z.string().optional(),
331
- });
332
-
333
- /** @internal */
334
- export type DeploymentCreateMetricGlobals$Outbound = {
335
- contactId?: string | undefined;
336
- };
337
-
338
- /** @internal */
339
- export const DeploymentCreateMetricGlobals$outboundSchema: z.ZodType<
340
- DeploymentCreateMetricGlobals$Outbound,
341
- z.ZodTypeDef,
342
- DeploymentCreateMetricGlobals
343
- > = z.object({
344
- contactId: z.string().optional(),
345
- });
346
-
347
- /**
348
- * @internal
349
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
350
- */
351
- export namespace DeploymentCreateMetricGlobals$ {
352
- /** @deprecated use `DeploymentCreateMetricGlobals$inboundSchema` instead. */
353
- export const inboundSchema = DeploymentCreateMetricGlobals$inboundSchema;
354
- /** @deprecated use `DeploymentCreateMetricGlobals$outboundSchema` instead. */
355
- export const outboundSchema = DeploymentCreateMetricGlobals$outboundSchema;
356
- /** @deprecated use `DeploymentCreateMetricGlobals$Outbound` instead. */
357
- export type Outbound = DeploymentCreateMetricGlobals$Outbound;
358
- }
359
-
360
- export function deploymentCreateMetricGlobalsToJSON(
361
- deploymentCreateMetricGlobals: DeploymentCreateMetricGlobals,
362
- ): string {
363
- return JSON.stringify(
364
- DeploymentCreateMetricGlobals$outboundSchema.parse(
365
- deploymentCreateMetricGlobals,
366
- ),
367
- );
368
- }
369
-
370
- export function deploymentCreateMetricGlobalsFromJSON(
371
- jsonString: string,
372
- ): SafeParseResult<DeploymentCreateMetricGlobals, SDKValidationError> {
373
- return safeParse(
374
- jsonString,
375
- (x) => DeploymentCreateMetricGlobals$inboundSchema.parse(JSON.parse(x)),
376
- `Failed to parse 'DeploymentCreateMetricGlobals' from JSON`,
377
- );
378
- }
379
-
380
320
  /** @internal */
381
321
  export const Usage$inboundSchema: z.ZodType<Usage, z.ZodTypeDef, unknown> = z
382
322
  .object({
@@ -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 DeploymentGetConfigGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  export type Inputs = string | number | boolean;
17
13
 
18
14
  /**
@@ -699,60 +695,6 @@ export type DeploymentGetConfigResponseBody = {
699
695
  tools?: Array<Tools> | undefined;
700
696
  };
701
697
 
702
- /** @internal */
703
- export const DeploymentGetConfigGlobals$inboundSchema: z.ZodType<
704
- DeploymentGetConfigGlobals,
705
- z.ZodTypeDef,
706
- unknown
707
- > = z.object({
708
- contactId: z.string().optional(),
709
- });
710
-
711
- /** @internal */
712
- export type DeploymentGetConfigGlobals$Outbound = {
713
- contactId?: string | undefined;
714
- };
715
-
716
- /** @internal */
717
- export const DeploymentGetConfigGlobals$outboundSchema: z.ZodType<
718
- DeploymentGetConfigGlobals$Outbound,
719
- z.ZodTypeDef,
720
- DeploymentGetConfigGlobals
721
- > = z.object({
722
- contactId: z.string().optional(),
723
- });
724
-
725
- /**
726
- * @internal
727
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
728
- */
729
- export namespace DeploymentGetConfigGlobals$ {
730
- /** @deprecated use `DeploymentGetConfigGlobals$inboundSchema` instead. */
731
- export const inboundSchema = DeploymentGetConfigGlobals$inboundSchema;
732
- /** @deprecated use `DeploymentGetConfigGlobals$outboundSchema` instead. */
733
- export const outboundSchema = DeploymentGetConfigGlobals$outboundSchema;
734
- /** @deprecated use `DeploymentGetConfigGlobals$Outbound` instead. */
735
- export type Outbound = DeploymentGetConfigGlobals$Outbound;
736
- }
737
-
738
- export function deploymentGetConfigGlobalsToJSON(
739
- deploymentGetConfigGlobals: DeploymentGetConfigGlobals,
740
- ): string {
741
- return JSON.stringify(
742
- DeploymentGetConfigGlobals$outboundSchema.parse(deploymentGetConfigGlobals),
743
- );
744
- }
745
-
746
- export function deploymentGetConfigGlobalsFromJSON(
747
- jsonString: string,
748
- ): SafeParseResult<DeploymentGetConfigGlobals, SDKValidationError> {
749
- return safeParse(
750
- jsonString,
751
- (x) => DeploymentGetConfigGlobals$inboundSchema.parse(JSON.parse(x)),
752
- `Failed to parse 'DeploymentGetConfigGlobals' from JSON`,
753
- );
754
- }
755
-
756
698
  /** @internal */
757
699
  export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
758
700
  .union([z.string(), z.number(), z.boolean()]);
@@ -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 DeploymentsGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  export type DeploymentsRequest = {
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
@@ -484,60 +480,6 @@ export type DeploymentsResponseBody = {
484
480
  hasMore: boolean;
485
481
  };
486
482
 
487
- /** @internal */
488
- export const DeploymentsGlobals$inboundSchema: z.ZodType<
489
- DeploymentsGlobals,
490
- z.ZodTypeDef,
491
- unknown
492
- > = z.object({
493
- contactId: z.string().optional(),
494
- });
495
-
496
- /** @internal */
497
- export type DeploymentsGlobals$Outbound = {
498
- contactId?: string | undefined;
499
- };
500
-
501
- /** @internal */
502
- export const DeploymentsGlobals$outboundSchema: z.ZodType<
503
- DeploymentsGlobals$Outbound,
504
- z.ZodTypeDef,
505
- DeploymentsGlobals
506
- > = z.object({
507
- contactId: z.string().optional(),
508
- });
509
-
510
- /**
511
- * @internal
512
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
513
- */
514
- export namespace DeploymentsGlobals$ {
515
- /** @deprecated use `DeploymentsGlobals$inboundSchema` instead. */
516
- export const inboundSchema = DeploymentsGlobals$inboundSchema;
517
- /** @deprecated use `DeploymentsGlobals$outboundSchema` instead. */
518
- export const outboundSchema = DeploymentsGlobals$outboundSchema;
519
- /** @deprecated use `DeploymentsGlobals$Outbound` instead. */
520
- export type Outbound = DeploymentsGlobals$Outbound;
521
- }
522
-
523
- export function deploymentsGlobalsToJSON(
524
- deploymentsGlobals: DeploymentsGlobals,
525
- ): string {
526
- return JSON.stringify(
527
- DeploymentsGlobals$outboundSchema.parse(deploymentsGlobals),
528
- );
529
- }
530
-
531
- export function deploymentsGlobalsFromJSON(
532
- jsonString: string,
533
- ): SafeParseResult<DeploymentsGlobals, SDKValidationError> {
534
- return safeParse(
535
- jsonString,
536
- (x) => DeploymentsGlobals$inboundSchema.parse(JSON.parse(x)),
537
- `Failed to parse 'DeploymentsGlobals' from JSON`,
538
- );
539
- }
540
-
541
483
  /** @internal */
542
484
  export const DeploymentsRequest$inboundSchema: z.ZodType<
543
485
  DeploymentsRequest,
@@ -8,10 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export type FileDeleteGlobals = {
12
- contactId?: string | undefined;
13
- };
14
-
15
11
  export type FileDeleteRequest = {
16
12
  /**
17
13
  * The ID of the file
@@ -19,60 +15,6 @@ export type FileDeleteRequest = {
19
15
  fileId: string;
20
16
  };
21
17
 
22
- /** @internal */
23
- export const FileDeleteGlobals$inboundSchema: z.ZodType<
24
- FileDeleteGlobals,
25
- z.ZodTypeDef,
26
- unknown
27
- > = z.object({
28
- contactId: z.string().optional(),
29
- });
30
-
31
- /** @internal */
32
- export type FileDeleteGlobals$Outbound = {
33
- contactId?: string | undefined;
34
- };
35
-
36
- /** @internal */
37
- export const FileDeleteGlobals$outboundSchema: z.ZodType<
38
- FileDeleteGlobals$Outbound,
39
- z.ZodTypeDef,
40
- FileDeleteGlobals
41
- > = z.object({
42
- contactId: z.string().optional(),
43
- });
44
-
45
- /**
46
- * @internal
47
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
- */
49
- export namespace FileDeleteGlobals$ {
50
- /** @deprecated use `FileDeleteGlobals$inboundSchema` instead. */
51
- export const inboundSchema = FileDeleteGlobals$inboundSchema;
52
- /** @deprecated use `FileDeleteGlobals$outboundSchema` instead. */
53
- export const outboundSchema = FileDeleteGlobals$outboundSchema;
54
- /** @deprecated use `FileDeleteGlobals$Outbound` instead. */
55
- export type Outbound = FileDeleteGlobals$Outbound;
56
- }
57
-
58
- export function fileDeleteGlobalsToJSON(
59
- fileDeleteGlobals: FileDeleteGlobals,
60
- ): string {
61
- return JSON.stringify(
62
- FileDeleteGlobals$outboundSchema.parse(fileDeleteGlobals),
63
- );
64
- }
65
-
66
- export function fileDeleteGlobalsFromJSON(
67
- jsonString: string,
68
- ): SafeParseResult<FileDeleteGlobals, SDKValidationError> {
69
- return safeParse(
70
- jsonString,
71
- (x) => FileDeleteGlobals$inboundSchema.parse(JSON.parse(x)),
72
- `Failed to parse 'FileDeleteGlobals' from JSON`,
73
- );
74
- }
75
-
76
18
  /** @internal */
77
19
  export const FileDeleteRequest$inboundSchema: z.ZodType<
78
20
  FileDeleteRequest,
@@ -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 FileGetGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  export type FileGetRequest = {
17
13
  /**
18
14
  * The ID of the file
@@ -57,56 +53,6 @@ export type FileGetResponseBody = {
57
53
  created?: Date | undefined;
58
54
  };
59
55
 
60
- /** @internal */
61
- export const FileGetGlobals$inboundSchema: z.ZodType<
62
- FileGetGlobals,
63
- z.ZodTypeDef,
64
- unknown
65
- > = z.object({
66
- contactId: z.string().optional(),
67
- });
68
-
69
- /** @internal */
70
- export type FileGetGlobals$Outbound = {
71
- contactId?: string | undefined;
72
- };
73
-
74
- /** @internal */
75
- export const FileGetGlobals$outboundSchema: z.ZodType<
76
- FileGetGlobals$Outbound,
77
- z.ZodTypeDef,
78
- FileGetGlobals
79
- > = z.object({
80
- contactId: z.string().optional(),
81
- });
82
-
83
- /**
84
- * @internal
85
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
- */
87
- export namespace FileGetGlobals$ {
88
- /** @deprecated use `FileGetGlobals$inboundSchema` instead. */
89
- export const inboundSchema = FileGetGlobals$inboundSchema;
90
- /** @deprecated use `FileGetGlobals$outboundSchema` instead. */
91
- export const outboundSchema = FileGetGlobals$outboundSchema;
92
- /** @deprecated use `FileGetGlobals$Outbound` instead. */
93
- export type Outbound = FileGetGlobals$Outbound;
94
- }
95
-
96
- export function fileGetGlobalsToJSON(fileGetGlobals: FileGetGlobals): string {
97
- return JSON.stringify(FileGetGlobals$outboundSchema.parse(fileGetGlobals));
98
- }
99
-
100
- export function fileGetGlobalsFromJSON(
101
- jsonString: string,
102
- ): SafeParseResult<FileGetGlobals, SDKValidationError> {
103
- return safeParse(
104
- jsonString,
105
- (x) => FileGetGlobals$inboundSchema.parse(JSON.parse(x)),
106
- `Failed to parse 'FileGetGlobals' from JSON`,
107
- );
108
- }
109
-
110
56
  /** @internal */
111
57
  export const FileGetRequest$inboundSchema: z.ZodType<
112
58
  FileGetRequest,
@@ -199,7 +145,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
199
145
  file_name: z.string(),
200
146
  workspace_id: z.string(),
201
147
  created: z.string().datetime({ offset: true }).default(
202
- "2025-02-10T15:50:13.272Z",
148
+ "2025-02-10T22:25:10.468Z",
203
149
  ).transform(v => new Date(v)),
204
150
  }).transform((v) => {
205
151
  return remap$(v, {
@@ -233,7 +179,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
233
179
  bytes: z.number(),
234
180
  fileName: z.string(),
235
181
  workspaceId: z.string(),
236
- created: z.date().default(() => new Date("2025-02-10T15:50:13.272Z"))
182
+ created: z.date().default(() => new Date("2025-02-10T22:25:10.468Z"))
237
183
  .transform(v => v.toISOString()),
238
184
  }).transform((v) => {
239
185
  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 FileListGlobals = {
13
- contactId?: string | undefined;
14
- };
15
-
16
12
  export type FileListRequest = {
17
13
  page?: number | undefined;
18
14
  limit?: number | undefined;
@@ -68,58 +64,6 @@ export type FileListResponseBody = {
68
64
  hasMore: boolean;
69
65
  };
70
66
 
71
- /** @internal */
72
- export const FileListGlobals$inboundSchema: z.ZodType<
73
- FileListGlobals,
74
- z.ZodTypeDef,
75
- unknown
76
- > = z.object({
77
- contactId: z.string().optional(),
78
- });
79
-
80
- /** @internal */
81
- export type FileListGlobals$Outbound = {
82
- contactId?: string | undefined;
83
- };
84
-
85
- /** @internal */
86
- export const FileListGlobals$outboundSchema: z.ZodType<
87
- FileListGlobals$Outbound,
88
- z.ZodTypeDef,
89
- FileListGlobals
90
- > = z.object({
91
- contactId: z.string().optional(),
92
- });
93
-
94
- /**
95
- * @internal
96
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
- */
98
- export namespace FileListGlobals$ {
99
- /** @deprecated use `FileListGlobals$inboundSchema` instead. */
100
- export const inboundSchema = FileListGlobals$inboundSchema;
101
- /** @deprecated use `FileListGlobals$outboundSchema` instead. */
102
- export const outboundSchema = FileListGlobals$outboundSchema;
103
- /** @deprecated use `FileListGlobals$Outbound` instead. */
104
- export type Outbound = FileListGlobals$Outbound;
105
- }
106
-
107
- export function fileListGlobalsToJSON(
108
- fileListGlobals: FileListGlobals,
109
- ): string {
110
- return JSON.stringify(FileListGlobals$outboundSchema.parse(fileListGlobals));
111
- }
112
-
113
- export function fileListGlobalsFromJSON(
114
- jsonString: string,
115
- ): SafeParseResult<FileListGlobals, SDKValidationError> {
116
- return safeParse(
117
- jsonString,
118
- (x) => FileListGlobals$inboundSchema.parse(JSON.parse(x)),
119
- `Failed to parse 'FileListGlobals' from JSON`,
120
- );
121
- }
122
-
123
67
  /** @internal */
124
68
  export const FileListRequest$inboundSchema: z.ZodType<
125
69
  FileListRequest,
@@ -236,7 +180,7 @@ export const FileListData$inboundSchema: z.ZodType<
236
180
  file_name: z.string(),
237
181
  workspace_id: z.string(),
238
182
  created: z.string().datetime({ offset: true }).default(
239
- "2025-02-10T15:50:13.272Z",
183
+ "2025-02-10T22:25:10.468Z",
240
184
  ).transform(v => new Date(v)),
241
185
  }).transform((v) => {
242
186
  return remap$(v, {
@@ -270,7 +214,7 @@ export const FileListData$outboundSchema: z.ZodType<
270
214
  bytes: z.number(),
271
215
  fileName: z.string(),
272
216
  workspaceId: z.string(),
273
- created: z.date().default(() => new Date("2025-02-10T15:50:13.272Z"))
217
+ created: z.date().default(() => new Date("2025-02-10T22:25:10.468Z"))
274
218
  .transform(v => v.toISOString()),
275
219
  }).transform((v) => {
276
220
  return remap$(v, {