@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
|
@@ -8,11 +8,11 @@ export declare class WorkspaceSecrets extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new workspace secret in the workspace
|
|
10
10
|
*/
|
|
11
|
-
create(
|
|
11
|
+
create(params: WorkspaceSecretCreateParams, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves a workspace secret by ID from the workspace
|
|
14
14
|
*/
|
|
15
|
-
retrieve(id: string, params
|
|
15
|
+
retrieve(id: string, params?: WorkspaceSecretRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceSecret>;
|
|
16
16
|
/**
|
|
17
17
|
* Updates a workspace secret in the workspace
|
|
18
18
|
*/
|
|
@@ -20,11 +20,11 @@ export declare class WorkspaceSecrets extends APIResource {
|
|
|
20
20
|
/**
|
|
21
21
|
* Lists all workspace secrets in the workspace
|
|
22
22
|
*/
|
|
23
|
-
list(
|
|
23
|
+
list(params?: 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, params
|
|
27
|
+
delete(id: string, params?: WorkspaceSecretDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
28
28
|
}
|
|
29
29
|
export type WorkspaceSecretsCursorPagination = CursorPagination<WorkspaceSecret>;
|
|
30
30
|
export interface WorkspaceSecret {
|
|
@@ -52,24 +52,32 @@ export interface WorkspaceSecretSpec {
|
|
|
52
52
|
}
|
|
53
53
|
export interface WorkspaceSecretCreateParams {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
* Path param: The workspace that will own this secret.
|
|
56
|
+
*/
|
|
57
|
+
workspaceId?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
60
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
61
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
62
|
+
* server.
|
|
58
63
|
*/
|
|
59
64
|
metadata: Shared.CreateResourceMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* Body param
|
|
67
|
+
*/
|
|
60
68
|
spec: WorkspaceSecretSpec;
|
|
61
69
|
}
|
|
62
70
|
export interface WorkspaceSecretRetrieveParams {
|
|
63
71
|
/**
|
|
64
72
|
* The workspace the secret belongs to.
|
|
65
73
|
*/
|
|
66
|
-
workspaceId
|
|
74
|
+
workspaceId?: string;
|
|
67
75
|
}
|
|
68
76
|
export interface WorkspaceSecretUpdateParams {
|
|
69
77
|
/**
|
|
70
78
|
* Path param: The workspace the secret belongs to.
|
|
71
79
|
*/
|
|
72
|
-
workspaceId
|
|
80
|
+
workspaceId?: string;
|
|
73
81
|
/**
|
|
74
82
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
75
83
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -88,25 +96,29 @@ export interface WorkspaceSecretUpdateParams {
|
|
|
88
96
|
}
|
|
89
97
|
export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
90
98
|
/**
|
|
91
|
-
*
|
|
99
|
+
* Path param: The workspace whose secrets will be listed.
|
|
100
|
+
*/
|
|
101
|
+
workspaceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
92
104
|
*/
|
|
93
105
|
includeInfo?: boolean;
|
|
94
106
|
/**
|
|
95
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
107
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
96
108
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
97
109
|
* semantics).
|
|
98
110
|
*/
|
|
99
111
|
labels?: string;
|
|
100
112
|
/**
|
|
101
|
-
* Filter expression (query param: prefix)
|
|
113
|
+
* Query param: Filter expression (query param: prefix)
|
|
102
114
|
*/
|
|
103
115
|
prefix?: string;
|
|
104
116
|
/**
|
|
105
|
-
* Free-form search query
|
|
117
|
+
* Query param: Free-form search query
|
|
106
118
|
*/
|
|
107
119
|
query?: string;
|
|
108
120
|
/**
|
|
109
|
-
* Sort order for results (asc or desc by creation time)
|
|
121
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
110
122
|
*/
|
|
111
123
|
sortOrder?: string;
|
|
112
124
|
}
|
|
@@ -114,7 +126,7 @@ export interface WorkspaceSecretDeleteParams {
|
|
|
114
126
|
/**
|
|
115
127
|
* The workspace the secret belongs to.
|
|
116
128
|
*/
|
|
117
|
-
workspaceId
|
|
129
|
+
workspaceId?: string;
|
|
118
130
|
}
|
|
119
131
|
export declare namespace WorkspaceSecrets {
|
|
120
132
|
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, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.d.ts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,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":"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"}
|
|
@@ -10,21 +10,22 @@ class WorkspaceSecrets extends resource_1.APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new workspace secret in the workspace
|
|
12
12
|
*/
|
|
13
|
-
create(
|
|
14
|
-
|
|
13
|
+
create(params, options) {
|
|
14
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
15
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets`, { body, ...options });
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Retrieves a workspace secret by ID from the workspace
|
|
18
19
|
*/
|
|
19
|
-
retrieve(id, params, options) {
|
|
20
|
-
const { workspaceId } = params;
|
|
20
|
+
retrieve(id, params = {}, options) {
|
|
21
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
21
22
|
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, options);
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Updates a workspace secret in the workspace
|
|
25
26
|
*/
|
|
26
27
|
update(id, params, options) {
|
|
27
|
-
const { workspaceId, ...body } = params;
|
|
28
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
28
29
|
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
29
30
|
body,
|
|
30
31
|
...options,
|
|
@@ -33,14 +34,15 @@ class WorkspaceSecrets extends resource_1.APIResource {
|
|
|
33
34
|
/**
|
|
34
35
|
* Lists all workspace secrets in the workspace
|
|
35
36
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
37
|
+
list(params = {}, options) {
|
|
38
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
39
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets`, (pagination_1.CursorPagination), { query, ...options });
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
40
42
|
* Deletes a workspace secret from the workspace
|
|
41
43
|
*/
|
|
42
|
-
delete(id, params, options) {
|
|
43
|
-
const { workspaceId } = params;
|
|
44
|
+
delete(id, params = {}, options) {
|
|
45
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
44
46
|
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
45
47
|
...options,
|
|
46
48
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -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","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,CAAC,MAAmC,EAAE,OAAwB;QAClE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,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,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,sBAAsB,EAAE,EAAE,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,SAAuD,EAAE,EACzD,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,oBAAoB,EACrD,CAAA,6BAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,SAAyD,EAAE,EAC3D,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,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;AAjED,4CAiEC"}
|
|
@@ -7,21 +7,22 @@ export class WorkspaceSecrets extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new workspace secret in the workspace
|
|
9
9
|
*/
|
|
10
|
-
create(
|
|
11
|
-
|
|
10
|
+
create(params, options) {
|
|
11
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
12
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/workspace_secrets`, { body, ...options });
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Retrieves a workspace secret by ID from the workspace
|
|
15
16
|
*/
|
|
16
|
-
retrieve(id, params, options) {
|
|
17
|
-
const { workspaceId } = params;
|
|
17
|
+
retrieve(id, params = {}, options) {
|
|
18
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
18
19
|
return this._client.get(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, options);
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Updates a workspace secret in the workspace
|
|
22
23
|
*/
|
|
23
24
|
update(id, params, options) {
|
|
24
|
-
const { workspaceId, ...body } = params;
|
|
25
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
25
26
|
return this._client.patch(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
26
27
|
body,
|
|
27
28
|
...options,
|
|
@@ -30,14 +31,15 @@ export class WorkspaceSecrets extends APIResource {
|
|
|
30
31
|
/**
|
|
31
32
|
* Lists all workspace secrets in the workspace
|
|
32
33
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
34
|
+
list(params = {}, options) {
|
|
35
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
36
|
+
return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/workspace_secrets`, (CursorPagination), { query, ...options });
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Deletes a workspace secret from the workspace
|
|
38
40
|
*/
|
|
39
|
-
delete(id, params, options) {
|
|
40
|
-
const { workspaceId } = params;
|
|
41
|
+
delete(id, params = {}, options) {
|
|
42
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
41
43
|
return this._client.delete(path `/v1/workspaces/${workspaceId}/workspace_secrets/${id}`, {
|
|
42
44
|
...options,
|
|
43
45
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.mjs","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,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;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,MAAmC,EAAE,OAAwB;QAClE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,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,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,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,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,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,SAAuD,EAAE,EACzD,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,IAAI,CAAA,kBAAkB,WAAW,oBAAoB,EACrD,CAAA,gBAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,SAAyD,EAAE,EAC3D,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,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"}
|
package/src/client.ts
CHANGED
|
@@ -30,6 +30,11 @@ import {
|
|
|
30
30
|
RotateWebhookSigningKeyResponse,
|
|
31
31
|
} from './resources/account';
|
|
32
32
|
import {
|
|
33
|
+
AIProviderConfigOpenAI,
|
|
34
|
+
AIProviderConfigOpenAICompatible,
|
|
35
|
+
AIProviderConfigOpenrouter,
|
|
36
|
+
AIProviderCredentialAPIKey,
|
|
37
|
+
AIProviderCredentialHeaders,
|
|
33
38
|
AIProviderKey,
|
|
34
39
|
AIProviderKeyCreateParams,
|
|
35
40
|
AIProviderKeyDeleteParams,
|
|
@@ -135,6 +140,9 @@ import {
|
|
|
135
140
|
AssistantMessage,
|
|
136
141
|
AssistantToolCall,
|
|
137
142
|
CallableTool,
|
|
143
|
+
CallableToolAgent,
|
|
144
|
+
CallableToolCadenyaProvidedTool,
|
|
145
|
+
CallableToolTool,
|
|
138
146
|
ContextLengths,
|
|
139
147
|
ContextWindowCompacted,
|
|
140
148
|
MemoryRead,
|
|
@@ -153,6 +161,23 @@ import {
|
|
|
153
161
|
ObjectiveError,
|
|
154
162
|
ObjectiveEvent,
|
|
155
163
|
ObjectiveEventData,
|
|
164
|
+
ObjectiveEventDataAssistantMessage,
|
|
165
|
+
ObjectiveEventDataCancelled,
|
|
166
|
+
ObjectiveEventDataContextWindowCompacted,
|
|
167
|
+
ObjectiveEventDataError,
|
|
168
|
+
ObjectiveEventDataFinalized,
|
|
169
|
+
ObjectiveEventDataMemoryRead,
|
|
170
|
+
ObjectiveEventDataNotice,
|
|
171
|
+
ObjectiveEventDataSubAgentSpawned,
|
|
172
|
+
ObjectiveEventDataSubAgentUpdated,
|
|
173
|
+
ObjectiveEventDataTimedOut,
|
|
174
|
+
ObjectiveEventDataToolApprovalRequested,
|
|
175
|
+
ObjectiveEventDataToolApproved,
|
|
176
|
+
ObjectiveEventDataToolCalled,
|
|
177
|
+
ObjectiveEventDataToolDenied,
|
|
178
|
+
ObjectiveEventDataToolError,
|
|
179
|
+
ObjectiveEventDataToolResult,
|
|
180
|
+
ObjectiveEventDataUserMessage,
|
|
156
181
|
ObjectiveEventInfo,
|
|
157
182
|
ObjectiveEventWebhookData,
|
|
158
183
|
ObjectiveEventsCursorPagination,
|
|
@@ -179,8 +204,15 @@ import {
|
|
|
179
204
|
} from './resources/objectives/objectives';
|
|
180
205
|
import {
|
|
181
206
|
ApprovalRequirementFilter,
|
|
207
|
+
ApprovalRequirementFilterAlways,
|
|
208
|
+
ApprovalRequirementFilterOnly,
|
|
182
209
|
AttributeFilter,
|
|
183
210
|
StringMatcher,
|
|
211
|
+
StringMatcherContains,
|
|
212
|
+
StringMatcherEndsWith,
|
|
213
|
+
StringMatcherExact,
|
|
214
|
+
StringMatcherRegex,
|
|
215
|
+
StringMatcherStartsWith,
|
|
184
216
|
SyncCompleted,
|
|
185
217
|
SyncFailed,
|
|
186
218
|
SyncStarted,
|
|
@@ -188,14 +220,23 @@ import {
|
|
|
188
220
|
ToolSet,
|
|
189
221
|
ToolSetAdapter,
|
|
190
222
|
ToolSetAdapterBare,
|
|
223
|
+
ToolSetAdapterBareVariant,
|
|
191
224
|
ToolSetAdapterHTTP,
|
|
192
|
-
|
|
225
|
+
ToolSetAdapterHTTPVariant,
|
|
226
|
+
ToolSetAdapterMCP,
|
|
227
|
+
ToolSetAdapterMCPVariant,
|
|
193
228
|
ToolSetAdapterOpenAPI,
|
|
229
|
+
ToolSetAdapterOpenAPIURL,
|
|
230
|
+
ToolSetAdapterOpenAPIUploadID,
|
|
231
|
+
ToolSetAdapterOpenAPIVariant,
|
|
194
232
|
ToolSetArchiveParams,
|
|
195
233
|
ToolSetCreateParams,
|
|
196
234
|
ToolSetDeleteParams,
|
|
197
235
|
ToolSetEvent,
|
|
198
236
|
ToolSetEventData,
|
|
237
|
+
ToolSetEventDataSyncCompleted,
|
|
238
|
+
ToolSetEventDataSyncFailed,
|
|
239
|
+
ToolSetEventDataSyncStarted,
|
|
199
240
|
ToolSetEventsCursorPagination,
|
|
200
241
|
ToolSetGetOpenAPISpecParams,
|
|
201
242
|
ToolSetGetOpenAPISpecResponse,
|
|
@@ -211,8 +252,10 @@ import {
|
|
|
211
252
|
} from './resources/tool-sets/tool-sets';
|
|
212
253
|
import {
|
|
213
254
|
WorkspaceAdmin,
|
|
255
|
+
WorkspaceAdminArchiveParams,
|
|
214
256
|
WorkspaceAdminCreateParams,
|
|
215
257
|
WorkspaceAdminListParams,
|
|
258
|
+
WorkspaceAdminRetrieveParams,
|
|
216
259
|
WorkspaceAdminUpdateParams,
|
|
217
260
|
WorkspaceMember,
|
|
218
261
|
} from './resources/workspace-admin/workspace-admin';
|
|
@@ -240,6 +283,11 @@ export interface ClientOptions {
|
|
|
240
283
|
*/
|
|
241
284
|
webhookKey?: string | null | undefined;
|
|
242
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Workspace to operate on. Fills the {workspaceId} path parameter on workspace-scoped endpoints unless overridden per request.
|
|
288
|
+
*/
|
|
289
|
+
workspaceID?: string | null | undefined;
|
|
290
|
+
|
|
243
291
|
/**
|
|
244
292
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
245
293
|
*
|
|
@@ -274,7 +322,7 @@ export interface ClientOptions {
|
|
|
274
322
|
* The maximum number of times that the client will retry a request in case of a
|
|
275
323
|
* temporary failure, like a network error or a 5XX error from the server.
|
|
276
324
|
*
|
|
277
|
-
* @default
|
|
325
|
+
* @default 0
|
|
278
326
|
*/
|
|
279
327
|
maxRetries?: number | undefined;
|
|
280
328
|
|
|
@@ -315,6 +363,7 @@ export interface ClientOptions {
|
|
|
315
363
|
export class Cadenya {
|
|
316
364
|
apiKey: string;
|
|
317
365
|
webhookKey: string | null;
|
|
366
|
+
workspaceID: string | null;
|
|
318
367
|
|
|
319
368
|
baseURL: string;
|
|
320
369
|
maxRetries: number;
|
|
@@ -333,11 +382,12 @@ export class Cadenya {
|
|
|
333
382
|
*
|
|
334
383
|
* @param {string | undefined} [opts.apiKey=process.env['CADENYA_API_KEY'] ?? undefined]
|
|
335
384
|
* @param {string | null | undefined} [opts.webhookKey=process.env['CADENYA_WEBHOOK_KEY'] ?? null]
|
|
385
|
+
* @param {string | null | undefined} [opts.workspaceID=process.env['CADENYA_WORKSPACE_ID'] ?? null]
|
|
336
386
|
* @param {string} [opts.baseURL=process.env['CADENYA_BASE_URL'] ?? https://api.cadenya.com] - Override the default base URL for the API.
|
|
337
387
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
338
388
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
339
389
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
340
|
-
* @param {number} [opts.maxRetries=
|
|
390
|
+
* @param {number} [opts.maxRetries=0] - The maximum number of times the client will retry a request.
|
|
341
391
|
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
342
392
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
343
393
|
*/
|
|
@@ -345,6 +395,7 @@ export class Cadenya {
|
|
|
345
395
|
baseURL = readEnv('CADENYA_BASE_URL'),
|
|
346
396
|
apiKey = readEnv('CADENYA_API_KEY'),
|
|
347
397
|
webhookKey = readEnv('CADENYA_WEBHOOK_KEY') ?? null,
|
|
398
|
+
workspaceID = readEnv('CADENYA_WORKSPACE_ID') ?? null,
|
|
348
399
|
...opts
|
|
349
400
|
}: ClientOptions = {}) {
|
|
350
401
|
if (apiKey === undefined) {
|
|
@@ -356,6 +407,7 @@ export class Cadenya {
|
|
|
356
407
|
const options: ClientOptions = {
|
|
357
408
|
apiKey,
|
|
358
409
|
webhookKey,
|
|
410
|
+
workspaceID,
|
|
359
411
|
...opts,
|
|
360
412
|
baseURL: baseURL || `https://api.cadenya.com`,
|
|
361
413
|
};
|
|
@@ -371,7 +423,7 @@ export class Cadenya {
|
|
|
371
423
|
parseLogLevel(readEnv('CADENYA_LOG'), "process.env['CADENYA_LOG']", this) ??
|
|
372
424
|
defaultLogLevel;
|
|
373
425
|
this.fetchOptions = options.fetchOptions;
|
|
374
|
-
this.maxRetries = options.maxRetries ??
|
|
426
|
+
this.maxRetries = options.maxRetries ?? 0;
|
|
375
427
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
376
428
|
this.#encoder = Opts.FallbackEncoder;
|
|
377
429
|
|
|
@@ -391,6 +443,7 @@ export class Cadenya {
|
|
|
391
443
|
|
|
392
444
|
this.apiKey = apiKey;
|
|
393
445
|
this.webhookKey = webhookKey;
|
|
446
|
+
this.workspaceID = workspaceID;
|
|
394
447
|
}
|
|
395
448
|
|
|
396
449
|
/**
|
|
@@ -408,6 +461,7 @@ export class Cadenya {
|
|
|
408
461
|
fetchOptions: this.fetchOptions,
|
|
409
462
|
apiKey: this.apiKey,
|
|
410
463
|
webhookKey: this.webhookKey,
|
|
464
|
+
workspaceID: this.workspaceID,
|
|
411
465
|
...options,
|
|
412
466
|
});
|
|
413
467
|
return client;
|
|
@@ -1075,6 +1129,11 @@ export declare namespace Cadenya {
|
|
|
1075
1129
|
|
|
1076
1130
|
export {
|
|
1077
1131
|
AIProviderKeys as AIProviderKeys,
|
|
1132
|
+
type AIProviderConfigOpenAI as AIProviderConfigOpenAI,
|
|
1133
|
+
type AIProviderConfigOpenAICompatible as AIProviderConfigOpenAICompatible,
|
|
1134
|
+
type AIProviderConfigOpenrouter as AIProviderConfigOpenrouter,
|
|
1135
|
+
type AIProviderCredentialAPIKey as AIProviderCredentialAPIKey,
|
|
1136
|
+
type AIProviderCredentialHeaders as AIProviderCredentialHeaders,
|
|
1078
1137
|
type AIProviderKey as AIProviderKey,
|
|
1079
1138
|
type AIProviderKeySpec as AIProviderKeySpec,
|
|
1080
1139
|
type AIProviderKeysCursorPagination as AIProviderKeysCursorPagination,
|
|
@@ -1121,6 +1180,9 @@ export declare namespace Cadenya {
|
|
|
1121
1180
|
type AssistantMessage as AssistantMessage,
|
|
1122
1181
|
type AssistantToolCall as AssistantToolCall,
|
|
1123
1182
|
type CallableTool as CallableTool,
|
|
1183
|
+
type CallableToolAgent as CallableToolAgent,
|
|
1184
|
+
type CallableToolCadenyaProvidedTool as CallableToolCadenyaProvidedTool,
|
|
1185
|
+
type CallableToolTool as CallableToolTool,
|
|
1124
1186
|
type ContextLengths as ContextLengths,
|
|
1125
1187
|
type ContextWindowCompacted as ContextWindowCompacted,
|
|
1126
1188
|
type MemoryRead as MemoryRead,
|
|
@@ -1133,6 +1195,23 @@ export declare namespace Cadenya {
|
|
|
1133
1195
|
type ObjectiveError as ObjectiveError,
|
|
1134
1196
|
type ObjectiveEvent as ObjectiveEvent,
|
|
1135
1197
|
type ObjectiveEventData as ObjectiveEventData,
|
|
1198
|
+
type ObjectiveEventDataAssistantMessage as ObjectiveEventDataAssistantMessage,
|
|
1199
|
+
type ObjectiveEventDataCancelled as ObjectiveEventDataCancelled,
|
|
1200
|
+
type ObjectiveEventDataContextWindowCompacted as ObjectiveEventDataContextWindowCompacted,
|
|
1201
|
+
type ObjectiveEventDataError as ObjectiveEventDataError,
|
|
1202
|
+
type ObjectiveEventDataFinalized as ObjectiveEventDataFinalized,
|
|
1203
|
+
type ObjectiveEventDataMemoryRead as ObjectiveEventDataMemoryRead,
|
|
1204
|
+
type ObjectiveEventDataNotice as ObjectiveEventDataNotice,
|
|
1205
|
+
type ObjectiveEventDataSubAgentSpawned as ObjectiveEventDataSubAgentSpawned,
|
|
1206
|
+
type ObjectiveEventDataSubAgentUpdated as ObjectiveEventDataSubAgentUpdated,
|
|
1207
|
+
type ObjectiveEventDataTimedOut as ObjectiveEventDataTimedOut,
|
|
1208
|
+
type ObjectiveEventDataToolApprovalRequested as ObjectiveEventDataToolApprovalRequested,
|
|
1209
|
+
type ObjectiveEventDataToolApproved as ObjectiveEventDataToolApproved,
|
|
1210
|
+
type ObjectiveEventDataToolCalled as ObjectiveEventDataToolCalled,
|
|
1211
|
+
type ObjectiveEventDataToolDenied as ObjectiveEventDataToolDenied,
|
|
1212
|
+
type ObjectiveEventDataToolError as ObjectiveEventDataToolError,
|
|
1213
|
+
type ObjectiveEventDataToolResult as ObjectiveEventDataToolResult,
|
|
1214
|
+
type ObjectiveEventDataUserMessage as ObjectiveEventDataUserMessage,
|
|
1136
1215
|
type ObjectiveEventInfo as ObjectiveEventInfo,
|
|
1137
1216
|
type ObjectiveEventWebhookData as ObjectiveEventWebhookData,
|
|
1138
1217
|
type ObjectiveInfo as ObjectiveInfo,
|
|
@@ -1207,8 +1286,15 @@ export declare namespace Cadenya {
|
|
|
1207
1286
|
export {
|
|
1208
1287
|
ToolSets as ToolSets,
|
|
1209
1288
|
type ApprovalRequirementFilter as ApprovalRequirementFilter,
|
|
1289
|
+
type ApprovalRequirementFilterAlways as ApprovalRequirementFilterAlways,
|
|
1290
|
+
type ApprovalRequirementFilterOnly as ApprovalRequirementFilterOnly,
|
|
1210
1291
|
type AttributeFilter as AttributeFilter,
|
|
1211
1292
|
type StringMatcher as StringMatcher,
|
|
1293
|
+
type StringMatcherContains as StringMatcherContains,
|
|
1294
|
+
type StringMatcherEndsWith as StringMatcherEndsWith,
|
|
1295
|
+
type StringMatcherExact as StringMatcherExact,
|
|
1296
|
+
type StringMatcherRegex as StringMatcherRegex,
|
|
1297
|
+
type StringMatcherStartsWith as StringMatcherStartsWith,
|
|
1212
1298
|
type SyncCompleted as SyncCompleted,
|
|
1213
1299
|
type SyncFailed as SyncFailed,
|
|
1214
1300
|
type SyncStarted as SyncStarted,
|
|
@@ -1216,11 +1302,20 @@ export declare namespace Cadenya {
|
|
|
1216
1302
|
type ToolSet as ToolSet,
|
|
1217
1303
|
type ToolSetAdapter as ToolSetAdapter,
|
|
1218
1304
|
type ToolSetAdapterBare as ToolSetAdapterBare,
|
|
1305
|
+
type ToolSetAdapterBareVariant as ToolSetAdapterBareVariant,
|
|
1219
1306
|
type ToolSetAdapterHTTP as ToolSetAdapterHTTP,
|
|
1220
|
-
type
|
|
1307
|
+
type ToolSetAdapterHTTPVariant as ToolSetAdapterHTTPVariant,
|
|
1308
|
+
type ToolSetAdapterMCP as ToolSetAdapterMCP,
|
|
1309
|
+
type ToolSetAdapterMCPVariant as ToolSetAdapterMCPVariant,
|
|
1221
1310
|
type ToolSetAdapterOpenAPI as ToolSetAdapterOpenAPI,
|
|
1311
|
+
type ToolSetAdapterOpenAPIUploadID as ToolSetAdapterOpenAPIUploadID,
|
|
1312
|
+
type ToolSetAdapterOpenAPIURL as ToolSetAdapterOpenAPIURL,
|
|
1313
|
+
type ToolSetAdapterOpenAPIVariant as ToolSetAdapterOpenAPIVariant,
|
|
1222
1314
|
type ToolSetEvent as ToolSetEvent,
|
|
1223
1315
|
type ToolSetEventData as ToolSetEventData,
|
|
1316
|
+
type ToolSetEventDataSyncCompleted as ToolSetEventDataSyncCompleted,
|
|
1317
|
+
type ToolSetEventDataSyncFailed as ToolSetEventDataSyncFailed,
|
|
1318
|
+
type ToolSetEventDataSyncStarted as ToolSetEventDataSyncStarted,
|
|
1224
1319
|
type ToolSetInfo as ToolSetInfo,
|
|
1225
1320
|
type ToolSetSpec as ToolSetSpec,
|
|
1226
1321
|
type ToolSetGetOpenAPISpecResponse as ToolSetGetOpenAPISpecResponse,
|
|
@@ -1280,8 +1375,10 @@ export declare namespace Cadenya {
|
|
|
1280
1375
|
WorkspaceAdmin as WorkspaceAdmin,
|
|
1281
1376
|
type WorkspaceMember as WorkspaceMember,
|
|
1282
1377
|
type WorkspaceAdminCreateParams as WorkspaceAdminCreateParams,
|
|
1378
|
+
type WorkspaceAdminRetrieveParams as WorkspaceAdminRetrieveParams,
|
|
1283
1379
|
type WorkspaceAdminUpdateParams as WorkspaceAdminUpdateParams,
|
|
1284
1380
|
type WorkspaceAdminListParams as WorkspaceAdminListParams,
|
|
1381
|
+
type WorkspaceAdminArchiveParams as WorkspaceAdminArchiveParams,
|
|
1285
1382
|
};
|
|
1286
1383
|
|
|
1287
1384
|
export {
|
|
@@ -41,7 +41,7 @@ export type RequestOptions = {
|
|
|
41
41
|
* The maximum number of times that the client will retry a request in case of a
|
|
42
42
|
* temporary failure, like a network error or a 5XX error from the server.
|
|
43
43
|
*
|
|
44
|
-
* @default
|
|
44
|
+
* @default 0
|
|
45
45
|
*/
|
|
46
46
|
maxRetries?: number;
|
|
47
47
|
|