@1claw/sdk 0.44.0 → 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/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 +433 -0
- 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/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/types.d.ts +58 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core/client.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { DiscoveryResource } from "../resources/discovery";
|
|
|
33
33
|
import { ChatResource } from "../resources/chat";
|
|
34
34
|
import { ChannelsResource } from "../resources/channels";
|
|
35
35
|
import { WebhooksResource } from "../resources/webhooks";
|
|
36
|
+
import { OAuthConnectResource } from "../resources/oauth-connect";
|
|
36
37
|
/**
|
|
37
38
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
38
39
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -122,6 +123,8 @@ export declare class OneclawClient {
|
|
|
122
123
|
readonly channels: ChannelsResource;
|
|
123
124
|
/** Webhooks — register and manage event notification webhooks. */
|
|
124
125
|
readonly webhooks: WebhooksResource;
|
|
126
|
+
/** OAuth Connected Accounts — manage OAuth connections for agents. */
|
|
127
|
+
readonly oauthConnect: OAuthConnectResource;
|
|
125
128
|
constructor(config: OneclawClientConfig);
|
|
126
129
|
private autoAuthenticateUserKey;
|
|
127
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts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|
32
32
|
import { ChatResource } from "../resources/chat.js";
|
|
33
33
|
import { ChannelsResource } from "../resources/channels.js";
|
|
34
34
|
import { WebhooksResource } from "../resources/webhooks.js";
|
|
35
|
+
import { OAuthConnectResource } from "../resources/oauth-connect.js";
|
|
35
36
|
/**
|
|
36
37
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
37
38
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -96,6 +97,7 @@ export class OneclawClient {
|
|
|
96
97
|
this.chat = new ChatResource(this.http);
|
|
97
98
|
this.channels = new ChannelsResource(this.http);
|
|
98
99
|
this.webhooks = new WebhooksResource(this.http);
|
|
100
|
+
this.oauthConnect = new OAuthConnectResource(this.http);
|
|
99
101
|
}
|
|
100
102
|
autoAuthenticateUserKey(config) {
|
|
101
103
|
const authPromise = this.http
|
package/dist/core/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC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IAAI,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEO,uBAAuB,CAAC,MAA2B;QACvD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI;aACxB,OAAO,CAA2B,MAAM,EAAE,wBAAwB,EAAE;YACjE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;SACnC,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACV,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY;gBACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEP,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE;YACnB,mDAAmD;QACvD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CAAC,MAA2B;IACpD,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -5502,6 +5502,157 @@ export interface paths {
|
|
|
5502
5502
|
patch?: never;
|
|
5503
5503
|
trace?: never;
|
|
5504
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
|
+
};
|
|
5505
5656
|
}
|
|
5506
5657
|
export type webhooks = Record<string, never>;
|
|
5507
5658
|
export interface components {
|
|
@@ -9036,6 +9187,92 @@ export interface components {
|
|
|
9036
9187
|
ChannelMessageListResponse: {
|
|
9037
9188
|
messages?: components["schemas"]["ChannelMessageResponse"][];
|
|
9038
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
|
+
};
|
|
9039
9276
|
};
|
|
9040
9277
|
responses: {
|
|
9041
9278
|
/** @description Invalid request */
|
|
@@ -16587,5 +16824,201 @@ export interface operations {
|
|
|
16587
16824
|
};
|
|
16588
16825
|
};
|
|
16589
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
|
+
};
|
|
16590
17023
|
}
|
|
16591
17024
|
//# sourceMappingURL=api-types.d.ts.map
|