@orq-ai/node 3.1.6 → 3.1.7

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 (72) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/operations/createcontact.js +2 -2
  5. package/models/operations/fileget.js +2 -2
  6. package/models/operations/filelist.js +2 -2
  7. package/models/operations/fileupload.js +2 -2
  8. package/package.json +1 -1
  9. package/packages/orq-rc/README.md +8 -61
  10. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -81
  11. package/packages/orq-rc/docs/sdks/files/README.md +8 -8
  12. package/packages/orq-rc/docs/sdks/{remoteconfig → remoteconfigs}/README.md +8 -8
  13. package/packages/orq-rc/jsr.json +1 -2
  14. package/packages/orq-rc/package-lock.json +2 -2
  15. package/packages/orq-rc/package.json +1 -1
  16. package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -0
  17. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -0
  18. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -0
  19. package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
  20. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -0
  21. package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -0
  22. package/packages/orq-rc/src/funcs/{filesUpload.ts → filesCreate.ts} +3 -2
  23. package/packages/orq-rc/src/funcs/filesDelete.ts +1 -0
  24. package/packages/orq-rc/src/funcs/filesGet.ts +5 -1
  25. package/packages/orq-rc/src/funcs/filesList.ts +6 -3
  26. package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -0
  27. package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -0
  28. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -0
  29. package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
  30. package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
  31. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -0
  32. package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -0
  33. package/packages/orq-rc/src/funcs/{remoteconfigGetConfig.ts → remoteconfigsRetrieve.ts} +3 -2
  34. package/packages/orq-rc/src/hooks/types.ts +1 -0
  35. package/packages/orq-rc/src/lib/config.ts +3 -3
  36. package/packages/orq-rc/src/lib/matchers.ts +1 -4
  37. package/packages/orq-rc/src/lib/security.ts +0 -1
  38. package/packages/orq-rc/src/models/errors/index.ts +0 -1
  39. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  40. package/packages/orq-rc/src/models/operations/createprompt.ts +668 -770
  41. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  42. package/packages/orq-rc/src/models/operations/filelist.ts +31 -16
  43. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  44. package/packages/orq-rc/src/models/operations/index.ts +0 -7
  45. package/packages/orq-rc/src/models/operations/updateprompt.ts +64 -81
  46. package/packages/orq-rc/src/sdk/deployments.ts +0 -19
  47. package/packages/orq-rc/src/sdk/files.ts +11 -5
  48. package/packages/orq-rc/src/sdk/{remoteconfig.ts → remoteconfigs.ts} +5 -5
  49. package/packages/orq-rc/src/sdk/sdk.ts +4 -10
  50. package/src/lib/config.ts +3 -3
  51. package/src/models/operations/createcontact.ts +2 -2
  52. package/src/models/operations/fileget.ts +2 -2
  53. package/src/models/operations/filelist.ts +2 -2
  54. package/src/models/operations/fileupload.ts +2 -2
  55. package/packages/orq-rc/docs/sdks/promptsnippets/README.md +0 -534
  56. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -150
  57. package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +0 -128
  58. package/packages/orq-rc/src/funcs/promptSnippetsDelete.ts +0 -131
  59. package/packages/orq-rc/src/funcs/promptSnippetsGet.ts +0 -130
  60. package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +0 -132
  61. package/packages/orq-rc/src/funcs/promptSnippetsList.ts +0 -132
  62. package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +0 -139
  63. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  64. package/packages/orq-rc/src/models/errors/updatepromptsnippet.ts +0 -71
  65. package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +0 -6239
  66. package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +0 -69
  67. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -3062
  68. package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
  69. package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +0 -4343
  70. package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +0 -4472
  71. package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +0 -6544
  72. package/packages/orq-rc/src/sdk/promptsnippets.ts +0 -99
@@ -145,7 +145,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
145
145
  file_name: z.string(),
146
146
  workspace_id: z.string(),
147
147
  created: z.string().datetime({ offset: true }).default(
148
- "2025-02-11T15:58:00.983Z",
148
+ "2025-02-14T07:58:16.360Z",
149
149
  ).transform(v => new Date(v)),
