@orq-ai/node 3.1.0-rc.50 → 3.1.0-rc.52

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 (38) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/operations/createcontact.js +2 -2
  5. package/models/operations/createprompt.d.ts +8 -13
  6. package/models/operations/createprompt.d.ts.map +1 -1
  7. package/models/operations/createprompt.js +10 -14
  8. package/models/operations/createprompt.js.map +1 -1
  9. package/models/operations/createpromptsnippet.js +2 -2
  10. package/models/operations/fileget.js +2 -2
  11. package/models/operations/filelist.js +2 -2
  12. package/models/operations/fileupload.js +2 -2
  13. package/models/operations/findonebykeypromptsnippet.js +2 -2
  14. package/models/operations/findonepromptsnippet.js +2 -2
  15. package/models/operations/getallprompts.d.ts +8 -13
  16. package/models/operations/getallprompts.d.ts.map +1 -1
  17. package/models/operations/getallprompts.js +10 -14
  18. package/models/operations/getallprompts.js.map +1 -1
  19. package/models/operations/getallpromptsnippets.js +2 -2
  20. package/models/operations/updateprompt.d.ts +8 -13
  21. package/models/operations/updateprompt.d.ts.map +1 -1
  22. package/models/operations/updateprompt.js +10 -14
  23. package/models/operations/updateprompt.js.map +1 -1
  24. package/models/operations/updatepromptsnippet.js +2 -2
  25. package/package.json +1 -1
  26. package/src/lib/config.ts +2 -2
  27. package/src/models/operations/createcontact.ts +2 -2
  28. package/src/models/operations/createprompt.ts +18 -27
  29. package/src/models/operations/createpromptsnippet.ts +2 -2
  30. package/src/models/operations/fileget.ts +2 -2
  31. package/src/models/operations/filelist.ts +2 -2
  32. package/src/models/operations/fileupload.ts +2 -2
  33. package/src/models/operations/findonebykeypromptsnippet.ts +2 -2
  34. package/src/models/operations/findonepromptsnippet.ts +2 -2
  35. package/src/models/operations/getallprompts.ts +18 -27
  36. package/src/models/operations/getallpromptsnippets.ts +2 -2
  37. package/src/models/operations/updateprompt.ts +18 -27
  38. package/src/models/operations/updatepromptsnippet.ts +2 -2
@@ -236,7 +236,7 @@ export const FileListData$inboundSchema: z.ZodType<
236
236
  file_name: z.string(),
237
237
  workspace_id: z.string(),
238
238
  created: z.string().datetime({ offset: true }).default(
239
- "2025-02-10T11:22:35.097Z",
239
+ "2025-02-10T14:20:22.627Z",
240
240
  ).transform(v => new Date(v)),
