@orq-ai/node 3.1.0-rc.41 → 3.1.0-rc.42
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 +2 -0
- package/docs/sdks/promptsnippets/README.md +73 -0
- package/funcs/promptSnippetsList.d.ts +12 -0
- package/funcs/promptSnippetsList.d.ts.map +1 -0
- package/funcs/promptSnippetsList.js +113 -0
- package/funcs/promptSnippetsList.js.map +1 -0
- 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.d.ts +2537 -0
- package/models/operations/getallpromptsnippets.d.ts.map +1 -0
- package/models/operations/getallpromptsnippets.js +2222 -0
- package/models/operations/getallpromptsnippets.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updateprompt.js +2 -2
- package/models/operations/updatepromptsnippet.js +2 -2
- package/package.json +1 -1
- package/sdk/promptsnippets.d.ts +4 -0
- package/sdk/promptsnippets.d.ts.map +1 -1
- package/sdk/promptsnippets.js +7 -0
- package/sdk/promptsnippets.js.map +1 -1
- package/src/funcs/promptSnippetsList.ts +136 -0
- 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 +4532 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/updateprompt.ts +2 -2
- package/src/models/operations/updatepromptsnippet.ts +2 -2
- package/src/sdk/promptsnippets.ts +15 -0
|
@@ -20,6 +20,7 @@ export * from "./fileupload.js";
|
|
|
20
20
|
export * from "./findonebykeypromptsnippet.js";
|
|
21
21
|
export * from "./findonepromptsnippet.js";
|
|
22
22
|
export * from "./getallprompts.js";
|
|
23
|
+
export * from "./getallpromptsnippets.js";
|
|
23
24
|
export * from "./getoneprompt.js";
|
|
24
25
|
export * from "./remoteconfigsgetconfig.js";
|
|
25
26
|
export * from "./updateprompt.js";
|
|
@@ -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-06T14:05:20.313Z",
|
|
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-06T14:05:20.313Z"))
|
|
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-06T14:05:20.313Z",
|
|
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-06T14:05:20.313Z"))
|
|
6558
6558
|
.transform(v => v.toISOString()),
|
|
6559
6559
|
type: UpdatePromptSnippetPromptSnippetsType$outboundSchema,
|
|
6560
6560
|
versions: z.array(z.lazy(() => UpdatePromptSnippetVersions$outboundSchema)),
|
|
@@ -6,12 +6,27 @@ import { promptSnippetsCreate } from "../funcs/promptSnippetsCreate.js";
|
|
|
6
6
|
import { promptSnippetsDelete } from "../funcs/promptSnippetsDelete.js";
|
|
7
7
|
import { promptSnippetsGet } from "../funcs/promptSnippetsGet.js";
|
|
8
8
|
import { promptSnippetsGetByKey } from "../funcs/promptSnippetsGetByKey.js";
|
|
9
|
+
import { promptSnippetsList } from "../funcs/promptSnippetsList.js";
|
|
9
10
|
import { promptSnippetsUpdate } from "../funcs/promptSnippetsUpdate.js";
|
|
10
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
12
|
import * as operations from "../models/operations/index.js";
|
|
12
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
14
|
|
|
14
15
|
export class PromptSnippets extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List all prompts snippets
|
|
18
|
+
*/
|
|
19
|
+
async list(
|
|
20
|
+
request?: operations.GetAllPromptSnippetsRequest | undefined,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.GetAllPromptSnippetsResponseBody> {
|
|
23
|
+
return unwrapAsync(promptSnippetsList(
|
|
24
|
+
this,
|
|
25
|
+
request,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
15
30
|
/**
|
|
16
31
|
* Create a prompt snippet
|
|
17
32
|
*/
|