@1claw/sdk 0.43.5 → 0.44.1
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 +2 -2
- package/dist/core/client.d.ts +3 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +2 -0
- package/dist/core/client.js.map +1 -1
- package/dist/generated/api-types.d.ts +757 -21
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/memory.d.ts +3 -1
- package/dist/resources/memory.d.ts.map +1 -1
- package/dist/resources/memory.js +4 -0
- package/dist/resources/memory.js.map +1 -1
- package/dist/resources/oauth-connect.d.ts +47 -0
- package/dist/resources/oauth-connect.d.ts.map +1 -0
- package/dist/resources/oauth-connect.js +60 -0
- package/dist/resources/oauth-connect.js.map +1 -0
- package/dist/resources/platform.d.ts +41 -1
- package/dist/resources/platform.d.ts.map +1 -1
- package/dist/resources/platform.js +24 -0
- package/dist/resources/platform.js.map +1 -1
- package/dist/types.d.ts +84 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3288,6 +3288,27 @@ export interface paths {
|
|
|
3288
3288
|
patch?: never;
|
|
3289
3289
|
trace?: never;
|
|
3290
3290
|
};
|
|
3291
|
+
"/v1/platform/apps/{appId}/templates/{template_id}": {
|
|
3292
|
+
parameters: {
|
|
3293
|
+
query?: never;
|
|
3294
|
+
header?: never;
|
|
3295
|
+
path?: never;
|
|
3296
|
+
cookie?: never;
|
|
3297
|
+
};
|
|
3298
|
+
get?: never;
|
|
3299
|
+
put?: never;
|
|
3300
|
+
post?: never;
|
|
3301
|
+
/** Delete a bootstrap template */
|
|
3302
|
+
delete: operations["deletePlatformTemplate"];
|
|
3303
|
+
options?: never;
|
|
3304
|
+
head?: never;
|
|
3305
|
+
/**
|
|
3306
|
+
* Update a bootstrap template
|
|
3307
|
+
* @description Update an existing template's name, description, spec, or active status.
|
|
3308
|
+
*/
|
|
3309
|
+
patch: operations["updatePlatformTemplate"];
|
|
3310
|
+
trace?: never;
|
|
3311
|
+
};
|
|
3291
3312
|
"/v1/platform/users/upsert": {
|
|
3292
3313
|
parameters: {
|
|
3293
3314
|
query?: never;
|
|
@@ -3634,6 +3655,30 @@ export interface paths {
|
|
|
3634
3655
|
};
|
|
3635
3656
|
options?: never;
|
|
3636
3657
|
head?: never;
|
|
3658
|
+
/**
|
|
3659
|
+
* Update connection delegation
|
|
3660
|
+
* @description Toggle delegation and update delegation scopes for a connected platform app. User-only.
|
|
3661
|
+
*/
|
|
3662
|
+
patch: operations["updateConnectionDelegation"];
|
|
3663
|
+
trace?: never;
|
|
3664
|
+
};
|
|
3665
|
+
"/v1/platform/connections/{connectionId}/delegation-log": {
|
|
3666
|
+
parameters: {
|
|
3667
|
+
query?: never;
|
|
3668
|
+
header?: never;
|
|
3669
|
+
path?: never;
|
|
3670
|
+
cookie?: never;
|
|
3671
|
+
};
|
|
3672
|
+
/**
|
|
3673
|
+
* Delegation audit log
|
|
3674
|
+
* @description List delegated actions performed by a platform app on behalf of this user.
|
|
3675
|
+
*/
|
|
3676
|
+
get: operations["getDelegationLog"];
|
|
3677
|
+
put?: never;
|
|
3678
|
+
post?: never;
|
|
3679
|
+
delete?: never;
|
|
3680
|
+
options?: never;
|
|
3681
|
+
head?: never;
|
|
3637
3682
|
patch?: never;
|
|
3638
3683
|
trace?: never;
|
|
3639
3684
|
};
|
|
@@ -4767,6 +4812,26 @@ export interface paths {
|
|
|
4767
4812
|
patch?: never;
|
|
4768
4813
|
trace?: never;
|
|
4769
4814
|
};
|
|
4815
|
+
"/v1/automations/{automationId}/runs/{runId}": {
|
|
4816
|
+
parameters: {
|
|
4817
|
+
query?: never;
|
|
4818
|
+
header?: never;
|
|
4819
|
+
path?: never;
|
|
4820
|
+
cookie?: never;
|
|
4821
|
+
};
|
|
4822
|
+
/**
|
|
4823
|
+
* Get automation run
|
|
4824
|
+
* @description Get details of a single automation run including step results and context.
|
|
4825
|
+
*/
|
|
4826
|
+
get: operations["getAutomationRun"];
|
|
4827
|
+
put?: never;
|
|
4828
|
+
post?: never;
|
|
4829
|
+
delete?: never;
|
|
4830
|
+
options?: never;
|
|
4831
|
+
head?: never;
|
|
4832
|
+
patch?: never;
|
|
4833
|
+
trace?: never;
|
|
4834
|
+
};
|
|
4770
4835
|
"/v1/automations/assist/draft": {
|
|
4771
4836
|
parameters: {
|
|
4772
4837
|
query?: never;
|
|
@@ -5353,6 +5418,26 @@ export interface paths {
|
|
|
5353
5418
|
patch?: never;
|
|
5354
5419
|
trace?: never;
|
|
5355
5420
|
};
|
|
5421
|
+
"/v1/agents/{agent_id}/channels/{channel_id}/test": {
|
|
5422
|
+
parameters: {
|
|
5423
|
+
query?: never;
|
|
5424
|
+
header?: never;
|
|
5425
|
+
path?: never;
|
|
5426
|
+
cookie?: never;
|
|
5427
|
+
};
|
|
5428
|
+
get?: never;
|
|
5429
|
+
put?: never;
|
|
5430
|
+
/**
|
|
5431
|
+
* Test channel connectivity
|
|
5432
|
+
* @description Send a test message through the channel to verify connectivity and credentials.
|
|
5433
|
+
*/
|
|
5434
|
+
post: operations["testChannel"];
|
|
5435
|
+
delete?: never;
|
|
5436
|
+
options?: never;
|
|
5437
|
+
head?: never;
|
|
5438
|
+
patch?: never;
|
|
5439
|
+
trace?: never;
|
|
5440
|
+
};
|
|
5356
5441
|
"/v1/webhooks/telegram/{webhook_path}": {
|
|
5357
5442
|
parameters: {
|
|
5358
5443
|
query?: never;
|
|
@@ -5417,6 +5502,157 @@ export interface paths {
|
|
|
5417
5502
|
patch?: never;
|
|
5418
5503
|
trace?: never;
|
|
5419
5504
|
};
|
|
5505
|
+
"/v1/oauth/providers": {
|
|
5506
|
+
parameters: {
|
|
5507
|
+
query?: never;
|
|
5508
|
+
header?: never;
|
|
5509
|
+
path?: never;
|
|
5510
|
+
cookie?: never;
|
|
5511
|
+
};
|
|
5512
|
+
/**
|
|
5513
|
+
* List OAuth providers
|
|
5514
|
+
* @description Returns the list of supported OAuth providers with their metadata,
|
|
5515
|
+
* available scopes, and authorization URLs. No authentication required.
|
|
5516
|
+
*/
|
|
5517
|
+
get: operations["listOAuthProviders"];
|
|
5518
|
+
put?: never;
|
|
5519
|
+
post?: never;
|
|
5520
|
+
delete?: never;
|
|
5521
|
+
options?: never;
|
|
5522
|
+
head?: never;
|
|
5523
|
+
patch?: never;
|
|
5524
|
+
trace?: never;
|
|
5525
|
+
};
|
|
5526
|
+
"/v1/agents/{agent_id}/oauth/connect": {
|
|
5527
|
+
parameters: {
|
|
5528
|
+
query?: never;
|
|
5529
|
+
header?: never;
|
|
5530
|
+
path?: never;
|
|
5531
|
+
cookie?: never;
|
|
5532
|
+
};
|
|
5533
|
+
get?: never;
|
|
5534
|
+
put?: never;
|
|
5535
|
+
/**
|
|
5536
|
+
* Initiate OAuth connection
|
|
5537
|
+
* @description Start an OAuth authorization flow for the specified agent and provider.
|
|
5538
|
+
* Returns the authorization URL to redirect the user to. Human-only.
|
|
5539
|
+
*/
|
|
5540
|
+
post: operations["connectOAuth"];
|
|
5541
|
+
delete?: never;
|
|
5542
|
+
options?: never;
|
|
5543
|
+
head?: never;
|
|
5544
|
+
patch?: never;
|
|
5545
|
+
trace?: never;
|
|
5546
|
+
};
|
|
5547
|
+
"/v1/agents/{agent_id}/oauth/connections": {
|
|
5548
|
+
parameters: {
|
|
5549
|
+
query?: never;
|
|
5550
|
+
header?: never;
|
|
5551
|
+
path?: never;
|
|
5552
|
+
cookie?: never;
|
|
5553
|
+
};
|
|
5554
|
+
/**
|
|
5555
|
+
* List OAuth connections
|
|
5556
|
+
* @description List all active OAuth connections for the specified agent.
|
|
5557
|
+
*/
|
|
5558
|
+
get: operations["listOAuthConnections"];
|
|
5559
|
+
put?: never;
|
|
5560
|
+
post?: never;
|
|
5561
|
+
delete?: never;
|
|
5562
|
+
options?: never;
|
|
5563
|
+
head?: never;
|
|
5564
|
+
patch?: never;
|
|
5565
|
+
trace?: never;
|
|
5566
|
+
};
|
|
5567
|
+
"/v1/agents/{agent_id}/oauth/disconnect/{binding_id}": {
|
|
5568
|
+
parameters: {
|
|
5569
|
+
query?: never;
|
|
5570
|
+
header?: never;
|
|
5571
|
+
path?: never;
|
|
5572
|
+
cookie?: never;
|
|
5573
|
+
};
|
|
5574
|
+
get?: never;
|
|
5575
|
+
put?: never;
|
|
5576
|
+
/**
|
|
5577
|
+
* Disconnect OAuth connection
|
|
5578
|
+
* @description Disconnect an OAuth connection by revoking tokens and removing the binding.
|
|
5579
|
+
* Human-only.
|
|
5580
|
+
*/
|
|
5581
|
+
post: operations["disconnectOAuth"];
|
|
5582
|
+
delete?: never;
|
|
5583
|
+
options?: never;
|
|
5584
|
+
head?: never;
|
|
5585
|
+
patch?: never;
|
|
5586
|
+
trace?: never;
|
|
5587
|
+
};
|
|
5588
|
+
"/v1/agents/{agent_id}/oauth/app-credentials": {
|
|
5589
|
+
parameters: {
|
|
5590
|
+
query?: never;
|
|
5591
|
+
header?: never;
|
|
5592
|
+
path?: never;
|
|
5593
|
+
cookie?: never;
|
|
5594
|
+
};
|
|
5595
|
+
/**
|
|
5596
|
+
* List OAuth app credentials
|
|
5597
|
+
* @description List stored OAuth app credentials for the agent. Client secrets
|
|
5598
|
+
* are never returned in the response.
|
|
5599
|
+
*/
|
|
5600
|
+
get: operations["listOAuthAppCredentials"];
|
|
5601
|
+
put?: never;
|
|
5602
|
+
/**
|
|
5603
|
+
* Save OAuth app credentials
|
|
5604
|
+
* @description Store custom OAuth app credentials (client ID/secret) for a provider.
|
|
5605
|
+
* Allows the agent to use a BYOA (Bring Your Own App) OAuth application
|
|
5606
|
+
* instead of 1Claw's shared credentials. Human-only.
|
|
5607
|
+
*/
|
|
5608
|
+
post: operations["saveOAuthAppCredentials"];
|
|
5609
|
+
delete?: never;
|
|
5610
|
+
options?: never;
|
|
5611
|
+
head?: never;
|
|
5612
|
+
patch?: never;
|
|
5613
|
+
trace?: never;
|
|
5614
|
+
};
|
|
5615
|
+
"/v1/agents/{agent_id}/oauth/app-credentials/{provider_slug}": {
|
|
5616
|
+
parameters: {
|
|
5617
|
+
query?: never;
|
|
5618
|
+
header?: never;
|
|
5619
|
+
path?: never;
|
|
5620
|
+
cookie?: never;
|
|
5621
|
+
};
|
|
5622
|
+
get?: never;
|
|
5623
|
+
put?: never;
|
|
5624
|
+
post?: never;
|
|
5625
|
+
/**
|
|
5626
|
+
* Delete OAuth app credentials
|
|
5627
|
+
* @description Remove stored OAuth app credentials for a specific provider. Human-only.
|
|
5628
|
+
*/
|
|
5629
|
+
delete: operations["deleteOAuthAppCredentials"];
|
|
5630
|
+
options?: never;
|
|
5631
|
+
head?: never;
|
|
5632
|
+
patch?: never;
|
|
5633
|
+
trace?: never;
|
|
5634
|
+
};
|
|
5635
|
+
"/v1/oauth/callback": {
|
|
5636
|
+
parameters: {
|
|
5637
|
+
query?: never;
|
|
5638
|
+
header?: never;
|
|
5639
|
+
path?: never;
|
|
5640
|
+
cookie?: never;
|
|
5641
|
+
};
|
|
5642
|
+
/**
|
|
5643
|
+
* OAuth callback
|
|
5644
|
+
* @description Public callback URL that OAuth providers redirect to after user authorization.
|
|
5645
|
+
* Exchanges the authorization code for tokens and redirects to the dashboard.
|
|
5646
|
+
*/
|
|
5647
|
+
get: operations["oauthConnectCallback"];
|
|
5648
|
+
put?: never;
|
|
5649
|
+
post?: never;
|
|
5650
|
+
delete?: never;
|
|
5651
|
+
options?: never;
|
|
5652
|
+
head?: never;
|
|
5653
|
+
patch?: never;
|
|
5654
|
+
trace?: never;
|
|
5655
|
+
};
|
|
5420
5656
|
}
|
|
5421
5657
|
export type webhooks = Record<string, never>;
|
|
5422
5658
|
export interface components {
|
|
@@ -7980,6 +8216,8 @@ export interface components {
|
|
|
7980
8216
|
signing_key_chains?: string[];
|
|
7981
8217
|
/** @description One-time agent API key (ocv_ prefix). Store securely — not retrievable later. */
|
|
7982
8218
|
agent_api_key?: string | null;
|
|
8219
|
+
/** @description EOA address when provision_eoa is true in the template */
|
|
8220
|
+
agent_evm_address?: string | null;
|
|
7983
8221
|
/** @description Provisioned signing key details (chain, address, public key) */
|
|
7984
8222
|
signing_keys?: {
|
|
7985
8223
|
chain?: string;
|
|
@@ -7987,6 +8225,10 @@ export interface components {
|
|
|
7987
8225
|
public_key?: string;
|
|
7988
8226
|
address?: string;
|
|
7989
8227
|
}[];
|
|
8228
|
+
/** @description IDs of runtimes provisioned by the template */
|
|
8229
|
+
runtime_ids?: string[];
|
|
8230
|
+
/** @description IDs of automations provisioned by the template */
|
|
8231
|
+
automation_ids?: string[];
|
|
7990
8232
|
};
|
|
7991
8233
|
};
|
|
7992
8234
|
ConnectedAppResponse: {
|
|
@@ -8551,6 +8793,14 @@ export interface components {
|
|
|
8551
8793
|
last_run_at?: string | null;
|
|
8552
8794
|
/** Format: date-time */
|
|
8553
8795
|
next_run_at?: string | null;
|
|
8796
|
+
/** @description Status of the most recent run (enriched list field) */
|
|
8797
|
+
last_run_status?: string | null;
|
|
8798
|
+
/** @description Total runs in the last 30 days (enriched list field) */
|
|
8799
|
+
total_runs?: number | null;
|
|
8800
|
+
/** @description Success rate percentage (enriched list field) */
|
|
8801
|
+
success_rate?: number | null;
|
|
8802
|
+
/** @description Resolved agent display name (enriched list field) */
|
|
8803
|
+
agent_name?: string | null;
|
|
8554
8804
|
/** Format: date-time */
|
|
8555
8805
|
created_at: string;
|
|
8556
8806
|
/** Format: date-time */
|
|
@@ -8592,10 +8842,14 @@ export interface components {
|
|
|
8592
8842
|
/** Format: uuid */
|
|
8593
8843
|
agent_id: string;
|
|
8594
8844
|
/** @enum {string} */
|
|
8595
|
-
status: "
|
|
8845
|
+
status: "running" | "success" | "failed" | "timed_out" | "cancelled" | "awaiting_approval";
|
|
8596
8846
|
step_results?: unknown;
|
|
8597
8847
|
error?: string | null;
|
|
8598
8848
|
trigger_source?: string | null;
|
|
8849
|
+
/** @description JSONB context passed between workflow steps */
|
|
8850
|
+
context?: {
|
|
8851
|
+
[key: string]: unknown;
|
|
8852
|
+
} | null;
|
|
8599
8853
|
/** Format: date-time */
|
|
8600
8854
|
started_at: string;
|
|
8601
8855
|
/** Format: date-time */
|
|
@@ -8892,6 +9146,14 @@ export interface components {
|
|
|
8892
9146
|
webhook_path?: string;
|
|
8893
9147
|
webhook_url?: string;
|
|
8894
9148
|
is_active?: boolean;
|
|
9149
|
+
/**
|
|
9150
|
+
* @description Channel-specific configuration JSON. May include:
|
|
9151
|
+
* - sender_allowlist (array of strings): restrict which external senders can trigger the agent
|
|
9152
|
+
* - auto_respond_enabled (boolean): whether the agent auto-responds to inbound messages
|
|
9153
|
+
*/
|
|
9154
|
+
config?: {
|
|
9155
|
+
[key: string]: unknown;
|
|
9156
|
+
} | null;
|
|
8895
9157
|
/** Format: date-time */
|
|
8896
9158
|
created_at?: string;
|
|
8897
9159
|
/** Format: date-time */
|
|
@@ -8925,6 +9187,92 @@ export interface components {
|
|
|
8925
9187
|
ChannelMessageListResponse: {
|
|
8926
9188
|
messages?: components["schemas"]["ChannelMessageResponse"][];
|
|
8927
9189
|
};
|
|
9190
|
+
OAuthProviderScope: {
|
|
9191
|
+
scope?: string;
|
|
9192
|
+
label?: string;
|
|
9193
|
+
description?: string;
|
|
9194
|
+
default?: boolean;
|
|
9195
|
+
};
|
|
9196
|
+
OAuthProvider: {
|
|
9197
|
+
/** @description Unique provider identifier (e.g. "github", "google", "slack") */
|
|
9198
|
+
slug?: string;
|
|
9199
|
+
display_name?: string;
|
|
9200
|
+
/** Format: uri */
|
|
9201
|
+
icon_url?: string;
|
|
9202
|
+
/** Format: uri */
|
|
9203
|
+
authorization_url?: string;
|
|
9204
|
+
/** Format: uri */
|
|
9205
|
+
token_url?: string;
|
|
9206
|
+
scopes_available?: components["schemas"]["OAuthProviderScope"][];
|
|
9207
|
+
default_scopes?: string[];
|
|
9208
|
+
extra_auth_params?: {
|
|
9209
|
+
[key: string]: string;
|
|
9210
|
+
} | null;
|
|
9211
|
+
/** @description Whether custom app credentials are required (vs. shared 1Claw app) */
|
|
9212
|
+
requires_app_credentials?: boolean;
|
|
9213
|
+
/** Format: uri */
|
|
9214
|
+
documentation_url?: string | null;
|
|
9215
|
+
};
|
|
9216
|
+
OAuthProviderListResponse: {
|
|
9217
|
+
providers?: components["schemas"]["OAuthProvider"][];
|
|
9218
|
+
};
|
|
9219
|
+
ConnectOAuthRequest: {
|
|
9220
|
+
/** @description Provider to connect (e.g. "github", "google", "slack") */
|
|
9221
|
+
provider_slug: string;
|
|
9222
|
+
/** @description Override default scopes for this connection */
|
|
9223
|
+
scopes?: string[];
|
|
9224
|
+
/** @description URL to redirect to after the OAuth flow completes */
|
|
9225
|
+
redirect_after?: string;
|
|
9226
|
+
};
|
|
9227
|
+
ConnectOAuthResponse: {
|
|
9228
|
+
/**
|
|
9229
|
+
* Format: uri
|
|
9230
|
+
* @description Redirect the user to this URL to authorize the connection
|
|
9231
|
+
*/
|
|
9232
|
+
authorization_url?: string;
|
|
9233
|
+
};
|
|
9234
|
+
OAuthConnectionResponse: {
|
|
9235
|
+
/** Format: uuid */
|
|
9236
|
+
binding_id?: string;
|
|
9237
|
+
provider_slug?: string;
|
|
9238
|
+
provider_name?: string;
|
|
9239
|
+
scopes?: string[];
|
|
9240
|
+
/** @enum {string} */
|
|
9241
|
+
status?: "active" | "expired" | "revoked";
|
|
9242
|
+
needs_reauth?: boolean;
|
|
9243
|
+
/** Format: date-time */
|
|
9244
|
+
created_at?: string;
|
|
9245
|
+
};
|
|
9246
|
+
OAuthConnectionListResponse: {
|
|
9247
|
+
connections?: components["schemas"]["OAuthConnectionResponse"][];
|
|
9248
|
+
};
|
|
9249
|
+
SaveOAuthAppCredentialsRequest: {
|
|
9250
|
+
/** @description Provider this credential is for */
|
|
9251
|
+
provider_slug: string;
|
|
9252
|
+
client_id: string;
|
|
9253
|
+
/** @description Write-only; never returned in responses */
|
|
9254
|
+
client_secret: string;
|
|
9255
|
+
/**
|
|
9256
|
+
* Format: uri
|
|
9257
|
+
* @description Custom redirect URI override
|
|
9258
|
+
*/
|
|
9259
|
+
redirect_uri?: string;
|
|
9260
|
+
};
|
|
9261
|
+
OAuthAppCredentialResponse: {
|
|
9262
|
+
/** Format: uuid */
|
|
9263
|
+
id?: string;
|
|
9264
|
+
provider_slug?: string;
|
|
9265
|
+
client_id?: string;
|
|
9266
|
+
/** Format: uri */
|
|
9267
|
+
redirect_uri?: string | null;
|
|
9268
|
+
/** Format: date-time */
|
|
9269
|
+
created_at?: string;
|
|
9270
|
+
/** Format: date-time */
|
|
9271
|
+
updated_at?: string;
|
|
9272
|
+
};
|
|
9273
|
+
OAuthAppCredentialListResponse: {
|
|
9274
|
+
credentials?: components["schemas"]["OAuthAppCredentialResponse"][];
|
|
9275
|
+
};
|
|
8928
9276
|
};
|
|
8929
9277
|
responses: {
|
|
8930
9278
|
/** @description Invalid request */
|
|
@@ -13724,70 +14072,199 @@ export interface operations {
|
|
|
13724
14072
|
};
|
|
13725
14073
|
};
|
|
13726
14074
|
};
|
|
13727
|
-
|
|
14075
|
+
deletePlatformTemplate: {
|
|
13728
14076
|
parameters: {
|
|
13729
14077
|
query?: never;
|
|
13730
14078
|
header?: never;
|
|
13731
14079
|
path: {
|
|
13732
14080
|
appId: string;
|
|
14081
|
+
template_id: string;
|
|
13733
14082
|
};
|
|
13734
14083
|
cookie?: never;
|
|
13735
14084
|
};
|
|
13736
14085
|
requestBody?: never;
|
|
13737
14086
|
responses: {
|
|
13738
|
-
/** @description
|
|
13739
|
-
|
|
14087
|
+
/** @description Template deleted */
|
|
14088
|
+
204: {
|
|
13740
14089
|
headers: {
|
|
13741
14090
|
[name: string]: unknown;
|
|
13742
14091
|
};
|
|
13743
|
-
content
|
|
13744
|
-
"application/json": {
|
|
13745
|
-
policies?: components["schemas"]["SpendPolicyResponse"][];
|
|
13746
|
-
};
|
|
13747
|
-
};
|
|
14092
|
+
content?: never;
|
|
13748
14093
|
};
|
|
14094
|
+
404: components["responses"]["NotFound"];
|
|
13749
14095
|
};
|
|
13750
14096
|
};
|
|
13751
|
-
|
|
14097
|
+
updatePlatformTemplate: {
|
|
13752
14098
|
parameters: {
|
|
13753
14099
|
query?: never;
|
|
13754
14100
|
header?: never;
|
|
13755
14101
|
path: {
|
|
13756
14102
|
appId: string;
|
|
14103
|
+
template_id: string;
|
|
13757
14104
|
};
|
|
13758
14105
|
cookie?: never;
|
|
13759
14106
|
};
|
|
13760
14107
|
requestBody: {
|
|
13761
14108
|
content: {
|
|
13762
|
-
"application/json":
|
|
14109
|
+
"application/json": {
|
|
14110
|
+
name?: string;
|
|
14111
|
+
description?: string | null;
|
|
14112
|
+
spec?: {
|
|
14113
|
+
[key: string]: unknown;
|
|
14114
|
+
};
|
|
14115
|
+
is_active?: boolean;
|
|
14116
|
+
};
|
|
13763
14117
|
};
|
|
13764
14118
|
};
|
|
13765
14119
|
responses: {
|
|
13766
|
-
/** @description
|
|
13767
|
-
|
|
14120
|
+
/** @description Template updated */
|
|
14121
|
+
200: {
|
|
13768
14122
|
headers: {
|
|
13769
14123
|
[name: string]: unknown;
|
|
13770
14124
|
};
|
|
13771
14125
|
content: {
|
|
13772
|
-
"application/json": components["schemas"]["
|
|
14126
|
+
"application/json": components["schemas"]["PlatformTemplateResponse"];
|
|
13773
14127
|
};
|
|
13774
14128
|
};
|
|
13775
|
-
|
|
13776
|
-
403: components["responses"]["Forbidden"];
|
|
14129
|
+
404: components["responses"]["NotFound"];
|
|
13777
14130
|
};
|
|
13778
14131
|
};
|
|
13779
|
-
|
|
14132
|
+
updateConnectionDelegation: {
|
|
13780
14133
|
parameters: {
|
|
13781
14134
|
query?: never;
|
|
13782
14135
|
header?: never;
|
|
13783
14136
|
path: {
|
|
13784
|
-
|
|
13785
|
-
policyId: string;
|
|
14137
|
+
connectionId: string;
|
|
13786
14138
|
};
|
|
13787
14139
|
cookie?: never;
|
|
13788
14140
|
};
|
|
13789
|
-
requestBody
|
|
13790
|
-
|
|
14141
|
+
requestBody: {
|
|
14142
|
+
content: {
|
|
14143
|
+
"application/json": {
|
|
14144
|
+
delegation_enabled?: boolean;
|
|
14145
|
+
/** @description Scopes: vaults:read, vaults:write, agents:read, agents:write, secrets:read, secrets:write, automations:*, runtimes:* */
|
|
14146
|
+
delegation_scopes?: string[];
|
|
14147
|
+
};
|
|
14148
|
+
};
|
|
14149
|
+
};
|
|
14150
|
+
responses: {
|
|
14151
|
+
/** @description Delegation settings updated */
|
|
14152
|
+
200: {
|
|
14153
|
+
headers: {
|
|
14154
|
+
[name: string]: unknown;
|
|
14155
|
+
};
|
|
14156
|
+
content: {
|
|
14157
|
+
"application/json": {
|
|
14158
|
+
/** Format: uuid */
|
|
14159
|
+
connection_id?: string;
|
|
14160
|
+
delegation_enabled?: boolean;
|
|
14161
|
+
delegation_scopes?: string[];
|
|
14162
|
+
};
|
|
14163
|
+
};
|
|
14164
|
+
};
|
|
14165
|
+
404: components["responses"]["NotFound"];
|
|
14166
|
+
};
|
|
14167
|
+
};
|
|
14168
|
+
getDelegationLog: {
|
|
14169
|
+
parameters: {
|
|
14170
|
+
query?: never;
|
|
14171
|
+
header?: never;
|
|
14172
|
+
path: {
|
|
14173
|
+
connectionId: string;
|
|
14174
|
+
};
|
|
14175
|
+
cookie?: never;
|
|
14176
|
+
};
|
|
14177
|
+
requestBody?: never;
|
|
14178
|
+
responses: {
|
|
14179
|
+
/** @description Delegation log entries */
|
|
14180
|
+
200: {
|
|
14181
|
+
headers: {
|
|
14182
|
+
[name: string]: unknown;
|
|
14183
|
+
};
|
|
14184
|
+
content: {
|
|
14185
|
+
"application/json": {
|
|
14186
|
+
entries?: {
|
|
14187
|
+
action?: string;
|
|
14188
|
+
scope?: string;
|
|
14189
|
+
resource_type?: string;
|
|
14190
|
+
/** Format: uuid */
|
|
14191
|
+
resource_id?: string;
|
|
14192
|
+
/** Format: date-time */
|
|
14193
|
+
timestamp?: string;
|
|
14194
|
+
details?: {
|
|
14195
|
+
[key: string]: unknown;
|
|
14196
|
+
} | null;
|
|
14197
|
+
}[];
|
|
14198
|
+
};
|
|
14199
|
+
};
|
|
14200
|
+
};
|
|
14201
|
+
404: components["responses"]["NotFound"];
|
|
14202
|
+
};
|
|
14203
|
+
};
|
|
14204
|
+
listSpendPolicies: {
|
|
14205
|
+
parameters: {
|
|
14206
|
+
query?: never;
|
|
14207
|
+
header?: never;
|
|
14208
|
+
path: {
|
|
14209
|
+
appId: string;
|
|
14210
|
+
};
|
|
14211
|
+
cookie?: never;
|
|
14212
|
+
};
|
|
14213
|
+
requestBody?: never;
|
|
14214
|
+
responses: {
|
|
14215
|
+
/** @description Spend policies */
|
|
14216
|
+
200: {
|
|
14217
|
+
headers: {
|
|
14218
|
+
[name: string]: unknown;
|
|
14219
|
+
};
|
|
14220
|
+
content: {
|
|
14221
|
+
"application/json": {
|
|
14222
|
+
policies?: components["schemas"]["SpendPolicyResponse"][];
|
|
14223
|
+
};
|
|
14224
|
+
};
|
|
14225
|
+
};
|
|
14226
|
+
};
|
|
14227
|
+
};
|
|
14228
|
+
createSpendPolicy: {
|
|
14229
|
+
parameters: {
|
|
14230
|
+
query?: never;
|
|
14231
|
+
header?: never;
|
|
14232
|
+
path: {
|
|
14233
|
+
appId: string;
|
|
14234
|
+
};
|
|
14235
|
+
cookie?: never;
|
|
14236
|
+
};
|
|
14237
|
+
requestBody: {
|
|
14238
|
+
content: {
|
|
14239
|
+
"application/json": components["schemas"]["CreateSpendPolicyRequest"];
|
|
14240
|
+
};
|
|
14241
|
+
};
|
|
14242
|
+
responses: {
|
|
14243
|
+
/** @description Spend policy created */
|
|
14244
|
+
201: {
|
|
14245
|
+
headers: {
|
|
14246
|
+
[name: string]: unknown;
|
|
14247
|
+
};
|
|
14248
|
+
content: {
|
|
14249
|
+
"application/json": components["schemas"]["SpendPolicyResponse"];
|
|
14250
|
+
};
|
|
14251
|
+
};
|
|
14252
|
+
400: components["responses"]["BadRequest"];
|
|
14253
|
+
403: components["responses"]["Forbidden"];
|
|
14254
|
+
};
|
|
14255
|
+
};
|
|
14256
|
+
deleteSpendPolicy: {
|
|
14257
|
+
parameters: {
|
|
14258
|
+
query?: never;
|
|
14259
|
+
header?: never;
|
|
14260
|
+
path: {
|
|
14261
|
+
appId: string;
|
|
14262
|
+
policyId: string;
|
|
14263
|
+
};
|
|
14264
|
+
cookie?: never;
|
|
14265
|
+
};
|
|
14266
|
+
requestBody?: never;
|
|
14267
|
+
responses: {
|
|
13791
14268
|
/** @description Deleted */
|
|
13792
14269
|
204: {
|
|
13793
14270
|
headers: {
|
|
@@ -15193,6 +15670,31 @@ export interface operations {
|
|
|
15193
15670
|
404: components["responses"]["NotFound"];
|
|
15194
15671
|
};
|
|
15195
15672
|
};
|
|
15673
|
+
getAutomationRun: {
|
|
15674
|
+
parameters: {
|
|
15675
|
+
query?: never;
|
|
15676
|
+
header?: never;
|
|
15677
|
+
path: {
|
|
15678
|
+
automationId: string;
|
|
15679
|
+
runId: string;
|
|
15680
|
+
};
|
|
15681
|
+
cookie?: never;
|
|
15682
|
+
};
|
|
15683
|
+
requestBody?: never;
|
|
15684
|
+
responses: {
|
|
15685
|
+
/** @description Automation run detail */
|
|
15686
|
+
200: {
|
|
15687
|
+
headers: {
|
|
15688
|
+
[name: string]: unknown;
|
|
15689
|
+
};
|
|
15690
|
+
content: {
|
|
15691
|
+
"application/json": components["schemas"]["AutomationRunResponse"];
|
|
15692
|
+
};
|
|
15693
|
+
};
|
|
15694
|
+
401: components["responses"]["Unauthorized"];
|
|
15695
|
+
404: components["responses"]["NotFound"];
|
|
15696
|
+
};
|
|
15697
|
+
};
|
|
15196
15698
|
assistDraftAutomation: {
|
|
15197
15699
|
parameters: {
|
|
15198
15700
|
query?: never;
|
|
@@ -16188,6 +16690,44 @@ export interface operations {
|
|
|
16188
16690
|
401: components["responses"]["Unauthorized"];
|
|
16189
16691
|
};
|
|
16190
16692
|
};
|
|
16693
|
+
testChannel: {
|
|
16694
|
+
parameters: {
|
|
16695
|
+
query?: never;
|
|
16696
|
+
header?: never;
|
|
16697
|
+
path: {
|
|
16698
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16699
|
+
channel_id: string;
|
|
16700
|
+
};
|
|
16701
|
+
cookie?: never;
|
|
16702
|
+
};
|
|
16703
|
+
requestBody?: {
|
|
16704
|
+
content: {
|
|
16705
|
+
"application/json": {
|
|
16706
|
+
/** @description Optional chat ID to send the test message to */
|
|
16707
|
+
external_chat_id?: string;
|
|
16708
|
+
/** @description Optional custom test message content */
|
|
16709
|
+
content?: string;
|
|
16710
|
+
};
|
|
16711
|
+
};
|
|
16712
|
+
};
|
|
16713
|
+
responses: {
|
|
16714
|
+
/** @description Test result */
|
|
16715
|
+
200: {
|
|
16716
|
+
headers: {
|
|
16717
|
+
[name: string]: unknown;
|
|
16718
|
+
};
|
|
16719
|
+
content: {
|
|
16720
|
+
"application/json": {
|
|
16721
|
+
success?: boolean;
|
|
16722
|
+
message?: string | null;
|
|
16723
|
+
error?: string | null;
|
|
16724
|
+
};
|
|
16725
|
+
};
|
|
16726
|
+
};
|
|
16727
|
+
401: components["responses"]["Unauthorized"];
|
|
16728
|
+
404: components["responses"]["NotFound"];
|
|
16729
|
+
};
|
|
16730
|
+
};
|
|
16191
16731
|
telegramWebhook: {
|
|
16192
16732
|
parameters: {
|
|
16193
16733
|
query?: never;
|
|
@@ -16284,5 +16824,201 @@ export interface operations {
|
|
|
16284
16824
|
};
|
|
16285
16825
|
};
|
|
16286
16826
|
};
|
|
16827
|
+
listOAuthProviders: {
|
|
16828
|
+
parameters: {
|
|
16829
|
+
query?: never;
|
|
16830
|
+
header?: never;
|
|
16831
|
+
path?: never;
|
|
16832
|
+
cookie?: never;
|
|
16833
|
+
};
|
|
16834
|
+
requestBody?: never;
|
|
16835
|
+
responses: {
|
|
16836
|
+
/** @description Provider list */
|
|
16837
|
+
200: {
|
|
16838
|
+
headers: {
|
|
16839
|
+
[name: string]: unknown;
|
|
16840
|
+
};
|
|
16841
|
+
content: {
|
|
16842
|
+
"application/json": components["schemas"]["OAuthProviderListResponse"];
|
|
16843
|
+
};
|
|
16844
|
+
};
|
|
16845
|
+
};
|
|
16846
|
+
};
|
|
16847
|
+
connectOAuth: {
|
|
16848
|
+
parameters: {
|
|
16849
|
+
query?: never;
|
|
16850
|
+
header?: never;
|
|
16851
|
+
path: {
|
|
16852
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16853
|
+
};
|
|
16854
|
+
cookie?: never;
|
|
16855
|
+
};
|
|
16856
|
+
requestBody: {
|
|
16857
|
+
content: {
|
|
16858
|
+
"application/json": components["schemas"]["ConnectOAuthRequest"];
|
|
16859
|
+
};
|
|
16860
|
+
};
|
|
16861
|
+
responses: {
|
|
16862
|
+
/** @description Authorization URL generated */
|
|
16863
|
+
200: {
|
|
16864
|
+
headers: {
|
|
16865
|
+
[name: string]: unknown;
|
|
16866
|
+
};
|
|
16867
|
+
content: {
|
|
16868
|
+
"application/json": components["schemas"]["ConnectOAuthResponse"];
|
|
16869
|
+
};
|
|
16870
|
+
};
|
|
16871
|
+
400: components["responses"]["BadRequest"];
|
|
16872
|
+
403: components["responses"]["Forbidden"];
|
|
16873
|
+
404: components["responses"]["NotFound"];
|
|
16874
|
+
};
|
|
16875
|
+
};
|
|
16876
|
+
listOAuthConnections: {
|
|
16877
|
+
parameters: {
|
|
16878
|
+
query?: never;
|
|
16879
|
+
header?: never;
|
|
16880
|
+
path: {
|
|
16881
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16882
|
+
};
|
|
16883
|
+
cookie?: never;
|
|
16884
|
+
};
|
|
16885
|
+
requestBody?: never;
|
|
16886
|
+
responses: {
|
|
16887
|
+
/** @description Connection list */
|
|
16888
|
+
200: {
|
|
16889
|
+
headers: {
|
|
16890
|
+
[name: string]: unknown;
|
|
16891
|
+
};
|
|
16892
|
+
content: {
|
|
16893
|
+
"application/json": components["schemas"]["OAuthConnectionListResponse"];
|
|
16894
|
+
};
|
|
16895
|
+
};
|
|
16896
|
+
404: components["responses"]["NotFound"];
|
|
16897
|
+
};
|
|
16898
|
+
};
|
|
16899
|
+
disconnectOAuth: {
|
|
16900
|
+
parameters: {
|
|
16901
|
+
query?: never;
|
|
16902
|
+
header?: never;
|
|
16903
|
+
path: {
|
|
16904
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16905
|
+
binding_id: string;
|
|
16906
|
+
};
|
|
16907
|
+
cookie?: never;
|
|
16908
|
+
};
|
|
16909
|
+
requestBody?: never;
|
|
16910
|
+
responses: {
|
|
16911
|
+
/** @description Connection disconnected */
|
|
16912
|
+
204: {
|
|
16913
|
+
headers: {
|
|
16914
|
+
[name: string]: unknown;
|
|
16915
|
+
};
|
|
16916
|
+
content?: never;
|
|
16917
|
+
};
|
|
16918
|
+
403: components["responses"]["Forbidden"];
|
|
16919
|
+
404: components["responses"]["NotFound"];
|
|
16920
|
+
};
|
|
16921
|
+
};
|
|
16922
|
+
listOAuthAppCredentials: {
|
|
16923
|
+
parameters: {
|
|
16924
|
+
query?: never;
|
|
16925
|
+
header?: never;
|
|
16926
|
+
path: {
|
|
16927
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16928
|
+
};
|
|
16929
|
+
cookie?: never;
|
|
16930
|
+
};
|
|
16931
|
+
requestBody?: never;
|
|
16932
|
+
responses: {
|
|
16933
|
+
/** @description Credential list */
|
|
16934
|
+
200: {
|
|
16935
|
+
headers: {
|
|
16936
|
+
[name: string]: unknown;
|
|
16937
|
+
};
|
|
16938
|
+
content: {
|
|
16939
|
+
"application/json": components["schemas"]["OAuthAppCredentialListResponse"];
|
|
16940
|
+
};
|
|
16941
|
+
};
|
|
16942
|
+
404: components["responses"]["NotFound"];
|
|
16943
|
+
};
|
|
16944
|
+
};
|
|
16945
|
+
saveOAuthAppCredentials: {
|
|
16946
|
+
parameters: {
|
|
16947
|
+
query?: never;
|
|
16948
|
+
header?: never;
|
|
16949
|
+
path: {
|
|
16950
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16951
|
+
};
|
|
16952
|
+
cookie?: never;
|
|
16953
|
+
};
|
|
16954
|
+
requestBody: {
|
|
16955
|
+
content: {
|
|
16956
|
+
"application/json": components["schemas"]["SaveOAuthAppCredentialsRequest"];
|
|
16957
|
+
};
|
|
16958
|
+
};
|
|
16959
|
+
responses: {
|
|
16960
|
+
/** @description Credentials saved */
|
|
16961
|
+
201: {
|
|
16962
|
+
headers: {
|
|
16963
|
+
[name: string]: unknown;
|
|
16964
|
+
};
|
|
16965
|
+
content: {
|
|
16966
|
+
"application/json": components["schemas"]["OAuthAppCredentialResponse"];
|
|
16967
|
+
};
|
|
16968
|
+
};
|
|
16969
|
+
400: components["responses"]["BadRequest"];
|
|
16970
|
+
403: components["responses"]["Forbidden"];
|
|
16971
|
+
404: components["responses"]["NotFound"];
|
|
16972
|
+
};
|
|
16973
|
+
};
|
|
16974
|
+
deleteOAuthAppCredentials: {
|
|
16975
|
+
parameters: {
|
|
16976
|
+
query?: never;
|
|
16977
|
+
header?: never;
|
|
16978
|
+
path: {
|
|
16979
|
+
agent_id: components["parameters"]["AgentId"];
|
|
16980
|
+
/** @description Provider identifier (e.g. "github", "google", "slack") */
|
|
16981
|
+
provider_slug: string;
|
|
16982
|
+
};
|
|
16983
|
+
cookie?: never;
|
|
16984
|
+
};
|
|
16985
|
+
requestBody?: never;
|
|
16986
|
+
responses: {
|
|
16987
|
+
/** @description Credentials deleted */
|
|
16988
|
+
204: {
|
|
16989
|
+
headers: {
|
|
16990
|
+
[name: string]: unknown;
|
|
16991
|
+
};
|
|
16992
|
+
content?: never;
|
|
16993
|
+
};
|
|
16994
|
+
403: components["responses"]["Forbidden"];
|
|
16995
|
+
404: components["responses"]["NotFound"];
|
|
16996
|
+
};
|
|
16997
|
+
};
|
|
16998
|
+
oauthConnectCallback: {
|
|
16999
|
+
parameters: {
|
|
17000
|
+
query?: {
|
|
17001
|
+
/** @description Authorization code from the OAuth provider */
|
|
17002
|
+
code?: string;
|
|
17003
|
+
/** @description Opaque state parameter for CSRF protection and session binding */
|
|
17004
|
+
state?: string;
|
|
17005
|
+
/** @description Error code if the authorization was denied or failed */
|
|
17006
|
+
error?: string;
|
|
17007
|
+
};
|
|
17008
|
+
header?: never;
|
|
17009
|
+
path?: never;
|
|
17010
|
+
cookie?: never;
|
|
17011
|
+
};
|
|
17012
|
+
requestBody?: never;
|
|
17013
|
+
responses: {
|
|
17014
|
+
/** @description Redirect to dashboard with success or error status */
|
|
17015
|
+
302: {
|
|
17016
|
+
headers: {
|
|
17017
|
+
[name: string]: unknown;
|
|
17018
|
+
};
|
|
17019
|
+
content?: never;
|
|
17020
|
+
};
|
|
17021
|
+
};
|
|
17022
|
+
};
|
|
16287
17023
|
}
|
|
16288
17024
|
//# sourceMappingURL=api-types.d.ts.map
|