241
241
  }).transform((v) => {
242
242
  return remap$(v, {
@@ -270,7 +270,7 @@ export const FileListData$outboundSchema: z.ZodType<
270
270
  bytes: z.number(),
271
271
  fileName: z.string(),
272
272
  workspaceId: z.string(),
273
- created: z.date().default(() => new Date("2025-02-10T11:22:35.097Z"))
273
+ created: z.date().default(() => new Date("2025-02-10T14:20:22.627Z"))
274
274
  .transform(v => v.toISOString()),
275
275
  }).transform((v) => {
276
276
  return remap$(v, {
@@ -303,7 +303,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
303
303
  file_name: z.string(),
304
304
  workspace_id: z.string(),
305
305
  created: z.string().datetime({ offset: true }).default(
306
- "2025-02-10T11:22:35.097Z",
306
+ "2025-02-10T14:20:22.627Z",
307
307
  ).transform(v => new Date(v)),
308
308
  }).transform((v) => {
309
309
  return remap$(v, {
@@ -337,7 +337,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
337
337
  bytes: z.number(),
338
338
  fileName: z.string(),
339
339
  workspaceId: z.string(),
340
- created: z.date().default(() => new Date("2025-02-10T11:22:35.097Z"))
340
+ created: z.date().default(() => new Date("2025-02-10T14:20:22.627Z"))
341
341
  .transform(v => v.toISOString()),
342
342
  }).transform((v) => {
343
343
  return remap$(v, {
@@ -4439,7 +4439,7 @@ export const FindOneByKeyPromptSnippetResponseBody$inboundSchema: z.ZodType<
4439
4439
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
4440
4440
  .optional(),
4441
4441
  updated: z.string().datetime({ offset: true }).default(
4442
- "2025-02-10T11:22:34.029Z",
4442
+ "2025-02-10T14:20:21.534Z",
4443
4443
  ).transform(v => new Date(v)),
4444
4444
  type: FindOneByKeyPromptSnippetType$inboundSchema,
4445
4445
  versions: z.array(
@@ -4490,7 +4490,7 @@ export const FindOneByKeyPromptSnippetResponseBody$outboundSchema: z.ZodType<
4490
4490
  createdById: z.string(),
4491
4491
  updatedById: z.string(),
4492
4492
  created: z.date().transform(v => v.toISOString()).optional(),
4493
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
4493
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
4494
4494
  .transform(v => v.toISOString()),
4495
4495
  type: FindOneByKeyPromptSnippetType$outboundSchema,
4496
4496
  versions: z.array(
@@ -4308,7 +4308,7 @@ export const FindOnePromptSnippetResponseBody$inboundSchema: z.ZodType<
4308
4308
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
4309
4309
  .optional(),
4310
4310
  updated: z.string().datetime({ offset: true }).default(
4311
- "2025-02-10T11:22:34.029Z",
4311
+ "2025-02-10T14:20:21.534Z",
4312
4312
  ).transform(v => new Date(v)),
4313
4313
  type: FindOnePromptSnippetType$inboundSchema,
4314
4314
  versions: z.array(z.lazy(() => FindOnePromptSnippetVersions$inboundSchema)),
@@ -4355,7 +4355,7 @@ export const FindOnePromptSnippetResponseBody$outboundSchema: z.ZodType<
4355
4355
  createdById: z.string(),
4356
4356
  updatedById: z.string(),
4357
4357
  created: z.date().transform(v => v.toISOString()).optional(),
4358
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
4358
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
4359
4359
  .transform(v => v.toISOString()),
4360
4360
  type: FindOnePromptSnippetType$outboundSchema,
4361
4361
  versions: z.array(z.lazy(() => FindOnePromptSnippetVersions$outboundSchema)),
@@ -898,12 +898,8 @@ export type GetAllPromptsPromptsMetadata = {
898
898
  */
899
899
  export type GetAllPromptsVersions = {
900
900
  id: string;
901
- createdById: string;
902
- /**
903
- * The prompt’s name, meant to be displayable in the UI.
904
- */
905
- displayName: string;
906
- updatedById: string;
901
+ createdById?: string | undefined;
902
+ updatedById?: string | undefined;
907
903
  /**
908
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
909
905
  */
@@ -923,12 +919,12 @@ export type GetAllPromptsData = {
923
919
  id: string;
924
920
  owner: string | GetAllPromptsOwner2;
925
921
  domainId: string;
926
- createdById: string;
922
+ createdById?: string | undefined;
927
923
  /**
928
924
  * The prompt’s name, meant to be displayable in the UI.
929
925
  */
930
926
  displayName: string;
931
- updatedById: string;
927
+ updatedById?: string | undefined;
932
928
  /**
933
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
934
930
  */
@@ -3954,9 +3950,8 @@ export const GetAllPromptsVersions$inboundSchema: z.ZodType<
3954
3950
  unknown
3955
3951
  > = z.object({
3956
3952
  _id: z.string(),
3957
- created_by_id: z.string(),
3958
- display_name: z.string(),
3959
- updated_by_id: z.string(),
3953
+ created_by_id: z.string().optional(),
3954
+ updated_by_id: z.string().optional(),
3960
3955
  description: z.nullable(z.string()).optional(),
3961
3956
  prompt_config: z.lazy(() => GetAllPromptsPromptsPromptConfig$inboundSchema),
3962
3957
  metadata: z.lazy(() => GetAllPromptsPromptsMetadata$inboundSchema),
@@ -3965,7 +3960,6 @@ export const GetAllPromptsVersions$inboundSchema: z.ZodType<
3965
3960
  return remap$(v, {
3966
3961
  "_id": "id",
3967
3962
  "created_by_id": "createdById",
3968
- "display_name": "displayName",
3969
3963
  "updated_by_id": "updatedById",
3970
3964
  "prompt_config": "promptConfig",
3971
3965
  });
@@ -3974,9 +3968,8 @@ export const GetAllPromptsVersions$inboundSchema: z.ZodType<
3974
3968
  /** @internal */
3975
3969
  export type GetAllPromptsVersions$Outbound = {
3976
3970
  _id: string;
3977
- created_by_id: string;
3978
- display_name: string;
3979
- updated_by_id: string;
3971
+ created_by_id?: string | undefined;
3972
+ updated_by_id?: string | undefined;
3980
3973
  description?: string | null | undefined;
3981
3974
  prompt_config: GetAllPromptsPromptsPromptConfig$Outbound;
3982
3975
  metadata: GetAllPromptsPromptsMetadata$Outbound;
@@ -3990,9 +3983,8 @@ export const GetAllPromptsVersions$outboundSchema: z.ZodType<
3990
3983
  GetAllPromptsVersions
3991
3984
  > = z.object({
3992
3985
  id: z.string(),
3993
- createdById: z.string(),
3994
- displayName: z.string(),
3995
- updatedById: z.string(),
3986
+ createdById: z.string().optional(),
3987
+ updatedById: z.string().optional(),
3996
3988
  description: z.nullable(z.string()).optional(),
3997
3989
  promptConfig: z.lazy(() => GetAllPromptsPromptsPromptConfig$outboundSchema),
3998
3990
  metadata: z.lazy(() => GetAllPromptsPromptsMetadata$outboundSchema),
@@ -4001,7 +3993,6 @@ export const GetAllPromptsVersions$outboundSchema: z.ZodType<
4001
3993
  return remap$(v, {
4002
3994
  id: "_id",
4003
3995
  createdById: "created_by_id",
4004
- displayName: "display_name",
4005
3996
  updatedById: "updated_by_id",
4006
3997
  promptConfig: "prompt_config",
4007
3998
  });
@@ -4047,16 +4038,16 @@ export const GetAllPromptsData$inboundSchema: z.ZodType<
4047
4038
  _id: z.string(),
4048
4039
  owner: z.union([z.string(), GetAllPromptsOwner2$inboundSchema]),
4049
4040
  domain_id: z.string(),
4050
- created_by_id: z.string(),
4041
+ created_by_id: z.string().optional(),
4051
4042
  display_name: z.string(),
4052
- updated_by_id: z.string(),
4043
+ updated_by_id: z.string().optional(),
4053
4044
  description: z.nullable(z.string()).optional(),
4054
4045
  prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
4055
4046
  metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema),
4056
4047
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
4057
4048
  .optional(),
4058
4049
  updated: z.string().datetime({ offset: true }).default(
4059
- "2025-02-10T11:22:34.029Z",
4050
+ "2025-02-10T14:20:21.534Z",
4060
4051
  ).transform(v => new Date(v)),
4061
4052
  type: GetAllPromptsType$inboundSchema,
4062
4053
  versions: z.array(z.lazy(() => GetAllPromptsVersions$inboundSchema)),
@@ -4076,9 +4067,9 @@ export type GetAllPromptsData$Outbound = {
4076
4067
  _id: string;
4077
4068
  owner: string | string;
4078
4069
  domain_id: string;
4079
- created_by_id: string;
4070
+ created_by_id?: string | undefined;
4080
4071
  display_name: string;
4081
- updated_by_id: string;
4072
+ updated_by_id?: string | undefined;
4082
4073
  description?: string | null | undefined;
4083
4074
  prompt_config: GetAllPromptsPromptConfig$Outbound;
4084
4075
  metadata: GetAllPromptsMetadata$Outbound;
@@ -4097,14 +4088,14 @@ export const GetAllPromptsData$outboundSchema: z.ZodType<
4097
4088
  id: z.string(),
4098
4089
  owner: z.union([z.string(), GetAllPromptsOwner2$outboundSchema]),
4099
4090
  domainId: z.string(),
4100
- createdById: z.string(),
4091
+ createdById: z.string().optional(),
4101
4092
  displayName: z.string(),
4102
- updatedById: z.string(),
4093
+ updatedById: z.string().optional(),
4103
4094
  description: z.nullable(z.string()).optional(),
4104
4095
  promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
4105
4096
  metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema),
4106
4097
  created: z.date().transform(v => v.toISOString()).optional(),
4107
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
4098
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
4108
4099
  .transform(v => v.toISOString()),
4109
4100
  type: GetAllPromptsType$outboundSchema,
4110
4101
  versions: z.array(z.lazy(() => GetAllPromptsVersions$outboundSchema)),
@@ -4369,7 +4369,7 @@ export const GetAllPromptSnippetsData$inboundSchema: z.ZodType<
4369
4369
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
4370
4370
  .optional(),
4371
4371
  updated: z.string().datetime({ offset: true }).default(
4372
- "2025-02-10T11:22:34.029Z",
4372
+ "2025-02-10T14:20:21.534Z",
4373
4373
  ).transform(v => new Date(v)),
4374
4374
  type: GetAllPromptSnippetsType$inboundSchema,
4375
4375
  versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$inboundSchema)),
@@ -4416,7 +4416,7 @@ export const GetAllPromptSnippetsData$outboundSchema: z.ZodType<
4416
4416
  createdById: z.string(),
4417
4417
  updatedById: z.string(),
4418
4418
  created: z.date().transform(v => v.toISOString()).optional(),
4419
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
4419
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
4420
4420
  .transform(v => v.toISOString()),
4421
4421
  type: GetAllPromptSnippetsType$outboundSchema,
4422
4422
  versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$outboundSchema)),
@@ -1330,12 +1330,8 @@ export type UpdatePromptPromptsResponseMetadata = {
1330
1330
  */
1331
1331
  export type UpdatePromptVersions = {
1332
1332
  id: string;
1333
- createdById: string;
1334
- /**
1335
- * The prompt’s name, meant to be displayable in the UI.
1336
- */
1337
- displayName: string;
1338
- updatedById: string;
1333
+ createdById?: string | undefined;
1334
+ updatedById?: string | undefined;
1339
1335
  /**
1340
1336
  * 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
1341
1337
  */
@@ -1355,12 +1351,12 @@ export type UpdatePromptResponseBody = {
1355
1351
  id: string;
1356
1352
  owner: string | UpdatePromptOwner2;
1357
1353
  domainId: string;
1358
- createdById: string;
1354
+ createdById?: string | undefined;
1359
1355
  /**
1360
1356
  * The prompt’s name, meant to be displayable in the UI.
1361
1357
  */
1362
1358
  displayName: string;
1363
- updatedById: string;
1359
+ updatedById?: string | undefined;
1364
1360
  /**
1365
1361
  * 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
1366
1362
  */
@@ -5912,9 +5908,8 @@ export const UpdatePromptVersions$inboundSchema: z.ZodType<
5912
5908
  unknown
5913
5909
  > = z.object({
5914
5910
  _id: z.string(),
5915
- created_by_id: z.string(),
5916
- display_name: z.string(),
5917
- updated_by_id: z.string(),
5911
+ created_by_id: z.string().optional(),
5912
+ updated_by_id: z.string().optional(),
5918
5913
  description: z.nullable(z.string()).optional(),
5919
5914
  prompt_config: z.lazy(() =>
5920
5915
  UpdatePromptPromptsResponsePromptConfig$inboundSchema
@@ -5925,7 +5920,6 @@ export const UpdatePromptVersions$inboundSchema: z.ZodType<
5925
5920
  return remap$(v, {
5926
5921
  "_id": "id",
5927
5922
  "created_by_id": "createdById",
5928
- "display_name": "displayName",
5929
5923
  "updated_by_id": "updatedById",
5930
5924
  "prompt_config": "promptConfig",
5931
5925
  });
@@ -5934,9 +5928,8 @@ export const UpdatePromptVersions$inboundSchema: z.ZodType<
5934
5928
  /** @internal */
5935
5929
  export type UpdatePromptVersions$Outbound = {
5936
5930
  _id: string;
5937
- created_by_id: string;
5938
- display_name: string;
5939
- updated_by_id: string;
5931
+ created_by_id?: string | undefined;
5932
+ updated_by_id?: string | undefined;
5940
5933
  description?: string | null | undefined;
5941
5934
  prompt_config: UpdatePromptPromptsResponsePromptConfig$Outbound;
5942
5935
  metadata: UpdatePromptPromptsResponseMetadata$Outbound;
@@ -5950,9 +5943,8 @@ export const UpdatePromptVersions$outboundSchema: z.ZodType<
5950
5943
  UpdatePromptVersions
5951
5944
  > = z.object({
5952
5945
  id: z.string(),
5953
- createdById: z.string(),
5954
- displayName: z.string(),
5955
- updatedById: z.string(),
5946
+ createdById: z.string().optional(),
5947
+ updatedById: z.string().optional(),
5956
5948
  description: z.nullable(z.string()).optional(),
5957
5949
  promptConfig: z.lazy(() =>
5958
5950
  UpdatePromptPromptsResponsePromptConfig$outboundSchema
@@ -5963,7 +5955,6 @@ export const UpdatePromptVersions$outboundSchema: z.ZodType<
5963
5955
  return remap$(v, {
5964
5956
  id: "_id",
5965
5957
  createdById: "created_by_id",
5966
- displayName: "display_name",
5967
5958
  updatedById: "updated_by_id",
5968
5959
  promptConfig: "prompt_config",
5969
5960
  });
@@ -6009,16 +6000,16 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
6009
6000
  _id: z.string(),
6010
6001
  owner: z.union([z.string(), UpdatePromptOwner2$inboundSchema]),
6011
6002
  domain_id: z.string(),
6012
- created_by_id: z.string(),
6003
+ created_by_id: z.string().optional(),
6013
6004
  display_name: z.string(),
6014
- updated_by_id: z.string(),
6005
+ updated_by_id: z.string().optional(),
6015
6006
  description: z.nullable(z.string()).optional(),
6016
6007
  prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
6017
6008
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema),
6018
6009
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6019
6010
  .optional(),
6020
6011
  updated: z.string().datetime({ offset: true }).default(
6021
- "2025-02-10T11:22:34.029Z",
6012
+ "2025-02-10T14:20:21.534Z",
6022
6013
  ).transform(v => new Date(v)),
6023
6014
  type: UpdatePromptPromptsType$inboundSchema,
6024
6015
  versions: z.array(z.lazy(() => UpdatePromptVersions$inboundSchema)),
@@ -6038,9 +6029,9 @@ export type UpdatePromptResponseBody$Outbound = {
6038
6029
  _id: string;
6039
6030
  owner: string | string;
6040
6031
  domain_id: string;
6041
- created_by_id: string;
6032
+ created_by_id?: string | undefined;
6042
6033
  display_name: string;
6043
- updated_by_id: string;
6034
+ updated_by_id?: string | undefined;
6044
6035
  description?: string | null | undefined;
6045
6036
  prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
6046
6037
  metadata: UpdatePromptPromptsMetadata$Outbound;
@@ -6059,14 +6050,14 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
6059
6050
  id: z.string(),
6060
6051
  owner: z.union([z.string(), UpdatePromptOwner2$outboundSchema]),
6061
6052
  domainId: z.string(),
6062
- createdById: z.string(),
6053
+ createdById: z.string().optional(),
6063
6054
  displayName: z.string(),
6064
- updatedById: z.string(),
6055
+ updatedById: z.string().optional(),
6065
6056
  description: z.nullable(z.string()).optional(),
6066
6057
  promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
6067
6058
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema),
6068
6059
  created: z.date().transform(v => v.toISOString()).optional(),
6069
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
6060
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
6070
6061
  .transform(v => v.toISOString()),
6071
6062
  type: UpdatePromptPromptsType$outboundSchema,
6072
6063
  versions: z.array(z.lazy(() => UpdatePromptVersions$outboundSchema)),
@@ -6503,7 +6503,7 @@ export const UpdatePromptSnippetResponseBody$inboundSchema: z.ZodType<
6503
6503
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6504
6504
  .optional(),
6505
6505
  updated: z.string().datetime({ offset: true }).default(
6506
- "2025-02-10T11:22:34.029Z",
6506
+ "2025-02-10T14:20:21.534Z",
6507
6507
  ).transform(v => new Date(v)),
6508
6508
  type: UpdatePromptSnippetPromptSnippetsType$inboundSchema,
6509
6509
  versions: z.array(z.lazy(() => UpdatePromptSnippetVersions$inboundSchema)),
@@ -6554,7 +6554,7 @@ export const UpdatePromptSnippetResponseBody$outboundSchema: z.ZodType<
6554
6554
  createdById: z.string(),
6555
6555
  updatedById: z.string(),
6556
6556
  created: z.date().transform(v => v.toISOString()).optional(),
6557
- updated: z.date().default(() => new Date("2025-02-10T11:22:34.029Z"))
6557
+ updated: z.date().default(() => new Date("2025-02-10T14:20:21.534Z"))
6558
6558
  .transform(v => v.toISOString()),
6559
6559
  type: UpdatePromptSnippetPromptSnippetsType$outboundSchema,
6560
6560
  versions: z.array(z.lazy(() => UpdatePromptSnippetVersions$outboundSchema)),