@cadenya/cadenya 0.66.0 → 0.68.0
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/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/client.d.mts +42 -81
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -81
- package/client.d.ts.map +1 -1
- package/client.js +24 -63
- package/client.js.map +1 -1
- package/client.mjs +24 -63
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +18 -22
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +18 -22
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -6
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -6
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +34 -21
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +34 -21
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +17 -16
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -16
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +15 -15
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +15 -15
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +4 -8
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +4 -8
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +44 -26
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +44 -26
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +20 -19
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +20 -19
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +88 -43
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +88 -43
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +31 -32
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +31 -32
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +10 -11
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +10 -11
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +4 -8
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +4 -8
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +48 -28
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +48 -28
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +21 -17
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +21 -17
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +13 -17
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +13 -17
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/index.d.mts +1 -1
- package/resources/bulk-workspace-resources/index.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/index.d.ts +1 -1
- package/resources/bulk-workspace-resources/index.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/index.js.map +1 -1
- package/resources/bulk-workspace-resources/index.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +30 -35
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +30 -35
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +6 -10
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +6 -10
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/index.d.mts +9 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +40 -33
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +40 -33
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +19 -23
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +19 -23
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +33 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +33 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +17 -20
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +17 -20
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +18 -12
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +18 -12
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +14 -13
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +14 -13
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +19 -8
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +19 -8
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +9 -4
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +9 -4
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +1 -1
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +1 -1
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +63 -44
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +63 -44
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +31 -16
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +31 -16
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +7 -2
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +7 -2
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +5 -4
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +5 -4
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +18 -9
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +18 -9
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +7 -12
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +7 -12
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +5 -1
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +5 -1
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +3 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +3 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +1 -1
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +6 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +6 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +1 -1
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +1 -1
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +66 -43
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +66 -43
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +23 -23
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +23 -23
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +50 -31
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +50 -31
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +22 -21
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +22 -21
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +21 -19
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +21 -19
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +8 -11
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +8 -11
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +33 -13
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +33 -13
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +16 -13
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +16 -13
- package/resources/workspace-secrets.mjs.map +1 -1
- package/resources/workspaces.d.mts +2 -6
- package/resources/workspaces.d.mts.map +1 -1
- package/resources/workspaces.d.ts +2 -6
- package/resources/workspaces.d.ts.map +1 -1
- package/resources/workspaces.js +2 -6
- package/resources/workspaces.js.map +1 -1
- package/resources/workspaces.mjs +2 -6
- package/resources/workspaces.mjs.map +1 -1
- package/src/client.ts +54 -63
- package/src/resources/account.ts +18 -22
- package/src/resources/agents/agents.ts +49 -24
- package/src/resources/agents/feedback.ts +18 -16
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/schedules.ts +69 -37
- package/src/resources/agents/variations.ts +141 -73
- package/src/resources/agents/webhook-deliveries.ts +13 -12
- package/src/resources/api-keys.ts +67 -32
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +40 -25
- package/src/resources/bulk-workspace-resources/index.ts +1 -0
- package/src/resources/bulk-workspace-resources/results.ts +33 -36
- package/src/resources/index.ts +22 -1
- package/src/resources/memory-layers/entries.ts +67 -44
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -25
- package/src/resources/models.ts +28 -13
- package/src/resources/objectives/feedback.ts +29 -11
- package/src/resources/objectives/index.ts +1 -0
- package/src/resources/objectives/objectives.ts +100 -50
- package/src/resources/objectives/tasks.ts +16 -5
- package/src/resources/objectives/tool-calls.ts +33 -20
- package/src/resources/objectives/tools.ts +9 -3
- package/src/resources/search.ts +6 -1
- package/src/resources/tool-sets/index.ts +2 -0
- package/src/resources/tool-sets/tool-sets.ts +88 -50
- package/src/resources/tool-sets/tools.ts +75 -42
- package/src/resources/uploads.ts +25 -20
- package/src/resources/workspace-secrets.ts +60 -19
- package/src/resources/workspaces.ts +2 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/tool-sets/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/tool-sets/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;GAMG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,MAAwB,EAAE,OAAwB;QAC1E,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,cAAc,SAAS,QAAQ,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACvE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,cAAc,SAAS,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAwB,EAAE,OAAwB;QACnE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,cAAc,SAAS,UAAU,EAAE,EAAE,EAAE;YAC9F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,SAAiB,EACjB,MAAsB,EACtB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,WAAW,cAAc,SAAS,QAAQ,EAChE,CAAA,gBAAsB,CAAA,EACtB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAwB,EAAE,OAAwB;QACnE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,WAAW,cAAc,SAAS,UAAU,EAAE,EAAE,EAAE;YACjG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/uploads.d.mts
CHANGED
|
@@ -4,13 +4,9 @@ import * as Shared from "./shared.mjs";
|
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* MemoryEntry).
|
|
11
|
-
*
|
|
12
|
-
* Authentication: Bearer token (JWT)
|
|
13
|
-
* Scope: Workspace-level operations
|
|
7
|
+
* Issue short-lived presigned URLs for direct client-to-object-storage
|
|
8
|
+
* uploads. Created uploads can be referenced by id when creating or updating
|
|
9
|
+
* resources that accept binary content (e.g., MemoryEntry).
|
|
14
10
|
*/
|
|
15
11
|
export declare class Uploads extends APIResource {
|
|
16
12
|
/**
|
|
@@ -18,21 +14,21 @@ export declare class Uploads extends APIResource {
|
|
|
18
14
|
* returned id is used to reference the upload from resources that accept binary
|
|
19
15
|
* content.
|
|
20
16
|
*/
|
|
21
|
-
create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
17
|
+
create(workspaceID: string, body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
22
18
|
/**
|
|
23
19
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
24
20
|
*/
|
|
25
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Upload>;
|
|
21
|
+
retrieve(id: string, params: UploadRetrieveParams, options?: RequestOptions): APIPromise<Upload>;
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
24
|
+
* A handle representing a single file upload flow. Clients call CreateUpload to
|
|
25
|
+
* receive a short-lived presigned URL, PUT the file directly to object storage,
|
|
26
|
+
* then reference the upload by id when creating or updating resources that accept
|
|
27
|
+
* binary content.
|
|
32
28
|
*
|
|
33
|
-
* Uploads are one-shot: once consumed by a creating or updating resource
|
|
29
|
+
* Uploads are one-shot: once consumed by a creating or updating resource the
|
|
34
30
|
* upload transitions to UPLOAD_STATUS_CONSUMED and cannot be reused. Unused
|
|
35
|
-
* uploads expire and are garbage-collected
|
|
31
|
+
* uploads expire and are garbage-collected.
|
|
36
32
|
*/
|
|
37
33
|
export interface Upload {
|
|
38
34
|
info: UploadInfo;
|
|
@@ -44,9 +40,9 @@ export interface Upload {
|
|
|
44
40
|
}
|
|
45
41
|
export interface UploadInfo {
|
|
46
42
|
/**
|
|
47
|
-
*
|
|
48
|
-
* account-scoped
|
|
49
|
-
*
|
|
43
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
44
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
45
|
+
* workspaces.
|
|
50
46
|
*/
|
|
51
47
|
createdBy?: AccountAPI.Profile;
|
|
52
48
|
/**
|
|
@@ -91,7 +87,13 @@ export interface UploadCreateParams {
|
|
|
91
87
|
metadata: Shared.CreateResourceMetadata;
|
|
92
88
|
spec: UploadSpec;
|
|
93
89
|
}
|
|
90
|
+
export interface UploadRetrieveParams {
|
|
91
|
+
/**
|
|
92
|
+
* Workspace ID.
|
|
93
|
+
*/
|
|
94
|
+
workspaceId: string;
|
|
95
|
+
}
|
|
94
96
|
export declare namespace Uploads {
|
|
95
|
-
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, };
|
|
97
|
+
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, };
|
|
96
98
|
}
|
|
97
99
|
//# sourceMappingURL=uploads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;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,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/uploads.d.ts
CHANGED
|
@@ -4,13 +4,9 @@ import * as Shared from "./shared.js";
|
|
|
4
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* MemoryEntry).
|
|
11
|
-
*
|
|
12
|
-
* Authentication: Bearer token (JWT)
|
|
13
|
-
* Scope: Workspace-level operations
|
|
7
|
+
* Issue short-lived presigned URLs for direct client-to-object-storage
|
|
8
|
+
* uploads. Created uploads can be referenced by id when creating or updating
|
|
9
|
+
* resources that accept binary content (e.g., MemoryEntry).
|
|
14
10
|
*/
|
|
15
11
|
export declare class Uploads extends APIResource {
|
|
16
12
|
/**
|
|
@@ -18,21 +14,21 @@ export declare class Uploads extends APIResource {
|
|
|
18
14
|
* returned id is used to reference the upload from resources that accept binary
|
|
19
15
|
* content.
|
|
20
16
|
*/
|
|
21
|
-
create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
17
|
+
create(workspaceID: string, body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
|
|
22
18
|
/**
|
|
23
19
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
24
20
|
*/
|
|
25
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Upload>;
|
|
21
|
+
retrieve(id: string, params: UploadRetrieveParams, options?: RequestOptions): APIPromise<Upload>;
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
24
|
+
* A handle representing a single file upload flow. Clients call CreateUpload to
|
|
25
|
+
* receive a short-lived presigned URL, PUT the file directly to object storage,
|
|
26
|
+
* then reference the upload by id when creating or updating resources that accept
|
|
27
|
+
* binary content.
|
|
32
28
|
*
|
|
33
|
-
* Uploads are one-shot: once consumed by a creating or updating resource
|
|
29
|
+
* Uploads are one-shot: once consumed by a creating or updating resource the
|
|
34
30
|
* upload transitions to UPLOAD_STATUS_CONSUMED and cannot be reused. Unused
|
|
35
|
-
* uploads expire and are garbage-collected
|
|
31
|
+
* uploads expire and are garbage-collected.
|
|
36
32
|
*/
|
|
37
33
|
export interface Upload {
|
|
38
34
|
info: UploadInfo;
|
|
@@ -44,9 +40,9 @@ export interface Upload {
|
|
|
44
40
|
}
|
|
45
41
|
export interface UploadInfo {
|
|
46
42
|
/**
|
|
47
|
-
*
|
|
48
|
-
* account-scoped
|
|
49
|
-
*
|
|
43
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
44
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
45
|
+
* workspaces.
|
|
50
46
|
*/
|
|
51
47
|
createdBy?: AccountAPI.Profile;
|
|
52
48
|
/**
|
|
@@ -91,7 +87,13 @@ export interface UploadCreateParams {
|
|
|
91
87
|
metadata: Shared.CreateResourceMetadata;
|
|
92
88
|
spec: UploadSpec;
|
|
93
89
|
}
|
|
90
|
+
export interface UploadRetrieveParams {
|
|
91
|
+
/**
|
|
92
|
+
* Workspace ID.
|
|
93
|
+
*/
|
|
94
|
+
workspaceId: string;
|
|
95
|
+
}
|
|
94
96
|
export declare namespace Uploads {
|
|
95
|
-
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, };
|
|
97
|
+
export { type Upload as Upload, type UploadInfo as UploadInfo, type UploadSpec as UploadSpec, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, };
|
|
96
98
|
}
|
|
97
99
|
//# sourceMappingURL=uploads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAInG;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAIjG;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC;IAElC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EACH,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,uBAAuB,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAExC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/uploads.js
CHANGED
|
@@ -5,13 +5,9 @@ exports.Uploads = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* MemoryEntry).
|
|
12
|
-
*
|
|
13
|
-
* Authentication: Bearer token (JWT)
|
|
14
|
-
* Scope: Workspace-level operations
|
|
8
|
+
* Issue short-lived presigned URLs for direct client-to-object-storage
|
|
9
|
+
* uploads. Created uploads can be referenced by id when creating or updating
|
|
10
|
+
* resources that accept binary content (e.g., MemoryEntry).
|
|
15
11
|
*/
|
|
16
12
|
class Uploads extends resource_1.APIResource {
|
|
17
13
|
/**
|
|
@@ -19,14 +15,15 @@ class Uploads extends resource_1.APIResource {
|
|
|
19
15
|
* returned id is used to reference the upload from resources that accept binary
|
|
20
16
|
* content.
|
|
21
17
|
*/
|
|
22
|
-
create(body, options) {
|
|
23
|
-
return this._client.post(
|
|
18
|
+
create(workspaceID, body, options) {
|
|
19
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceID}/uploads`, { body, ...options });
|
|
24
20
|
}
|
|
25
21
|
/**
|
|
26
22
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
27
23
|
*/
|
|
28
|
-
retrieve(id, options) {
|
|
29
|
-
|
|
24
|
+
retrieve(id, params, options) {
|
|
25
|
+
const { workspaceId } = params;
|
|
26
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/uploads/${id}`, options);
|
|
30
27
|
}
|
|
31
28
|
}
|
|
32
29
|
exports.Uploads = Uploads;
|
package/resources/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,WAAmB,EAAE,IAAwB,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,MAA4B,EAAE,OAAwB;QACzE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAjBD,0BAiBC"}
|
package/resources/uploads.mjs
CHANGED
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* MemoryEntry).
|
|
9
|
-
*
|
|
10
|
-
* Authentication: Bearer token (JWT)
|
|
11
|
-
* Scope: Workspace-level operations
|
|
5
|
+
* Issue short-lived presigned URLs for direct client-to-object-storage
|
|
6
|
+
* uploads. Created uploads can be referenced by id when creating or updating
|
|
7
|
+
* resources that accept binary content (e.g., MemoryEntry).
|
|
12
8
|
*/
|
|
13
9
|
export class Uploads extends APIResource {
|
|
14
10
|
/**
|
|
@@ -16,14 +12,15 @@ export class Uploads extends APIResource {
|
|
|
16
12
|
* returned id is used to reference the upload from resources that accept binary
|
|
17
13
|
* content.
|
|
18
14
|
*/
|
|
19
|
-
create(body, options) {
|
|
20
|
-
return this._client.post(
|
|
15
|
+
create(workspaceID, body, options) {
|
|
16
|
+
return this._client.post(path `/v1/workspaces/${workspaceID}/uploads`, { body, ...options });
|
|
21
17
|
}
|
|
22
18
|
/**
|
|
23
19
|
* Retrieves the current state of an upload, including its lifecycle status
|
|
24
20
|
*/
|
|
25
|
-
retrieve(id, options) {
|
|
26
|
-
|
|
21
|
+
retrieve(id, params, options) {
|
|
22
|
+
const { workspaceId } = params;
|
|
23
|
+
return this._client.get(path `/v1/workspaces/${workspaceId}/uploads/${id}`, options);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
//# sourceMappingURL=uploads.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf;;;;GAIG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,WAAmB,EAAE,IAAwB,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,MAA4B,EAAE,OAAwB;QACzE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -8,23 +8,23 @@ export declare class WorkspaceSecrets extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new workspace secret in the workspace
|
|
10
10
|
*/
|
|
11
|
-
create(body: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
11
|
+
create(workspaceID: string, body: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves a workspace secret by ID from the workspace
|
|
14
14
|
*/
|
|
15
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
15
|
+
retrieve(id: string, params: WorkspaceSecretRetrieveParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
16
16
|
/**
|
|
17
17
|
* Updates a workspace secret in the workspace
|
|
18
18
|
*/
|
|
19
|
-
update(id: string,
|
|
19
|
+
update(id: string, params: WorkspaceSecretUpdateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
20
20
|
/**
|
|
21
21
|
* Lists all workspace secrets in the workspace
|
|
22
22
|
*/
|
|
23
|
-
list(query?: WorkspaceSecretListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceSecretsCursorPagination, WorkspaceSecret>;
|
|
23
|
+
list(workspaceID: string, query?: WorkspaceSecretListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceSecretsCursorPagination, WorkspaceSecret>;
|
|
24
24
|
/**
|
|
25
25
|
* Deletes a workspace secret from the workspace
|
|
26
26
|
*/
|
|
27
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
27
|
+
delete(id: string, params: WorkspaceSecretDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
28
28
|
}
|
|
29
29
|
export type WorkspaceSecretsCursorPagination = CursorPagination<WorkspaceSecret>;
|
|
30
30
|
export interface WorkspaceSecret {
|
|
@@ -40,9 +40,9 @@ export interface WorkspaceSecret {
|
|
|
40
40
|
}
|
|
41
41
|
export interface WorkspaceSecretInfo {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* account-scoped
|
|
45
|
-
*
|
|
43
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
44
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
45
|
+
* workspaces.
|
|
46
46
|
*/
|
|
47
47
|
createdBy?: AccountAPI.Profile;
|
|
48
48
|
lastUsedAt?: string;
|
|
@@ -59,16 +59,30 @@ export interface WorkspaceSecretCreateParams {
|
|
|
59
59
|
metadata: Shared.CreateResourceMetadata;
|
|
60
60
|
spec: WorkspaceSecretSpec;
|
|
61
61
|
}
|
|
62
|
+
export interface WorkspaceSecretRetrieveParams {
|
|
63
|
+
/**
|
|
64
|
+
* The workspace the secret belongs to.
|
|
65
|
+
*/
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
}
|
|
62
68
|
export interface WorkspaceSecretUpdateParams {
|
|
63
69
|
/**
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
* Path param: The workspace the secret belongs to.
|
|
71
|
+
*/
|
|
72
|
+
workspaceId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
75
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
76
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
77
|
+
* server.
|
|
67
78
|
*/
|
|
68
79
|
metadata?: Shared.UpdateResourceMetadata;
|
|
80
|
+
/**
|
|
81
|
+
* Body param
|
|
82
|
+
*/
|
|
69
83
|
spec?: WorkspaceSecretSpec;
|
|
70
84
|
/**
|
|
71
|
-
* Fields to update
|
|
85
|
+
* Body param: Fields to update.
|
|
72
86
|
*/
|
|
73
87
|
updateMask?: string;
|
|
74
88
|
}
|
|
@@ -94,7 +108,13 @@ export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
|
94
108
|
*/
|
|
95
109
|
sortOrder?: string;
|
|
96
110
|
}
|
|
111
|
+
export interface WorkspaceSecretDeleteParams {
|
|
112
|
+
/**
|
|
113
|
+
* The workspace the secret belongs to.
|
|
114
|
+
*/
|
|
115
|
+
workspaceId: string;
|
|
116
|
+
}
|
|
97
117
|
export declare namespace WorkspaceSecrets {
|
|
98
|
-
export { type WorkspaceSecret as WorkspaceSecret, type WorkspaceSecretInfo as WorkspaceSecretInfo, type WorkspaceSecretSpec as WorkspaceSecretSpec, type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination, type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams, type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams, type WorkspaceSecretListParams as WorkspaceSecretListParams, };
|
|
118
|
+
export { type WorkspaceSecret as WorkspaceSecret, type WorkspaceSecretInfo as WorkspaceSecretInfo, type WorkspaceSecretSpec as WorkspaceSecretSpec, type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination, type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams, type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams, type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams, type WorkspaceSecretListParams as WorkspaceSecretListParams, type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams, };
|
|
99
119
|
}
|
|
100
120
|
//# sourceMappingURL=workspace-secrets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.d.mts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-secrets.d.mts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAK9B;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAQ9B;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,yBAAyB,GAAG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W,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -8,23 +8,23 @@ export declare class WorkspaceSecrets extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new workspace secret in the workspace
|
|
10
10
|
*/
|
|
11
|
-
create(body: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
11
|
+
create(workspaceID: string, body: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves a workspace secret by ID from the workspace
|
|
14
14
|
*/
|
|
15
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
15
|
+
retrieve(id: string, params: WorkspaceSecretRetrieveParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
16
16
|
/**
|
|
17
17
|
* Updates a workspace secret in the workspace
|
|
18
18
|
*/
|
|
19
|
-
update(id: string,
|
|
19
|
+
update(id: string, params: WorkspaceSecretUpdateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
20
20
|
/**
|
|
21
21
|
* Lists all workspace secrets in the workspace
|
|
22
22
|
*/
|
|
23
|
-
list(query?: WorkspaceSecretListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceSecretsCursorPagination, WorkspaceSecret>;
|
|
23
|
+
list(workspaceID: string, query?: WorkspaceSecretListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceSecretsCursorPagination, WorkspaceSecret>;
|
|
24
24
|
/**
|
|
25
25
|
* Deletes a workspace secret from the workspace
|
|
26
26
|
*/
|
|
27
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
27
|
+
delete(id: string, params: WorkspaceSecretDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
28
28
|
}
|
|
29
29
|
export type WorkspaceSecretsCursorPagination = CursorPagination<WorkspaceSecret>;
|
|
30
30
|
export interface WorkspaceSecret {
|
|
@@ -40,9 +40,9 @@ export interface WorkspaceSecret {
|
|
|
40
40
|
}
|
|
41
41
|
export interface WorkspaceSecretInfo {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* account-scoped
|
|
45
|
-
*
|
|
43
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
44
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
45
|
+
* workspaces.
|
|
46
46
|
*/
|
|
47
47
|
createdBy?: AccountAPI.Profile;
|
|
48
48
|
lastUsedAt?: string;
|
|
@@ -59,16 +59,30 @@ export interface WorkspaceSecretCreateParams {
|
|
|
59
59
|
metadata: Shared.CreateResourceMetadata;
|
|
60
60
|
spec: WorkspaceSecretSpec;
|
|
61
61
|
}
|
|
62
|
+
export interface WorkspaceSecretRetrieveParams {
|
|
63
|
+
/**
|
|
64
|
+
* The workspace the secret belongs to.
|
|
65
|
+
*/
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
}
|
|
62
68
|
export interface WorkspaceSecretUpdateParams {
|
|
63
69
|
/**
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
* Path param: The workspace the secret belongs to.
|
|
71
|
+
*/
|
|
72
|
+
workspaceId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
75
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
76
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
77
|
+
* server.
|
|
67
78
|
*/
|
|
68
79
|
metadata?: Shared.UpdateResourceMetadata;
|
|
80
|
+
/**
|
|
81
|
+
* Body param
|
|
82
|
+
*/
|
|
69
83
|
spec?: WorkspaceSecretSpec;
|
|
70
84
|
/**
|
|
71
|
-
* Fields to update
|
|
85
|
+
* Body param: Fields to update.
|
|
72
86
|
*/
|
|
73
87
|
updateMask?: string;
|
|
74
88
|
}
|
|
@@ -94,7 +108,13 @@ export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
|
94
108
|
*/
|
|
95
109
|
sortOrder?: string;
|
|
96
110
|
}
|
|
111
|
+
export interface WorkspaceSecretDeleteParams {
|
|
112
|
+
/**
|
|
113
|
+
* The workspace the secret belongs to.
|
|
114
|
+
*/
|
|
115
|
+
workspaceId: string;
|
|
116
|
+
}
|
|
97
117
|
export declare namespace WorkspaceSecrets {
|
|
98
|
-
export { type WorkspaceSecret as WorkspaceSecret, type WorkspaceSecretInfo as WorkspaceSecretInfo, type WorkspaceSecretSpec as WorkspaceSecretSpec, type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination, type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams, type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams, type WorkspaceSecretListParams as WorkspaceSecretListParams, };
|
|
118
|
+
export { type WorkspaceSecret as WorkspaceSecret, type WorkspaceSecretInfo as WorkspaceSecretInfo, type WorkspaceSecretSpec as WorkspaceSecretSpec, type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination, type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams, type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams, type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams, type WorkspaceSecretListParams as WorkspaceSecretListParams, type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams, };
|
|
99
119
|
}
|
|
100
120
|
//# sourceMappingURL=workspace-secrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.d.ts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-secrets.d.ts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAK9B;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,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ACrB;AAED,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -10,35 +10,38 @@ class WorkspaceSecrets extends resource_1.APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new workspace secret in the workspace
|
|
12
12
|
*/
|
|
13
|
-
create(body, options) {
|
|
14
|
-
return this._client.post(
|
|
13
|
+
create(workspaceID, body, options) {
|
|
14
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceID}/workspace_secrets`, { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Retrieves a workspace secret by ID from the workspace
|
|
18
18
|
*/
|
|
19
|
-
retrieve(id, options) {
|
|
20
|
-
|
|
19
|
+
retrieve(id, params, options) {
|
|
20
|
+
const { workspaceId } = params;
|
|
21
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, options);
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Updates a workspace secret in the workspace
|
|
24
25
|
*/
|
|
25
|
-
update(id,
|
|
26
|
-
|
|
26
|
+
update(id, params, options) {
|
|
27
|
+
const { workspaceId, ...body } = params;
|
|
28
|
+
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
});
|
|
27
32
|
}
|
|
28
33
|
/**
|
|
29
34
|
* Lists all workspace secrets in the workspace
|
|
30
35
|
*/
|
|
31
|
-
list(query = {}, options) {
|
|
32
|
-
return this._client.getAPIList(
|
|
33
|
-
query,
|
|
34
|
-
...options,
|
|
35
|
-
});
|
|
36
|
+
list(workspaceID, query = {}, options) {
|
|
37
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceID}/workspace_secrets`, (pagination_1.CursorPagination), { query, ...options });
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Deletes a workspace secret from the workspace
|
|
39
41
|
*/
|
|
40
|
-
delete(id, options) {
|
|
41
|
-
|
|
42
|
+
delete(id, params, options) {
|
|
43
|
+
const { workspaceId } = params;
|
|
44
|
+
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
42
45
|
...options,
|
|
43
46
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
44
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.js","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-secrets.js","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B;QAC9E,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,sBAAsB,EAAE,EAAE,EAAE;YACtF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAhED,4CAgEC"}
|
|
@@ -7,35 +7,38 @@ export class WorkspaceSecrets extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new workspace secret in the workspace
|
|
9
9
|
*/
|
|
10
|
-
create(body, options) {
|
|
11
|
-
return this._client.post(
|
|
10
|
+
create(workspaceID, body, options) {
|
|
11
|
+
return this._client.post(path `/v1/workspaces/${workspaceID}/workspace_secrets`, { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves a workspace secret by ID from the workspace
|
|
15
15
|
*/
|
|
16
|
-
retrieve(id, options) {
|
|
17
|
-
|
|
16
|
+
retrieve(id, params, options) {
|
|
17
|
+
const { workspaceId } = params;
|
|
18
|
+
return this._client.get(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, options);
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Updates a workspace secret in the workspace
|
|
21
22
|
*/
|
|
22
|
-
update(id,
|
|
23
|
-
|
|
23
|
+
update(id, params, options) {
|
|
24
|
+
const { workspaceId, ...body } = params;
|
|
25
|
+
return this._client.patch(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
26
31
|
* Lists all workspace secrets in the workspace
|
|
27
32
|
*/
|
|
28
|
-
list(query = {}, options) {
|
|
29
|
-
return this._client.getAPIList(
|
|
30
|
-
query,
|
|
31
|
-
...options,
|
|
32
|
-
});
|
|
33
|
+
list(workspaceID, query = {}, options) {
|
|
34
|
+
return this._client.getAPIList(path `/v1/workspaces/${workspaceID}/workspace_secrets`, (CursorPagination), { query, ...options });
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* Deletes a workspace secret from the workspace
|
|
36
38
|
*/
|
|
37
|
-
delete(id, options) {
|
|
38
|
-
|
|
39
|
+
delete(id, params, options) {
|
|
40
|
+
const { workspaceId } = params;
|
|
41
|
+
return this._client.delete(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
39
42
|
...options,
|
|
40
43
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
41
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.mjs","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-secrets.mjs","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAqC,EACrC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,sBAAsB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kBAAkB,WAAW,sBAAsB,EAAE,EAAE,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,WAAW,oBAAoB,EACrD,CAAA,gBAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAmC,EAAE,OAAwB;QAC9E,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,WAAW,sBAAsB,EAAE,EAAE,EAAE;YACtF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -4,12 +4,8 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
4
4
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Workspaces provide organizational grouping for resources within an account.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
|
|
7
|
+
* Manage workspaces within an account. Workspaces provide organizational
|
|
8
|
+
* grouping and isolation for resources such as agents, tools, and API keys.
|
|
13
9
|
*/
|
|
14
10
|
export declare class Workspaces extends APIResource {
|
|
15
11
|
/**
|