@1claw/sdk 0.40.0 → 0.41.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/dist/generated/api-types.d.ts +91 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/resources/bindings.d.ts +3 -1
- package/dist/resources/bindings.d.ts.map +1 -1
- package/dist/resources/bindings.js +4 -0
- package/dist/resources/bindings.js.map +1 -1
- package/dist/types.d.ts +31 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1586,6 +1586,26 @@ export interface paths {
|
|
|
1586
1586
|
patch?: never;
|
|
1587
1587
|
trace?: never;
|
|
1588
1588
|
};
|
|
1589
|
+
"/v1/agents/{agent_id}/bindings/{binding_id}/rotate-credential": {
|
|
1590
|
+
parameters: {
|
|
1591
|
+
query?: never;
|
|
1592
|
+
header?: never;
|
|
1593
|
+
path?: never;
|
|
1594
|
+
cookie?: never;
|
|
1595
|
+
};
|
|
1596
|
+
get?: never;
|
|
1597
|
+
put?: never;
|
|
1598
|
+
/**
|
|
1599
|
+
* Rotate a binding credential
|
|
1600
|
+
* @description Overwrite the stored credential for a binding without touching its config or guardrails. Human-only. The credential value is never returned.
|
|
1601
|
+
*/
|
|
1602
|
+
post: operations["rotateBindingCredential"];
|
|
1603
|
+
delete?: never;
|
|
1604
|
+
options?: never;
|
|
1605
|
+
head?: never;
|
|
1606
|
+
patch?: never;
|
|
1607
|
+
trace?: never;
|
|
1608
|
+
};
|
|
1589
1609
|
"/v1/agents/{agent_id}/execute": {
|
|
1590
1610
|
parameters: {
|
|
1591
1611
|
query?: never;
|
|
@@ -7223,6 +7243,22 @@ export interface components {
|
|
|
7223
7243
|
HoneytokenListResponse: {
|
|
7224
7244
|
honeytokens: components["schemas"]["Honeytoken"][];
|
|
7225
7245
|
};
|
|
7246
|
+
/** @description Credential source — inline value (stored in __agent-keys) or live pointer to a vault secret (resolved at execution time). */
|
|
7247
|
+
CredentialSource: {
|
|
7248
|
+
/** @enum {string} */
|
|
7249
|
+
type: "inline" | "vault_ref";
|
|
7250
|
+
/** @description For inline — the credential value object. */
|
|
7251
|
+
value?: {
|
|
7252
|
+
[key: string]: unknown;
|
|
7253
|
+
};
|
|
7254
|
+
/**
|
|
7255
|
+
* Format: uuid
|
|
7256
|
+
* @description For vault_ref — the vault containing the referenced secret.
|
|
7257
|
+
*/
|
|
7258
|
+
vault_id?: string;
|
|
7259
|
+
/** @description For vault_ref — the secret path in the vault. */
|
|
7260
|
+
path?: string;
|
|
7261
|
+
};
|
|
7226
7262
|
CreateBindingRequest: {
|
|
7227
7263
|
name: string;
|
|
7228
7264
|
/** @enum {string} */
|
|
@@ -7233,9 +7269,11 @@ export interface components {
|
|
|
7233
7269
|
guardrails?: {
|
|
7234
7270
|
[key: string]: unknown;
|
|
7235
7271
|
};
|
|
7272
|
+
/** @description Legacy: inline credential value. Use credential_source for new integrations. */
|
|
7236
7273
|
credential?: {
|
|
7237
7274
|
[key: string]: unknown;
|
|
7238
7275
|
};
|
|
7276
|
+
credential_source?: components["schemas"]["CredentialSource"];
|
|
7239
7277
|
};
|
|
7240
7278
|
UpdateBindingRequest: {
|
|
7241
7279
|
config?: {
|
|
@@ -7245,9 +7283,11 @@ export interface components {
|
|
|
7245
7283
|
[key: string]: unknown;
|
|
7246
7284
|
};
|
|
7247
7285
|
is_active?: boolean;
|
|
7286
|
+
/** @description Legacy: inline credential value. */
|
|
7248
7287
|
credential?: {
|
|
7249
7288
|
[key: string]: unknown;
|
|
7250
7289
|
};
|
|
7290
|
+
credential_source?: components["schemas"]["CredentialSource"];
|
|
7251
7291
|
};
|
|
7252
7292
|
BindingResponse: {
|
|
7253
7293
|
/** Format: uuid */
|
|
@@ -7264,6 +7304,20 @@ export interface components {
|
|
|
7264
7304
|
[key: string]: unknown;
|
|
7265
7305
|
};
|
|
7266
7306
|
is_active: boolean;
|
|
7307
|
+
/** @description Whether a credential is stored for this binding. The value itself is never returned. */
|
|
7308
|
+
credential_set?: boolean;
|
|
7309
|
+
/**
|
|
7310
|
+
* @description How the credential is sourced — inline (HSM-encrypted copy) or vault_ref (live pointer).
|
|
7311
|
+
* @enum {string|null}
|
|
7312
|
+
*/
|
|
7313
|
+
credential_source_type?: "inline" | "vault_ref" | null;
|
|
7314
|
+
/**
|
|
7315
|
+
* Format: uuid
|
|
7316
|
+
* @description For vault_ref credentials — the vault containing the referenced secret.
|
|
7317
|
+
*/
|
|
7318
|
+
credential_vault_id?: string | null;
|
|
7319
|
+
/** @description For vault_ref credentials — the secret path in the referenced vault. */
|
|
7320
|
+
credential_path?: string | null;
|
|
7267
7321
|
/** Format: date-time */
|
|
7268
7322
|
created_at: string;
|
|
7269
7323
|
/** Format: date-time */
|
|
@@ -7300,6 +7354,11 @@ export interface components {
|
|
|
7300
7354
|
error?: string | null;
|
|
7301
7355
|
duration_ms: number;
|
|
7302
7356
|
redactions_applied: number;
|
|
7357
|
+
/**
|
|
7358
|
+
* @description Where the intent actually ran. Reported truthfully — never claims TEE when it ran in the Vault.
|
|
7359
|
+
* @enum {string}
|
|
7360
|
+
*/
|
|
7361
|
+
execution_surface?: "vault" | "tee";
|
|
7303
7362
|
};
|
|
7304
7363
|
ExecutionEventResponse: {
|
|
7305
7364
|
/** Format: uuid */
|
|
@@ -10069,6 +10128,38 @@ export interface operations {
|
|
|
10069
10128
|
404: components["responses"]["NotFound"];
|
|
10070
10129
|
};
|
|
10071
10130
|
};
|
|
10131
|
+
rotateBindingCredential: {
|
|
10132
|
+
parameters: {
|
|
10133
|
+
query?: never;
|
|
10134
|
+
header?: never;
|
|
10135
|
+
path: {
|
|
10136
|
+
agent_id: components["parameters"]["AgentId"];
|
|
10137
|
+
binding_id: string;
|
|
10138
|
+
};
|
|
10139
|
+
cookie?: never;
|
|
10140
|
+
};
|
|
10141
|
+
requestBody: {
|
|
10142
|
+
content: {
|
|
10143
|
+
"application/json": {
|
|
10144
|
+
/** @description New credential material (object or string). Stored server-side. */
|
|
10145
|
+
credential: unknown;
|
|
10146
|
+
};
|
|
10147
|
+
};
|
|
10148
|
+
};
|
|
10149
|
+
responses: {
|
|
10150
|
+
/** @description Updated binding */
|
|
10151
|
+
200: {
|
|
10152
|
+
headers: {
|
|
10153
|
+
[name: string]: unknown;
|
|
10154
|
+
};
|
|
10155
|
+
content: {
|
|
10156
|
+
"application/json": components["schemas"]["BindingResponse"];
|
|
10157
|
+
};
|
|
10158
|
+
};
|
|
10159
|
+
403: components["responses"]["Forbidden"];
|
|
10160
|
+
404: components["responses"]["NotFound"];
|
|
10161
|
+
};
|
|
10162
|
+
};
|
|
10072
10163
|
executeIntent: {
|
|
10073
10164
|
parameters: {
|
|
10074
10165
|
query?: never;
|