@atlanai/sdk 0.2.2 → 0.2.4
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 +6 -2
- package/dist/client.d.ts +20 -3
- package/dist/client.js +130 -9
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +34 -1
- package/dist/evals.d.ts +135 -8
- package/dist/evals.js +1004 -73
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -1
- package/dist/manifest.json +84 -11
- package/dist/raw/agent/apis/AgentsApi.d.ts +29 -0
- package/dist/raw/agent/apis/AgentsApi.js +62 -1
- package/dist/raw/agent/apis/SessionsApi.d.ts +2 -2
- package/dist/raw/agent/apis/SessionsApi.js +2 -2
- package/dist/raw/agent/models/AgentAgentArtifactView.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentArtifactView.js +13 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.js +2 -0
- package/dist/raw/agent/models/AgentAgentMeta.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentMeta.js +13 -0
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.d.ts +55 -2
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderCreate.d.ts +24 -3
- package/dist/raw/agent/models/AgentAgentProviderCreate.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderMeta.d.ts +56 -13
- package/dist/raw/agent/models/AgentAgentProviderMeta.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.d.ts +13 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderType.d.ts +19 -9
- package/dist/raw/agent/models/AgentAgentProviderType.js +18 -8
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.d.ts +1 -0
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.js +1 -0
- package/dist/raw/agent/models/AgentPageSessionEventView.d.ts +3 -3
- package/dist/raw/agent/models/AgentPageSessionEventView.js +3 -3
- package/dist/raw/agent/models/AgentRemoteSessionEvent.d.ts +38 -0
- package/dist/raw/agent/models/AgentRemoteSessionEvent.js +58 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentSessionEventView.d.ts +30 -0
- package/dist/raw/agent/models/AgentSessionEventView.js +57 -0
- package/dist/raw/agent/models/AgentSessionMeta.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionMeta.js +2 -0
- package/dist/raw/agent/models/AgentSessionStreamFrame.d.ts +8 -6
- package/dist/raw/agent/models/AgentSessionStreamFrame.js +7 -0
- package/dist/raw/agent/models/AgentSyncState.d.ts +27 -0
- package/dist/raw/agent/models/AgentSyncState.js +55 -0
- package/dist/raw/agent/models/TriggerBody.d.ts +52 -0
- package/dist/raw/agent/models/TriggerBody.js +58 -0
- package/dist/raw/agent/models/index.d.ts +4 -1
- package/dist/raw/agent/models/index.js +4 -1
- package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +1 -0
- package/dist/raw/eval/models/EvalListDatasets401Response.js +1 -0
- package/dist/raw/file/models/FileList401Response.d.ts +1 -0
- package/dist/raw/file/models/FileList401Response.js +1 -0
- package/dist/raw/mcp/apis/ServersApi.d.ts +2 -2
- package/dist/raw/mcp/apis/ServersApi.js +2 -2
- package/dist/raw/mcp/models/McpConnectionState.d.ts +2 -1
- package/dist/raw/mcp/models/McpConnectionState.js +2 -1
- package/dist/raw/mcp/models/McpListServers401Response.d.ts +1 -0
- package/dist/raw/mcp/models/McpListServers401Response.js +1 -0
- package/dist/raw/mcp/models/McpServerTestResponse.d.ts +13 -2
- package/dist/raw/model/models/ModelListProviders401Response.d.ts +1 -0
- package/dist/raw/model/models/ModelListProviders401Response.js +1 -0
- package/dist/raw/registry/apis/WorkspacesApi.d.ts +28 -0
- package/dist/raw/registry/apis/WorkspacesApi.js +61 -1
- package/dist/raw/registry/models/CreateWorkspaceBody.d.ts +9 -0
- package/dist/raw/registry/models/CreateWorkspaceBody.js +2 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.d.ts +1 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.js +1 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.d.ts +9 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.js +4 -0
- package/dist/raw/registry/models/SearchRequest.d.ts +1 -1
- package/dist/raw/registry/models/SetVisibilityBody.d.ts +33 -0
- package/dist/raw/registry/models/SetVisibilityBody.js +50 -0
- package/dist/raw/registry/models/index.d.ts +1 -0
- package/dist/raw/registry/models/index.js +1 -0
- package/dist/raw/secret/apis/OauthApi.d.ts +143 -0
- package/dist/raw/secret/apis/OauthApi.js +335 -0
- package/dist/raw/secret/apis/index.d.ts +1 -0
- package/dist/raw/secret/apis/index.js +19 -0
- package/dist/raw/secret/index.d.ts +1 -0
- package/dist/raw/secret/index.js +1 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.d.ts +32 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.js +50 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.d.ts +46 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.js +55 -0
- package/dist/raw/secret/models/GatewayOauthConnection.d.ts +83 -0
- package/dist/raw/secret/models/GatewayOauthConnection.js +83 -0
- package/dist/raw/secret/models/GatewayOauthOwner.d.ts +31 -0
- package/dist/raw/secret/models/GatewayOauthOwner.js +59 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.d.ts +69 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.js +69 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.d.ts +52 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.js +59 -0
- package/dist/raw/secret/models/GatewayOauthStarted.d.ts +39 -0
- package/dist/raw/secret/models/GatewayOauthStarted.js +54 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.d.ts +70 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.js +80 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.js +75 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.d.ts +67 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.js +77 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.d.ts +68 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.js +78 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.d.ts +80 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.js +90 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.d.ts +65 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.js +75 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.js +74 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.js +75 -0
- package/dist/raw/secret/models/index.d.ts +19 -0
- package/dist/raw/secret/models/index.js +19 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.d.ts +1 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.js +1 -0
- package/dist/resource-types.d.ts +670 -0
- package/dist/resource-types.js +2 -0
- package/dist/resources.d.ts +10 -0
- package/dist/resources.js +54 -4
- package/dist/resources.json +86 -0
- package/dist/tracing/client.d.ts +8 -1
- package/dist/tracing/client.js +43 -16
- package/dist/tracing/config.d.ts +3 -1
- package/dist/tracing/config.js +7 -2
- package/dist/tracing/exporter.d.ts +19 -1
- package/dist/tracing/exporter.js +56 -14
- package/dist/tracing/propagation.d.ts +2 -0
- package/dist/tracing/propagation.js +16 -0
- package/dist/tracing/semconv.d.ts +4 -0
- package/dist/tracing/semconv.js +14 -2
- package/dist/tracing/spans.d.ts +2 -0
- package/dist/tracing/spans.js +12 -1
- package/dist/tracing/version.d.ts +1 -1
- package/dist/tracing/version.js +1 -1
- package/package.json +1 -1
- package/dist/raw/agent/models/Box.d.ts +0 -342
- package/dist/raw/agent/models/Box.js +0 -167
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* secret
|
|
6
|
+
* Operations provided by secret.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SecretStartOauthContentEncodingEnum = exports.SecretCompleteOauthContentEncodingEnum = exports.OauthApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const GatewayOauthCompleteRequest_1 = require("../models/GatewayOauthCompleteRequest");
|
|
52
|
+
const GatewayOauthCompletion_1 = require("../models/GatewayOauthCompletion");
|
|
53
|
+
const GatewayOauthConnection_1 = require("../models/GatewayOauthConnection");
|
|
54
|
+
const GatewayOauthProviderView_1 = require("../models/GatewayOauthProviderView");
|
|
55
|
+
const GatewayOauthStartRequest_1 = require("../models/GatewayOauthStartRequest");
|
|
56
|
+
const GatewayOauthStarted_1 = require("../models/GatewayOauthStarted");
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
class OauthApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for secretCompleteOauth without sending the request
|
|
63
|
+
*/
|
|
64
|
+
async secretCompleteOauthRequestOpts(requestParameters) {
|
|
65
|
+
if (requestParameters['gatewayOauthCompleteRequest'] == null) {
|
|
66
|
+
throw new runtime.RequiredError('gatewayOauthCompleteRequest', 'Required parameter "gatewayOauthCompleteRequest" was null or undefined when calling secretCompleteOauth().');
|
|
67
|
+
}
|
|
68
|
+
const queryParameters = {};
|
|
69
|
+
const headerParameters = {};
|
|
70
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
+
if (requestParameters['contentEncoding'] != null) {
|
|
72
|
+
headerParameters['Content-Encoding'] = String(requestParameters['contentEncoding']);
|
|
73
|
+
}
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = await token("bearer", []);
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
let urlPath = `/oauth/complete`;
|
|
82
|
+
return {
|
|
83
|
+
path: urlPath,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
body: (0, GatewayOauthCompleteRequest_1.GatewayOauthCompleteRequestToJSON)(requestParameters['gatewayOauthCompleteRequest']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Use this operation to `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
92
|
+
* `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
93
|
+
*/
|
|
94
|
+
async secretCompleteOauthRaw(requestParameters, initOverrides) {
|
|
95
|
+
const requestOptions = await this.secretCompleteOauthRequestOpts(requestParameters);
|
|
96
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GatewayOauthCompletion_1.GatewayOauthCompletionFromJSON)(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Use this operation to `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
101
|
+
* `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
102
|
+
*/
|
|
103
|
+
async secretCompleteOauth(requestParameters, initOverrides) {
|
|
104
|
+
const response = await this.secretCompleteOauthRaw(requestParameters, initOverrides);
|
|
105
|
+
return await response.value();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Creates request options for secretDisconnectOauth without sending the request
|
|
109
|
+
*/
|
|
110
|
+
async secretDisconnectOauthRequestOpts(requestParameters) {
|
|
111
|
+
if (requestParameters['secretId'] == null) {
|
|
112
|
+
throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling secretDisconnectOauth().');
|
|
113
|
+
}
|
|
114
|
+
const queryParameters = {};
|
|
115
|
+
const headerParameters = {};
|
|
116
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
117
|
+
const token = this.configuration.accessToken;
|
|
118
|
+
const tokenString = await token("bearer", []);
|
|
119
|
+
if (tokenString) {
|
|
120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
let urlPath = `/oauth/connections/{secret_id}`;
|
|
124
|
+
urlPath = urlPath.replace('{secret_id}', encodeURIComponent(String(requestParameters['secretId'])));
|
|
125
|
+
return {
|
|
126
|
+
path: urlPath,
|
|
127
|
+
method: 'DELETE',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Use this operation to `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
134
|
+
* `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
135
|
+
*/
|
|
136
|
+
async secretDisconnectOauthRaw(requestParameters, initOverrides) {
|
|
137
|
+
const requestOptions = await this.secretDisconnectOauthRequestOpts(requestParameters);
|
|
138
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
139
|
+
return new runtime.VoidApiResponse(response);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Use this operation to `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
143
|
+
* `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
144
|
+
*/
|
|
145
|
+
async secretDisconnectOauth(requestParameters, initOverrides) {
|
|
146
|
+
await this.secretDisconnectOauthRaw(requestParameters, initOverrides);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates request options for secretListOauthConnections without sending the request
|
|
150
|
+
*/
|
|
151
|
+
async secretListOauthConnectionsRequestOpts(requestParameters) {
|
|
152
|
+
const queryParameters = {};
|
|
153
|
+
if (requestParameters['provider'] != null) {
|
|
154
|
+
queryParameters['provider'] = requestParameters['provider'];
|
|
155
|
+
}
|
|
156
|
+
const headerParameters = {};
|
|
157
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
158
|
+
const token = this.configuration.accessToken;
|
|
159
|
+
const tokenString = await token("bearer", []);
|
|
160
|
+
if (tokenString) {
|
|
161
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
let urlPath = `/oauth/connections`;
|
|
165
|
+
return {
|
|
166
|
+
path: urlPath,
|
|
167
|
+
method: 'GET',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Use this operation to `GET /<ext>/v1/oauth/connections`.
|
|
174
|
+
* `GET /<ext>/v1/oauth/connections`.
|
|
175
|
+
*/
|
|
176
|
+
async secretListOauthConnectionsRaw(requestParameters, initOverrides) {
|
|
177
|
+
const requestOptions = await this.secretListOauthConnectionsRequestOpts(requestParameters);
|
|
178
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
179
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GatewayOauthConnection_1.GatewayOauthConnectionFromJSON));
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Use this operation to `GET /<ext>/v1/oauth/connections`.
|
|
183
|
+
* `GET /<ext>/v1/oauth/connections`.
|
|
184
|
+
*/
|
|
185
|
+
async secretListOauthConnections(requestParameters = {}, initOverrides) {
|
|
186
|
+
const response = await this.secretListOauthConnectionsRaw(requestParameters, initOverrides);
|
|
187
|
+
return await response.value();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Creates request options for secretListOauthProviders without sending the request
|
|
191
|
+
*/
|
|
192
|
+
async secretListOauthProvidersRequestOpts() {
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = await token("bearer", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
let urlPath = `/oauth/providers`;
|
|
203
|
+
return {
|
|
204
|
+
path: urlPath,
|
|
205
|
+
method: 'GET',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Use this operation to `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
212
|
+
* `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
213
|
+
*/
|
|
214
|
+
async secretListOauthProvidersRaw(initOverrides) {
|
|
215
|
+
const requestOptions = await this.secretListOauthProvidersRequestOpts();
|
|
216
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
217
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GatewayOauthProviderView_1.GatewayOauthProviderViewFromJSON));
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Use this operation to `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
221
|
+
* `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
222
|
+
*/
|
|
223
|
+
async secretListOauthProviders(initOverrides) {
|
|
224
|
+
const response = await this.secretListOauthProvidersRaw(initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for secretOauthCallback without sending the request
|
|
229
|
+
*/
|
|
230
|
+
async secretOauthCallbackRequestOpts(requestParameters) {
|
|
231
|
+
if (requestParameters['provider'] == null) {
|
|
232
|
+
throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling secretOauthCallback().');
|
|
233
|
+
}
|
|
234
|
+
const queryParameters = {};
|
|
235
|
+
if (requestParameters['code'] != null) {
|
|
236
|
+
queryParameters['code'] = requestParameters['code'];
|
|
237
|
+
}
|
|
238
|
+
if (requestParameters['state'] != null) {
|
|
239
|
+
queryParameters['state'] = requestParameters['state'];
|
|
240
|
+
}
|
|
241
|
+
if (requestParameters['error'] != null) {
|
|
242
|
+
queryParameters['error'] = requestParameters['error'];
|
|
243
|
+
}
|
|
244
|
+
const headerParameters = {};
|
|
245
|
+
let urlPath = `/oauth/callback/{provider}`;
|
|
246
|
+
urlPath = urlPath.replace('{provider}', encodeURIComponent(String(requestParameters['provider'])));
|
|
247
|
+
return {
|
|
248
|
+
path: urlPath,
|
|
249
|
+
method: 'GET',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* # Why this one route has no bearer, and what authenticates it instead The caller here is the user\'s **browser**, arriving from the provider. It carries no Atlan credential and cannot be made to: the redirect target is registered with the provider months earlier and is followed by a plain navigation. The authenticator is the `state` parameter. It is 32 bytes of system entropy minted by [`crate::flow::random_token`], stored only as its `sha256`, bound at `start` to one org, one subject and one workspace, single-use, and valid for ten minutes. Presenting it proves possession of something only the browser that began this consent received. **And it is deliberately not sufficient on its own.** This handler does one thing: park the code against the attempt. Every decision that matters — whether the caller may write to that workspace, whose grant this becomes — happens in `complete`, under a verified Atlan bearer that must match the subject recorded at `start`. So a stolen `state` gets an attacker exactly as far as making the legitimate user\'s own connection succeed. This is the compensating control the anonymous-tail entry needs. The five pre-existing anonymous tails were justified on the grounds that they \"carry no secret: the assets are bytes compiled into the binary, with no data plane behind the handler\" — which is not true here, so the justification has to be this instead, and it has to be the SDK\'s rather than any extension\'s. The response is a static page: no artifact content, no token, no reflection of any query parameter, and `no-store` so a shared browser does not keep it.
|
|
256
|
+
* `GET /<ext>/v1/oauth/callback/{provider}` — the provider\'s redirect target.
|
|
257
|
+
*/
|
|
258
|
+
async secretOauthCallbackRaw(requestParameters, initOverrides) {
|
|
259
|
+
const requestOptions = await this.secretOauthCallbackRequestOpts(requestParameters);
|
|
260
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
261
|
+
return new runtime.VoidApiResponse(response);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* # Why this one route has no bearer, and what authenticates it instead The caller here is the user\'s **browser**, arriving from the provider. It carries no Atlan credential and cannot be made to: the redirect target is registered with the provider months earlier and is followed by a plain navigation. The authenticator is the `state` parameter. It is 32 bytes of system entropy minted by [`crate::flow::random_token`], stored only as its `sha256`, bound at `start` to one org, one subject and one workspace, single-use, and valid for ten minutes. Presenting it proves possession of something only the browser that began this consent received. **And it is deliberately not sufficient on its own.** This handler does one thing: park the code against the attempt. Every decision that matters — whether the caller may write to that workspace, whose grant this becomes — happens in `complete`, under a verified Atlan bearer that must match the subject recorded at `start`. So a stolen `state` gets an attacker exactly as far as making the legitimate user\'s own connection succeed. This is the compensating control the anonymous-tail entry needs. The five pre-existing anonymous tails were justified on the grounds that they \"carry no secret: the assets are bytes compiled into the binary, with no data plane behind the handler\" — which is not true here, so the justification has to be this instead, and it has to be the SDK\'s rather than any extension\'s. The response is a static page: no artifact content, no token, no reflection of any query parameter, and `no-store` so a shared browser does not keep it.
|
|
265
|
+
* `GET /<ext>/v1/oauth/callback/{provider}` — the provider\'s redirect target.
|
|
266
|
+
*/
|
|
267
|
+
async secretOauthCallback(requestParameters, initOverrides) {
|
|
268
|
+
await this.secretOauthCallbackRaw(requestParameters, initOverrides);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Creates request options for secretStartOauth without sending the request
|
|
272
|
+
*/
|
|
273
|
+
async secretStartOauthRequestOpts(requestParameters) {
|
|
274
|
+
if (requestParameters['gatewayOauthStartRequest'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('gatewayOauthStartRequest', 'Required parameter "gatewayOauthStartRequest" was null or undefined when calling secretStartOauth().');
|
|
276
|
+
}
|
|
277
|
+
const queryParameters = {};
|
|
278
|
+
const headerParameters = {};
|
|
279
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
280
|
+
if (requestParameters['contentEncoding'] != null) {
|
|
281
|
+
headerParameters['Content-Encoding'] = String(requestParameters['contentEncoding']);
|
|
282
|
+
}
|
|
283
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
284
|
+
const token = this.configuration.accessToken;
|
|
285
|
+
const tokenString = await token("bearer", []);
|
|
286
|
+
if (tokenString) {
|
|
287
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
let urlPath = `/oauth/start`;
|
|
291
|
+
return {
|
|
292
|
+
path: urlPath,
|
|
293
|
+
method: 'POST',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
body: (0, GatewayOauthStartRequest_1.GatewayOauthStartRequestToJSON)(requestParameters['gatewayOauthStartRequest']),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Use this operation to `POST /<ext>/v1/oauth/start`.
|
|
301
|
+
* `POST /<ext>/v1/oauth/start`.
|
|
302
|
+
*/
|
|
303
|
+
async secretStartOauthRaw(requestParameters, initOverrides) {
|
|
304
|
+
const requestOptions = await this.secretStartOauthRequestOpts(requestParameters);
|
|
305
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GatewayOauthStarted_1.GatewayOauthStartedFromJSON)(jsonValue));
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Use this operation to `POST /<ext>/v1/oauth/start`.
|
|
310
|
+
* `POST /<ext>/v1/oauth/start`.
|
|
311
|
+
*/
|
|
312
|
+
async secretStartOauth(requestParameters, initOverrides) {
|
|
313
|
+
const response = await this.secretStartOauthRaw(requestParameters, initOverrides);
|
|
314
|
+
return await response.value();
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
exports.OauthApi = OauthApi;
|
|
318
|
+
/**
|
|
319
|
+
* @export
|
|
320
|
+
* @enum {string}
|
|
321
|
+
*/
|
|
322
|
+
var SecretCompleteOauthContentEncodingEnum;
|
|
323
|
+
(function (SecretCompleteOauthContentEncodingEnum) {
|
|
324
|
+
SecretCompleteOauthContentEncodingEnum["Base64"] = "base64";
|
|
325
|
+
SecretCompleteOauthContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
326
|
+
})(SecretCompleteOauthContentEncodingEnum || (exports.SecretCompleteOauthContentEncodingEnum = SecretCompleteOauthContentEncodingEnum = {}));
|
|
327
|
+
/**
|
|
328
|
+
* @export
|
|
329
|
+
* @enum {string}
|
|
330
|
+
*/
|
|
331
|
+
var SecretStartOauthContentEncodingEnum;
|
|
332
|
+
(function (SecretStartOauthContentEncodingEnum) {
|
|
333
|
+
SecretStartOauthContentEncodingEnum["Base64"] = "base64";
|
|
334
|
+
SecretStartOauthContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
335
|
+
})(SecretStartOauthContentEncodingEnum || (exports.SecretStartOauthContentEncodingEnum = SecretStartOauthContentEncodingEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OauthApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./OauthApi"), exports);
|
package/dist/raw/secret/index.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* secret
|
|
3
|
+
* Operations provided by secret.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Input accepted by the OauthComplete operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GatewayOauthCompleteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GatewayOauthCompleteRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The handle `start` returned.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GatewayOauthCompleteRequest
|
|
22
|
+
*/
|
|
23
|
+
attemptId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GatewayOauthCompleteRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGatewayOauthCompleteRequest(value: object): value is GatewayOauthCompleteRequest;
|
|
29
|
+
export declare function GatewayOauthCompleteRequestFromJSON(json: any): GatewayOauthCompleteRequest;
|
|
30
|
+
export declare function GatewayOauthCompleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthCompleteRequest;
|
|
31
|
+
export declare function GatewayOauthCompleteRequestToJSON(json: any): GatewayOauthCompleteRequest;
|
|
32
|
+
export declare function GatewayOauthCompleteRequestToJSONTyped(value?: GatewayOauthCompleteRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* secret
|
|
6
|
+
* Operations provided by secret.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGatewayOauthCompleteRequest = instanceOfGatewayOauthCompleteRequest;
|
|
17
|
+
exports.GatewayOauthCompleteRequestFromJSON = GatewayOauthCompleteRequestFromJSON;
|
|
18
|
+
exports.GatewayOauthCompleteRequestFromJSONTyped = GatewayOauthCompleteRequestFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthCompleteRequestToJSON = GatewayOauthCompleteRequestToJSON;
|
|
20
|
+
exports.GatewayOauthCompleteRequestToJSONTyped = GatewayOauthCompleteRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GatewayOauthCompleteRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGatewayOauthCompleteRequest(value) {
|
|
25
|
+
if ((!('attemptId' in value) && !('attempt_id' in value)) || (value['attemptId'] === undefined && value['attempt_id'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GatewayOauthCompleteRequestFromJSON(json) {
|
|
30
|
+
return GatewayOauthCompleteRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GatewayOauthCompleteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'attemptId': json['attempt_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GatewayOauthCompleteRequestToJSON(json) {
|
|
41
|
+
return GatewayOauthCompleteRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GatewayOauthCompleteRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'attempt_id': value['attemptId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* secret
|
|
3
|
+
* Operations provided by secret.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GatewayOauthConnection } from './GatewayOauthConnection';
|
|
13
|
+
/**
|
|
14
|
+
* The reply to `complete`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GatewayOauthCompletion
|
|
17
|
+
*/
|
|
18
|
+
export interface GatewayOauthCompletion {
|
|
19
|
+
/**
|
|
20
|
+
* Value of the `connection` field.
|
|
21
|
+
* @type {GatewayOauthConnection}
|
|
22
|
+
* @memberof GatewayOauthCompletion
|
|
23
|
+
*/
|
|
24
|
+
connection?: GatewayOauthConnection | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {any}
|
|
28
|
+
* @memberof GatewayOauthCompletion
|
|
29
|
+
*/
|
|
30
|
+
providerContext?: any | null;
|
|
31
|
+
/**
|
|
32
|
+
* `pending` while the browser is still at the provider, `connected` once the
|
|
33
|
+
* grant is stored. A client polls until it changes.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GatewayOauthCompletion
|
|
36
|
+
*/
|
|
37
|
+
status: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GatewayOauthCompletion interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfGatewayOauthCompletion(value: object): value is GatewayOauthCompletion;
|
|
43
|
+
export declare function GatewayOauthCompletionFromJSON(json: any): GatewayOauthCompletion;
|
|
44
|
+
export declare function GatewayOauthCompletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthCompletion;
|
|
45
|
+
export declare function GatewayOauthCompletionToJSON(json: any): GatewayOauthCompletion;
|
|
46
|
+
export declare function GatewayOauthCompletionToJSONTyped(value?: GatewayOauthCompletion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* secret
|
|
6
|
+
* Operations provided by secret.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGatewayOauthCompletion = instanceOfGatewayOauthCompletion;
|
|
17
|
+
exports.GatewayOauthCompletionFromJSON = GatewayOauthCompletionFromJSON;
|
|
18
|
+
exports.GatewayOauthCompletionFromJSONTyped = GatewayOauthCompletionFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthCompletionToJSON = GatewayOauthCompletionToJSON;
|
|
20
|
+
exports.GatewayOauthCompletionToJSONTyped = GatewayOauthCompletionToJSONTyped;
|
|
21
|
+
const GatewayOauthConnection_1 = require("./GatewayOauthConnection");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GatewayOauthCompletion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGatewayOauthCompletion(value) {
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GatewayOauthCompletionFromJSON(json) {
|
|
31
|
+
return GatewayOauthCompletionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GatewayOauthCompletionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'connection': json['connection'] === undefined ? undefined : json['connection'] === null ? null : (0, GatewayOauthConnection_1.GatewayOauthConnectionFromJSON)(json['connection']),
|
|
39
|
+
'providerContext': json['provider_context'] === undefined ? undefined : json['provider_context'] === null ? null : json['provider_context'],
|
|
40
|
+
'status': json['status'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GatewayOauthCompletionToJSON(json) {
|
|
44
|
+
return GatewayOauthCompletionToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GatewayOauthCompletionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'connection': (0, GatewayOauthConnection_1.GatewayOauthConnectionToJSON)(value['connection']),
|
|
52
|
+
'provider_context': value['providerContext'],
|
|
53
|
+
'status': value['status'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* secret
|
|
3
|
+
* Operations provided by secret.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GatewayOauthOwner } from './GatewayOauthOwner';
|
|
13
|
+
/**
|
|
14
|
+
* A stored connection, as read back off the `secret` row. Non-sensitive only —
|
|
15
|
+
* no token ever appears here, and the type has no field one could occupy.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GatewayOauthConnection
|
|
18
|
+
*/
|
|
19
|
+
export interface GatewayOauthConnection {
|
|
20
|
+
/**
|
|
21
|
+
* Value of the `created_at` field.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GatewayOauthConnection
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* `oauth2` (refreshable) or `bearer_token` (non-expiring).
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GatewayOauthConnection
|
|
30
|
+
*/
|
|
31
|
+
credentialType: string;
|
|
32
|
+
/**
|
|
33
|
+
* The caller-supplied label, echoed from `display_name`.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GatewayOauthConnection
|
|
36
|
+
*/
|
|
37
|
+
label: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {GatewayOauthOwner}
|
|
41
|
+
* @memberof GatewayOauthConnection
|
|
42
|
+
*/
|
|
43
|
+
owner: GatewayOauthOwner;
|
|
44
|
+
/**
|
|
45
|
+
* Value of the `provider` field.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GatewayOauthConnection
|
|
48
|
+
*/
|
|
49
|
+
provider: string;
|
|
50
|
+
/**
|
|
51
|
+
* Scopes the provider actually granted.
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof GatewayOauthConnection
|
|
54
|
+
*/
|
|
55
|
+
scopes: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The `secret_…` handle. This is the connection's id, and what an
|
|
58
|
+
* `mcp_server` or any other consumer links to.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof GatewayOauthConnection
|
|
61
|
+
*/
|
|
62
|
+
secretId: string;
|
|
63
|
+
/**
|
|
64
|
+
* Value of the `updated_at` field.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof GatewayOauthConnection
|
|
67
|
+
*/
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
/**
|
|
70
|
+
* Stable identifier of the related workspace resource.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof GatewayOauthConnection
|
|
73
|
+
*/
|
|
74
|
+
workspaceId: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the GatewayOauthConnection interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfGatewayOauthConnection(value: object): value is GatewayOauthConnection;
|
|
80
|
+
export declare function GatewayOauthConnectionFromJSON(json: any): GatewayOauthConnection;
|
|
81
|
+
export declare function GatewayOauthConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthConnection;
|
|
82
|
+
export declare function GatewayOauthConnectionToJSON(json: any): GatewayOauthConnection;
|
|
83
|
+
export declare function GatewayOauthConnectionToJSONTyped(value?: GatewayOauthConnection | null, ignoreDiscriminator?: boolean): any;
|