@orq-ai/node 3.1.0-rc.45 → 3.1.0-rc.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/sdks/prompts/README.md +45 -45
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.js +2 -2
- package/models/operations/createpromptsnippet.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/findonebykeypromptsnippet.js +2 -2
- package/models/operations/findonepromptsnippet.js +2 -2
- package/models/operations/getallprompts.js +2 -2
- package/models/operations/getallpromptsnippets.js +2 -2
- package/models/operations/updateprompt.js +2 -2
- package/models/operations/updatepromptsnippet.js +2 -2
- package/package.json +1 -1
- package/sdk/prompts.d.ts +4 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +6 -6
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/promptsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +2 -2
- package/src/models/operations/createpromptsnippet.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/findonebykeypromptsnippet.ts +2 -2
- package/src/models/operations/findonepromptsnippet.ts +2 -2
- package/src/models/operations/getallprompts.ts +2 -2
- package/src/models/operations/getallpromptsnippets.ts +2 -2
- package/src/models/operations/updateprompt.ts +2 -2
- package/src/models/operations/updatepromptsnippet.ts +2 -2
- package/src/sdk/prompts.ts +14 -14
package/README.md
CHANGED
|
@@ -174,10 +174,10 @@ run();
|
|
|
174
174
|
### [prompts](docs/sdks/prompts/README.md)
|
|
175
175
|
|
|
176
176
|
* [create](docs/sdks/prompts/README.md#create) - Create a prompt
|
|
177
|
+
* [list](docs/sdks/prompts/README.md#list) - List all prompts
|
|
177
178
|
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
178
179
|
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
179
180
|
* [get](docs/sdks/prompts/README.md#get) - Retrieve a prompt
|
|
180
|
-
* [list](docs/sdks/prompts/README.md#list) - List all prompts
|
|
181
181
|
|
|
182
182
|
### [promptSnippets](docs/sdks/promptsnippets/README.md)
|
|
183
183
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [create](#create) - Create a prompt
|
|
9
|
+
* [list](#list) - List all prompts
|
|
9
10
|
* [update](#update) - Update a prompt
|
|
10
11
|
* [delete](#delete) - Delete a prompt
|
|
11
12
|
* [get](#get) - Retrieve a prompt
|
|
12
|
-
* [list](#list) - List all prompts
|
|
13
13
|
|
|
14
14
|
## create
|
|
15
15
|
|
|
@@ -151,9 +151,9 @@ run();
|
|
|
151
151
|
| --------------- | --------------- | --------------- |
|
|
152
152
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
153
153
|
|
|
154
|
-
##
|
|
154
|
+
## list
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
List all prompts
|
|
157
157
|
|
|
158
158
|
### Example Usage
|
|
159
159
|
|
|
@@ -165,9 +165,7 @@ const orq = new Orq({
|
|
|
165
165
|
});
|
|
166
166
|
|
|
167
167
|
async function run() {
|
|
168
|
-
const result = await orq.prompts.
|
|
169
|
-
id: "<id>",
|
|
170
|
-
});
|
|
168
|
+
const result = await orq.prompts.list({});
|
|
171
169
|
|
|
172
170
|
// Handle the result
|
|
173
171
|
console.log(result);
|
|
@@ -182,7 +180,7 @@ The standalone function version of this method:
|
|
|
182
180
|
|
|
183
181
|
```typescript
|
|
184
182
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
185
|
-
import {
|
|
183
|
+
import { promptsList } from "@orq-ai/node/funcs/promptsList.js";
|
|
186
184
|
|
|
187
185
|
// Use `OrqCore` for best tree-shaking performance.
|
|
188
186
|
// You can create one instance of it to use across an application.
|
|
@@ -191,9 +189,7 @@ const orq = new OrqCore({
|
|
|
191
189
|
});
|
|
192
190
|
|
|
193
191
|
async function run() {
|
|
194
|
-
const res = await
|
|
195
|
-
id: "<id>",
|
|
196
|
-
});
|
|
192
|
+
const res = await promptsList(orq, {});
|
|
197
193
|
|
|
198
194
|
if (!res.ok) {
|
|
199
195
|
throw res.error;
|
|
@@ -212,25 +208,24 @@ run();
|
|
|
212
208
|
|
|
213
209
|
| Parameter | Type | Required | Description |
|
|
214
210
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
215
|
-
| `request` | [operations.
|
|
211
|
+
| `request` | [operations.GetAllPromptsRequest](../../models/operations/getallpromptsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
216
212
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
217
213
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
218
214
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
219
215
|
|
|
220
216
|
### Response
|
|
221
217
|
|
|
222
|
-
**Promise\<[operations.
|
|
218
|
+
**Promise\<[operations.GetAllPromptsResponseBody](../../models/operations/getallpromptsresponsebody.md)\>**
|
|
223
219
|
|
|
224
220
|
### Errors
|
|
225
221
|
|
|
226
|
-
| Error Type
|
|
227
|
-
|
|
|
228
|
-
| errors.
|
|
229
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
222
|
+
| Error Type | Status Code | Content Type |
|
|
223
|
+
| --------------- | --------------- | --------------- |
|
|
224
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
230
225
|
|
|
231
|
-
##
|
|
226
|
+
## update
|
|
232
227
|
|
|
233
|
-
|
|
228
|
+
Update a prompt
|
|
234
229
|
|
|
235
230
|
### Example Usage
|
|
236
231
|
|
|
@@ -242,11 +237,12 @@ const orq = new Orq({
|
|
|
242
237
|
});
|
|
243
238
|
|
|
244
239
|
async function run() {
|
|
245
|
-
await orq.prompts.
|
|
240
|
+
const result = await orq.prompts.update({
|
|
246
241
|
id: "<id>",
|
|
247
242
|
});
|
|
248
243
|
|
|
249
|
-
|
|
244
|
+
// Handle the result
|
|
245
|
+
console.log(result);
|
|
250
246
|
}
|
|
251
247
|
|
|
252
248
|
run();
|
|
@@ -258,7 +254,7 @@ The standalone function version of this method:
|
|
|
258
254
|
|
|
259
255
|
```typescript
|
|
260
256
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
261
|
-
import {
|
|
257
|
+
import { promptsUpdate } from "@orq-ai/node/funcs/promptsUpdate.js";
|
|
262
258
|
|
|
263
259
|
// Use `OrqCore` for best tree-shaking performance.
|
|
264
260
|
// You can create one instance of it to use across an application.
|
|
@@ -267,7 +263,7 @@ const orq = new OrqCore({
|
|
|
267
263
|
});
|
|
268
264
|
|
|
269
265
|
async function run() {
|
|
270
|
-
const res = await
|
|
266
|
+
const res = await promptsUpdate(orq, {
|
|
271
267
|
id: "<id>",
|
|
272
268
|
});
|
|
273
269
|
|
|
@@ -277,7 +273,8 @@ async function run() {
|
|
|
277
273
|
|
|
278
274
|
const { value: result } = res;
|
|
279
275
|
|
|
280
|
-
|
|
276
|
+
// Handle the result
|
|
277
|
+
console.log(result);
|
|
281
278
|
}
|
|
282
279
|
|
|
283
280
|
run();
|
|
@@ -287,24 +284,25 @@ run();
|
|
|
287
284
|
|
|
288
285
|
| Parameter | Type | Required | Description |
|
|
289
286
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
290
|
-
| `request` | [operations.
|
|
287
|
+
| `request` | [operations.UpdatePromptRequest](../../models/operations/updatepromptrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
291
288
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
292
289
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
293
290
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
294
291
|
|
|
295
292
|
### Response
|
|
296
293
|
|
|
297
|
-
**Promise\<
|
|
294
|
+
**Promise\<[operations.UpdatePromptResponseBody](../../models/operations/updatepromptresponsebody.md)\>**
|
|
298
295
|
|
|
299
296
|
### Errors
|
|
300
297
|
|
|
301
|
-
| Error Type
|
|
302
|
-
|
|
|
303
|
-
| errors.
|
|
298
|
+
| Error Type | Status Code | Content Type |
|
|
299
|
+
| ------------------------------- | ------------------------------- | ------------------------------- |
|
|
300
|
+
| errors.UpdatePromptResponseBody | 404 | application/json |
|
|
301
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
304
302
|
|
|
305
|
-
##
|
|
303
|
+
## delete
|
|
306
304
|
|
|
307
|
-
|
|
305
|
+
Delete a prompt
|
|
308
306
|
|
|
309
307
|
### Example Usage
|
|
310
308
|
|
|
@@ -316,7 +314,7 @@ const orq = new Orq({
|
|
|
316
314
|
});
|
|
317
315
|
|
|
318
316
|
async function run() {
|
|
319
|
-
await orq.prompts.
|
|
317
|
+
await orq.prompts.delete({
|
|
320
318
|
id: "<id>",
|
|
321
319
|
});
|
|
322
320
|
|
|
@@ -332,7 +330,7 @@ The standalone function version of this method:
|
|
|
332
330
|
|
|
333
331
|
```typescript
|
|
334
332
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
335
|
-
import {
|
|
333
|
+
import { promptsDelete } from "@orq-ai/node/funcs/promptsDelete.js";
|
|
336
334
|
|
|
337
335
|
// Use `OrqCore` for best tree-shaking performance.
|
|
338
336
|
// You can create one instance of it to use across an application.
|
|
@@ -341,7 +339,7 @@ const orq = new OrqCore({
|
|
|
341
339
|
});
|
|
342
340
|
|
|
343
341
|
async function run() {
|
|
344
|
-
const res = await
|
|
342
|
+
const res = await promptsDelete(orq, {
|
|
345
343
|
id: "<id>",
|
|
346
344
|
});
|
|
347
345
|
|
|
@@ -361,7 +359,7 @@ run();
|
|
|
361
359
|
|
|
362
360
|
| Parameter | Type | Required | Description |
|
|
363
361
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
364
|
-
| `request` | [operations.
|
|
362
|
+
| `request` | [operations.DeletePromptRequest](../../models/operations/deletepromptrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
365
363
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
366
364
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
367
365
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -376,9 +374,9 @@ run();
|
|
|
376
374
|
| --------------- | --------------- | --------------- |
|
|
377
375
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
378
376
|
|
|
379
|
-
##
|
|
377
|
+
## get
|
|
380
378
|
|
|
381
|
-
|
|
379
|
+
Retrieve a prompt
|
|
382
380
|
|
|
383
381
|
### Example Usage
|
|
384
382
|
|
|
@@ -390,10 +388,11 @@ const orq = new Orq({
|
|
|
390
388
|
});
|
|
391
389
|
|
|
392
390
|
async function run() {
|
|
393
|
-
|
|
391
|
+
await orq.prompts.get({
|
|
392
|
+
id: "<id>",
|
|
393
|
+
});
|
|
394
|
+
|
|
394
395
|
|
|
395
|
-
// Handle the result
|
|
396
|
-
console.log(result);
|
|
397
396
|
}
|
|
398
397
|
|
|
399
398
|
run();
|
|
@@ -405,7 +404,7 @@ The standalone function version of this method:
|
|
|
405
404
|
|
|
406
405
|
```typescript
|
|
407
406
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
408
|
-
import {
|
|
407
|
+
import { promptsGet } from "@orq-ai/node/funcs/promptsGet.js";
|
|
409
408
|
|
|
410
409
|
// Use `OrqCore` for best tree-shaking performance.
|
|
411
410
|
// You can create one instance of it to use across an application.
|
|
@@ -414,7 +413,9 @@ const orq = new OrqCore({
|
|
|
414
413
|
});
|
|
415
414
|
|
|
416
415
|
async function run() {
|
|
417
|
-
const res = await
|
|
416
|
+
const res = await promptsGet(orq, {
|
|
417
|
+
id: "<id>",
|
|
418
|
+
});
|
|
418
419
|
|
|
419
420
|
if (!res.ok) {
|
|
420
421
|
throw res.error;
|
|
@@ -422,8 +423,7 @@ async function run() {
|
|
|
422
423
|
|
|
423
424
|
const { value: result } = res;
|
|
424
425
|
|
|
425
|
-
|
|
426
|
-
console.log(result);
|
|
426
|
+
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
run();
|
|
@@ -433,14 +433,14 @@ run();
|
|
|
433
433
|
|
|
434
434
|
| Parameter | Type | Required | Description |
|
|
435
435
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
436
|
-
| `request` | [operations.
|
|
436
|
+
| `request` | [operations.GetOnePromptRequest](../../models/operations/getonepromptrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
437
437
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
438
438
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
439
439
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
440
440
|
|
|
441
441
|
### Response
|
|
442
442
|
|
|
443
|
-
**Promise\<
|
|
443
|
+
**Promise\<void\>**
|
|
444
444
|
|
|
445
445
|
### Errors
|
|
446
446
|
|
package/funcs/promptsList.js
CHANGED
|
@@ -54,7 +54,7 @@ async function promptsList(client, request, options) {
|
|
|
54
54
|
}
|
|
55
55
|
const payload = parsed.value;
|
|
56
56
|
const body = null;
|
|
57
|
-
const path = (0, url_js_1.pathToFunc)("/v2/prompts
|
|
57
|
+
const path = (0, url_js_1.pathToFunc)("/v2/prompts")();
|
|
58
58
|
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
59
59
|
"ending_before": payload?.ending_before,
|
|
60
60
|
"limit": payload?.limit,
|
package/funcs/promptsList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptsList.js","sourceRoot":"","sources":["../src/funcs/promptsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,kCA0GC;AAhID,sDAAoE;AACpE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
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0";
|
|
38
|
-
readonly sdkVersion: "3.1.0-rc.
|
|
38
|
+
readonly sdkVersion: "3.1.0-rc.47";
|
|
39
39
|
readonly genVersion: "2.506.0";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 3.1.0-rc.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 3.1.0-rc.47 2.506.0 2.0 @orq-ai/node";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "3.1.0-rc.
|
|
31
|
+
sdkVersion: "3.1.0-rc.47",
|
|
32
32
|
genVersion: "2.506.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 3.1.0-rc.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 3.1.0-rc.47 2.506.0 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -129,7 +129,7 @@ exports.CreateContactResponseBody$inboundSchema = z.object({
|
|
|
129
129
|
metadata: z.record(z.any()).optional(),
|
|
130
130
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
131
131
|
.optional(),
|
|
132
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
132
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
133
133
|
}).transform((v) => {
|
|
134
134
|
return (0, primitives_js_1.remap)(v, {
|
|
135
135
|
"external_id": "externalId",
|
|
@@ -147,7 +147,7 @@ exports.CreateContactResponseBody$outboundSchema = z.object({
|
|
|
147
147
|
tags: z.array(z.string()).optional(),
|
|
148
148
|
metadata: z.record(z.any()).optional(),
|
|
149
149
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
150
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
150
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
151
151
|
.transform(v => v.toISOString()),
|
|
152
152
|
}).transform((v) => {
|
|
153
153
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -3014,7 +3014,7 @@ exports.CreatePromptResponseBody$inboundSchema = z.object({
|
|
|
3014
3014
|
metadata: z.lazy(() => exports.CreatePromptPromptsMetadata$inboundSchema),
|
|
3015
3015
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3016
3016
|
.optional(),
|
|
3017
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
3017
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
3018
3018
|
type: exports.CreatePromptPromptsType$inboundSchema,
|
|
3019
3019
|
versions: z.array(z.lazy(() => exports.CreatePromptVersions$inboundSchema)),
|
|
3020
3020
|
}).transform((v) => {
|
|
@@ -3039,7 +3039,7 @@ exports.CreatePromptResponseBody$outboundSchema = z.object({
|
|
|
3039
3039
|
promptConfig: z.lazy(() => exports.CreatePromptPromptsPromptConfig$outboundSchema),
|
|
3040
3040
|
metadata: z.lazy(() => exports.CreatePromptPromptsMetadata$outboundSchema),
|
|
3041
3041
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3042
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
3042
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
3043
3043
|
.transform(v => v.toISOString()),
|
|
3044
3044
|
type: exports.CreatePromptPromptsType$outboundSchema,
|
|
3045
3045
|
versions: z.array(z.lazy(() => exports.CreatePromptVersions$outboundSchema)),
|
|
@@ -3026,7 +3026,7 @@ exports.CreatePromptSnippetResponseBody$inboundSchema = z.object({
|
|
|
3026
3026
|
updated_by_id: z.string(),
|
|
3027
3027
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3028
3028
|
.optional(),
|
|
3029
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
3029
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
3030
3030
|
type: exports.CreatePromptSnippetPromptSnippetsType$inboundSchema,
|
|
3031
3031
|
versions: z.array(z.lazy(() => exports.Versions$inboundSchema)),
|
|
3032
3032
|
}).transform((v) => {
|
|
@@ -3050,7 +3050,7 @@ exports.CreatePromptSnippetResponseBody$outboundSchema = z.object({
|
|
|
3050
3050
|
createdById: z.string(),
|
|
3051
3051
|
updatedById: z.string(),
|
|
3052
3052
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3053
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
3053
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
3054
3054
|
.transform(v => v.toISOString()),
|
|
3055
3055
|
type: exports.CreatePromptSnippetPromptSnippetsType$outboundSchema,
|
|
3056
3056
|
versions: z.array(z.lazy(() => exports.Versions$outboundSchema)),
|
|
@@ -134,7 +134,7 @@ exports.FileGetResponseBody$inboundSchema = z.object({
|
|
|
134
134
|
bytes: z.number(),
|
|
135
135
|
file_name: z.string(),
|
|
136
136
|
workspace_id: z.string(),
|
|
137
|
-
created: z.string().datetime({ offset: true }).default("2025-02-
|
|
137
|
+
created: z.string().datetime({ offset: true }).default("2025-02-08T16:48:29.347Z").transform(v => new Date(v)),
|
|
138
138
|
}).transform((v) => {
|
|
139
139
|
return (0, primitives_js_1.remap)(v, {
|
|
140
140
|
"_id": "id",
|
|
@@ -151,7 +151,7 @@ exports.FileGetResponseBody$outboundSchema = z.object({
|
|
|
151
151
|
bytes: z.number(),
|
|
152
152
|
fileName: z.string(),
|
|
153
153
|
workspaceId: z.string(),
|
|
154
|
-
created: z.date().default(() => new Date("2025-02-
|
|
154
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
155
155
|
.transform(v => v.toISOString()),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -152,7 +152,7 @@ exports.FileListData$inboundSchema = z.object({
|
|
|
152
152
|
bytes: z.number(),
|
|
153
153
|
file_name: z.string(),
|
|
154
154
|
workspace_id: z.string(),
|
|
155
|
-
created: z.string().datetime({ offset: true }).default("2025-02-
|
|
155
|
+
created: z.string().datetime({ offset: true }).default("2025-02-08T16:48:29.347Z").transform(v => new Date(v)),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return (0, primitives_js_1.remap)(v, {
|
|
158
158
|
"_id": "id",
|
|
@@ -169,7 +169,7 @@ exports.FileListData$outboundSchema = z.object({
|
|
|
169
169
|
bytes: z.number(),
|
|
170
170
|
fileName: z.string(),
|
|
171
171
|
workspaceId: z.string(),
|
|
172
|
-
created: z.date().default(() => new Date("2025-02-
|
|
172
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
173
173
|
.transform(v => v.toISOString()),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -192,7 +192,7 @@ exports.FileUploadResponseBody$inboundSchema = z.object({
|
|
|
192
192
|
bytes: z.number(),
|
|
193
193
|
file_name: z.string(),
|
|
194
194
|
workspace_id: z.string(),
|
|
195
|
-
created: z.string().datetime({ offset: true }).default("2025-02-
|
|
195
|
+
created: z.string().datetime({ offset: true }).default("2025-02-08T16:48:29.347Z").transform(v => new Date(v)),
|
|
196
196
|
}).transform((v) => {
|
|
197
197
|
return (0, primitives_js_1.remap)(v, {
|
|
198
198
|
"_id": "id",
|
|
@@ -209,7 +209,7 @@ exports.FileUploadResponseBody$outboundSchema = z.object({
|
|
|
209
209
|
bytes: z.number(),
|
|
210
210
|
fileName: z.string(),
|
|
211
211
|
workspaceId: z.string(),
|
|
212
|
-
created: z.date().default(() => new Date("2025-02-
|
|
212
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
213
213
|
.transform(v => v.toISOString()),
|
|
214
214
|
}).transform((v) => {
|
|
215
215
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -2103,7 +2103,7 @@ exports.FindOneByKeyPromptSnippetResponseBody$inboundSchema = z.object({
|
|
|
2103
2103
|
updated_by_id: z.string(),
|
|
2104
2104
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2105
2105
|
.optional(),
|
|
2106
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
2106
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
2107
2107
|
type: exports.FindOneByKeyPromptSnippetType$inboundSchema,
|
|
2108
2108
|
versions: z.array(z.lazy(() => exports.FindOneByKeyPromptSnippetVersions$inboundSchema)),
|
|
2109
2109
|
}).transform((v) => {
|
|
@@ -2127,7 +2127,7 @@ exports.FindOneByKeyPromptSnippetResponseBody$outboundSchema = z.object({
|
|
|
2127
2127
|
createdById: z.string(),
|
|
2128
2128
|
updatedById: z.string(),
|
|
2129
2129
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2130
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
2130
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
2131
2131
|
.transform(v => v.toISOString()),
|
|
2132
2132
|
type: exports.FindOneByKeyPromptSnippetType$outboundSchema,
|
|
2133
2133
|
versions: z.array(z.lazy(() => exports.FindOneByKeyPromptSnippetVersions$outboundSchema)),
|
|
@@ -2094,7 +2094,7 @@ exports.FindOnePromptSnippetResponseBody$inboundSchema = z.object({
|
|
|
2094
2094
|
updated_by_id: z.string(),
|
|
2095
2095
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2096
2096
|
.optional(),
|
|
2097
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
2097
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
2098
2098
|
type: exports.FindOnePromptSnippetType$inboundSchema,
|
|
2099
2099
|
versions: z.array(z.lazy(() => exports.FindOnePromptSnippetVersions$inboundSchema)),
|
|
2100
2100
|
}).transform((v) => {
|
|
@@ -2118,7 +2118,7 @@ exports.FindOnePromptSnippetResponseBody$outboundSchema = z.object({
|
|
|
2118
2118
|
createdById: z.string(),
|
|
2119
2119
|
updatedById: z.string(),
|
|
2120
2120
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2121
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
2121
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
2122
2122
|
.transform(v => v.toISOString()),
|
|
2123
2123
|
type: exports.FindOnePromptSnippetType$outboundSchema,
|
|
2124
2124
|
versions: z.array(z.lazy(() => exports.FindOnePromptSnippetVersions$outboundSchema)),
|
|
@@ -2110,7 +2110,7 @@ exports.GetAllPromptsData$inboundSchema = z.object({
|
|
|
2110
2110
|
metadata: z.lazy(() => exports.GetAllPromptsMetadata$inboundSchema),
|
|
2111
2111
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2112
2112
|
.optional(),
|
|
2113
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
2113
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
2114
2114
|
type: exports.GetAllPromptsType$inboundSchema,
|
|
2115
2115
|
versions: z.array(z.lazy(() => exports.GetAllPromptsVersions$inboundSchema)),
|
|
2116
2116
|
}).transform((v) => {
|
|
@@ -2135,7 +2135,7 @@ exports.GetAllPromptsData$outboundSchema = z.object({
|
|
|
2135
2135
|
promptConfig: z.lazy(() => exports.GetAllPromptsPromptConfig$outboundSchema),
|
|
2136
2136
|
metadata: z.lazy(() => exports.GetAllPromptsMetadata$outboundSchema),
|
|
2137
2137
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2138
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
2138
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
2139
2139
|
.transform(v => v.toISOString()),
|
|
2140
2140
|
type: exports.GetAllPromptsType$outboundSchema,
|
|
2141
2141
|
versions: z.array(z.lazy(() => exports.GetAllPromptsVersions$outboundSchema)),
|
|
@@ -2128,7 +2128,7 @@ exports.GetAllPromptSnippetsData$inboundSchema = z.object({
|
|
|
2128
2128
|
updated_by_id: z.string(),
|
|
2129
2129
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2130
2130
|
.optional(),
|
|
2131
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
2131
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
2132
2132
|
type: exports.GetAllPromptSnippetsType$inboundSchema,
|
|
2133
2133
|
versions: z.array(z.lazy(() => exports.GetAllPromptSnippetsVersions$inboundSchema)),
|
|
2134
2134
|
}).transform((v) => {
|
|
@@ -2152,7 +2152,7 @@ exports.GetAllPromptSnippetsData$outboundSchema = z.object({
|
|
|
2152
2152
|
createdById: z.string(),
|
|
2153
2153
|
updatedById: z.string(),
|
|
2154
2154
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2155
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
2155
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
2156
2156
|
.transform(v => v.toISOString()),
|
|
2157
2157
|
type: exports.GetAllPromptSnippetsType$outboundSchema,
|
|
2158
2158
|
versions: z.array(z.lazy(() => exports.GetAllPromptSnippetsVersions$outboundSchema)),
|
|
@@ -3051,7 +3051,7 @@ exports.UpdatePromptResponseBody$inboundSchema = z.object({
|
|
|
3051
3051
|
metadata: z.lazy(() => exports.UpdatePromptPromptsMetadata$inboundSchema),
|
|
3052
3052
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3053
3053
|
.optional(),
|
|
3054
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
3054
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
3055
3055
|
type: exports.UpdatePromptPromptsType$inboundSchema,
|
|
3056
3056
|
versions: z.array(z.lazy(() => exports.UpdatePromptVersions$inboundSchema)),
|
|
3057
3057
|
}).transform((v) => {
|
|
@@ -3076,7 +3076,7 @@ exports.UpdatePromptResponseBody$outboundSchema = z.object({
|
|
|
3076
3076
|
promptConfig: z.lazy(() => exports.UpdatePromptPromptsPromptConfig$outboundSchema),
|
|
3077
3077
|
metadata: z.lazy(() => exports.UpdatePromptPromptsMetadata$outboundSchema),
|
|
3078
3078
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3079
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
3079
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
3080
3080
|
.transform(v => v.toISOString()),
|
|
3081
3081
|
type: exports.UpdatePromptPromptsType$outboundSchema,
|
|
3082
3082
|
versions: z.array(z.lazy(() => exports.UpdatePromptVersions$outboundSchema)),
|
|
@@ -3086,7 +3086,7 @@ exports.UpdatePromptSnippetResponseBody$inboundSchema = z.object({
|
|
|
3086
3086
|
updated_by_id: z.string(),
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
|
-
updated: z.string().datetime({ offset: true }).default("2025-02-
|
|
3089
|
+
updated: z.string().datetime({ offset: true }).default("2025-02-08T16:48:28.255Z").transform(v => new Date(v)),
|
|
3090
3090
|
type: exports.UpdatePromptSnippetPromptSnippetsType$inboundSchema,
|
|
3091
3091
|
versions: z.array(z.lazy(() => exports.UpdatePromptSnippetVersions$inboundSchema)),
|
|
3092
3092
|
}).transform((v) => {
|
|
@@ -3110,7 +3110,7 @@ exports.UpdatePromptSnippetResponseBody$outboundSchema = z.object({
|
|
|
3110
3110
|
createdById: z.string(),
|
|
3111
3111
|
updatedById: z.string(),
|
|
3112
3112
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3113
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
3113
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
3114
3114
|
.transform(v => v.toISOString()),
|
|
3115
3115
|
type: exports.UpdatePromptSnippetPromptSnippetsType$outboundSchema,
|
|
3116
3116
|
versions: z.array(z.lazy(() => exports.UpdatePromptSnippetVersions$outboundSchema)),
|
package/package.json
CHANGED
package/sdk/prompts.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export declare class Prompts extends ClientSDK {
|
|
|
5
5
|
* Create a prompt
|
|
6
6
|
*/
|
|
7
7
|
create(request?: operations.CreatePromptRequestBody | undefined, options?: RequestOptions): Promise<operations.CreatePromptResponseBody>;
|
|
8
|
+
/**
|
|
9
|
+
* List all prompts
|
|
10
|
+
*/
|
|
11
|
+
list(request?: operations.GetAllPromptsRequest | undefined, options?: RequestOptions): Promise<operations.GetAllPromptsResponseBody>;
|
|
8
12
|
/**
|
|
9
13
|
* Update a prompt
|
|
10
14
|
*/
|
|
@@ -17,9 +21,5 @@ export declare class Prompts extends ClientSDK {
|
|
|
17
21
|
* Retrieve a prompt
|
|
18
22
|
*/
|
|
19
23
|
get(request: operations.GetOnePromptRequest, options?: RequestOptions): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* List all prompts
|
|
22
|
-
*/
|
|
23
|
-
list(request?: operations.GetAllPromptsRequest | undefined, options?: RequestOptions): Promise<operations.GetAllPromptsResponseBody>;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=prompts.d.ts.map
|
package/sdk/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/sdk/prompts.ts"],"names":[],"mappings":"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AC;CAOjB"}
|
package/sdk/prompts.js
CHANGED
|
@@ -18,6 +18,12 @@ class Prompts extends sdks_js_1.ClientSDK {
|
|
|
18
18
|
async create(request, options) {
|
|
19
19
|
return (0, fp_js_1.unwrapAsync)((0, promptsCreate_js_1.promptsCreate)(this, request, options));
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* List all prompts
|
|
23
|
+
*/
|
|
24
|
+
async list(request, options) {
|
|
25
|
+
return (0, fp_js_1.unwrapAsync)((0, promptsList_js_1.promptsList)(this, request, options));
|
|
26
|
+
}
|
|
21
27
|
/**
|
|
22
28
|
* Update a prompt
|
|
23
29
|
*/
|
|
@@ -36,12 +42,6 @@ class Prompts extends sdks_js_1.ClientSDK {
|
|
|
36
42
|
async get(request, options) {
|
|
37
43
|
return (0, fp_js_1.unwrapAsync)((0, promptsGet_js_1.promptsGet)(this, request, options));
|
|
38
44
|
}
|
|
39
|
-
/**
|
|
40
|
-
* List all prompts
|
|
41
|
-
*/
|
|
42
|
-
async list(request, options) {
|
|
43
|
-
return (0, fp_js_1.unwrapAsync)((0, promptsList_js_1.promptsList)(this, request, options));
|
|
44
|
-
}
|
|
45
45
|
}
|
|
46
46
|
exports.Prompts = Prompts;
|
|
47
47
|
//# sourceMappingURL=prompts.js.map
|
package/sdk/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/sdk/prompts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAC1D,gEAA0D;AAC1D,0DAAoD;AACpD,4DAAsD;AACtD,gEAA0D;AAC1D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/sdk/prompts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAC1D,gEAA0D;AAC1D,0DAAoD;AACpD,4DAAsD;AACtD,gEAA0D;AAC1D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4BAAW,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtED,0BAsEC"}
|
package/src/funcs/promptsList.ts
CHANGED
|
@@ -53,7 +53,7 @@ export async function promptsList(
|
|
|
53
53
|
const payload = parsed.value;
|
|
54
54
|
const body = null;
|
|
55
55
|
|
|
56
|
-
const path = pathToFunc("/v2/prompts
|
|
56
|
+
const path = pathToFunc("/v2/prompts")();
|
|
57
57
|
|
|
58
58
|
const query = encodeFormQuery({
|
|
59
59
|
"ending_before": payload?.ending_before,
|
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.0-rc.
|
|
67
|
+
sdkVersion: "3.1.0-rc.47",
|
|
68
68
|
genVersion: "2.506.0",
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.1.0-rc.
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 3.1.0-rc.47 2.506.0 2.0 @orq-ai/node",
|
|
70
70
|
} as const;
|
|
@@ -235,7 +235,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
235
235
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
236
236
|
.optional(),
|
|
237
237
|
updated: z.string().datetime({ offset: true }).default(
|
|
238
|
-
"2025-02-
|
|
238
|
+
"2025-02-08T16:48:28.255Z",
|
|
239
239
|
).transform(v => new Date(v)),
|
|
240
240
|
}).transform((v) => {
|
|
241
241
|
return remap$(v, {
|
|
@@ -272,7 +272,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
272
272
|
tags: z.array(z.string()).optional(),
|
|
273
273
|
metadata: z.record(z.any()).optional(),
|
|
274
274
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
275
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
275
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
276
276
|
.transform(v => v.toISOString()),
|
|
277
277
|
}).transform((v) => {
|
|
278
278
|
return remap$(v, {
|
|
@@ -5950,7 +5950,7 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
5950
5950
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5951
5951
|
.optional(),
|
|
5952
5952
|
updated: z.string().datetime({ offset: true }).default(
|
|
5953
|
-
"2025-02-
|
|
5953
|
+
"2025-02-08T16:48:28.255Z",
|
|
5954
5954
|
).transform(v => new Date(v)),
|
|
5955
5955
|
type: CreatePromptPromptsType$inboundSchema,
|
|
5956
5956
|
versions: z.array(z.lazy(() => CreatePromptVersions$inboundSchema)),
|
|
@@ -5998,7 +5998,7 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
5998
5998
|
promptConfig: z.lazy(() => CreatePromptPromptsPromptConfig$outboundSchema),
|
|
5999
5999
|
metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema),
|
|
6000
6000
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6001
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
6001
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
6002
6002
|
.transform(v => v.toISOString()),
|
|
6003
6003
|
type: CreatePromptPromptsType$outboundSchema,
|
|
6004
6004
|
versions: z.array(z.lazy(() => CreatePromptVersions$outboundSchema)),
|
|
@@ -6200,7 +6200,7 @@ export const CreatePromptSnippetResponseBody$inboundSchema: z.ZodType<
|
|
|
6200
6200
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6201
6201
|
.optional(),
|
|
6202
6202
|
updated: z.string().datetime({ offset: true }).default(
|
|
6203
|
-
"2025-02-
|
|
6203
|
+
"2025-02-08T16:48:28.255Z",
|
|
6204
6204
|
).transform(v => new Date(v)),
|
|
6205
6205
|
type: CreatePromptSnippetPromptSnippetsType$inboundSchema,
|
|
6206
6206
|
versions: z.array(z.lazy(() => Versions$inboundSchema)),
|
|
@@ -6249,7 +6249,7 @@ export const CreatePromptSnippetResponseBody$outboundSchema: z.ZodType<
|
|
|
6249
6249
|
createdById: z.string(),
|
|
6250
6250
|
updatedById: z.string(),
|
|
6251
6251
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6252
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
6252
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
6253
6253
|
.transform(v => v.toISOString()),
|
|
6254
6254
|
type: CreatePromptSnippetPromptSnippetsType$outboundSchema,
|
|
6255
6255
|
versions: z.array(z.lazy(() => Versions$outboundSchema)),
|
|
@@ -199,7 +199,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
199
199
|
file_name: z.string(),
|
|
200
200
|
workspace_id: z.string(),
|
|
201
201
|
created: z.string().datetime({ offset: true }).default(
|
|
202
|
-
"2025-02-
|
|
202
|
+
"2025-02-08T16:48:29.347Z",
|
|
203
203
|
).transform(v => new Date(v)),
|
|
204
204
|
}).transform((v) => {
|
|
205
205
|
return remap$(v, {
|
|
@@ -233,7 +233,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
233
233
|
bytes: z.number(),
|
|
234
234
|
fileName: z.string(),
|
|
235
235
|
workspaceId: z.string(),
|
|
236
|
-
created: z.date().default(() => new Date("2025-02-
|
|
236
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
237
237
|
.transform(v => v.toISOString()),
|
|
238
238
|
}).transform((v) => {
|
|
239
239
|
return remap$(v, {
|
|
@@ -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-
|
|
239
|
+
"2025-02-08T16:48:29.347Z",
|
|
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-
|
|
273
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
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-
|
|
306
|
+
"2025-02-08T16:48:29.347Z",
|
|
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-
|
|
340
|
+
created: z.date().default(() => new Date("2025-02-08T16:48:29.347Z"))
|
|
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-
|
|
4442
|
+
"2025-02-08T16:48:28.255Z",
|
|
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-
|
|
4493
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
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-
|
|
4311
|
+
"2025-02-08T16:48:28.255Z",
|
|
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-
|
|
4358
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
4359
4359
|
.transform(v => v.toISOString()),
|
|
4360
4360
|
type: FindOnePromptSnippetType$outboundSchema,
|
|
4361
4361
|
versions: z.array(z.lazy(() => FindOnePromptSnippetVersions$outboundSchema)),
|
|
@@ -4056,7 +4056,7 @@ export const GetAllPromptsData$inboundSchema: z.ZodType<
|
|
|
4056
4056
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4057
4057
|
.optional(),
|
|
4058
4058
|
updated: z.string().datetime({ offset: true }).default(
|
|
4059
|
-
"2025-02-
|
|
4059
|
+
"2025-02-08T16:48:28.255Z",
|
|
4060
4060
|
).transform(v => new Date(v)),
|
|
4061
4061
|
type: GetAllPromptsType$inboundSchema,
|
|
4062
4062
|
versions: z.array(z.lazy(() => GetAllPromptsVersions$inboundSchema)),
|
|
@@ -4104,7 +4104,7 @@ export const GetAllPromptsData$outboundSchema: z.ZodType<
|
|
|
4104
4104
|
promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
|
|
4105
4105
|
metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema),
|
|
4106
4106
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4107
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
4107
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
4108
4108
|
.transform(v => v.toISOString()),
|
|
4109
4109
|
type: GetAllPromptsType$outboundSchema,
|
|
4110
4110
|
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-
|
|
4372
|
+
"2025-02-08T16:48:28.255Z",
|
|
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-
|
|
4419
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
4420
4420
|
.transform(v => v.toISOString()),
|
|
4421
4421
|
type: GetAllPromptSnippetsType$outboundSchema,
|
|
4422
4422
|
versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$outboundSchema)),
|
|
@@ -6018,7 +6018,7 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
6018
6018
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6019
6019
|
.optional(),
|
|
6020
6020
|
updated: z.string().datetime({ offset: true }).default(
|
|
6021
|
-
"2025-02-
|
|
6021
|
+
"2025-02-08T16:48:28.255Z",
|
|
6022
6022
|
).transform(v => new Date(v)),
|
|
6023
6023
|
type: UpdatePromptPromptsType$inboundSchema,
|
|
6024
6024
|
versions: z.array(z.lazy(() => UpdatePromptVersions$inboundSchema)),
|
|
@@ -6066,7 +6066,7 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
6066
6066
|
promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
|
|
6067
6067
|
metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema),
|
|
6068
6068
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6069
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
6069
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
6070
6070
|
.transform(v => v.toISOString()),
|
|
6071
6071
|
type: UpdatePromptPromptsType$outboundSchema,
|
|
6072
6072
|
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-
|
|
6506
|
+
"2025-02-08T16:48:28.255Z",
|
|
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-
|
|
6557
|
+
updated: z.date().default(() => new Date("2025-02-08T16:48:28.255Z"))
|
|
6558
6558
|
.transform(v => v.toISOString()),
|
|
6559
6559
|
type: UpdatePromptSnippetPromptSnippetsType$outboundSchema,
|
|
6560
6560
|
versions: z.array(z.lazy(() => UpdatePromptSnippetVersions$outboundSchema)),
|
package/src/sdk/prompts.ts
CHANGED
|
@@ -26,6 +26,20 @@ export class Prompts extends ClientSDK {
|
|
|
26
26
|
));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* List all prompts
|
|
31
|
+
*/
|
|
32
|
+
async list(
|
|
33
|
+
request?: operations.GetAllPromptsRequest | undefined,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<operations.GetAllPromptsResponseBody> {
|
|
36
|
+
return unwrapAsync(promptsList(
|
|
37
|
+
this,
|
|
38
|
+
request,
|
|
39
|
+
options,
|
|
40
|
+
));
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
/**
|
|
30
44
|
* Update a prompt
|
|
31
45
|
*/
|
|
@@ -67,18 +81,4 @@ export class Prompts extends ClientSDK {
|
|
|
67
81
|
options,
|
|
68
82
|
));
|
|
69
83
|
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* List all prompts
|
|
73
|
-
*/
|
|
74
|
-
async list(
|
|
75
|
-
request?: operations.GetAllPromptsRequest | undefined,
|
|
76
|
-
options?: RequestOptions,
|
|
77
|
-
): Promise<operations.GetAllPromptsResponseBody> {
|
|
78
|
-
return unwrapAsync(promptsList(
|
|
79
|
-
this,
|
|
80
|
-
request,
|
|
81
|
-
options,
|
|
82
|
-
));
|
|
83
|
-
}
|
|
84
84
|
}
|