@cadenya/cadenya 0.67.0 → 0.69.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/client.d.mts +28 -67
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -67
- package/client.d.ts.map +1 -1
- package/client.js +25 -64
- package/client.js.map +1 -1
- package/client.mjs +25 -64
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +34 -33
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +34 -33
- 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 +9 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +9 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +1 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +2 -7
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +2 -7
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +1 -6
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +1 -6
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +18 -21
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +18 -21
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +2 -6
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +2 -6
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +48 -45
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +48 -45
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +3 -0
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +3 -0
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +4 -9
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +4 -9
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +1 -6
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +1 -6
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys/access.d.mts +47 -0
- package/resources/api-keys/access.d.mts.map +1 -0
- package/resources/api-keys/access.d.ts +47 -0
- package/resources/api-keys/access.d.ts.map +1 -0
- package/resources/api-keys/access.js +41 -0
- package/resources/api-keys/access.js.map +1 -0
- package/resources/api-keys/access.mjs +37 -0
- package/resources/api-keys/access.mjs.map +1 -0
- package/resources/api-keys/api-keys.d.mts +213 -0
- package/resources/api-keys/api-keys.d.mts.map +1 -0
- package/resources/api-keys/api-keys.d.ts +213 -0
- package/resources/api-keys/api-keys.d.ts.map +1 -0
- package/resources/api-keys/api-keys.js +65 -0
- package/resources/api-keys/api-keys.js.map +1 -0
- package/resources/api-keys/api-keys.mjs +60 -0
- package/resources/api-keys/api-keys.mjs.map +1 -0
- package/resources/api-keys/index.d.mts +3 -0
- package/resources/api-keys/index.d.mts.map +1 -0
- package/resources/api-keys/index.d.ts +3 -0
- package/resources/api-keys/index.d.ts.map +1 -0
- package/resources/api-keys/index.js +9 -0
- package/resources/api-keys/index.js.map +1 -0
- package/resources/api-keys/index.mjs +4 -0
- package/resources/api-keys/index.mjs.map +1 -0
- package/resources/api-keys.d.mts +1 -154
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -154
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +2 -62
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +1 -60
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +11 -18
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +3 -8
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +23 -32
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +23 -32
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +3 -8
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +3 -8
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +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 +14 -28
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +14 -28
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +4 -10
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +4 -10
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +8 -20
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +8 -20
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +4 -10
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +4 -10
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +5 -9
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +5 -9
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -7
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -7
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +5 -5
- package/resources/objectives/feedback.d.ts +5 -5
- package/resources/objectives/objectives.d.mts +22 -31
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +22 -31
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +1 -4
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +1 -4
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tool-calls.d.mts +8 -11
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +8 -11
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tools.d.mts +1 -1
- package/resources/objectives/tools.d.ts +1 -1
- package/resources/tool-sets/tool-sets.d.mts +31 -35
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +31 -35
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +4 -8
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +4 -8
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +16 -22
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +16 -22
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +4 -8
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +4 -8
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -17
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -17
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +3 -7
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +3 -7
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +7 -7
- package/resources/workspace-secrets.d.ts +7 -7
- 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 +36 -79
- package/src/resources/account.ts +35 -32
- package/src/resources/agents/agents.ts +9 -13
- package/src/resources/agents/feedback.ts +2 -7
- package/src/resources/agents/schedules.ts +18 -21
- package/src/resources/agents/variations.ts +48 -45
- package/src/resources/agents/webhook-deliveries.ts +4 -9
- package/src/resources/api-keys/access.ts +79 -0
- package/src/resources/api-keys/api-keys.ts +282 -0
- package/src/resources/api-keys/index.ts +13 -0
- package/src/resources/api-keys.ts +1 -221
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +11 -18
- package/src/resources/bulk-workspace-resources/results.ts +23 -32
- package/src/resources/index.ts +2 -4
- package/src/resources/memory-layers/entries.ts +14 -28
- package/src/resources/memory-layers/memory-layers.ts +8 -20
- package/src/resources/models.ts +5 -9
- package/src/resources/objectives/feedback.ts +5 -5
- package/src/resources/objectives/objectives.ts +22 -31
- package/src/resources/objectives/tasks.ts +1 -4
- package/src/resources/objectives/tool-calls.ts +8 -11
- package/src/resources/objectives/tools.ts +1 -1
- package/src/resources/tool-sets/tool-sets.ts +31 -35
- package/src/resources/tool-sets/tools.ts +16 -22
- package/src/resources/uploads.ts +13 -17
- package/src/resources/workspace-secrets.ts +7 -7
- 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
package/resources/api-keys.d.mts
CHANGED
|
@@ -1,155 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as AccountAPI from "./account.mjs";
|
|
3
|
-
import * as Shared from "./shared.mjs";
|
|
4
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
6
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* APIKeyService manages workspace-scoped API Keys.
|
|
9
|
-
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Workspace-level operations
|
|
13
|
-
*/
|
|
14
|
-
export declare class APIKeys extends APIResource {
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new API key in the workspace.
|
|
17
|
-
*/
|
|
18
|
-
create(workspaceID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves an API key by ID from the workspace
|
|
21
|
-
*/
|
|
22
|
-
retrieve(id: string, params: APIKeyRetrieveParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
23
|
-
/**
|
|
24
|
-
* Updates an API key in the workspace
|
|
25
|
-
*/
|
|
26
|
-
update(id: string, params: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
27
|
-
/**
|
|
28
|
-
* Lists all API keys in the workspace
|
|
29
|
-
*/
|
|
30
|
-
list(workspaceID: string, query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysCursorPagination, APIKey>;
|
|
31
|
-
/**
|
|
32
|
-
* Deletes an API key from the workspace
|
|
33
|
-
*/
|
|
34
|
-
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Rotates an API Key and returns a new token. All previous API Key tokens in use
|
|
37
|
-
* will be invalidated.
|
|
38
|
-
*/
|
|
39
|
-
rotate(id: string, params: APIKeyRotateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
40
|
-
}
|
|
41
|
-
export type APIKeysCursorPagination = CursorPagination<APIKey>;
|
|
42
|
-
/**
|
|
43
|
-
* APIKey represents a workspace-scoped API key. Each API key belongs to exactly
|
|
44
|
-
* one workspace, ensuring workspace isolation. Authentication is handled via
|
|
45
|
-
* Cadenya-issued JWTs signed with the key's own signing secret.
|
|
46
|
-
*/
|
|
47
|
-
export interface APIKey {
|
|
48
|
-
/**
|
|
49
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
50
|
-
*/
|
|
51
|
-
metadata: Shared.ResourceMetadata;
|
|
52
|
-
/**
|
|
53
|
-
* APIKeySpec contains the API Key-specific fields
|
|
54
|
-
*/
|
|
55
|
-
spec: APIKeySpec;
|
|
56
|
-
info?: APIKeyInfo;
|
|
57
|
-
}
|
|
58
|
-
export interface APIKeyInfo {
|
|
59
|
-
/**
|
|
60
|
-
* Profile represents a human user at the account level. Profiles are
|
|
61
|
-
* account-scoped resources that can be associated with multiple workspaces through
|
|
62
|
-
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
63
|
-
*/
|
|
64
|
-
createdBy?: AccountAPI.Profile;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* APIKeySpec contains the API Key-specific fields
|
|
68
|
-
*/
|
|
69
|
-
export interface APIKeySpec {
|
|
70
|
-
/**
|
|
71
|
-
* The actual token value (only returned on creation and rotation, read-only)
|
|
72
|
-
*/
|
|
73
|
-
token?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Description of what this API Key is used for
|
|
76
|
-
*/
|
|
77
|
-
description?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface APIKeyCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
82
|
-
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
83
|
-
* profile_id, created_at) are excluded since they are set by the server.
|
|
84
|
-
*/
|
|
85
|
-
metadata: Shared.CreateResourceMetadata;
|
|
86
|
-
/**
|
|
87
|
-
* APIKeySpec contains the API Key-specific fields
|
|
88
|
-
*/
|
|
89
|
-
spec: APIKeySpec;
|
|
90
|
-
}
|
|
91
|
-
export interface APIKeyRetrieveParams {
|
|
92
|
-
/**
|
|
93
|
-
* Workspace ID (from path).
|
|
94
|
-
*/
|
|
95
|
-
workspaceId: string;
|
|
96
|
-
}
|
|
97
|
-
export interface APIKeyUpdateParams {
|
|
98
|
-
/**
|
|
99
|
-
* Path param: Workspace ID (from path).
|
|
100
|
-
*/
|
|
101
|
-
workspaceId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
104
|
-
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
105
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
106
|
-
* server.
|
|
107
|
-
*/
|
|
108
|
-
metadata?: Shared.UpdateResourceMetadata;
|
|
109
|
-
/**
|
|
110
|
-
* Body param: APIKeySpec contains the API Key-specific fields
|
|
111
|
-
*/
|
|
112
|
-
spec?: APIKeySpec;
|
|
113
|
-
/**
|
|
114
|
-
* Body param: Fields to update
|
|
115
|
-
*/
|
|
116
|
-
updateMask?: string;
|
|
117
|
-
}
|
|
118
|
-
export interface APIKeyListParams extends CursorPaginationParams {
|
|
119
|
-
/**
|
|
120
|
-
* Filter by bundle_key — return only resources owned by this bundle.
|
|
121
|
-
*/
|
|
122
|
-
bundleKey?: string;
|
|
123
|
-
/**
|
|
124
|
-
* When set to true you may use more of your alloted API rate-limit
|
|
125
|
-
*/
|
|
126
|
-
includeInfo?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Filter expression (query param: prefix)
|
|
129
|
-
*/
|
|
130
|
-
prefix?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Free-form search query
|
|
133
|
-
*/
|
|
134
|
-
query?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Sort order for results (asc or desc by creation time)
|
|
137
|
-
*/
|
|
138
|
-
sortOrder?: string;
|
|
139
|
-
}
|
|
140
|
-
export interface APIKeyDeleteParams {
|
|
141
|
-
/**
|
|
142
|
-
* Workspace ID (from path).
|
|
143
|
-
*/
|
|
144
|
-
workspaceId: string;
|
|
145
|
-
}
|
|
146
|
-
export interface APIKeyRotateParams {
|
|
147
|
-
/**
|
|
148
|
-
* Workspace ID (from path).
|
|
149
|
-
*/
|
|
150
|
-
workspaceId: string;
|
|
151
|
-
}
|
|
152
|
-
export declare namespace APIKeys {
|
|
153
|
-
export { type APIKey as APIKey, type APIKeyInfo as APIKeyInfo, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyRetrieveParams as APIKeyRetrieveParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, type APIKeyDeleteParams as APIKeyDeleteParams, type APIKeyRotateParams as APIKeyRotateParams, };
|
|
154
|
-
}
|
|
1
|
+
export * from "./api-keys/index.mjs";
|
|
155
2
|
//# sourceMappingURL=api-keys.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":""}
|
package/resources/api-keys.d.ts
CHANGED
|
@@ -1,155 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as AccountAPI from "./account.js";
|
|
3
|
-
import * as Shared from "./shared.js";
|
|
4
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
|
|
6
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
7
|
-
/**
|
|
8
|
-
* APIKeyService manages workspace-scoped API Keys.
|
|
9
|
-
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
10
|
-
*
|
|
11
|
-
* Authentication: Bearer token (JWT)
|
|
12
|
-
* Scope: Workspace-level operations
|
|
13
|
-
*/
|
|
14
|
-
export declare class APIKeys extends APIResource {
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new API key in the workspace.
|
|
17
|
-
*/
|
|
18
|
-
create(workspaceID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves an API key by ID from the workspace
|
|
21
|
-
*/
|
|
22
|
-
retrieve(id: string, params: APIKeyRetrieveParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
23
|
-
/**
|
|
24
|
-
* Updates an API key in the workspace
|
|
25
|
-
*/
|
|
26
|
-
update(id: string, params: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
27
|
-
/**
|
|
28
|
-
* Lists all API keys in the workspace
|
|
29
|
-
*/
|
|
30
|
-
list(workspaceID: string, query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysCursorPagination, APIKey>;
|
|
31
|
-
/**
|
|
32
|
-
* Deletes an API key from the workspace
|
|
33
|
-
*/
|
|
34
|
-
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Rotates an API Key and returns a new token. All previous API Key tokens in use
|
|
37
|
-
* will be invalidated.
|
|
38
|
-
*/
|
|
39
|
-
rotate(id: string, params: APIKeyRotateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
40
|
-
}
|
|
41
|
-
export type APIKeysCursorPagination = CursorPagination<APIKey>;
|
|
42
|
-
/**
|
|
43
|
-
* APIKey represents a workspace-scoped API key. Each API key belongs to exactly
|
|
44
|
-
* one workspace, ensuring workspace isolation. Authentication is handled via
|
|
45
|
-
* Cadenya-issued JWTs signed with the key's own signing secret.
|
|
46
|
-
*/
|
|
47
|
-
export interface APIKey {
|
|
48
|
-
/**
|
|
49
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
50
|
-
*/
|
|
51
|
-
metadata: Shared.ResourceMetadata;
|
|
52
|
-
/**
|
|
53
|
-
* APIKeySpec contains the API Key-specific fields
|
|
54
|
-
*/
|
|
55
|
-
spec: APIKeySpec;
|
|
56
|
-
info?: APIKeyInfo;
|
|
57
|
-
}
|
|
58
|
-
export interface APIKeyInfo {
|
|
59
|
-
/**
|
|
60
|
-
* Profile represents a human user at the account level. Profiles are
|
|
61
|
-
* account-scoped resources that can be associated with multiple workspaces through
|
|
62
|
-
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
63
|
-
*/
|
|
64
|
-
createdBy?: AccountAPI.Profile;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* APIKeySpec contains the API Key-specific fields
|
|
68
|
-
*/
|
|
69
|
-
export interface APIKeySpec {
|
|
70
|
-
/**
|
|
71
|
-
* The actual token value (only returned on creation and rotation, read-only)
|
|
72
|
-
*/
|
|
73
|
-
token?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Description of what this API Key is used for
|
|
76
|
-
*/
|
|
77
|
-
description?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface APIKeyCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
82
|
-
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
83
|
-
* profile_id, created_at) are excluded since they are set by the server.
|
|
84
|
-
*/
|
|
85
|
-
metadata: Shared.CreateResourceMetadata;
|
|
86
|
-
/**
|
|
87
|
-
* APIKeySpec contains the API Key-specific fields
|
|
88
|
-
*/
|
|
89
|
-
spec: APIKeySpec;
|
|
90
|
-
}
|
|
91
|
-
export interface APIKeyRetrieveParams {
|
|
92
|
-
/**
|
|
93
|
-
* Workspace ID (from path).
|
|
94
|
-
*/
|
|
95
|
-
workspaceId: string;
|
|
96
|
-
}
|
|
97
|
-
export interface APIKeyUpdateParams {
|
|
98
|
-
/**
|
|
99
|
-
* Path param: Workspace ID (from path).
|
|
100
|
-
*/
|
|
101
|
-
workspaceId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
104
|
-
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
105
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
106
|
-
* server.
|
|
107
|
-
*/
|
|
108
|
-
metadata?: Shared.UpdateResourceMetadata;
|
|
109
|
-
/**
|
|
110
|
-
* Body param: APIKeySpec contains the API Key-specific fields
|
|
111
|
-
*/
|
|
112
|
-
spec?: APIKeySpec;
|
|
113
|
-
/**
|
|
114
|
-
* Body param: Fields to update
|
|
115
|
-
*/
|
|
116
|
-
updateMask?: string;
|
|
117
|
-
}
|
|
118
|
-
export interface APIKeyListParams extends CursorPaginationParams {
|
|
119
|
-
/**
|
|
120
|
-
* Filter by bundle_key — return only resources owned by this bundle.
|
|
121
|
-
*/
|
|
122
|
-
bundleKey?: string;
|
|
123
|
-
/**
|
|
124
|
-
* When set to true you may use more of your alloted API rate-limit
|
|
125
|
-
*/
|
|
126
|
-
includeInfo?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Filter expression (query param: prefix)
|
|
129
|
-
*/
|
|
130
|
-
prefix?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Free-form search query
|
|
133
|
-
*/
|
|
134
|
-
query?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Sort order for results (asc or desc by creation time)
|
|
137
|
-
*/
|
|
138
|
-
sortOrder?: string;
|
|
139
|
-
}
|
|
140
|
-
export interface APIKeyDeleteParams {
|
|
141
|
-
/**
|
|
142
|
-
* Workspace ID (from path).
|
|
143
|
-
*/
|
|
144
|
-
workspaceId: string;
|
|
145
|
-
}
|
|
146
|
-
export interface APIKeyRotateParams {
|
|
147
|
-
/**
|
|
148
|
-
* Workspace ID (from path).
|
|
149
|
-
*/
|
|
150
|
-
workspaceId: string;
|
|
151
|
-
}
|
|
152
|
-
export declare namespace APIKeys {
|
|
153
|
-
export { type APIKey as APIKey, type APIKeyInfo as APIKeyInfo, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyRetrieveParams as APIKeyRetrieveParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, type APIKeyDeleteParams as APIKeyDeleteParams, type APIKeyRotateParams as APIKeyRotateParams, };
|
|
154
|
-
}
|
|
1
|
+
export * from "./api-keys/index.js";
|
|
155
2
|
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":""}
|
package/resources/api-keys.js
CHANGED
|
@@ -1,66 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const pagination_1 = require("../core/pagination.js");
|
|
7
|
-
const headers_1 = require("../internal/headers.js");
|
|
8
|
-
const path_1 = require("../internal/utils/path.js");
|
|
9
|
-
/**
|
|
10
|
-
* APIKeyService manages workspace-scoped API Keys.
|
|
11
|
-
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
12
|
-
*
|
|
13
|
-
* Authentication: Bearer token (JWT)
|
|
14
|
-
* Scope: Workspace-level operations
|
|
15
|
-
*/
|
|
16
|
-
class APIKeys extends resource_1.APIResource {
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new API key in the workspace.
|
|
19
|
-
*/
|
|
20
|
-
create(workspaceID, body, options) {
|
|
21
|
-
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceID}/api_keys`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves an API key by ID from the workspace
|
|
25
|
-
*/
|
|
26
|
-
retrieve(id, params, options) {
|
|
27
|
-
const { workspaceId } = params;
|
|
28
|
-
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/api_keys/${id}`, options);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Updates an API key in the workspace
|
|
32
|
-
*/
|
|
33
|
-
update(id, params, options) {
|
|
34
|
-
const { workspaceId, ...body } = params;
|
|
35
|
-
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/api_keys/${id}`, { body, ...options });
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Lists all API keys in the workspace
|
|
39
|
-
*/
|
|
40
|
-
list(workspaceID, query = {}, options) {
|
|
41
|
-
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceID}/api_keys`, (pagination_1.CursorPagination), {
|
|
42
|
-
query,
|
|
43
|
-
...options,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Deletes an API key from the workspace
|
|
48
|
-
*/
|
|
49
|
-
delete(id, params, options) {
|
|
50
|
-
const { workspaceId } = params;
|
|
51
|
-
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/api_keys/${id}`, {
|
|
52
|
-
...options,
|
|
53
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Rotates an API Key and returns a new token. All previous API Key tokens in use
|
|
58
|
-
* will be invalidated.
|
|
59
|
-
*/
|
|
60
|
-
rotate(id, params, options) {
|
|
61
|
-
const { workspaceId } = params;
|
|
62
|
-
return this._client.put((0, path_1.path) `/v1/workspaces/${workspaceId}/api_keys/${id}/rotate`, options);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.APIKeys = APIKeys;
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./api-keys/index.js"), exports);
|
|
66
6
|
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
package/resources/api-keys.mjs
CHANGED
|
@@ -1,62 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { CursorPagination } from "../core/pagination.mjs";
|
|
4
|
-
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
-
import { path } from "../internal/utils/path.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* APIKeyService manages workspace-scoped API Keys.
|
|
8
|
-
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
9
|
-
*
|
|
10
|
-
* Authentication: Bearer token (JWT)
|
|
11
|
-
* Scope: Workspace-level operations
|
|
12
|
-
*/
|
|
13
|
-
export class APIKeys extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new API key in the workspace.
|
|
16
|
-
*/
|
|
17
|
-
create(workspaceID, body, options) {
|
|
18
|
-
return this._client.post(path `/v1/workspaces/${workspaceID}/api_keys`, { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves an API key by ID from the workspace
|
|
22
|
-
*/
|
|
23
|
-
retrieve(id, params, options) {
|
|
24
|
-
const { workspaceId } = params;
|
|
25
|
-
return this._client.get(path `/v1/workspaces/${workspaceId}/api_keys/${id}`, options);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Updates an API key in the workspace
|
|
29
|
-
*/
|
|
30
|
-
update(id, params, options) {
|
|
31
|
-
const { workspaceId, ...body } = params;
|
|
32
|
-
return this._client.patch(path `/v1/workspaces/${workspaceId}/api_keys/${id}`, { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Lists all API keys in the workspace
|
|
36
|
-
*/
|
|
37
|
-
list(workspaceID, query = {}, options) {
|
|
38
|
-
return this._client.getAPIList(path `/v1/workspaces/${workspaceID}/api_keys`, (CursorPagination), {
|
|
39
|
-
query,
|
|
40
|
-
...options,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Deletes an API key from the workspace
|
|
45
|
-
*/
|
|
46
|
-
delete(id, params, options) {
|
|
47
|
-
const { workspaceId } = params;
|
|
48
|
-
return this._client.delete(path `/v1/workspaces/${workspaceId}/api_keys/${id}`, {
|
|
49
|
-
...options,
|
|
50
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Rotates an API Key and returns a new token. All previous API Key tokens in use
|
|
55
|
-
* will be invalidated.
|
|
56
|
-
*/
|
|
57
|
-
rotate(id, params, options) {
|
|
58
|
-
const { workspaceId } = params;
|
|
59
|
-
return this._client.put(path `/v1/workspaces/${workspaceId}/api_keys/${id}/rotate`, options);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
2
|
+
export * from "./api-keys/index.mjs";
|
|
62
3
|
//# sourceMappingURL=api-keys.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -13,14 +13,9 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
13
13
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
14
14
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
20
|
-
* for the full design.
|
|
21
|
-
*
|
|
22
|
-
* Authentication: Bearer token (JWT)
|
|
23
|
-
* Scope: Workspace-level operations
|
|
16
|
+
* Apply a declarative bundle of workspace resources — tool sets, memory
|
|
17
|
+
* layers, agents, variations, assignments, and schedules — in a single
|
|
18
|
+
* asynchronous operation.
|
|
24
19
|
*/
|
|
25
20
|
export declare class BulkWorkspaceResources extends APIResource {
|
|
26
21
|
results: ResultsAPI.Results;
|
|
@@ -86,16 +81,14 @@ export interface AgentVariationEntry {
|
|
|
86
81
|
[key: string]: string;
|
|
87
82
|
};
|
|
88
83
|
/**
|
|
89
|
-
* Reconciled list
|
|
90
|
-
* memory-layer-assignment cap.
|
|
84
|
+
* Reconciled list of memory layer assignments. Up to 10 entries.
|
|
91
85
|
*/
|
|
92
86
|
memoryLayers?: Array<VariationMemoryLayerEntry>;
|
|
93
87
|
}
|
|
94
88
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* lifecycle state in `status`, and aggregate counts in `info`.
|
|
89
|
+
* The operation resource produced by a call to BulkWorkspaceResources.Apply. It
|
|
90
|
+
* carries the input bundle in `data`, the lifecycle state in `status`, and
|
|
91
|
+
* aggregate counts in `info`.
|
|
99
92
|
*/
|
|
100
93
|
export interface BulkWorkspaceApply {
|
|
101
94
|
data: BulkWorkspaceApplyData;
|
|
@@ -155,9 +148,9 @@ export interface BulkWorkspaceApplyData {
|
|
|
155
148
|
export interface BulkWorkspaceApplyInfo {
|
|
156
149
|
completedAt?: string;
|
|
157
150
|
/**
|
|
158
|
-
*
|
|
159
|
-
* account-scoped
|
|
160
|
-
*
|
|
151
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
152
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
153
|
+
* workspaces.
|
|
161
154
|
*/
|
|
162
155
|
createdBy?: AccountAPI.Profile;
|
|
163
156
|
createdCount?: number;
|
|
@@ -276,7 +269,7 @@ export interface VariationMemoryLayerEntry {
|
|
|
276
269
|
}
|
|
277
270
|
export interface BulkWorkspaceResourceRetrieveParams {
|
|
278
271
|
/**
|
|
279
|
-
* Workspace ID
|
|
272
|
+
* Workspace ID.
|
|
280
273
|
*/
|
|
281
274
|
workspaceId: string;
|
|
282
275
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-workspace-resources.d.mts","sourceRoot":"","sources":["../../src/resources/bulk-workspace-resources/bulk-workspace-resources.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,SAAS;OACd,KAAK,YAAY;OACjB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wCAAwC,EACxC,gDAAgD,EAChD,iDAAiD,EACjD,8CAA8C,EAC9C,8CAA8C,EAC9C,uCAAuC,EACvC,0CAA0C,EAC1C,sDAAsD,EACtD,uDAAuD,EACvD,yCAAyC,EACzC,gBAAgB,EAChB,OAAO,EACR;OACM,KAAK,eAAe;OACpB,KAAK,WAAW;OAChB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"bulk-workspace-resources.d.mts","sourceRoot":"","sources":["../../src/resources/bulk-workspace-resources/bulk-workspace-resources.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,SAAS;OACd,KAAK,YAAY;OACjB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wCAAwC,EACxC,gDAAgD,EAChD,iDAAiD,EACjD,8CAA8C,EAC9C,8CAA8C,EAC9C,uCAAuC,EACvC,0CAA0C,EAC1C,sDAAsD,EACtD,uDAAuD,EACvD,yCAAyC,EACzC,gBAAgB,EAChB,OAAO,EACR;OACM,KAAK,eAAe;OACpB,KAAK,WAAW;OAChB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAGzB;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mCAAmC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAKjC;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,kBAAkB,CAAC;IAQxE;;;OAGG;IACH,KAAK,CACH,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kB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oCAAoC,IAAI,oCAAoC,EACjF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gDAAgD,IAAI,gDAAgD,EACzG,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,sDAAsD,IAAI,sDAAsD,EACrH,KAAK,uDAAuD,IAAI,uDAAuD,EACvH,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -13,14 +13,9 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
13
13
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
14
14
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
20
|
-
* for the full design.
|
|
21
|
-
*
|
|
22
|
-
* Authentication: Bearer token (JWT)
|
|
23
|
-
* Scope: Workspace-level operations
|
|
16
|
+
* Apply a declarative bundle of workspace resources — tool sets, memory
|
|
17
|
+
* layers, agents, variations, assignments, and schedules — in a single
|
|
18
|
+
* asynchronous operation.
|
|
24
19
|
*/
|
|
25
20
|
export declare class BulkWorkspaceResources extends APIResource {
|
|
26
21
|
results: ResultsAPI.Results;
|
|
@@ -86,16 +81,14 @@ export interface AgentVariationEntry {
|
|
|
86
81
|
[key: string]: string;
|
|
87
82
|
};
|
|
88
83
|
/**
|
|
89
|
-
* Reconciled list
|
|
90
|
-
* memory-layer-assignment cap.
|
|
84
|
+
* Reconciled list of memory layer assignments. Up to 10 entries.
|
|
91
85
|
*/
|
|
92
86
|
memoryLayers?: Array<VariationMemoryLayerEntry>;
|
|
93
87
|
}
|
|
94
88
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* lifecycle state in `status`, and aggregate counts in `info`.
|
|
89
|
+
* The operation resource produced by a call to BulkWorkspaceResources.Apply. It
|
|
90
|
+
* carries the input bundle in `data`, the lifecycle state in `status`, and
|
|
91
|
+
* aggregate counts in `info`.
|
|
99
92
|
*/
|
|
100
93
|
export interface BulkWorkspaceApply {
|
|
101
94
|
data: BulkWorkspaceApplyData;
|
|
@@ -155,9 +148,9 @@ export interface BulkWorkspaceApplyData {
|
|
|
155
148
|
export interface BulkWorkspaceApplyInfo {
|
|
156
149
|
completedAt?: string;
|
|
157
150
|
/**
|
|
158
|
-
*
|
|
159
|
-
* account-scoped
|
|
160
|
-
*
|
|
151
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
152
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
153
|
+
* workspaces.
|
|
161
154
|
*/
|
|
162
155
|
createdBy?: AccountAPI.Profile;
|
|
163
156
|
createdCount?: number;
|
|
@@ -276,7 +269,7 @@ export interface VariationMemoryLayerEntry {
|
|
|
276
269
|
}
|
|
277
270
|
export interface BulkWorkspaceResourceRetrieveParams {
|
|
278
271
|
/**
|
|
279
|
-
* Workspace ID
|
|
272
|
+
* Workspace ID.
|
|
280
273
|
*/
|
|
281
274
|
workspaceId: string;
|
|
282
275
|
}
|