cadenya 0.34.0 → 0.36.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 +23 -0
- package/client.d.mts +5 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -7
- package/client.d.ts.map +1 -1
- package/client.js +3 -5
- package/client.js.map +1 -1
- package/client.mjs +3 -5
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +2 -2
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +2 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.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/variations.d.mts +26 -28
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +26 -28
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/api-keys.d.mts +31 -98
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +31 -98
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +8 -11
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +8 -11
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +33 -5
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +33 -5
- 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/tool-sets/index.d.mts +1 -1
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +1 -1
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +2 -2
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +2 -2
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +13 -15
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +13 -15
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/src/client.ts +5 -5
- package/src/resources/agents/agents.ts +2 -0
- package/src/resources/agents/index.ts +1 -0
- package/src/resources/agents/variations.ts +30 -31
- package/src/resources/api-keys.ts +31 -101
- package/src/resources/index.ts +1 -0
- package/src/resources/objectives/objectives.ts +36 -5
- package/src/resources/tool-sets/index.ts +1 -0
- package/src/resources/tool-sets/tool-sets.ts +2 -0
- package/src/resources/tool-sets/tools.ts +14 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,8CAkBsB;AAjBpB,wGAAA,UAAU,OAAA;AAkBZ,8DAK8B;AAJ5B,uHAAA,iBAAiB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GASP;OACM,EACL,UAAU,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GASP;OACM,EACL,UAAU,GAiBX;OACM,EACL,iBAAiB,GAIlB"}
|
|
@@ -41,36 +41,34 @@ export interface AgentVariation {
|
|
|
41
41
|
/**
|
|
42
42
|
* AgentVariationInfo provides read-only summary information about a variation
|
|
43
43
|
*/
|
|
44
|
-
info?:
|
|
44
|
+
info?: AgentVariationInfo;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* AgentVariationInfo provides read-only summary information about a variation
|
|
48
|
+
*/
|
|
49
|
+
export interface AgentVariationInfo {
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
51
|
+
* Profile represents a human user at the account level. Profiles are
|
|
52
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
53
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
54
|
+
*/
|
|
55
|
+
createdBy?: Shared.Profile;
|
|
56
|
+
/**
|
|
57
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
58
|
+
*/
|
|
59
|
+
model?: Shared.ResourceMetadata;
|
|
60
|
+
/**
|
|
61
|
+
* Number of sub-agents assigned to this variation
|
|
62
|
+
*/
|
|
63
|
+
subAgentCount?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Number of individual tools assigned to this variation
|
|
66
|
+
*/
|
|
67
|
+
toolCount?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Number of tool sets assigned to this variation
|
|
49
70
|
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Profile represents a human user at the account level. Profiles are
|
|
53
|
-
* account-scoped resources that can be associated with multiple workspaces through
|
|
54
|
-
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
55
|
-
*/
|
|
56
|
-
createdBy?: Shared.Profile;
|
|
57
|
-
/**
|
|
58
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
59
|
-
*/
|
|
60
|
-
model?: Shared.ResourceMetadata;
|
|
61
|
-
/**
|
|
62
|
-
* Number of sub-agents assigned to this variation
|
|
63
|
-
*/
|
|
64
|
-
subAgentCount?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Number of individual tools assigned to this variation
|
|
67
|
-
*/
|
|
68
|
-
toolCount?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Number of tool sets assigned to this variation
|
|
71
|
-
*/
|
|
72
|
-
toolSetCount?: number;
|
|
73
|
-
}
|
|
71
|
+
toolSetCount?: number;
|
|
74
72
|
}
|
|
75
73
|
/**
|
|
76
74
|
* AgentVariationSpec defines the operational configuration for a variation
|
|
@@ -272,6 +270,6 @@ export interface VariationDeleteParams {
|
|
|
272
270
|
agentId: string;
|
|
273
271
|
}
|
|
274
272
|
export declare namespace Variations {
|
|
275
|
-
export { type AgentVariation as AgentVariation, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
273
|
+
export { type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
276
274
|
}
|
|
277
275
|
//# sourceMappingURL=variations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variations.d.mts","sourceRoot":"","sources":["../../src/resources/agents/variations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1G;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,C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IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -41,36 +41,34 @@ export interface AgentVariation {
|
|
|
41
41
|
/**
|
|
42
42
|
* AgentVariationInfo provides read-only summary information about a variation
|
|
43
43
|
*/
|
|
44
|
-
info?:
|
|
44
|
+
info?: AgentVariationInfo;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* AgentVariationInfo provides read-only summary information about a variation
|
|
48
|
+
*/
|
|
49
|
+
export interface AgentVariationInfo {
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
51
|
+
* Profile represents a human user at the account level. Profiles are
|
|
52
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
53
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
54
|
+
*/
|
|
55
|
+
createdBy?: Shared.Profile;
|
|
56
|
+
/**
|
|
57
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
58
|
+
*/
|
|
59
|
+
model?: Shared.ResourceMetadata;
|
|
60
|
+
/**
|
|
61
|
+
* Number of sub-agents assigned to this variation
|
|
62
|
+
*/
|
|
63
|
+
subAgentCount?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Number of individual tools assigned to this variation
|
|
66
|
+
*/
|
|
67
|
+
toolCount?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Number of tool sets assigned to this variation
|
|
49
70
|
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Profile represents a human user at the account level. Profiles are
|
|
53
|
-
* account-scoped resources that can be associated with multiple workspaces through
|
|
54
|
-
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
55
|
-
*/
|
|
56
|
-
createdBy?: Shared.Profile;
|
|
57
|
-
/**
|
|
58
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
59
|
-
*/
|
|
60
|
-
model?: Shared.ResourceMetadata;
|
|
61
|
-
/**
|
|
62
|
-
* Number of sub-agents assigned to this variation
|
|
63
|
-
*/
|
|
64
|
-
subAgentCount?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Number of individual tools assigned to this variation
|
|
67
|
-
*/
|
|
68
|
-
toolCount?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Number of tool sets assigned to this variation
|
|
71
|
-
*/
|
|
72
|
-
toolSetCount?: number;
|
|
73
|
-
}
|
|
71
|
+
toolSetCount?: number;
|
|
74
72
|
}
|
|
75
73
|
/**
|
|
76
74
|
* AgentVariationSpec defines the operational configuration for a variation
|
|
@@ -272,6 +270,6 @@ export interface VariationDeleteParams {
|
|
|
272
270
|
agentId: string;
|
|
273
271
|
}
|
|
274
272
|
export declare namespace Variations {
|
|
275
|
-
export { type AgentVariation as AgentVariation, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
273
|
+
export { type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
276
274
|
}
|
|
277
275
|
//# sourceMappingURL=variations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variations.d.ts","sourceRoot":"","sources":["../../src/resources/agents/variations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1G;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC;IAK7B;;OAEG;IACH,MAAM,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A2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/api-keys.d.mts
CHANGED
|
@@ -4,34 +4,31 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
4
4
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* APIKeyService manages API Keys
|
|
8
|
-
* API
|
|
9
|
-
* workspaces through the Actor model. This allows a single API Key to have
|
|
10
|
-
* cross-workspace access.
|
|
7
|
+
* APIKeyService manages workspace-scoped API Keys.
|
|
8
|
+
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
11
9
|
*
|
|
12
10
|
* Authentication: Bearer token (JWT)
|
|
13
|
-
* Scope:
|
|
11
|
+
* Scope: Workspace-level operations
|
|
14
12
|
*/
|
|
15
13
|
export declare class APIKeys extends APIResource {
|
|
16
14
|
/**
|
|
17
|
-
* Creates a new API key
|
|
18
|
-
* with workspaces via the Actor model.
|
|
15
|
+
* Creates a new API key in the workspace.
|
|
19
16
|
*/
|
|
20
17
|
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
21
18
|
/**
|
|
22
|
-
* Retrieves an API key by ID from the
|
|
19
|
+
* Retrieves an API key by ID from the workspace
|
|
23
20
|
*/
|
|
24
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<APIKey>;
|
|
25
22
|
/**
|
|
26
|
-
* Updates an API key
|
|
23
|
+
* Updates an API key in the workspace
|
|
27
24
|
*/
|
|
28
25
|
update(id: string, body: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
29
26
|
/**
|
|
30
|
-
* Lists all API keys in the
|
|
27
|
+
* Lists all API keys in the workspace
|
|
31
28
|
*/
|
|
32
29
|
list(query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysCursorPagination, APIKey>;
|
|
33
30
|
/**
|
|
34
|
-
* Deletes an API key from the
|
|
31
|
+
* Deletes an API key from the workspace
|
|
35
32
|
*/
|
|
36
33
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
37
34
|
/**
|
|
@@ -42,100 +39,61 @@ export declare class APIKeys extends APIResource {
|
|
|
42
39
|
}
|
|
43
40
|
export type APIKeysCursorPagination = CursorPagination<APIKey>;
|
|
44
41
|
/**
|
|
45
|
-
* APIKey represents a
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* A single API Key can now have actors in multiple workspaces, allowing for
|
|
49
|
-
* cross-workspace service accounts.
|
|
42
|
+
* APIKey represents a workspace-scoped API key. Each API key belongs to exactly
|
|
43
|
+
* one workspace, ensuring workspace isolation. Authentication is handled via
|
|
44
|
+
* Cadenya-issued JWTs signed with the key's own signing secret.
|
|
50
45
|
*/
|
|
51
46
|
export interface APIKey {
|
|
52
47
|
/**
|
|
53
|
-
*
|
|
54
|
-
* account but not to a workspace.
|
|
48
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
55
49
|
*/
|
|
56
|
-
metadata: Shared.
|
|
50
|
+
metadata: Shared.ResourceMetadata;
|
|
57
51
|
/**
|
|
58
52
|
* APIKeySpec contains the API Key-specific fields
|
|
59
53
|
*/
|
|
60
54
|
spec: APIKeySpec;
|
|
61
|
-
info?:
|
|
55
|
+
info?: APIKeyInfo;
|
|
62
56
|
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
createdBy?: Shared.Profile;
|
|
71
|
-
/**
|
|
72
|
-
* AccountResourceMetadata is used to represent a resource that is associated to an
|
|
73
|
-
* account but not to a workspace.
|
|
74
|
-
*/
|
|
75
|
-
workspace?: Shared.AccountResourceMetadata;
|
|
76
|
-
}
|
|
57
|
+
export interface APIKeyInfo {
|
|
58
|
+
/**
|
|
59
|
+
* Profile represents a human user at the account level. Profiles are
|
|
60
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
61
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
62
|
+
*/
|
|
63
|
+
createdBy?: Shared.Profile;
|
|
77
64
|
}
|
|
78
65
|
/**
|
|
79
66
|
* APIKeySpec contains the API Key-specific fields
|
|
80
67
|
*/
|
|
81
68
|
export interface APIKeySpec {
|
|
82
69
|
/**
|
|
83
|
-
* The actual token value (only returned on creation, read-only)
|
|
70
|
+
* The actual token value (only returned on creation and rotation, read-only)
|
|
84
71
|
*/
|
|
85
72
|
token?: string;
|
|
86
73
|
/**
|
|
87
74
|
* Description of what this API Key is used for
|
|
88
75
|
*/
|
|
89
76
|
description?: string;
|
|
90
|
-
/**
|
|
91
|
-
* workspace_id is used when an API key is scoped to a workspace
|
|
92
|
-
*/
|
|
93
|
-
workspaceId?: string;
|
|
94
77
|
}
|
|
95
78
|
export interface APIKeyCreateParams {
|
|
96
79
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* excluded since they are set by the server.
|
|
80
|
+
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
81
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
82
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
100
83
|
*/
|
|
101
|
-
metadata:
|
|
84
|
+
metadata: Shared.CreateResourceMetadata;
|
|
102
85
|
/**
|
|
103
86
|
* APIKeySpec contains the API Key-specific fields
|
|
104
87
|
*/
|
|
105
88
|
spec: APIKeySpec;
|
|
106
89
|
}
|
|
107
|
-
export declare namespace APIKeyCreateParams {
|
|
108
|
-
/**
|
|
109
|
-
* CreateAccountResourceMetadata contains the user-provided fields for creating an
|
|
110
|
-
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
111
|
-
* excluded since they are set by the server.
|
|
112
|
-
*/
|
|
113
|
-
interface Metadata {
|
|
114
|
-
/**
|
|
115
|
-
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
116
|
-
* Workspace")
|
|
117
|
-
*/
|
|
118
|
-
name: string;
|
|
119
|
-
/**
|
|
120
|
-
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
121
|
-
*/
|
|
122
|
-
externalId?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
125
|
-
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
126
|
-
*/
|
|
127
|
-
labels?: {
|
|
128
|
-
[key: string]: string;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
90
|
export interface APIKeyUpdateParams {
|
|
133
91
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* excluded since they are set by the server.
|
|
92
|
+
* UpdateResourceMetadata contains the user-provided fields for updating a
|
|
93
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
94
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
137
95
|
*/
|
|
138
|
-
metadata?:
|
|
96
|
+
metadata?: Shared.UpdateResourceMetadata;
|
|
139
97
|
/**
|
|
140
98
|
* APIKeySpec contains the API Key-specific fields
|
|
141
99
|
*/
|
|
@@ -145,31 +103,6 @@ export interface APIKeyUpdateParams {
|
|
|
145
103
|
*/
|
|
146
104
|
updateMask?: string;
|
|
147
105
|
}
|
|
148
|
-
export declare namespace APIKeyUpdateParams {
|
|
149
|
-
/**
|
|
150
|
-
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
151
|
-
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
152
|
-
* excluded since they are set by the server.
|
|
153
|
-
*/
|
|
154
|
-
interface Metadata {
|
|
155
|
-
/**
|
|
156
|
-
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
157
|
-
* Workspace")
|
|
158
|
-
*/
|
|
159
|
-
name: string;
|
|
160
|
-
/**
|
|
161
|
-
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
162
|
-
*/
|
|
163
|
-
externalId?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
166
|
-
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
167
|
-
*/
|
|
168
|
-
labels?: {
|
|
169
|
-
[key: string]: string;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
106
|
export interface APIKeyListParams extends CursorPaginationParams {
|
|
174
107
|
/**
|
|
175
108
|
* When set to true you may use more of your alloted API rate-limit
|
|
@@ -185,6 +118,6 @@ export interface APIKeyListParams extends CursorPaginationParams {
|
|
|
185
118
|
sortOrder?: string;
|
|
186
119
|
}
|
|
187
120
|
export declare namespace APIKeys {
|
|
188
|
-
export { type APIKey as APIKey, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
121
|
+
export { type APIKey as APIKey, type APIKeyInfo as APIKeyInfo, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
189
122
|
}
|
|
190
123
|
//# 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":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB;;;;;;GAMG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIlE;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,MAAM,CAAC;IAI/C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC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AAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/api-keys.d.ts
CHANGED
|
@@ -4,34 +4,31 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
4
4
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
/**
|
|
7
|
-
* APIKeyService manages API Keys
|
|
8
|
-
* API
|
|
9
|
-
* workspaces through the Actor model. This allows a single API Key to have
|
|
10
|
-
* cross-workspace access.
|
|
7
|
+
* APIKeyService manages workspace-scoped API Keys.
|
|
8
|
+
* Each API key belongs to a single workspace, ensuring isolation between environments.
|
|
11
9
|
*
|
|
12
10
|
* Authentication: Bearer token (JWT)
|
|
13
|
-
* Scope:
|
|
11
|
+
* Scope: Workspace-level operations
|
|
14
12
|
*/
|
|
15
13
|
export declare class APIKeys extends APIResource {
|
|
16
14
|
/**
|
|
17
|
-
* Creates a new API key
|
|
18
|
-
* with workspaces via the Actor model.
|
|
15
|
+
* Creates a new API key in the workspace.
|
|
19
16
|
*/
|
|
20
17
|
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
21
18
|
/**
|
|
22
|
-
* Retrieves an API key by ID from the
|
|
19
|
+
* Retrieves an API key by ID from the workspace
|
|
23
20
|
*/
|
|
24
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<APIKey>;
|
|
25
22
|
/**
|
|
26
|
-
* Updates an API key
|
|
23
|
+
* Updates an API key in the workspace
|
|
27
24
|
*/
|
|
28
25
|
update(id: string, body: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey>;
|
|
29
26
|
/**
|
|
30
|
-
* Lists all API keys in the
|
|
27
|
+
* Lists all API keys in the workspace
|
|
31
28
|
*/
|
|
32
29
|
list(query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysCursorPagination, APIKey>;
|
|
33
30
|
/**
|
|
34
|
-
* Deletes an API key from the
|
|
31
|
+
* Deletes an API key from the workspace
|
|
35
32
|
*/
|
|
36
33
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
37
34
|
/**
|
|
@@ -42,100 +39,61 @@ export declare class APIKeys extends APIResource {
|
|
|
42
39
|
}
|
|
43
40
|
export type APIKeysCursorPagination = CursorPagination<APIKey>;
|
|
44
41
|
/**
|
|
45
|
-
* APIKey represents a
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* A single API Key can now have actors in multiple workspaces, allowing for
|
|
49
|
-
* cross-workspace service accounts.
|
|
42
|
+
* APIKey represents a workspace-scoped API key. Each API key belongs to exactly
|
|
43
|
+
* one workspace, ensuring workspace isolation. Authentication is handled via
|
|
44
|
+
* Cadenya-issued JWTs signed with the key's own signing secret.
|
|
50
45
|
*/
|
|
51
46
|
export interface APIKey {
|
|
52
47
|
/**
|
|
53
|
-
*
|
|
54
|
-
* account but not to a workspace.
|
|
48
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
55
49
|
*/
|
|
56
|
-
metadata: Shared.
|
|
50
|
+
metadata: Shared.ResourceMetadata;
|
|
57
51
|
/**
|
|
58
52
|
* APIKeySpec contains the API Key-specific fields
|
|
59
53
|
*/
|
|
60
54
|
spec: APIKeySpec;
|
|
61
|
-
info?:
|
|
55
|
+
info?: APIKeyInfo;
|
|
62
56
|
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
createdBy?: Shared.Profile;
|
|
71
|
-
/**
|
|
72
|
-
* AccountResourceMetadata is used to represent a resource that is associated to an
|
|
73
|
-
* account but not to a workspace.
|
|
74
|
-
*/
|
|
75
|
-
workspace?: Shared.AccountResourceMetadata;
|
|
76
|
-
}
|
|
57
|
+
export interface APIKeyInfo {
|
|
58
|
+
/**
|
|
59
|
+
* Profile represents a human user at the account level. Profiles are
|
|
60
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
61
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
62
|
+
*/
|
|
63
|
+
createdBy?: Shared.Profile;
|
|
77
64
|
}
|
|
78
65
|
/**
|
|
79
66
|
* APIKeySpec contains the API Key-specific fields
|
|
80
67
|
*/
|
|
81
68
|
export interface APIKeySpec {
|
|
82
69
|
/**
|
|
83
|
-
* The actual token value (only returned on creation, read-only)
|
|
70
|
+
* The actual token value (only returned on creation and rotation, read-only)
|
|
84
71
|
*/
|
|
85
72
|
token?: string;
|
|
86
73
|
/**
|
|
87
74
|
* Description of what this API Key is used for
|
|
88
75
|
*/
|
|
89
76
|
description?: string;
|
|
90
|
-
/**
|
|
91
|
-
* workspace_id is used when an API key is scoped to a workspace
|
|
92
|
-
*/
|
|
93
|
-
workspaceId?: string;
|
|
94
77
|
}
|
|
95
78
|
export interface APIKeyCreateParams {
|
|
96
79
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* excluded since they are set by the server.
|
|
80
|
+
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
81
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
82
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
100
83
|
*/
|
|
101
|
-
metadata:
|
|
84
|
+
metadata: Shared.CreateResourceMetadata;
|
|
102
85
|
/**
|
|
103
86
|
* APIKeySpec contains the API Key-specific fields
|
|
104
87
|
*/
|
|
105
88
|
spec: APIKeySpec;
|
|
106
89
|
}
|
|
107
|
-
export declare namespace APIKeyCreateParams {
|
|
108
|
-
/**
|
|
109
|
-
* CreateAccountResourceMetadata contains the user-provided fields for creating an
|
|
110
|
-
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
111
|
-
* excluded since they are set by the server.
|
|
112
|
-
*/
|
|
113
|
-
interface Metadata {
|
|
114
|
-
/**
|
|
115
|
-
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
116
|
-
* Workspace")
|
|
117
|
-
*/
|
|
118
|
-
name: string;
|
|
119
|
-
/**
|
|
120
|
-
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
121
|
-
*/
|
|
122
|
-
externalId?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
125
|
-
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
126
|
-
*/
|
|
127
|
-
labels?: {
|
|
128
|
-
[key: string]: string;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
90
|
export interface APIKeyUpdateParams {
|
|
133
91
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* excluded since they are set by the server.
|
|
92
|
+
* UpdateResourceMetadata contains the user-provided fields for updating a
|
|
93
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
94
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
137
95
|
*/
|
|
138
|
-
metadata?:
|
|
96
|
+
metadata?: Shared.UpdateResourceMetadata;
|
|
139
97
|
/**
|
|
140
98
|
* APIKeySpec contains the API Key-specific fields
|
|
141
99
|
*/
|
|
@@ -145,31 +103,6 @@ export interface APIKeyUpdateParams {
|
|
|
145
103
|
*/
|
|
146
104
|
updateMask?: string;
|
|
147
105
|
}
|
|
148
|
-
export declare namespace APIKeyUpdateParams {
|
|
149
|
-
/**
|
|
150
|
-
* UpdateAccountResourceMetadata contains the user-provided fields for updating an
|
|
151
|
-
* account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
152
|
-
* excluded since they are set by the server.
|
|
153
|
-
*/
|
|
154
|
-
interface Metadata {
|
|
155
|
-
/**
|
|
156
|
-
* Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
157
|
-
* Workspace")
|
|
158
|
-
*/
|
|
159
|
-
name: string;
|
|
160
|
-
/**
|
|
161
|
-
* External ID for the resource (e.g., a workflow ID from an external system)
|
|
162
|
-
*/
|
|
163
|
-
externalId?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Arbitrary key-value pairs for categorization and filtering Examples:
|
|
166
|
-
* {"environment": "production", "team": "platform", "version": "v2"}
|
|
167
|
-
*/
|
|
168
|
-
labels?: {
|
|
169
|
-
[key: string]: string;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
106
|
export interface APIKeyListParams extends CursorPaginationParams {
|
|
174
107
|
/**
|
|
175
108
|
* When set to true you may use more of your alloted API rate-limit
|
|
@@ -185,6 +118,6 @@ export interface APIKeyListParams extends CursorPaginationParams {
|
|
|
185
118
|
sortOrder?: string;
|
|
186
119
|
}
|
|
187
120
|
export declare namespace APIKeys {
|
|
188
|
-
export { type APIKey as APIKey, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
121
|
+
export { type APIKey as APIKey, type APIKeyInfo as APIKeyInfo, type APIKeySpec as APIKeySpec, type APIKeysCursorPagination as APIKeysCursorPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
189
122
|
}
|
|
190
123
|
//# sourceMappingURL=api-keys.d.ts.map
|