@cadenya/cadenya 0.124.0 → 0.126.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 +17 -0
- package/README.md +18 -7
- package/client.d.mts +17 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -11
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +115 -28
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +115 -28
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +93 -13
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +93 -13
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +13 -2
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +13 -2
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +13 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +13 -2
- 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 +100 -52
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +100 -52
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +99 -21
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +99 -21
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +252 -105
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +252 -105
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +138 -27
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +138 -27
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +13 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +13 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +13 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +13 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +125 -110
- package/resources/ai-provider-keys.d.mts.map +1 -1
- package/resources/ai-provider-keys.d.ts +125 -110
- package/resources/ai-provider-keys.d.ts.map +1 -1
- package/resources/ai-provider-keys.js +11 -9
- package/resources/ai-provider-keys.js.map +1 -1
- package/resources/ai-provider-keys.mjs +11 -9
- package/resources/ai-provider-keys.mjs.map +1 -1
- package/resources/api-keys.d.mts +28 -20
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -20
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +14 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +14 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +27 -30
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +27 -30
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +12 -12
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +12 -12
- 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 +34 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +34 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +11 -9
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +11 -9
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +32 -24
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +32 -24
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -8
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -8
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +27 -3
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +27 -3
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +27 -3
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +27 -3
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +2 -2
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +2 -2
- 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 +273 -102
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +273 -102
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +112 -17
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +112 -17
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +25 -8
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +25 -8
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +26 -5
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +26 -5
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +99 -42
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +99 -42
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +73 -14
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +73 -14
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +13 -2
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +13 -2
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +13 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +13 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +11 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +11 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +3 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +3 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- 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/secrets.d.mts +9 -24
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +9 -24
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/secrets.js +12 -12
- package/resources/tool-sets/secrets.js.map +1 -1
- package/resources/tool-sets/secrets.mjs +12 -12
- package/resources/tool-sets/secrets.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +149 -64
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +149 -64
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +17 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +17 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +33 -43
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +33 -43
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -18
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -18
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +14 -6
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +14 -6
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +1 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +1 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/members.d.mts +41 -6
- package/resources/workspace-admin/members.d.mts.map +1 -1
- package/resources/workspace-admin/members.d.ts +41 -6
- package/resources/workspace-admin/members.d.ts.map +1 -1
- package/resources/workspace-admin/members.js +34 -6
- package/resources/workspace-admin/members.js.map +1 -1
- package/resources/workspace-admin/members.mjs +34 -6
- package/resources/workspace-admin/members.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +8 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -1
- package/resources/workspace-admin/profiles.d.ts +8 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -1
- package/resources/workspace-admin/profiles.js +8 -0
- package/resources/workspace-admin/profiles.js.map +1 -1
- package/resources/workspace-admin/profiles.mjs +8 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.mts +65 -9
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +65 -9
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +46 -6
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +46 -6
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +27 -15
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +27 -15
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +11 -9
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +11 -9
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +102 -5
- package/src/internal/request-options.ts +1 -1
- package/src/resources/agents/agents.ts +147 -37
- package/src/resources/agents/feedback.ts +14 -3
- package/src/resources/agents/index.ts +6 -0
- package/src/resources/agents/schedules.ts +143 -71
- package/src/resources/agents/variations.ts +319 -125
- package/src/resources/agents/webhook-deliveries.ts +14 -3
- package/src/resources/ai-provider-keys.ts +155 -127
- package/src/resources/api-keys.ts +48 -29
- package/src/resources/index.ts +44 -1
- package/src/resources/memory-layers/entries.ts +56 -40
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -30
- package/src/resources/models.ts +46 -31
- package/src/resources/objectives/feedback.ts +29 -5
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +373 -125
- package/src/resources/objectives/tasks.ts +33 -12
- package/src/resources/objectives/tool-calls.ts +123 -46
- package/src/resources/objectives/tools.ts +14 -3
- package/src/resources/search.ts +14 -4
- package/src/resources/tool-sets/index.ts +23 -3
- package/src/resources/tool-sets/secrets.ts +32 -35
- package/src/resources/tool-sets/tool-sets.ts +239 -79
- package/src/resources/tool-sets/tools.ts +79 -61
- package/src/resources/uploads.ts +22 -8
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/members.ts +53 -12
- package/src/resources/workspace-admin/profiles.ts +8 -0
- package/src/resources/workspace-admin/workspace-admin.ts +80 -11
- package/src/resources/workspace-secrets.ts +40 -25
- 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
|
@@ -19,19 +19,19 @@ export declare class Secrets extends APIResource {
|
|
|
19
19
|
/**
|
|
20
20
|
* Retrieves a tool set secret by ID from the tool set
|
|
21
21
|
*/
|
|
22
|
-
retrieve(id: string, params
|
|
22
|
+
retrieve(toolSetID: string, id: string, params?: SecretRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
23
23
|
/**
|
|
24
24
|
* Updates a secret scoped to the tool set
|
|
25
25
|
*/
|
|
26
|
-
update(id: string, params: SecretUpdateParams, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
26
|
+
update(toolSetID: string, id: string, params: SecretUpdateParams, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
27
27
|
/**
|
|
28
28
|
* Lists all secrets scoped to the tool set
|
|
29
29
|
*/
|
|
30
|
-
list(toolSetID: string, params
|
|
30
|
+
list(toolSetID: string, params?: SecretListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetSecretsCursorPagination, ToolSetSecret>;
|
|
31
31
|
/**
|
|
32
32
|
* Deletes a secret scoped to the tool set
|
|
33
33
|
*/
|
|
34
|
-
delete(id: string, params
|
|
34
|
+
delete(toolSetID: string, id: string, params?: SecretDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
35
35
|
}
|
|
36
36
|
export type ToolSetSecretsCursorPagination = CursorPagination<ToolSetSecret>;
|
|
37
37
|
export interface ToolSetSecret {
|
|
@@ -61,7 +61,7 @@ export interface SecretCreateParams {
|
|
|
61
61
|
/**
|
|
62
62
|
* Path param: The workspace that owns the tool set.
|
|
63
63
|
*/
|
|
64
|
-
workspaceId
|
|
64
|
+
workspaceId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
67
67
|
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -78,23 +78,13 @@ export interface SecretRetrieveParams {
|
|
|
78
78
|
/**
|
|
79
79
|
* The workspace that owns the tool set.
|
|
80
80
|
*/
|
|
81
|
-
workspaceId
|
|
82
|
-
/**
|
|
83
|
-
* The tool set the secret belongs to. Accepts the canonical ts\_… form or the
|
|
84
|
-
* external_id:<value> form.
|
|
85
|
-
*/
|
|
86
|
-
toolSetId: string;
|
|
81
|
+
workspaceId?: string;
|
|
87
82
|
}
|
|
88
83
|
export interface SecretUpdateParams {
|
|
89
84
|
/**
|
|
90
85
|
* Path param: The workspace that owns the tool set.
|
|
91
86
|
*/
|
|
92
|
-
workspaceId
|
|
93
|
-
/**
|
|
94
|
-
* Path param: The tool set the secret belongs to. Accepts the canonical ts\_… form
|
|
95
|
-
* or the external_id:<value> form.
|
|
96
|
-
*/
|
|
97
|
-
toolSetId: string;
|
|
87
|
+
workspaceId?: string;
|
|
98
88
|
/**
|
|
99
89
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
100
90
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -115,7 +105,7 @@ export interface SecretListParams extends CursorPaginationParams {
|
|
|
115
105
|
/**
|
|
116
106
|
* Path param: The workspace that owns the tool set.
|
|
117
107
|
*/
|
|
118
|
-
workspaceId
|
|
108
|
+
workspaceId?: string;
|
|
119
109
|
/**
|
|
120
110
|
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
121
111
|
*/
|
|
@@ -137,12 +127,7 @@ export interface SecretDeleteParams {
|
|
|
137
127
|
/**
|
|
138
128
|
* The workspace that owns the tool set.
|
|
139
129
|
*/
|
|
140
|
-
workspaceId
|
|
141
|
-
/**
|
|
142
|
-
* The tool set the secret belongs to. Accepts the canonical ts\_… form or the
|
|
143
|
-
* external_id:<value> form.
|
|
144
|
-
*/
|
|
145
|
-
toolSetId: string;
|
|
130
|
+
workspaceId?: string;
|
|
146
131
|
}
|
|
147
132
|
export declare namespace Secrets {
|
|
148
133
|
export { type ToolSetSecret as ToolSetSecret, type ToolSetSecretInfo as ToolSetSecretInfo, type ToolSetSecretSpec as ToolSetSecretSpec, type ToolSetSecretsCursorPagination as ToolSetSecretsCursorPagination, type SecretCreateParams as SecretCreateParams, type SecretRetrieveParams as SecretRetrieveParams, type SecretUpdateParams as SecretUpdateParams, type SecretListParams as SecretListParams, type SecretDeleteParams as SecretDeleteParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.mts","sourceRoot":"","sources":["../../src/resources/tool-sets/secrets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;GAMG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAQ1G;;OAEG;IACH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C,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -19,19 +19,19 @@ export declare class Secrets extends APIResource {
|
|
|
19
19
|
/**
|
|
20
20
|
* Retrieves a tool set secret by ID from the tool set
|
|
21
21
|
*/
|
|
22
|
-
retrieve(id: string, params
|
|
22
|
+
retrieve(toolSetID: string, id: string, params?: SecretRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
23
23
|
/**
|
|
24
24
|
* Updates a secret scoped to the tool set
|
|
25
25
|
*/
|
|
26
|
-
update(id: string, params: SecretUpdateParams, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
26
|
+
update(toolSetID: string, id: string, params: SecretUpdateParams, options?: RequestOptions): APIPromise<ToolSetSecret>;
|
|
27
27
|
/**
|
|
28
28
|
* Lists all secrets scoped to the tool set
|
|
29
29
|
*/
|
|
30
|
-
list(toolSetID: string, params
|
|
30
|
+
list(toolSetID: string, params?: SecretListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetSecretsCursorPagination, ToolSetSecret>;
|
|
31
31
|
/**
|
|
32
32
|
* Deletes a secret scoped to the tool set
|
|
33
33
|
*/
|
|
34
|
-
delete(id: string, params
|
|
34
|
+
delete(toolSetID: string, id: string, params?: SecretDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
35
35
|
}
|
|
36
36
|
export type ToolSetSecretsCursorPagination = CursorPagination<ToolSetSecret>;
|
|
37
37
|
export interface ToolSetSecret {
|
|
@@ -61,7 +61,7 @@ export interface SecretCreateParams {
|
|
|
61
61
|
/**
|
|
62
62
|
* Path param: The workspace that owns the tool set.
|
|
63
63
|
*/
|
|
64
|
-
workspaceId
|
|
64
|
+
workspaceId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
67
67
|
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -78,23 +78,13 @@ export interface SecretRetrieveParams {
|
|
|
78
78
|
/**
|
|
79
79
|
* The workspace that owns the tool set.
|
|
80
80
|
*/
|
|
81
|
-
workspaceId
|
|
82
|
-
/**
|
|
83
|
-
* The tool set the secret belongs to. Accepts the canonical ts\_… form or the
|
|
84
|
-
* external_id:<value> form.
|
|
85
|
-
*/
|
|
86
|
-
toolSetId: string;
|
|
81
|
+
workspaceId?: string;
|
|
87
82
|
}
|
|
88
83
|
export interface SecretUpdateParams {
|
|
89
84
|
/**
|
|
90
85
|
* Path param: The workspace that owns the tool set.
|
|
91
86
|
*/
|
|
92
|
-
workspaceId
|
|
93
|
-
/**
|
|
94
|
-
* Path param: The tool set the secret belongs to. Accepts the canonical ts\_… form
|
|
95
|
-
* or the external_id:<value> form.
|
|
96
|
-
*/
|
|
97
|
-
toolSetId: string;
|
|
87
|
+
workspaceId?: string;
|
|
98
88
|
/**
|
|
99
89
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
100
90
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -115,7 +105,7 @@ export interface SecretListParams extends CursorPaginationParams {
|
|
|
115
105
|
/**
|
|
116
106
|
* Path param: The workspace that owns the tool set.
|
|
117
107
|
*/
|
|
118
|
-
workspaceId
|
|
108
|
+
workspaceId?: string;
|
|
119
109
|
/**
|
|
120
110
|
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
121
111
|
*/
|
|
@@ -137,12 +127,7 @@ export interface SecretDeleteParams {
|
|
|
137
127
|
/**
|
|
138
128
|
* The workspace that owns the tool set.
|
|
139
129
|
*/
|
|
140
|
-
workspaceId
|
|
141
|
-
/**
|
|
142
|
-
* The tool set the secret belongs to. Accepts the canonical ts\_… form or the
|
|
143
|
-
* external_id:<value> form.
|
|
144
|
-
*/
|
|
145
|
-
toolSetId: string;
|
|
130
|
+
workspaceId?: string;
|
|
146
131
|
}
|
|
147
132
|
export declare namespace Secrets {
|
|
148
133
|
export { type ToolSetSecret as ToolSetSecret, type ToolSetSecretInfo as ToolSetSecretInfo, type ToolSetSecretSpec as ToolSetSecretSpec, type ToolSetSecretsCursorPagination as ToolSetSecretsCursorPagination, type SecretCreateParams as SecretCreateParams, type SecretRetrieveParams as SecretRetrieveParams, type SecretUpdateParams as SecretUpdateParams, type SecretListParams as SecretListParams, type SecretDeleteParams as SecretDeleteParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/resources/tool-sets/secrets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;GAMG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAQ1G;;OAEG;IACH,QAAQ,
|
|
1
|
+
{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pB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -18,7 +18,7 @@ class Secrets extends resource_1.APIResource {
|
|
|
18
18
|
* Creates a new secret scoped to the tool set
|
|
19
19
|
*/
|
|
20
20
|
create(toolSetID, params, options) {
|
|
21
|
-
const { workspaceId, ...body } = params;
|
|
21
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
22
22
|
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets`, {
|
|
23
23
|
body,
|
|
24
24
|
...options,
|
|
@@ -27,16 +27,16 @@ class Secrets extends resource_1.APIResource {
|
|
|
27
27
|
/**
|
|
28
28
|
* Retrieves a tool set secret by ID from the tool set
|
|
29
29
|
*/
|
|
30
|
-
retrieve(id, params, options) {
|
|
31
|
-
const { workspaceId
|
|
32
|
-
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
30
|
+
retrieve(toolSetID, id, params = {}, options) {
|
|
31
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
32
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, options);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Updates a secret scoped to the tool set
|
|
36
36
|
*/
|
|
37
|
-
update(id, params, options) {
|
|
38
|
-
const { workspaceId
|
|
39
|
-
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
37
|
+
update(toolSetID, id, params, options) {
|
|
38
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
39
|
+
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, {
|
|
40
40
|
body,
|
|
41
41
|
...options,
|
|
42
42
|
});
|
|
@@ -44,16 +44,16 @@ class Secrets extends resource_1.APIResource {
|
|
|
44
44
|
/**
|
|
45
45
|
* Lists all secrets scoped to the tool set
|
|
46
46
|
*/
|
|
47
|
-
list(toolSetID, params, options) {
|
|
48
|
-
const { workspaceId, ...query } = params;
|
|
47
|
+
list(toolSetID, params = {}, options) {
|
|
48
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
49
49
|
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets`, (pagination_1.CursorPagination), { query, ...options });
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Deletes a secret scoped to the tool set
|
|
53
53
|
*/
|
|
54
|
-
delete(id, params, options) {
|
|
55
|
-
const { workspaceId
|
|
56
|
-
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
54
|
+
delete(toolSetID, id, params = {}, options) {
|
|
55
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
56
|
+
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, {
|
|
57
57
|
...options,
|
|
58
58
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/resources/tool-sets/secrets.ts"],"names":[],"m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,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,cAAc,SAAS,YAAY,EAAE,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,SAAiB,EACjB,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,WAAW,cAAc,SAAS,UAAU,EAClE,CAAA,6BAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,EAAU,EACV,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,cAAc,SAAS,YAAY,EAAE,EAAE,EAAE;YACnG,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;AA3ED,0BA2EC"}
|
|
@@ -15,7 +15,7 @@ export class Secrets extends APIResource {
|
|
|
15
15
|
* Creates a new secret scoped to the tool set
|
|
16
16
|
*/
|
|
17
17
|
create(toolSetID, params, options) {
|
|
18
|
-
const { workspaceId, ...body } = params;
|
|
18
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
19
19
|
return this._client.post(path `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets`, {
|
|
20
20
|
body,
|
|
21
21
|
...options,
|
|
@@ -24,16 +24,16 @@ export class Secrets extends APIResource {
|
|
|
24
24
|
/**
|
|
25
25
|
* Retrieves a tool set secret by ID from the tool set
|
|
26
26
|
*/
|
|
27
|
-
retrieve(id, params, options) {
|
|
28
|
-
const { workspaceId
|
|
29
|
-
return this._client.get(path `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
27
|
+
retrieve(toolSetID, id, params = {}, options) {
|
|
28
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
29
|
+
return this._client.get(path `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, options);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Updates a secret scoped to the tool set
|
|
33
33
|
*/
|
|
34
|
-
update(id, params, options) {
|
|
35
|
-
const { workspaceId
|
|
36
|
-
return this._client.patch(path `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
34
|
+
update(toolSetID, id, params, options) {
|
|
35
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
36
|
+
return this._client.patch(path `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, {
|
|
37
37
|
body,
|
|
38
38
|
...options,
|
|
39
39
|
});
|
|
@@ -41,16 +41,16 @@ export class Secrets extends APIResource {
|
|
|
41
41
|
/**
|
|
42
42
|
* Lists all secrets scoped to the tool set
|
|
43
43
|
*/
|
|
44
|
-
list(toolSetID, params, options) {
|
|
45
|
-
const { workspaceId, ...query } = params;
|
|
44
|
+
list(toolSetID, params = {}, options) {
|
|
45
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
46
46
|
return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets`, (CursorPagination), { query, ...options });
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Deletes a secret scoped to the tool set
|
|
50
50
|
*/
|
|
51
|
-
delete(id, params, options) {
|
|
52
|
-
const { workspaceId
|
|
53
|
-
return this._client.delete(path `/v1/workspaces/${workspaceId}/tool_sets/${
|
|
51
|
+
delete(toolSetID, id, params = {}, options) {
|
|
52
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
53
|
+
return this._client.delete(path `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/secrets/${id}`, {
|
|
54
54
|
...options,
|
|
55
55
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../../src/resources/tool-sets/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;GAMG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,MAA0B,EAAE,OAAwB;QAC5E,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../../src/resources/tool-sets/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;GAMG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;O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