150
150
  }).transform((v) => {
151
151
  return remap$(v, {
@@ -179,7 +179,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
179
179
  bytes: z.number(),
180
180
  fileName: z.string(),
181
181
  workspaceId: z.string(),
182
- created: z.date().default(() => new Date("2025-02-11T15:58:00.983Z"))
182
+ created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
183
183
  .transform(v => v.toISOString()),
184
184
  }).transform((v) => {
185
185
  return remap$(v, {
@@ -10,10 +10,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type FileListRequest = {
13
- page?: number | undefined;
13
+ /**
14
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
15
+ */
14
16
  limit?: number | undefined;
15
- lastId?: string | null | undefined;
16
- firstId?: string | null | undefined;
17
+ /**
18
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
19
+ */
20
+ startingAfter?: string | undefined;
21
+ /**
22
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
+ */
24
+ endingBefore?: string | undefined;
17
25
  };
18
26
 
19
27
  export const FileListObject = {
@@ -70,18 +78,21 @@ export const FileListRequest$inboundSchema: z.ZodType<
70
78
  z.ZodTypeDef,
71
79
  unknown
72
80
  > = z.object({
73
- page: z.number().optional(),
74
- limit: z.number().default(50),
75
- lastId: z.nullable(z.string()).optional(),
76
- firstId: z.nullable(z.string()).optional(),
81
+ limit: z.number().default(10),
82
+ starting_after: z.string().optional(),
83
+ ending_before: z.string().optional(),
84
+ }).transform((v) => {
85
+ return remap$(v, {
86
+ "starting_after": "startingAfter",
87
+ "ending_before": "endingBefore",
88
+ });
77
89
  });
78
90
 
79
91
  /** @internal */
80
92
  export type FileListRequest$Outbound = {
81
- page?: number | undefined;
82
93
  limit: number;
83
- lastId?: string | null | undefined;
84
- firstId?: string | null | undefined;
94
+ starting_after?: string | undefined;
95
+ ending_before?: string | undefined;
85
96
  };
86
97
 
87
98
  /** @internal */
@@ -90,10 +101,14 @@ export const FileListRequest$outboundSchema: z.ZodType<
90
101
  z.ZodTypeDef,
91
102
  FileListRequest
92
103
  > = z.object({
93
- page: z.number().optional(),
94
- limit: z.number().default(50),
95
- lastId: z.nullable(z.string()).optional(),
96
- firstId: z.nullable(z.string()).optional(),
104
+ limit: z.number().default(10),
105
+ startingAfter: z.string().optional(),
106
+ endingBefore: z.string().optional(),
107
+ }).transform((v) => {
108
+ return remap$(v, {
109
+ startingAfter: "starting_after",
110
+ endingBefore: "ending_before",
111
+ });
97
112
  });
98
113
 
99
114
  /**
@@ -180,7 +195,7 @@ export const FileListData$inboundSchema: z.ZodType<
180
195
  file_name: z.string(),
181
196
  workspace_id: z.string(),
182
197
  created: z.string().datetime({ offset: true }).default(
183
- "2025-02-11T15:58:00.983Z",
198
+ "2025-02-14T07:58:16.360Z",
184
199
  ).transform(v => new Date(v)),
185
200
  }).transform((v) => {
186
201
  return remap$(v, {
@@ -214,7 +229,7 @@ export const FileListData$outboundSchema: z.ZodType<
214
229
  bytes: z.number(),
215
230
  fileName: z.string(),
216
231
  workspaceId: z.string(),
217
- created: z.date().default(() => new Date("2025-02-11T15:58:00.983Z"))
232
+ created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
218
233
  .transform(v => v.toISOString()),
219
234
  }).transform((v) => {
220
235
  return remap$(v, {
@@ -245,7 +245,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
245
245
  file_name: z.string(),
246
246
  workspace_id: z.string(),
247
247
  created: z.string().datetime({ offset: true }).default(
248
- "2025-02-11T15:58:00.983Z",
248
+ "2025-02-14T07:58:16.360Z",
249
249
  ).transform(v => new Date(v)),
250
250
  }).transform((v) => {
251
251
  return remap$(v, {
@@ -279,7 +279,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
279
279
  bytes: z.number(),
280
280
  fileName: z.string(),
281
281
  workspaceId: z.string(),
282
- created: z.date().default(() => new Date("2025-02-11T15:58:00.983Z"))
282
+ created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
283
283
  .transform(v => v.toISOString()),
284
284
  }).transform((v) => {
285
285
  return remap$(v, {
@@ -5,25 +5,18 @@
5
5
  export * from "./createcontact.js";
6
6
  export * from "./createfeedback.js";
7
7
  export * from "./createprompt.js";
8
- export * from "./createpromptsnippet.js";
9
8
  export * from "./deleteprompt.js";
10
- export * from "./deletepromptsnippet.js";
11
9
  export * from "./deploymentcreatemetric.js";
12
10
  export * from "./deploymentgetconfig.js";
13
11
  export * from "./deploymentinvoke.js";
14
12
  export * from "./deployments.js";
15
- export * from "./deploymentstream.js";
16
13
  export * from "./filedelete.js";
17
14
  export * from "./fileget.js";
18
15
  export * from "./filelist.js";
19
16
  export * from "./fileupload.js";
20
- export * from "./findonebykeypromptsnippet.js";
21
- export * from "./findonepromptsnippet.js";
22
17
  export * from "./getallprompts.js";
23
- export * from "./getallpromptsnippets.js";
24
18
  export * from "./getoneprompt.js";
25
19
  export * from "./getpromptversion.js";
26
20
  export * from "./listpromptversions.js";
27
21
  export * from "./remoteconfigsgetconfig.js";
28
22
  export * from "./updateprompt.js";
29
- export * from "./updatepromptsnippet.js";
@@ -72,7 +72,7 @@ export type UpdatePromptResponseFormatType = ClosedEnum<
72
72
  typeof UpdatePromptResponseFormatType
73
73
  >;
74
74
 
75
- export type UpdatePromptResponseFormatJsonSchema = {
75
+ export type ResponseFormatJsonSchema = {
76
76
  name: string;
77
77
  strict: boolean;
78
78
  schema: { [k: string]: any };
@@ -80,7 +80,7 @@ export type UpdatePromptResponseFormatJsonSchema = {
80
80
 
81
81
  export type UpdatePromptResponseFormat1 = {
82
82
  type: UpdatePromptResponseFormatType;
83
- jsonSchema: UpdatePromptResponseFormatJsonSchema;
83
+ jsonSchema: ResponseFormatJsonSchema;
84
84
  };
85
85
 
86
86
  /**
@@ -516,7 +516,7 @@ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
516
516
  typeof UpdatePromptResponseFormatPromptsResponseType
517
517
  >;
518
518
 
519
- export type UpdatePromptResponseFormatPromptsJsonSchema = {
519
+ export type UpdatePromptResponseFormatJsonSchema = {
520
520
  name: string;
521
521
  strict: boolean;
522
522
  schema: { [k: string]: any };
@@ -524,7 +524,7 @@ export type UpdatePromptResponseFormatPromptsJsonSchema = {
524
524
 
525
525
  export type UpdatePromptResponseFormatPrompts1 = {
526
526
  type: UpdatePromptResponseFormatPromptsResponseType;
527
- jsonSchema: UpdatePromptResponseFormatPromptsJsonSchema;
527
+ jsonSchema: UpdatePromptResponseFormatJsonSchema;
528
528
  };
529
529
 
530
530
  /**
@@ -1072,8 +1072,8 @@ export namespace UpdatePromptResponseFormatType$ {
1072
1072
  }
1073
1073
 
1074
1074
  /** @internal */
1075
- export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
1076
- UpdatePromptResponseFormatJsonSchema,
1075
+ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1076
+ ResponseFormatJsonSchema,
1077
1077
  z.ZodTypeDef,
1078
1078
  unknown
1079
1079
  > = z.object({
@@ -1083,17 +1083,17 @@ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
1083
1083
  });
1084
1084
 
1085
1085
  /** @internal */
1086
- export type UpdatePromptResponseFormatJsonSchema$Outbound = {
1086
+ export type ResponseFormatJsonSchema$Outbound = {
1087
1087
  name: string;
1088
1088
  strict: boolean;
1089
1089
  schema: { [k: string]: any };
1090
1090
  };
1091
1091
 
1092
1092
  /** @internal */
1093
- export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
1094
- UpdatePromptResponseFormatJsonSchema$Outbound,
1093
+ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1094
+ ResponseFormatJsonSchema$Outbound,
1095
1095
  z.ZodTypeDef,
1096
- UpdatePromptResponseFormatJsonSchema
1096
+ ResponseFormatJsonSchema
1097
1097
  > = z.object({
1098
1098
  name: z.string(),
1099
1099
  strict: z.boolean(),
@@ -1104,35 +1104,30 @@ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
1104
1104
  * @internal
1105
1105
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1106
1106
  */
1107
- export namespace UpdatePromptResponseFormatJsonSchema$ {
1108
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
1109
- export const inboundSchema =
1110
- UpdatePromptResponseFormatJsonSchema$inboundSchema;
1111
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
1112
- export const outboundSchema =
1113
- UpdatePromptResponseFormatJsonSchema$outboundSchema;
1114
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
1115
- export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
1107
+ export namespace ResponseFormatJsonSchema$ {
1108
+ /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1109
+ export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1110
+ /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1111
+ export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1112
+ /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1113
+ export type Outbound = ResponseFormatJsonSchema$Outbound;
1116
1114
  }
1117
1115
 
1118
- export function updatePromptResponseFormatJsonSchemaToJSON(
1119
- updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
1116
+ export function responseFormatJsonSchemaToJSON(
1117
+ responseFormatJsonSchema: ResponseFormatJsonSchema,
1120
1118
  ): string {
1121
1119
  return JSON.stringify(
1122
- UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
1123
- updatePromptResponseFormatJsonSchema,
1124
- ),
1120
+ ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1125
1121
  );
1126
1122
  }
1127
1123
 
1128
- export function updatePromptResponseFormatJsonSchemaFromJSON(
1124
+ export function responseFormatJsonSchemaFromJSON(
1129
1125
  jsonString: string,
1130
- ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
1126
+ ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1131
1127
  return safeParse(
1132
1128
  jsonString,
1133
- (x) =>
1134
- UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1135
- `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
1129
+ (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1130
+ `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1136
1131
  );
1137
1132
  }
1138
1133
 
@@ -1143,7 +1138,7 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1143
1138
  unknown
1144
1139
  > = z.object({
1145
1140
  type: UpdatePromptResponseFormatType$inboundSchema,
1146
- json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
1141
+ json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1147
1142
  }).transform((v) => {
1148
1143
  return remap$(v, {
1149
1144
  "json_schema": "jsonSchema",
@@ -1153,7 +1148,7 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1153
1148
  /** @internal */
1154
1149
  export type UpdatePromptResponseFormat1$Outbound = {
1155
1150
  type: string;
1156
- json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
1151
+ json_schema: ResponseFormatJsonSchema$Outbound;
1157
1152
  };
1158
1153
 
1159
1154
  /** @internal */
@@ -1163,7 +1158,7 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1163
1158
  UpdatePromptResponseFormat1
1164
1159
  > = z.object({
1165
1160
  type: UpdatePromptResponseFormatType$outboundSchema,
1166
- jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
1161
+ jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1167
1162
  }).transform((v) => {
1168
1163
  return remap$(v, {
1169
1164
  jsonSchema: "json_schema",
@@ -2585,75 +2580,67 @@ export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2585
2580
  }
2586
2581
 
2587
2582
  /** @internal */
2588
- export const UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema:
2589
- z.ZodType<
2590
- UpdatePromptResponseFormatPromptsJsonSchema,
2591
- z.ZodTypeDef,
2592
- unknown
2593
- > = z.object({
2594
- name: z.string(),
2595
- strict: z.boolean(),
2596
- schema: z.record(z.any()),
2597
- });
2583
+ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2584
+ UpdatePromptResponseFormatJsonSchema,
2585
+ z.ZodTypeDef,
2586
+ unknown
2587
+ > = z.object({
2588
+ name: z.string(),
2589
+ strict: z.boolean(),
2590
+ schema: z.record(z.any()),
2591
+ });
2598
2592
 
2599
2593
  /** @internal */
2600
- export type UpdatePromptResponseFormatPromptsJsonSchema$Outbound = {
2594
+ export type UpdatePromptResponseFormatJsonSchema$Outbound = {
2601
2595
  name: string;
2602
2596
  strict: boolean;
2603
2597
  schema: { [k: string]: any };
2604
2598
  };
2605
2599
 
2606
2600
  /** @internal */
2607
- export const UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema:
2608
- z.ZodType<
2609
- UpdatePromptResponseFormatPromptsJsonSchema$Outbound,
2610
- z.ZodTypeDef,
2611
- UpdatePromptResponseFormatPromptsJsonSchema
2612
- > = z.object({
2613
- name: z.string(),
2614
- strict: z.boolean(),
2615
- schema: z.record(z.any()),
2616
- });
2601
+ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2602
+ UpdatePromptResponseFormatJsonSchema$Outbound,
2603
+ z.ZodTypeDef,
2604
+ UpdatePromptResponseFormatJsonSchema
2605
+ > = z.object({
2606
+ name: z.string(),
2607
+ strict: z.boolean(),
2608
+ schema: z.record(z.any()),
2609
+ });
2617
2610
 
2618
2611
  /**
2619
2612
  * @internal
2620
2613
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2621
2614
  */
2622
- export namespace UpdatePromptResponseFormatPromptsJsonSchema$ {
2623
- /** @deprecated use `UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
2615
+ export namespace UpdatePromptResponseFormatJsonSchema$ {
2616
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2624
2617
  export const inboundSchema =
2625
- UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema;
2626
- /** @deprecated use `UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
2618
+ UpdatePromptResponseFormatJsonSchema$inboundSchema;
2619
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2627
2620
  export const outboundSchema =
2628
- UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema;
2629
- /** @deprecated use `UpdatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
2630
- export type Outbound = UpdatePromptResponseFormatPromptsJsonSchema$Outbound;
2621
+ UpdatePromptResponseFormatJsonSchema$outboundSchema;
2622
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
2623
+ export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
2631
2624
  }
2632
2625
 
2633
- export function updatePromptResponseFormatPromptsJsonSchemaToJSON(
2634
- updatePromptResponseFormatPromptsJsonSchema:
2635
- UpdatePromptResponseFormatPromptsJsonSchema,
2626
+ export function updatePromptResponseFormatJsonSchemaToJSON(
2627
+ updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
2636
2628
  ): string {
2637
2629
  return JSON.stringify(
2638
- UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
2639
- updatePromptResponseFormatPromptsJsonSchema,
2630
+ UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
2631
+ updatePromptResponseFormatJsonSchema,
2640
2632
  ),
2641
2633
  );
2642
2634
  }
2643
2635
 
2644
- export function updatePromptResponseFormatPromptsJsonSchemaFromJSON(
2636
+ export function updatePromptResponseFormatJsonSchemaFromJSON(
2645
2637
  jsonString: string,
2646
- ): SafeParseResult<
2647
- UpdatePromptResponseFormatPromptsJsonSchema,
2648
- SDKValidationError
2649
- > {
2638
+ ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
2650
2639
  return safeParse(
2651
2640
  jsonString,
2652
2641
  (x) =>
2653
- UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
2654
- JSON.parse(x),
2655
- ),
2656
- `Failed to parse 'UpdatePromptResponseFormatPromptsJsonSchema' from JSON`,
2642
+ UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2643
+ `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
2657
2644
  );
2658
2645
  }
2659
2646
 
@@ -2664,9 +2651,7 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2664
2651
  unknown
2665
2652
  > = z.object({
2666
2653
  type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2667
- json_schema: z.lazy(() =>
2668
- UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema
2669
- ),
2654
+ json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
2670
2655
  }).transform((v) => {
2671
2656
  return remap$(v, {
2672
2657
  "json_schema": "jsonSchema",
@@ -2676,7 +2661,7 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2676
2661
  /** @internal */
2677
2662
  export type UpdatePromptResponseFormatPrompts1$Outbound = {
2678
2663
  type: string;
2679
- json_schema: UpdatePromptResponseFormatPromptsJsonSchema$Outbound;
2664
+ json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
2680
2665
  };
2681
2666
 
2682
2667
  /** @internal */
@@ -2686,9 +2671,7 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2686
2671
  UpdatePromptResponseFormatPrompts1
2687
2672
  > = z.object({
2688
2673
  type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2689
- jsonSchema: z.lazy(() =>
2690
- UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema
2691
- ),
2674
+ jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
2692
2675
  }).transform((v) => {
2693
2676
  return remap$(v, {
2694
2677
  jsonSchema: "json_schema",
@@ -5,8 +5,6 @@
5
5
  import { deploymentsGetConfig } from "../funcs/deploymentsGetConfig.js";
6
6
  import { deploymentsInvoke } from "../funcs/deploymentsInvoke.js";
7
7
  import { deploymentsList } from "../funcs/deploymentsList.js";
8
- import { deploymentsStream } from "../funcs/deploymentsStream.js";
9
- import { EventStream } from "../lib/event-streams.js";
10
8
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
9
  import * as components from "../models/components/index.js";
12
10
  import * as operations from "../models/operations/index.js";
@@ -69,21 +67,4 @@ export class Deployments extends ClientSDK {
69
67
  options,
70
68
  ));
71
69
  }
72
-
73
- /**
74
- * Stream
75
- *
76
- * @remarks
77
- * Stream deployment generation. Only supported for completions and chat completions.
78
- */
79
- async stream(
80
- request: operations.DeploymentStreamRequestBody,
81
- options?: RequestOptions,
82
- ): Promise<EventStream<operations.DeploymentStreamResponseBody>> {
83
- return unwrapAsync(deploymentsStream(
84
- this,
85
- request,
86
- options,
87
- ));
88
- }
89
70
  }
@@ -2,26 +2,26 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { filesCreate } from "../funcs/filesCreate.js";
5
6
  import { filesDelete } from "../funcs/filesDelete.js";
6
7
  import { filesGet } from "../funcs/filesGet.js";
7
8
  import { filesList } from "../funcs/filesList.js";
8
- import { filesUpload } from "../funcs/filesUpload.js";
9
9
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
10
  import * as operations from "../models/operations/index.js";
11
11
  import { unwrapAsync } from "../types/fp.js";
12
12
 
13
13
  export class Files extends ClientSDK {
14
14
  /**
15
- * Upload file
15
+ * Create file
16
16
  *
17
17
  * @remarks
18
18
  * Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/post_v2-deployments-get-config).
19
19
  */
20
- async upload(
20
+ async create(
21
21
  request?: operations.FileUploadRequestBody | undefined,
22
22
  options?: RequestOptions,
23
23
  ): Promise<operations.FileUploadResponseBody> {
24
- return unwrapAsync(filesUpload(
24
+ return unwrapAsync(filesCreate(
25
25
  this,
26
26
  request,
27
27
  options,
@@ -30,6 +30,9 @@ export class Files extends ClientSDK {
30
30
 
31
31
  /**
32
32
  * List all files
33
+ *
34
+ * @remarks
35
+ * Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.
33
36
  */
34
37
  async list(
35
38
  request?: operations.FileListRequest | undefined,
@@ -43,7 +46,10 @@ export class Files extends ClientSDK {
43
46
  }
44
47
 
45
48
  /**
46
- * Get file by ID
49
+ * Retrieve a file
50
+ *
51
+ * @remarks
52
+ * Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object
47
53
  */
48
54
  async get(
49
55
  request: operations.FileGetRequest,
@@ -2,20 +2,20 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { remoteconfigGetConfig } from "../funcs/remoteconfigGetConfig.js";
5
+ import { remoteconfigsRetrieve } from "../funcs/remoteconfigsRetrieve.js";
6
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
 
10
- export class Remoteconfig extends ClientSDK {
10
+ export class Remoteconfigs extends ClientSDK {
11
11
  /**
12
- * Get Configurations
12
+ * Retrieve a remote config
13
13
  */
14
- async getConfig(
14
+ async retrieve(
15
15
  request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
16
16
  options?: RequestOptions,
17
17
  ): Promise<operations.RemoteConfigsGetConfigResponseBody> {
18
- return unwrapAsync(remoteconfigGetConfig(
18
+ return unwrapAsync(remoteconfigsRetrieve(
19
19
  this,
20
20
  request,
21
21
  options,
@@ -8,8 +8,7 @@ import { Deployments } from "./deployments.js";
8
8
  import { Feedback } from "./feedback.js";
9
9
  import { Files } from "./files.js";
10
10
  import { Prompts } from "./prompts.js";
11
- import { PromptSnippets } from "./promptsnippets.js";
12
- import { Remoteconfig } from "./remoteconfig.js";
11
+ import { Remoteconfigs } from "./remoteconfigs.js";
13
12
 
14
13
  export class Orq extends ClientSDK {
15
14
  private _contacts?: Contacts;
@@ -32,18 +31,13 @@ export class Orq extends ClientSDK {
32
31
  return (this._files ??= new Files(this._options));
33
32
  }
34
33
 
35
- private _promptSnippets?: PromptSnippets;
36
- get promptSnippets(): PromptSnippets {
37
- return (this._promptSnippets ??= new PromptSnippets(this._options));
38
- }
39
-
40
34
  private _prompts?: Prompts;
41
35
  get prompts(): Prompts {
42
36
  return (this._prompts ??= new Prompts(this._options));
43
37
  }
44
38
 
45
- private _remoteconfig?: Remoteconfig;
46
- get remoteconfig(): Remoteconfig {
47
- return (this._remoteconfig ??= new Remoteconfig(this._options));
39
+ private _remoteconfigs?: Remoteconfigs;
40
+ get remoteconfigs(): Remoteconfigs {
41
+ return (this._remoteconfigs ??= new Remoteconfigs(this._options));
48
42
  }
49
43
  }
package/src/lib/config.ts CHANGED
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "2.0",
67
- sdkVersion: "3.1.6",
68
- genVersion: "2.512.0",
69
- userAgent: "speakeasy-sdk/typescript 3.1.6 2.512.0 2.0 @orq-ai/node",
67
+ sdkVersion: "3.1.7",
68
+ genVersion: "2.512.4",
69
+ userAgent: "speakeasy-sdk/typescript 3.1.7 2.512.4 2.0 @orq-ai/node",
70
70
  } as const;
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
177
177
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
178
  .optional(),
179
179
  updated: z.string().datetime({ offset: true }).default(
180
- "2025-02-13T10:41:35.445Z",
180
+ "2025-02-14T08:25:40.279Z",
181
181
  ).transform(v => new Date(v)),
182
182
  }).transform((v) => {
183
183
  return remap$(v, {
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
214
214
  tags: z.array(z.string()).optional(),
215
215
  metadata: z.record(z.any()).optional(),
216
216
  created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-02-13T10:41:35.445Z"))
217
+ updated: z.date().default(() => new Date("2025-02-14T08:25:40.279Z"))
218
218
  .transform(v => v.toISOString()),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -145,7 +145,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
145
145
  file_name: z.string(),
146
146
  workspace_id: z.string(),
147
147
  created: z.string().datetime({ offset: true }).default(
148
- "2025-02-13T10:41:36.512Z",
148
+ "2025-02-14T08:25:41.326Z",
149
149
  ).transform(v => new Date(v)),
150
150
  }).transform((v) => {
151
151
  return remap$(v, {
@@ -179,7 +179,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
179
179
  bytes: z.number(),
180
180
  fileName: z.string(),
181
181
  workspaceId: z.string(),
182
- created: z.date().default(() => new Date("2025-02-13T10:41:36.512Z"))
182
+ created: z.date().default(() => new Date("2025-02-14T08:25:41.326Z"))
183
183
  .transform(v => v.toISOString()),
184
184
  }).transform((v) => {
185
185
  return remap$(v, {
@@ -195,7 +195,7 @@ export const FileListData$inboundSchema: z.ZodType<
195
195
  file_name: z.string(),
196
196
  workspace_id: z.string(),
197
197
  created: z.string().datetime({ offset: true }).default(
198
- "2025-02-13T10:41:36.512Z",
198
+ "2025-02-14T08:25:41.326Z",
199
199
  ).transform(v => new Date(v)),
200
200
  }).transform((v) => {
201
201
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileListData$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2025-02-13T10:41:36.512Z"))
232
+ created: z.date().default(() => new Date("2025-02-14T08:25:41.326Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {