@1claw/sdk 0.44.3 → 0.46.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/README.md +79 -4
- package/dist/generated/api-types.d.ts +589 -2
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/agents.d.ts +28 -1
- package/dist/resources/agents.d.ts.map +1 -1
- package/dist/resources/agents.js +40 -0
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/auth.d.ts +31 -2
- package/dist/resources/auth.d.ts.map +1 -1
- package/dist/resources/auth.js +71 -1
- package/dist/resources/auth.js.map +1 -1
- package/dist/resources/platform.d.ts +22 -1
- package/dist/resources/platform.d.ts.map +1 -1
- package/dist/resources/platform.js +12 -0
- package/dist/resources/platform.js.map +1 -1
- package/dist/types.d.ts +102 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1515,6 +1515,74 @@ export interface paths {
|
|
|
1515
1515
|
patch?: never;
|
|
1516
1516
|
trace?: never;
|
|
1517
1517
|
};
|
|
1518
|
+
"/v1/agents/{agent_id}/delegations": {
|
|
1519
|
+
parameters: {
|
|
1520
|
+
query?: never;
|
|
1521
|
+
header?: never;
|
|
1522
|
+
path?: never;
|
|
1523
|
+
cookie?: never;
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* List delegations for an agent
|
|
1527
|
+
* @description List all delegations where this agent is the delegator.
|
|
1528
|
+
*/
|
|
1529
|
+
get: operations["listDelegations"];
|
|
1530
|
+
put?: never;
|
|
1531
|
+
/**
|
|
1532
|
+
* Create a delegation
|
|
1533
|
+
* @description Grant an agent (delegator) permission to delegate tasks to another agent (delegate).
|
|
1534
|
+
* Human-only — agents cannot create their own delegations.
|
|
1535
|
+
*/
|
|
1536
|
+
post: operations["createDelegation"];
|
|
1537
|
+
delete?: never;
|
|
1538
|
+
options?: never;
|
|
1539
|
+
head?: never;
|
|
1540
|
+
patch?: never;
|
|
1541
|
+
trace?: never;
|
|
1542
|
+
};
|
|
1543
|
+
"/v1/agents/{agent_id}/delegations/effective": {
|
|
1544
|
+
parameters: {
|
|
1545
|
+
query?: never;
|
|
1546
|
+
header?: never;
|
|
1547
|
+
path?: never;
|
|
1548
|
+
cookie?: never;
|
|
1549
|
+
};
|
|
1550
|
+
/**
|
|
1551
|
+
* Get effective delegations
|
|
1552
|
+
* @description Get the effective delegations for an agent, including daily usage statistics.
|
|
1553
|
+
* Agents can call this on their own ID to discover what they are authorized to delegate to.
|
|
1554
|
+
*/
|
|
1555
|
+
get: operations["getEffectiveDelegations"];
|
|
1556
|
+
put?: never;
|
|
1557
|
+
post?: never;
|
|
1558
|
+
delete?: never;
|
|
1559
|
+
options?: never;
|
|
1560
|
+
head?: never;
|
|
1561
|
+
patch?: never;
|
|
1562
|
+
trace?: never;
|
|
1563
|
+
};
|
|
1564
|
+
"/v1/agents/{agent_id}/delegations/{delegation_id}": {
|
|
1565
|
+
parameters: {
|
|
1566
|
+
query?: never;
|
|
1567
|
+
header?: never;
|
|
1568
|
+
path?: never;
|
|
1569
|
+
cookie?: never;
|
|
1570
|
+
};
|
|
1571
|
+
/** Get a specific delegation */
|
|
1572
|
+
get: operations["getDelegation"];
|
|
1573
|
+
put?: never;
|
|
1574
|
+
post?: never;
|
|
1575
|
+
/** Revoke a delegation */
|
|
1576
|
+
delete: operations["revokeDelegation"];
|
|
1577
|
+
options?: never;
|
|
1578
|
+
head?: never;
|
|
1579
|
+
/**
|
|
1580
|
+
* Update a delegation
|
|
1581
|
+
* @description Update delegation tools, limits, mode, or active status. Human-only.
|
|
1582
|
+
*/
|
|
1583
|
+
patch: operations["updateDelegation"];
|
|
1584
|
+
trace?: never;
|
|
1585
|
+
};
|
|
1518
1586
|
"/v1/agents/{agent_id}/sign": {
|
|
1519
1587
|
parameters: {
|
|
1520
1588
|
query?: never;
|
|
@@ -3221,6 +3289,46 @@ export interface paths {
|
|
|
3221
3289
|
patch?: never;
|
|
3222
3290
|
trace?: never;
|
|
3223
3291
|
};
|
|
3292
|
+
"/v1/platform/apps/{appId}/stats": {
|
|
3293
|
+
parameters: {
|
|
3294
|
+
query?: never;
|
|
3295
|
+
header?: never;
|
|
3296
|
+
path?: never;
|
|
3297
|
+
cookie?: never;
|
|
3298
|
+
};
|
|
3299
|
+
/**
|
|
3300
|
+
* Get platform app statistics
|
|
3301
|
+
* @description Returns aggregate statistics about a platform app's connected users, bootstraps, and grants.
|
|
3302
|
+
*/
|
|
3303
|
+
get: operations["getPlatformAppStats"];
|
|
3304
|
+
put?: never;
|
|
3305
|
+
post?: never;
|
|
3306
|
+
delete?: never;
|
|
3307
|
+
options?: never;
|
|
3308
|
+
head?: never;
|
|
3309
|
+
patch?: never;
|
|
3310
|
+
trace?: never;
|
|
3311
|
+
};
|
|
3312
|
+
"/v1/platform/apps/{appId}/rotate-webhook-secret": {
|
|
3313
|
+
parameters: {
|
|
3314
|
+
query?: never;
|
|
3315
|
+
header?: never;
|
|
3316
|
+
path?: never;
|
|
3317
|
+
cookie?: never;
|
|
3318
|
+
};
|
|
3319
|
+
get?: never;
|
|
3320
|
+
put?: never;
|
|
3321
|
+
/**
|
|
3322
|
+
* Rotate webhook secret
|
|
3323
|
+
* @description Generate a new webhook signing secret for the platform app. The old secret is immediately invalidated. Returns the new secret (one-time).
|
|
3324
|
+
*/
|
|
3325
|
+
post: operations["rotatePlatformWebhookSecret"];
|
|
3326
|
+
delete?: never;
|
|
3327
|
+
options?: never;
|
|
3328
|
+
head?: never;
|
|
3329
|
+
patch?: never;
|
|
3330
|
+
trace?: never;
|
|
3331
|
+
};
|
|
3224
3332
|
"/v1/platform/apps/{appId}/templates": {
|
|
3225
3333
|
parameters: {
|
|
3226
3334
|
query?: never;
|
|
@@ -4406,6 +4514,48 @@ export interface paths {
|
|
|
4406
4514
|
patch?: never;
|
|
4407
4515
|
trace?: never;
|
|
4408
4516
|
};
|
|
4517
|
+
"/v1/oauth/revoke": {
|
|
4518
|
+
parameters: {
|
|
4519
|
+
query?: never;
|
|
4520
|
+
header?: never;
|
|
4521
|
+
path?: never;
|
|
4522
|
+
cookie?: never;
|
|
4523
|
+
};
|
|
4524
|
+
get?: never;
|
|
4525
|
+
put?: never;
|
|
4526
|
+
/**
|
|
4527
|
+
* Revoke an OAuth token (RFC 7009)
|
|
4528
|
+
* @description Revokes an access token or refresh token. The authorization server
|
|
4529
|
+
* invalidates the token so it can no longer be used. Follows RFC 7009.
|
|
4530
|
+
*/
|
|
4531
|
+
post: operations["revokeOAuthToken"];
|
|
4532
|
+
delete?: never;
|
|
4533
|
+
options?: never;
|
|
4534
|
+
head?: never;
|
|
4535
|
+
patch?: never;
|
|
4536
|
+
trace?: never;
|
|
4537
|
+
};
|
|
4538
|
+
"/v1/oauth/consents/{app_id}": {
|
|
4539
|
+
parameters: {
|
|
4540
|
+
query?: never;
|
|
4541
|
+
header?: never;
|
|
4542
|
+
path?: never;
|
|
4543
|
+
cookie?: never;
|
|
4544
|
+
};
|
|
4545
|
+
get?: never;
|
|
4546
|
+
put?: never;
|
|
4547
|
+
post?: never;
|
|
4548
|
+
/**
|
|
4549
|
+
* Revoke consent for a platform app
|
|
4550
|
+
* @description Revokes the user's previously granted OAuth consent for a specific platform app.
|
|
4551
|
+
* All active tokens issued to the app are invalidated and the consent record is deleted.
|
|
4552
|
+
*/
|
|
4553
|
+
delete: operations["revokeOAuthConsent"];
|
|
4554
|
+
options?: never;
|
|
4555
|
+
head?: never;
|
|
4556
|
+
patch?: never;
|
|
4557
|
+
trace?: never;
|
|
4558
|
+
};
|
|
4409
4559
|
"/v1/risk/events": {
|
|
4410
4560
|
parameters: {
|
|
4411
4561
|
query?: never;
|
|
@@ -5275,7 +5425,7 @@ export interface paths {
|
|
|
5275
5425
|
};
|
|
5276
5426
|
/**
|
|
5277
5427
|
* Public marketplace
|
|
5278
|
-
* @description Browse the public platform marketplace of agents and
|
|
5428
|
+
* @description Browse the public platform marketplace of listed apps and agents. Returns approved platform apps with category, tags, pricing summaries, and screenshots.
|
|
5279
5429
|
*/
|
|
5280
5430
|
get: operations["listMarketplace"];
|
|
5281
5431
|
put?: never;
|
|
@@ -7150,6 +7300,82 @@ export interface components {
|
|
|
7150
7300
|
BankrKeyLeaseListResponse: {
|
|
7151
7301
|
leases?: components["schemas"]["BankrKeyLeaseResponse"][];
|
|
7152
7302
|
};
|
|
7303
|
+
CreateDelegationRequest: {
|
|
7304
|
+
/**
|
|
7305
|
+
* Format: uuid
|
|
7306
|
+
* @description The agent ID to delegate to.
|
|
7307
|
+
*/
|
|
7308
|
+
delegate_id: string;
|
|
7309
|
+
/** @description Tool names the delegate may use. Empty means all tools allowed. */
|
|
7310
|
+
allowed_tools?: string[];
|
|
7311
|
+
/** @description Tool names the delegate may NOT use. */
|
|
7312
|
+
blocked_tools?: string[];
|
|
7313
|
+
/** @description Maximum delegation calls per UTC day. NULL means unlimited. */
|
|
7314
|
+
max_daily_delegations?: number;
|
|
7315
|
+
/**
|
|
7316
|
+
* @description Maximum delegation chain depth (default 3).
|
|
7317
|
+
* @default 3
|
|
7318
|
+
*/
|
|
7319
|
+
max_depth: number;
|
|
7320
|
+
/** @description Additional guardrail constraints for this delegation. */
|
|
7321
|
+
guardrails?: Record<string, never>;
|
|
7322
|
+
/**
|
|
7323
|
+
* @description Execution mode: caller (use delegator's creds), target (use delegate's config), or both.
|
|
7324
|
+
* @default caller
|
|
7325
|
+
* @enum {string}
|
|
7326
|
+
*/
|
|
7327
|
+
delegation_mode: "caller" | "target" | "both";
|
|
7328
|
+
/**
|
|
7329
|
+
* Format: date-time
|
|
7330
|
+
* @description Optional expiration timestamp.
|
|
7331
|
+
*/
|
|
7332
|
+
expires_at?: string;
|
|
7333
|
+
};
|
|
7334
|
+
UpdateDelegationRequest: {
|
|
7335
|
+
allowed_tools?: string[];
|
|
7336
|
+
blocked_tools?: string[];
|
|
7337
|
+
max_daily_delegations?: number;
|
|
7338
|
+
max_depth?: number;
|
|
7339
|
+
guardrails?: Record<string, never>;
|
|
7340
|
+
/** @enum {string} */
|
|
7341
|
+
delegation_mode?: "caller" | "target" | "both";
|
|
7342
|
+
is_active?: boolean;
|
|
7343
|
+
/** Format: date-time */
|
|
7344
|
+
expires_at?: string | null;
|
|
7345
|
+
};
|
|
7346
|
+
DelegationResponse: {
|
|
7347
|
+
/** Format: uuid */
|
|
7348
|
+
id?: string;
|
|
7349
|
+
/** Format: uuid */
|
|
7350
|
+
org_id?: string;
|
|
7351
|
+
/** Format: uuid */
|
|
7352
|
+
delegator_id?: string;
|
|
7353
|
+
/** Format: uuid */
|
|
7354
|
+
delegate_id?: string;
|
|
7355
|
+
delegator_name?: string;
|
|
7356
|
+
delegate_name?: string;
|
|
7357
|
+
allowed_tools?: string[];
|
|
7358
|
+
blocked_tools?: string[];
|
|
7359
|
+
max_daily_delegations?: number | null;
|
|
7360
|
+
max_depth?: number;
|
|
7361
|
+
guardrails?: Record<string, never>;
|
|
7362
|
+
/** @enum {string} */
|
|
7363
|
+
delegation_mode?: "caller" | "target" | "both";
|
|
7364
|
+
is_active?: boolean;
|
|
7365
|
+
/** Format: uuid */
|
|
7366
|
+
created_by?: string;
|
|
7367
|
+
/** Format: date-time */
|
|
7368
|
+
expires_at?: string | null;
|
|
7369
|
+
/** Format: date-time */
|
|
7370
|
+
created_at?: string;
|
|
7371
|
+
/** Format: date-time */
|
|
7372
|
+
updated_at?: string;
|
|
7373
|
+
/** @description Number of delegations used today (present in effective endpoint). */
|
|
7374
|
+
delegations_today?: number;
|
|
7375
|
+
};
|
|
7376
|
+
DelegationListResponse: {
|
|
7377
|
+
delegations?: components["schemas"]["DelegationResponse"][];
|
|
7378
|
+
};
|
|
7153
7379
|
SignIntentRequest: {
|
|
7154
7380
|
/** @enum {string} */
|
|
7155
7381
|
intent_type: "personal_sign" | "typed_data" | "eip712_digest" | "transaction";
|
|
@@ -8238,6 +8464,8 @@ export interface components {
|
|
|
8238
8464
|
vault_id?: string | null;
|
|
8239
8465
|
/** Format: uuid */
|
|
8240
8466
|
agent_id?: string | null;
|
|
8467
|
+
/** @description All agent IDs provisioned by the template (when multiple agents are defined) */
|
|
8468
|
+
agent_ids?: string[];
|
|
8241
8469
|
policy_ids?: string[];
|
|
8242
8470
|
/** @description Chains with provisioned signing keys */
|
|
8243
8471
|
signing_key_chains?: string[];
|
|
@@ -8258,6 +8486,32 @@ export interface components {
|
|
|
8258
8486
|
automation_ids?: string[];
|
|
8259
8487
|
};
|
|
8260
8488
|
};
|
|
8489
|
+
PlatformAppStatsResponse: {
|
|
8490
|
+
/** @description Total number of user connections (all statuses) */
|
|
8491
|
+
total_connections: number;
|
|
8492
|
+
/** @description Number of active connections */
|
|
8493
|
+
active_connections: number;
|
|
8494
|
+
/** @description Number of claimed connections */
|
|
8495
|
+
claimed_connections: number;
|
|
8496
|
+
/** @description Total bootstrap operations performed */
|
|
8497
|
+
total_bootstraps: number;
|
|
8498
|
+
/** @description Total resource grants issued */
|
|
8499
|
+
total_grants: number;
|
|
8500
|
+
};
|
|
8501
|
+
MarketplaceResponse: {
|
|
8502
|
+
apps?: {
|
|
8503
|
+
/** Format: uuid */
|
|
8504
|
+
id?: string;
|
|
8505
|
+
name?: string;
|
|
8506
|
+
slug?: string;
|
|
8507
|
+
description?: string;
|
|
8508
|
+
logo_url?: string | null;
|
|
8509
|
+
category?: string | null;
|
|
8510
|
+
listing_tags?: string[];
|
|
8511
|
+
listing_screenshots?: string[];
|
|
8512
|
+
pricing_summary?: string | null;
|
|
8513
|
+
}[];
|
|
8514
|
+
};
|
|
8261
8515
|
ConnectedAppResponse: {
|
|
8262
8516
|
/** Format: uuid */
|
|
8263
8517
|
connection_id?: string;
|
|
@@ -8463,6 +8717,8 @@ export interface components {
|
|
|
8463
8717
|
token_type: "Bearer";
|
|
8464
8718
|
/** @description Token lifetime in seconds */
|
|
8465
8719
|
expires_in: number;
|
|
8720
|
+
/** @description Refresh token for obtaining new access tokens (when offline_access scope was granted) */
|
|
8721
|
+
refresh_token?: string | null;
|
|
8466
8722
|
/** @description OIDC ID token (when openid scope was granted) */
|
|
8467
8723
|
id_token?: string | null;
|
|
8468
8724
|
scope: string;
|
|
@@ -9171,6 +9427,19 @@ export interface components {
|
|
|
9171
9427
|
config: {
|
|
9172
9428
|
[key: string]: string;
|
|
9173
9429
|
};
|
|
9430
|
+
/**
|
|
9431
|
+
* @description Enable Hermes-compatible slash commands on this channel. When true,
|
|
9432
|
+
* messages starting with `/` are handled before the LLM. Commands:
|
|
9433
|
+
* /help, /new, /reset, /clear, /model, /mode, /personality, /retry,
|
|
9434
|
+
* /undo, /compress, /summarize, /stop, /status, /skills, /usage, /sethome.
|
|
9435
|
+
*/
|
|
9436
|
+
slash_commands_enabled?: boolean;
|
|
9437
|
+
/** @description Enable voice message transcription */
|
|
9438
|
+
voice_transcription_enabled?: boolean;
|
|
9439
|
+
/** @description List of allowed sender IDs */
|
|
9440
|
+
sender_allowlist?: string[];
|
|
9441
|
+
/** @description Enable auto-respond */
|
|
9442
|
+
auto_respond_enabled?: boolean;
|
|
9174
9443
|
};
|
|
9175
9444
|
UpdateChannelRequest: {
|
|
9176
9445
|
channel_name?: string;
|
|
@@ -9178,6 +9447,10 @@ export interface components {
|
|
|
9178
9447
|
config?: {
|
|
9179
9448
|
[key: string]: string;
|
|
9180
9449
|
};
|
|
9450
|
+
slash_commands_enabled?: boolean;
|
|
9451
|
+
voice_transcription_enabled?: boolean;
|
|
9452
|
+
sender_allowlist?: string[];
|
|
9453
|
+
auto_respond_enabled?: boolean;
|
|
9181
9454
|
};
|
|
9182
9455
|
ChannelResponse: {
|
|
9183
9456
|
/** Format: uuid */
|
|
@@ -9200,6 +9473,25 @@ export interface components {
|
|
|
9200
9473
|
config?: {
|
|
9201
9474
|
[key: string]: unknown;
|
|
9202
9475
|
} | null;
|
|
9476
|
+
/**
|
|
9477
|
+
* @description Whether Hermes-compatible slash commands are enabled for this channel.
|
|
9478
|
+
* Commands: /help, /new, /reset, /clear, /model, /mode, /personality, /retry,
|
|
9479
|
+
* /undo, /compress, /summarize, /stop, /status, /skills, /usage, /sethome.
|
|
9480
|
+
*/
|
|
9481
|
+
slash_commands_enabled?: boolean;
|
|
9482
|
+
/** @description Whether voice message transcription is enabled */
|
|
9483
|
+
voice_transcription_enabled?: boolean;
|
|
9484
|
+
/**
|
|
9485
|
+
* Format: uuid
|
|
9486
|
+
* @description ID linking this channel to a unified cross-platform conversation
|
|
9487
|
+
*/
|
|
9488
|
+
unified_conversation_id?: string | null;
|
|
9489
|
+
/** @description Whether this is the agent's home platform channel */
|
|
9490
|
+
is_home_platform?: boolean;
|
|
9491
|
+
/** @description List of allowed sender IDs for auto-respond */
|
|
9492
|
+
sender_allowlist?: string[] | null;
|
|
9493
|
+
/** @description Whether auto-respond is enabled for this channel */
|
|
9494
|
+
auto_respond_enabled?: boolean;
|
|
9203
9495
|
/** Format: date-time */
|
|
9204
9496
|
created_at?: string;
|
|
9205
9497
|
/** Format: date-time */
|
|
@@ -9227,6 +9519,17 @@ export interface components {
|
|
|
9227
9519
|
sender_name?: string;
|
|
9228
9520
|
content?: string;
|
|
9229
9521
|
media_url?: string;
|
|
9522
|
+
/** @description Whether this message was a voice message */
|
|
9523
|
+
is_voice_message?: boolean;
|
|
9524
|
+
/** @description Telegram voice file ID */
|
|
9525
|
+
voice_file_id?: string | null;
|
|
9526
|
+
/** @description Duration of voice message in seconds */
|
|
9527
|
+
voice_duration_secs?: number | null;
|
|
9528
|
+
/**
|
|
9529
|
+
* @description Status of voice transcription
|
|
9530
|
+
* @enum {string|null}
|
|
9531
|
+
*/
|
|
9532
|
+
transcription_status?: "pending" | "completed" | "failed" | null;
|
|
9230
9533
|
/** Format: date-time */
|
|
9231
9534
|
created_at?: string;
|
|
9232
9535
|
};
|
|
@@ -11878,6 +12181,165 @@ export interface operations {
|
|
|
11878
12181
|
404: components["responses"]["NotFound"];
|
|
11879
12182
|
};
|
|
11880
12183
|
};
|
|
12184
|
+
listDelegations: {
|
|
12185
|
+
parameters: {
|
|
12186
|
+
query?: never;
|
|
12187
|
+
header?: never;
|
|
12188
|
+
path: {
|
|
12189
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12190
|
+
};
|
|
12191
|
+
cookie?: never;
|
|
12192
|
+
};
|
|
12193
|
+
requestBody?: never;
|
|
12194
|
+
responses: {
|
|
12195
|
+
/** @description List of delegations */
|
|
12196
|
+
200: {
|
|
12197
|
+
headers: {
|
|
12198
|
+
[name: string]: unknown;
|
|
12199
|
+
};
|
|
12200
|
+
content: {
|
|
12201
|
+
"application/json": components["schemas"]["DelegationListResponse"];
|
|
12202
|
+
};
|
|
12203
|
+
};
|
|
12204
|
+
404: components["responses"]["NotFound"];
|
|
12205
|
+
};
|
|
12206
|
+
};
|
|
12207
|
+
createDelegation: {
|
|
12208
|
+
parameters: {
|
|
12209
|
+
query?: never;
|
|
12210
|
+
header?: never;
|
|
12211
|
+
path: {
|
|
12212
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12213
|
+
};
|
|
12214
|
+
cookie?: never;
|
|
12215
|
+
};
|
|
12216
|
+
requestBody: {
|
|
12217
|
+
content: {
|
|
12218
|
+
"application/json": components["schemas"]["CreateDelegationRequest"];
|
|
12219
|
+
};
|
|
12220
|
+
};
|
|
12221
|
+
responses: {
|
|
12222
|
+
/** @description Delegation created */
|
|
12223
|
+
201: {
|
|
12224
|
+
headers: {
|
|
12225
|
+
[name: string]: unknown;
|
|
12226
|
+
};
|
|
12227
|
+
content: {
|
|
12228
|
+
"application/json": components["schemas"]["DelegationResponse"];
|
|
12229
|
+
};
|
|
12230
|
+
};
|
|
12231
|
+
400: components["responses"]["BadRequest"];
|
|
12232
|
+
403: components["responses"]["Forbidden"];
|
|
12233
|
+
/** @description Delegation already exists for this delegator/delegate pair */
|
|
12234
|
+
409: {
|
|
12235
|
+
headers: {
|
|
12236
|
+
[name: string]: unknown;
|
|
12237
|
+
};
|
|
12238
|
+
content: {
|
|
12239
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
12240
|
+
};
|
|
12241
|
+
};
|
|
12242
|
+
};
|
|
12243
|
+
};
|
|
12244
|
+
getEffectiveDelegations: {
|
|
12245
|
+
parameters: {
|
|
12246
|
+
query?: never;
|
|
12247
|
+
header?: never;
|
|
12248
|
+
path: {
|
|
12249
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12250
|
+
};
|
|
12251
|
+
cookie?: never;
|
|
12252
|
+
};
|
|
12253
|
+
requestBody?: never;
|
|
12254
|
+
responses: {
|
|
12255
|
+
/** @description Effective delegations with usage stats */
|
|
12256
|
+
200: {
|
|
12257
|
+
headers: {
|
|
12258
|
+
[name: string]: unknown;
|
|
12259
|
+
};
|
|
12260
|
+
content: {
|
|
12261
|
+
"application/json": components["schemas"]["DelegationListResponse"];
|
|
12262
|
+
};
|
|
12263
|
+
};
|
|
12264
|
+
404: components["responses"]["NotFound"];
|
|
12265
|
+
};
|
|
12266
|
+
};
|
|
12267
|
+
getDelegation: {
|
|
12268
|
+
parameters: {
|
|
12269
|
+
query?: never;
|
|
12270
|
+
header?: never;
|
|
12271
|
+
path: {
|
|
12272
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12273
|
+
delegation_id: string;
|
|
12274
|
+
};
|
|
12275
|
+
cookie?: never;
|
|
12276
|
+
};
|
|
12277
|
+
requestBody?: never;
|
|
12278
|
+
responses: {
|
|
12279
|
+
/** @description Delegation details */
|
|
12280
|
+
200: {
|
|
12281
|
+
headers: {
|
|
12282
|
+
[name: string]: unknown;
|
|
12283
|
+
};
|
|
12284
|
+
content: {
|
|
12285
|
+
"application/json": components["schemas"]["DelegationResponse"];
|
|
12286
|
+
};
|
|
12287
|
+
};
|
|
12288
|
+
404: components["responses"]["NotFound"];
|
|
12289
|
+
};
|
|
12290
|
+
};
|
|
12291
|
+
revokeDelegation: {
|
|
12292
|
+
parameters: {
|
|
12293
|
+
query?: never;
|
|
12294
|
+
header?: never;
|
|
12295
|
+
path: {
|
|
12296
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12297
|
+
delegation_id: string;
|
|
12298
|
+
};
|
|
12299
|
+
cookie?: never;
|
|
12300
|
+
};
|
|
12301
|
+
requestBody?: never;
|
|
12302
|
+
responses: {
|
|
12303
|
+
/** @description Delegation revoked */
|
|
12304
|
+
204: {
|
|
12305
|
+
headers: {
|
|
12306
|
+
[name: string]: unknown;
|
|
12307
|
+
};
|
|
12308
|
+
content?: never;
|
|
12309
|
+
};
|
|
12310
|
+
404: components["responses"]["NotFound"];
|
|
12311
|
+
};
|
|
12312
|
+
};
|
|
12313
|
+
updateDelegation: {
|
|
12314
|
+
parameters: {
|
|
12315
|
+
query?: never;
|
|
12316
|
+
header?: never;
|
|
12317
|
+
path: {
|
|
12318
|
+
agent_id: components["parameters"]["AgentId"];
|
|
12319
|
+
delegation_id: string;
|
|
12320
|
+
};
|
|
12321
|
+
cookie?: never;
|
|
12322
|
+
};
|
|
12323
|
+
requestBody: {
|
|
12324
|
+
content: {
|
|
12325
|
+
"application/json": components["schemas"]["UpdateDelegationRequest"];
|
|
12326
|
+
};
|
|
12327
|
+
};
|
|
12328
|
+
responses: {
|
|
12329
|
+
/** @description Delegation updated */
|
|
12330
|
+
200: {
|
|
12331
|
+
headers: {
|
|
12332
|
+
[name: string]: unknown;
|
|
12333
|
+
};
|
|
12334
|
+
content: {
|
|
12335
|
+
"application/json": components["schemas"]["DelegationResponse"];
|
|
12336
|
+
};
|
|
12337
|
+
};
|
|
12338
|
+
400: components["responses"]["BadRequest"];
|
|
12339
|
+
403: components["responses"]["Forbidden"];
|
|
12340
|
+
404: components["responses"]["NotFound"];
|
|
12341
|
+
};
|
|
12342
|
+
};
|
|
11881
12343
|
signIntent: {
|
|
11882
12344
|
parameters: {
|
|
11883
12345
|
query?: never;
|
|
@@ -14118,6 +14580,64 @@ export interface operations {
|
|
|
14118
14580
|
};
|
|
14119
14581
|
};
|
|
14120
14582
|
};
|
|
14583
|
+
getPlatformAppStats: {
|
|
14584
|
+
parameters: {
|
|
14585
|
+
query?: never;
|
|
14586
|
+
header?: never;
|
|
14587
|
+
path: {
|
|
14588
|
+
appId: string;
|
|
14589
|
+
};
|
|
14590
|
+
cookie?: never;
|
|
14591
|
+
};
|
|
14592
|
+
requestBody?: never;
|
|
14593
|
+
responses: {
|
|
14594
|
+
/** @description App statistics */
|
|
14595
|
+
200: {
|
|
14596
|
+
headers: {
|
|
14597
|
+
[name: string]: unknown;
|
|
14598
|
+
};
|
|
14599
|
+
content: {
|
|
14600
|
+
"application/json": components["schemas"]["PlatformAppStatsResponse"];
|
|
14601
|
+
};
|
|
14602
|
+
};
|
|
14603
|
+
401: components["responses"]["Unauthorized"];
|
|
14604
|
+
404: components["responses"]["NotFound"];
|
|
14605
|
+
};
|
|
14606
|
+
};
|
|
14607
|
+
rotatePlatformWebhookSecret: {
|
|
14608
|
+
parameters: {
|
|
14609
|
+
query?: never;
|
|
14610
|
+
header?: never;
|
|
14611
|
+
path: {
|
|
14612
|
+
appId: string;
|
|
14613
|
+
};
|
|
14614
|
+
cookie?: never;
|
|
14615
|
+
};
|
|
14616
|
+
requestBody?: never;
|
|
14617
|
+
responses: {
|
|
14618
|
+
/** @description New webhook secret generated */
|
|
14619
|
+
200: {
|
|
14620
|
+
headers: {
|
|
14621
|
+
[name: string]: unknown;
|
|
14622
|
+
};
|
|
14623
|
+
content: {
|
|
14624
|
+
"application/json": {
|
|
14625
|
+
/** @description The new webhook signing secret (shown once) */
|
|
14626
|
+
webhook_secret: string;
|
|
14627
|
+
};
|
|
14628
|
+
};
|
|
14629
|
+
};
|
|
14630
|
+
401: components["responses"]["Unauthorized"];
|
|
14631
|
+
/** @description Only human users can rotate webhook secrets */
|
|
14632
|
+
403: {
|
|
14633
|
+
headers: {
|
|
14634
|
+
[name: string]: unknown;
|
|
14635
|
+
};
|
|
14636
|
+
content?: never;
|
|
14637
|
+
};
|
|
14638
|
+
404: components["responses"]["NotFound"];
|
|
14639
|
+
};
|
|
14640
|
+
};
|
|
14121
14641
|
deletePlatformTemplate: {
|
|
14122
14642
|
parameters: {
|
|
14123
14643
|
query?: never;
|
|
@@ -15049,6 +15569,71 @@ export interface operations {
|
|
|
15049
15569
|
401: components["responses"]["Unauthorized"];
|
|
15050
15570
|
};
|
|
15051
15571
|
};
|
|
15572
|
+
revokeOAuthToken: {
|
|
15573
|
+
parameters: {
|
|
15574
|
+
query?: never;
|
|
15575
|
+
header?: never;
|
|
15576
|
+
path?: never;
|
|
15577
|
+
cookie?: never;
|
|
15578
|
+
};
|
|
15579
|
+
requestBody: {
|
|
15580
|
+
content: {
|
|
15581
|
+
"application/json": {
|
|
15582
|
+
/** @description The token to revoke (access_token or refresh_token) */
|
|
15583
|
+
token: string;
|
|
15584
|
+
/**
|
|
15585
|
+
* @description Hint about the type of token being revoked
|
|
15586
|
+
* @enum {string}
|
|
15587
|
+
*/
|
|
15588
|
+
token_type_hint?: "access_token" | "refresh_token";
|
|
15589
|
+
};
|
|
15590
|
+
};
|
|
15591
|
+
};
|
|
15592
|
+
responses: {
|
|
15593
|
+
/** @description Token revoked successfully (or was already invalid) */
|
|
15594
|
+
200: {
|
|
15595
|
+
headers: {
|
|
15596
|
+
[name: string]: unknown;
|
|
15597
|
+
};
|
|
15598
|
+
content: {
|
|
15599
|
+
"application/json": {
|
|
15600
|
+
/** @example true */
|
|
15601
|
+
revoked?: boolean;
|
|
15602
|
+
};
|
|
15603
|
+
};
|
|
15604
|
+
};
|
|
15605
|
+
};
|
|
15606
|
+
};
|
|
15607
|
+
revokeOAuthConsent: {
|
|
15608
|
+
parameters: {
|
|
15609
|
+
query?: never;
|
|
15610
|
+
header?: never;
|
|
15611
|
+
path: {
|
|
15612
|
+
/** @description The platform app ID whose consent to revoke */
|
|
15613
|
+
app_id: string;
|
|
15614
|
+
};
|
|
15615
|
+
cookie?: never;
|
|
15616
|
+
};
|
|
15617
|
+
requestBody?: never;
|
|
15618
|
+
responses: {
|
|
15619
|
+
/** @description Consent revoked */
|
|
15620
|
+
200: {
|
|
15621
|
+
headers: {
|
|
15622
|
+
[name: string]: unknown;
|
|
15623
|
+
};
|
|
15624
|
+
content: {
|
|
15625
|
+
"application/json": {
|
|
15626
|
+
/** @example true */
|
|
15627
|
+
revoked?: boolean;
|
|
15628
|
+
/** Format: uuid */
|
|
15629
|
+
app_id?: string;
|
|
15630
|
+
};
|
|
15631
|
+
};
|
|
15632
|
+
};
|
|
15633
|
+
401: components["responses"]["Unauthorized"];
|
|
15634
|
+
404: components["responses"]["NotFound"];
|
|
15635
|
+
};
|
|
15636
|
+
};
|
|
15052
15637
|
listRiskEvents: {
|
|
15053
15638
|
parameters: {
|
|
15054
15639
|
query?: {
|
|
@@ -16485,6 +17070,8 @@ export interface operations {
|
|
|
16485
17070
|
per_page?: number;
|
|
16486
17071
|
/** @description Search query */
|
|
16487
17072
|
q?: string;
|
|
17073
|
+
/** @description Filter by app category */
|
|
17074
|
+
category?: string;
|
|
16488
17075
|
};
|
|
16489
17076
|
header?: never;
|
|
16490
17077
|
path?: never;
|
|
@@ -16498,7 +17085,7 @@ export interface operations {
|
|
|
16498
17085
|
[name: string]: unknown;
|
|
16499
17086
|
};
|
|
16500
17087
|
content: {
|
|
16501
|
-
"application/json": components["schemas"]["
|
|
17088
|
+
"application/json": components["schemas"]["MarketplaceResponse"];
|
|
16502
17089
|
};
|
|
16503
17090
|
};
|
|
16504
17091
|
};
|