@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
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* How the last connection attempt to a downstream went. `pending` — registered, not yet contacted; `connected` — handshake and tool listing both succeeded; `unreachable` — could not be reached. Set when the server is registered and refreshed by an explicit connectivity test.
|
|
13
|
+
* How the last connection attempt to a downstream went. `pending` — registered, not yet contacted; `connected` — handshake and tool listing both succeeded; `auth_required` — the downstream answered but refused the credential, so a connected account or linked secret is what it is waiting for; `unreachable` — could not be reached at all. Set when the server is registered and refreshed by an explicit connectivity test.
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum McpConnectionState {
|
|
18
18
|
Pending = "pending",
|
|
19
19
|
Connected = "connected",
|
|
20
|
+
AuthRequired = "auth_required",
|
|
20
21
|
Unreachable = "unreachable"
|
|
21
22
|
}
|
|
22
23
|
export declare function instanceOfMcpConnectionState(value: any): boolean;
|
|
@@ -20,7 +20,7 @@ exports.McpConnectionStateFromJSONTyped = McpConnectionStateFromJSONTyped;
|
|
|
20
20
|
exports.McpConnectionStateToJSON = McpConnectionStateToJSON;
|
|
21
21
|
exports.McpConnectionStateToJSONTyped = McpConnectionStateToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
* How the last connection attempt to a downstream went. `pending` — registered, not yet contacted; `connected` — handshake and tool listing both succeeded; `unreachable` — could not be reached. Set when the server is registered and refreshed by an explicit connectivity test.
|
|
23
|
+
* How the last connection attempt to a downstream went. `pending` — registered, not yet contacted; `connected` — handshake and tool listing both succeeded; `auth_required` — the downstream answered but refused the credential, so a connected account or linked secret is what it is waiting for; `unreachable` — could not be reached at all. Set when the server is registered and refreshed by an explicit connectivity test.
|
|
24
24
|
* @export
|
|
25
25
|
* @enum {string}
|
|
26
26
|
*/
|
|
@@ -28,6 +28,7 @@ var McpConnectionState;
|
|
|
28
28
|
(function (McpConnectionState) {
|
|
29
29
|
McpConnectionState["Pending"] = "pending";
|
|
30
30
|
McpConnectionState["Connected"] = "connected";
|
|
31
|
+
McpConnectionState["AuthRequired"] = "auth_required";
|
|
31
32
|
McpConnectionState["Unreachable"] = "unreachable";
|
|
32
33
|
})(McpConnectionState || (exports.McpConnectionState = McpConnectionState = {}));
|
|
33
34
|
function instanceOfMcpConnectionState(value) {
|
|
@@ -65,6 +65,7 @@ export declare enum McpListServers401ResponseCodeEnum {
|
|
|
65
65
|
TokenNotYetValid = "token_not_yet_valid",
|
|
66
66
|
TokenRejected = "token_rejected",
|
|
67
67
|
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
68
69
|
UnknownAccount = "unknown_account",
|
|
69
70
|
UnknownKey = "unknown_key",
|
|
70
71
|
UntrustedIssuer = "untrusted_issuer"
|
|
@@ -39,6 +39,7 @@ var McpListServers401ResponseCodeEnum;
|
|
|
39
39
|
McpListServers401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
40
|
McpListServers401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
41
|
McpListServers401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
McpListServers401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
42
43
|
McpListServers401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
43
44
|
McpListServers401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
44
45
|
McpListServers401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
@@ -16,8 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface McpServerTestResponse {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* One of the `mcp_server` kind's `connection_state` values, and the probe
|
|
20
|
+
* persists whichever it reports:
|
|
21
|
+
*
|
|
22
|
+
* * `connected` — handshake and `tools/list` both succeeded under the
|
|
23
|
+
* resolved credential;
|
|
24
|
+
* * `auth_required` — the downstream answered and refused the credential
|
|
25
|
+
* (`401`/`403`), so it is reachable and waiting for a connected account
|
|
26
|
+
* or a linked secret;
|
|
27
|
+
* * `unreachable` — it could not be reached at all, or it handshook and
|
|
28
|
+
* then failed to list.
|
|
29
|
+
*
|
|
30
|
+
* `auth_required` used to be reported as `unreachable`, which pointed
|
|
31
|
+
* operators at their network when the problem was a credential.
|
|
21
32
|
* @type {string}
|
|
22
33
|
* @memberof McpServerTestResponse
|
|
23
34
|
*/
|
|
@@ -65,6 +65,7 @@ export declare enum ModelListProviders401ResponseCodeEnum {
|
|
|
65
65
|
TokenNotYetValid = "token_not_yet_valid",
|
|
66
66
|
TokenRejected = "token_rejected",
|
|
67
67
|
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
68
69
|
UnknownAccount = "unknown_account",
|
|
69
70
|
UnknownKey = "unknown_key",
|
|
70
71
|
UntrustedIssuer = "untrusted_issuer"
|
|
@@ -39,6 +39,7 @@ var ModelListProviders401ResponseCodeEnum;
|
|
|
39
39
|
ModelListProviders401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
40
|
ModelListProviders401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
41
|
ModelListProviders401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
ModelListProviders401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
42
43
|
ModelListProviders401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
43
44
|
ModelListProviders401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
44
45
|
ModelListProviders401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import { type CreateWorkspaceBody } from '../models/CreateWorkspaceBody';
|
|
14
14
|
import { type PatchWorkspaceBody } from '../models/PatchWorkspaceBody';
|
|
15
15
|
import { type RegistryWorkspaceView } from '../models/RegistryWorkspaceView';
|
|
16
|
+
import { type SetVisibilityBody } from '../models/SetVisibilityBody';
|
|
16
17
|
import { type WorkspaceArchiveAck } from '../models/WorkspaceArchiveAck';
|
|
17
18
|
import { type WorkspaceBulkCreateRequest } from '../models/WorkspaceBulkCreateRequest';
|
|
18
19
|
import { type WorkspaceExport } from '../models/WorkspaceExport';
|
|
@@ -49,6 +50,11 @@ export interface RegistryListWorkspacesRequest {
|
|
|
49
50
|
include?: string;
|
|
50
51
|
xAtlanConsistencyToken?: string | null;
|
|
51
52
|
}
|
|
53
|
+
export interface RegistrySetWorkspaceVisibilityRequest {
|
|
54
|
+
workspaceId: string;
|
|
55
|
+
setVisibilityBody: SetVisibilityBody;
|
|
56
|
+
contentEncoding?: RegistrySetWorkspaceVisibilityContentEncodingEnum;
|
|
57
|
+
}
|
|
52
58
|
export interface RegistryUpdateWorkspaceRequest {
|
|
53
59
|
workspaceId: string;
|
|
54
60
|
patchWorkspaceBody: PatchWorkspaceBody;
|
|
@@ -170,6 +176,20 @@ export declare class WorkspacesApi extends runtime.BaseAPI {
|
|
|
170
176
|
* List workspaces
|
|
171
177
|
*/
|
|
172
178
|
registryListWorkspaces(requestParameters?: RegistryListWorkspacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkspacesPage>;
|
|
179
|
+
/**
|
|
180
|
+
* Creates request options for registrySetWorkspaceVisibility without sending the request
|
|
181
|
+
*/
|
|
182
|
+
registrySetWorkspaceVisibilityRequestOpts(requestParameters: RegistrySetWorkspaceVisibilityRequest): Promise<runtime.RequestOpts>;
|
|
183
|
+
/**
|
|
184
|
+
* Set a shared-tree workspace to `public` (the account can list and self-join it) or `private` (invisible to non-members, invite-only). The receipt is `manage` — an admin\'s — because visibility is a property of the workspace, like its roster, not of the content in it. **The funnel holds both ways.** Widening to `public` is refused if the parent is less open (a `422`): a child is never more open than its parent. Restricting to `private` is refused while any immediate child is still `public` (a `422` naming the child); make the children private first, bottom-up. Refused for a singleton (`org_default` is always public, `user_default` always private) and for a personal-tree workspace, which is private by tree and has no shared-tree visibility to set — both a `409`. Setting the visibility a workspace already has is a no-op `200`.
|
|
185
|
+
* Change a workspace\'s visibility
|
|
186
|
+
*/
|
|
187
|
+
registrySetWorkspaceVisibilityRaw(requestParameters: RegistrySetWorkspaceVisibilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RegistryWorkspaceView>>;
|
|
188
|
+
/**
|
|
189
|
+
* Set a shared-tree workspace to `public` (the account can list and self-join it) or `private` (invisible to non-members, invite-only). The receipt is `manage` — an admin\'s — because visibility is a property of the workspace, like its roster, not of the content in it. **The funnel holds both ways.** Widening to `public` is refused if the parent is less open (a `422`): a child is never more open than its parent. Restricting to `private` is refused while any immediate child is still `public` (a `422` naming the child); make the children private first, bottom-up. Refused for a singleton (`org_default` is always public, `user_default` always private) and for a personal-tree workspace, which is private by tree and has no shared-tree visibility to set — both a `409`. Setting the visibility a workspace already has is a no-op `200`.
|
|
190
|
+
* Change a workspace\'s visibility
|
|
191
|
+
*/
|
|
192
|
+
registrySetWorkspaceVisibility(requestParameters: RegistrySetWorkspaceVisibilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RegistryWorkspaceView>;
|
|
173
193
|
/**
|
|
174
194
|
* Creates request options for registryUpdateWorkspace without sending the request
|
|
175
195
|
*/
|
|
@@ -201,6 +221,14 @@ export declare enum RegistryCreateWorkspaceContentEncodingEnum {
|
|
|
201
221
|
Base64 = "base64",
|
|
202
222
|
GzipBase64 = "gzip, base64"
|
|
203
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* @export
|
|
226
|
+
* @enum {string}
|
|
227
|
+
*/
|
|
228
|
+
export declare enum RegistrySetWorkspaceVisibilityContentEncodingEnum {
|
|
229
|
+
Base64 = "base64",
|
|
230
|
+
GzipBase64 = "gzip, base64"
|
|
231
|
+
}
|
|
204
232
|
/**
|
|
205
233
|
* @export
|
|
206
234
|
* @enum {string}
|
|
@@ -46,11 +46,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.RegistryUpdateWorkspaceContentEncodingEnum = exports.RegistryCreateWorkspaceContentEncodingEnum = exports.RegistryBulkCreateWorkspacesContentEncodingEnum = exports.WorkspacesApi = void 0;
|
|
49
|
+
exports.RegistryUpdateWorkspaceContentEncodingEnum = exports.RegistrySetWorkspaceVisibilityContentEncodingEnum = exports.RegistryCreateWorkspaceContentEncodingEnum = exports.RegistryBulkCreateWorkspacesContentEncodingEnum = exports.WorkspacesApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const CreateWorkspaceBody_1 = require("../models/CreateWorkspaceBody");
|
|
52
52
|
const PatchWorkspaceBody_1 = require("../models/PatchWorkspaceBody");
|
|
53
53
|
const RegistryWorkspaceView_1 = require("../models/RegistryWorkspaceView");
|
|
54
|
+
const SetVisibilityBody_1 = require("../models/SetVisibilityBody");
|
|
54
55
|
const WorkspaceArchiveAck_1 = require("../models/WorkspaceArchiveAck");
|
|
55
56
|
const WorkspaceBulkCreateRequest_1 = require("../models/WorkspaceBulkCreateRequest");
|
|
56
57
|
const WorkspaceExport_1 = require("../models/WorkspaceExport");
|
|
@@ -414,6 +415,56 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
414
415
|
const response = await this.registryListWorkspacesRaw(requestParameters, initOverrides);
|
|
415
416
|
return await response.value();
|
|
416
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Creates request options for registrySetWorkspaceVisibility without sending the request
|
|
420
|
+
*/
|
|
421
|
+
async registrySetWorkspaceVisibilityRequestOpts(requestParameters) {
|
|
422
|
+
if (requestParameters['workspaceId'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling registrySetWorkspaceVisibility().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['setVisibilityBody'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('setVisibilityBody', 'Required parameter "setVisibilityBody" was null or undefined when calling registrySetWorkspaceVisibility().');
|
|
427
|
+
}
|
|
428
|
+
const queryParameters = {};
|
|
429
|
+
const headerParameters = {};
|
|
430
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
431
|
+
if (requestParameters['contentEncoding'] != null) {
|
|
432
|
+
headerParameters['Content-Encoding'] = String(requestParameters['contentEncoding']);
|
|
433
|
+
}
|
|
434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
435
|
+
const token = this.configuration.accessToken;
|
|
436
|
+
const tokenString = await token("bearer", []);
|
|
437
|
+
if (tokenString) {
|
|
438
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
let urlPath = `/workspaces/{workspace_id}/visibility`;
|
|
442
|
+
urlPath = urlPath.replace('{workspace_id}', encodeURIComponent(String(requestParameters['workspaceId'])));
|
|
443
|
+
return {
|
|
444
|
+
path: urlPath,
|
|
445
|
+
method: 'PATCH',
|
|
446
|
+
headers: headerParameters,
|
|
447
|
+
query: queryParameters,
|
|
448
|
+
body: (0, SetVisibilityBody_1.SetVisibilityBodyToJSON)(requestParameters['setVisibilityBody']),
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Set a shared-tree workspace to `public` (the account can list and self-join it) or `private` (invisible to non-members, invite-only). The receipt is `manage` — an admin\'s — because visibility is a property of the workspace, like its roster, not of the content in it. **The funnel holds both ways.** Widening to `public` is refused if the parent is less open (a `422`): a child is never more open than its parent. Restricting to `private` is refused while any immediate child is still `public` (a `422` naming the child); make the children private first, bottom-up. Refused for a singleton (`org_default` is always public, `user_default` always private) and for a personal-tree workspace, which is private by tree and has no shared-tree visibility to set — both a `409`. Setting the visibility a workspace already has is a no-op `200`.
|
|
453
|
+
* Change a workspace\'s visibility
|
|
454
|
+
*/
|
|
455
|
+
async registrySetWorkspaceVisibilityRaw(requestParameters, initOverrides) {
|
|
456
|
+
const requestOptions = await this.registrySetWorkspaceVisibilityRequestOpts(requestParameters);
|
|
457
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
458
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RegistryWorkspaceView_1.RegistryWorkspaceViewFromJSON)(jsonValue));
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Set a shared-tree workspace to `public` (the account can list and self-join it) or `private` (invisible to non-members, invite-only). The receipt is `manage` — an admin\'s — because visibility is a property of the workspace, like its roster, not of the content in it. **The funnel holds both ways.** Widening to `public` is refused if the parent is less open (a `422`): a child is never more open than its parent. Restricting to `private` is refused while any immediate child is still `public` (a `422` naming the child); make the children private first, bottom-up. Refused for a singleton (`org_default` is always public, `user_default` always private) and for a personal-tree workspace, which is private by tree and has no shared-tree visibility to set — both a `409`. Setting the visibility a workspace already has is a no-op `200`.
|
|
462
|
+
* Change a workspace\'s visibility
|
|
463
|
+
*/
|
|
464
|
+
async registrySetWorkspaceVisibility(requestParameters, initOverrides) {
|
|
465
|
+
const response = await this.registrySetWorkspaceVisibilityRaw(requestParameters, initOverrides);
|
|
466
|
+
return await response.value();
|
|
467
|
+
}
|
|
417
468
|
/**
|
|
418
469
|
* Creates request options for registryUpdateWorkspace without sending the request
|
|
419
470
|
*/
|
|
@@ -484,6 +535,15 @@ var RegistryCreateWorkspaceContentEncodingEnum;
|
|
|
484
535
|
RegistryCreateWorkspaceContentEncodingEnum["Base64"] = "base64";
|
|
485
536
|
RegistryCreateWorkspaceContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
486
537
|
})(RegistryCreateWorkspaceContentEncodingEnum || (exports.RegistryCreateWorkspaceContentEncodingEnum = RegistryCreateWorkspaceContentEncodingEnum = {}));
|
|
538
|
+
/**
|
|
539
|
+
* @export
|
|
540
|
+
* @enum {string}
|
|
541
|
+
*/
|
|
542
|
+
var RegistrySetWorkspaceVisibilityContentEncodingEnum;
|
|
543
|
+
(function (RegistrySetWorkspaceVisibilityContentEncodingEnum) {
|
|
544
|
+
RegistrySetWorkspaceVisibilityContentEncodingEnum["Base64"] = "base64";
|
|
545
|
+
RegistrySetWorkspaceVisibilityContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
546
|
+
})(RegistrySetWorkspaceVisibilityContentEncodingEnum || (exports.RegistrySetWorkspaceVisibilityContentEncodingEnum = RegistrySetWorkspaceVisibilityContentEncodingEnum = {}));
|
|
487
547
|
/**
|
|
488
548
|
* @export
|
|
489
549
|
* @enum {string}
|
|
@@ -41,6 +41,15 @@ export interface CreateWorkspaceBody {
|
|
|
41
41
|
* @memberof CreateWorkspaceBody
|
|
42
42
|
*/
|
|
43
43
|
parentId?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* `public` or `private`. Omitted inherits the parent's visibility — a child of
|
|
46
|
+
* a public parent defaults public, a child of a private parent defaults
|
|
47
|
+
* private. An explicit value more open than the parent is a `422`: a child is
|
|
48
|
+
* never more open than its parent.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateWorkspaceBody
|
|
51
|
+
*/
|
|
52
|
+
visibility?: string | null;
|
|
44
53
|
}
|
|
45
54
|
/**
|
|
46
55
|
* Check if a given object implements the CreateWorkspaceBody interface.
|
|
@@ -38,6 +38,7 @@ function CreateWorkspaceBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'displayName': json['display_name'] === undefined ? undefined : json['display_name'] === null ? null : json['display_name'],
|
|
39
39
|
'name': json['name'],
|
|
40
40
|
'parentId': json['parent_id'] === undefined ? undefined : json['parent_id'] === null ? null : json['parent_id'],
|
|
41
|
+
'visibility': json['visibility'] === undefined ? undefined : json['visibility'] === null ? null : json['visibility'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function CreateWorkspaceBodyToJSON(json) {
|
|
@@ -52,5 +53,6 @@ function CreateWorkspaceBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
'display_name': value['displayName'],
|
|
53
54
|
'name': value['name'],
|
|
54
55
|
'parent_id': value['parentId'],
|
|
56
|
+
'visibility': value['visibility'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
@@ -65,6 +65,7 @@ export declare enum RegistryAggregate401ResponseCodeEnum {
|
|
|
65
65
|
TokenNotYetValid = "token_not_yet_valid",
|
|
66
66
|
TokenRejected = "token_rejected",
|
|
67
67
|
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
68
69
|
UnknownAccount = "unknown_account",
|
|
69
70
|
UnknownKey = "unknown_key",
|
|
70
71
|
UntrustedIssuer = "untrusted_issuer"
|
|
@@ -39,6 +39,7 @@ var RegistryAggregate401ResponseCodeEnum;
|
|
|
39
39
|
RegistryAggregate401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
40
|
RegistryAggregate401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
41
|
RegistryAggregate401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
RegistryAggregate401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
42
43
|
RegistryAggregate401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
43
44
|
RegistryAggregate401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
44
45
|
RegistryAggregate401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
@@ -147,6 +147,15 @@ export interface RegistryWorkspaceView {
|
|
|
147
147
|
* @memberof RegistryWorkspaceView
|
|
148
148
|
*/
|
|
149
149
|
updatedBy: string;
|
|
150
|
+
/**
|
|
151
|
+
* `public` or `private` — how open this shared-tree workspace is: whether the
|
|
152
|
+
* account can list it and self-join it. Meaningful only when `org_wide` is
|
|
153
|
+
* true; a personal-tree workspace is always `private`. Set on create (inherits
|
|
154
|
+
* the parent when omitted) and changed by `PATCH /workspaces/{id}/visibility`.
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof RegistryWorkspaceView
|
|
157
|
+
*/
|
|
158
|
+
visibility: string;
|
|
150
159
|
/**
|
|
151
160
|
* The lifecycle state.
|
|
152
161
|
*
|
|
@@ -43,6 +43,8 @@ function instanceOfRegistryWorkspaceView(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if ((!('updatedBy' in value) && !('updated_by' in value)) || (value['updatedBy'] === undefined && value['updated_by'] === undefined))
|
|
45
45
|
return false;
|
|
46
|
+
if (!('visibility' in value) || value['visibility'] === undefined)
|
|
47
|
+
return false;
|
|
46
48
|
if ((!('workspaceStatus' in value) && !('workspace_status' in value)) || (value['workspaceStatus'] === undefined && value['workspace_status'] === undefined))
|
|
47
49
|
return false;
|
|
48
50
|
return true;
|
|
@@ -72,6 +74,7 @@ function RegistryWorkspaceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'rootWorkspaceId': json['root_workspace_id'],
|
|
73
75
|
'updatedAt': json['updated_at'],
|
|
74
76
|
'updatedBy': json['updated_by'],
|
|
77
|
+
'visibility': json['visibility'],
|
|
75
78
|
'workspaceStatus': json['workspace_status'],
|
|
76
79
|
};
|
|
77
80
|
}
|
|
@@ -100,6 +103,7 @@ function RegistryWorkspaceViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
100
103
|
'root_workspace_id': value['rootWorkspaceId'],
|
|
101
104
|
'updated_at': value['updatedAt'],
|
|
102
105
|
'updated_by': value['updatedBy'],
|
|
106
|
+
'visibility': value['visibility'],
|
|
103
107
|
'workspace_status': value['workspaceStatus'],
|
|
104
108
|
};
|
|
105
109
|
}
|
|
@@ -133,7 +133,7 @@ export interface SearchRequest {
|
|
|
133
133
|
*/
|
|
134
134
|
queryVector?: Array<number> | null;
|
|
135
135
|
/**
|
|
136
|
-
* Narrow to one provenance: `git` | `atlan` | `local`.
|
|
136
|
+
* Narrow to one provenance: `git` | `atlan` | `local` | `external`.
|
|
137
137
|
* @type {string}
|
|
138
138
|
* @memberof SearchRequest
|
|
139
139
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Atlan Agent Gateway — registry
|
|
3
|
+
* The platform core: identity, tenancy, the artifact plane, discovery and the policy plane.
|
|
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
|
+
* `PATCH /workspaces/{id}/visibility` body.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SetVisibilityBody
|
|
16
|
+
*/
|
|
17
|
+
export interface SetVisibilityBody {
|
|
18
|
+
/**
|
|
19
|
+
* `public` or `private`. Required — this endpoint sets the value outright, so
|
|
20
|
+
* there is no absent-means-unchanged case a `PATCH` body would otherwise carry.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SetVisibilityBody
|
|
23
|
+
*/
|
|
24
|
+
visibility: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SetVisibilityBody interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSetVisibilityBody(value: object): value is SetVisibilityBody;
|
|
30
|
+
export declare function SetVisibilityBodyFromJSON(json: any): SetVisibilityBody;
|
|
31
|
+
export declare function SetVisibilityBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetVisibilityBody;
|
|
32
|
+
export declare function SetVisibilityBodyToJSON(json: any): SetVisibilityBody;
|
|
33
|
+
export declare function SetVisibilityBodyToJSONTyped(value?: SetVisibilityBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Atlan Agent Gateway — registry
|
|
6
|
+
* The platform core: identity, tenancy, the artifact plane, discovery and the policy plane.
|
|
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.instanceOfSetVisibilityBody = instanceOfSetVisibilityBody;
|
|
17
|
+
exports.SetVisibilityBodyFromJSON = SetVisibilityBodyFromJSON;
|
|
18
|
+
exports.SetVisibilityBodyFromJSONTyped = SetVisibilityBodyFromJSONTyped;
|
|
19
|
+
exports.SetVisibilityBodyToJSON = SetVisibilityBodyToJSON;
|
|
20
|
+
exports.SetVisibilityBodyToJSONTyped = SetVisibilityBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SetVisibilityBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSetVisibilityBody(value) {
|
|
25
|
+
if (!('visibility' in value) || value['visibility'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SetVisibilityBodyFromJSON(json) {
|
|
30
|
+
return SetVisibilityBodyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SetVisibilityBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'visibility': json['visibility'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SetVisibilityBodyToJSON(json) {
|
|
41
|
+
return SetVisibilityBodyToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SetVisibilityBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'visibility': value['visibility'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -88,6 +88,7 @@ export * from './ServiceAccountDto';
|
|
|
88
88
|
export * from './ServiceAccountsPage';
|
|
89
89
|
export * from './SetReleasePolicyBody';
|
|
90
90
|
export * from './SetTraceContentPolicyDto';
|
|
91
|
+
export * from './SetVisibilityBody';
|
|
91
92
|
export * from './SlotError';
|
|
92
93
|
export * from './SpanListEnvelope';
|
|
93
94
|
export * from './SpanViewDto';
|
|
@@ -106,6 +106,7 @@ __exportStar(require("./ServiceAccountDto"), exports);
|
|
|
106
106
|
__exportStar(require("./ServiceAccountsPage"), exports);
|
|
107
107
|
__exportStar(require("./SetReleasePolicyBody"), exports);
|
|
108
108
|
__exportStar(require("./SetTraceContentPolicyDto"), exports);
|
|
109
|
+
__exportStar(require("./SetVisibilityBody"), exports);
|
|
109
110
|
__exportStar(require("./SlotError"), exports);
|
|
110
111
|
__exportStar(require("./SpanListEnvelope"), exports);
|
|
111
112
|
__exportStar(require("./SpanViewDto"), exports);
|
|
@@ -0,0 +1,143 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { type GatewayOauthCompleteRequest } from '../models/GatewayOauthCompleteRequest';
|
|
14
|
+
import { type GatewayOauthCompletion } from '../models/GatewayOauthCompletion';
|
|
15
|
+
import { type GatewayOauthConnection } from '../models/GatewayOauthConnection';
|
|
16
|
+
import { type GatewayOauthProviderView } from '../models/GatewayOauthProviderView';
|
|
17
|
+
import { type GatewayOauthStartRequest } from '../models/GatewayOauthStartRequest';
|
|
18
|
+
import { type GatewayOauthStarted } from '../models/GatewayOauthStarted';
|
|
19
|
+
export interface SecretCompleteOauthRequest {
|
|
20
|
+
gatewayOauthCompleteRequest: GatewayOauthCompleteRequest;
|
|
21
|
+
contentEncoding?: SecretCompleteOauthContentEncodingEnum;
|
|
22
|
+
}
|
|
23
|
+
export interface SecretDisconnectOauthRequest {
|
|
24
|
+
secretId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SecretListOauthConnectionsRequest {
|
|
27
|
+
provider?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SecretOauthCallbackRequest {
|
|
30
|
+
provider: string;
|
|
31
|
+
code?: string;
|
|
32
|
+
state?: string;
|
|
33
|
+
error?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SecretStartOauthRequest {
|
|
36
|
+
gatewayOauthStartRequest: GatewayOauthStartRequest;
|
|
37
|
+
contentEncoding?: SecretStartOauthContentEncodingEnum;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare class OauthApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for secretCompleteOauth without sending the request
|
|
45
|
+
*/
|
|
46
|
+
secretCompleteOauthRequestOpts(requestParameters: SecretCompleteOauthRequest): Promise<runtime.RequestOpts>;
|
|
47
|
+
/**
|
|
48
|
+
* Use this operation to `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
49
|
+
* `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
50
|
+
*/
|
|
51
|
+
secretCompleteOauthRaw(requestParameters: SecretCompleteOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GatewayOauthCompletion>>;
|
|
52
|
+
/**
|
|
53
|
+
* Use this operation to `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
54
|
+
* `POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.
|
|
55
|
+
*/
|
|
56
|
+
secretCompleteOauth(requestParameters: SecretCompleteOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GatewayOauthCompletion>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for secretDisconnectOauth without sending the request
|
|
59
|
+
*/
|
|
60
|
+
secretDisconnectOauthRequestOpts(requestParameters: SecretDisconnectOauthRequest): Promise<runtime.RequestOpts>;
|
|
61
|
+
/**
|
|
62
|
+
* Use this operation to `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
63
|
+
* `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
64
|
+
*/
|
|
65
|
+
secretDisconnectOauthRaw(requestParameters: SecretDisconnectOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
66
|
+
/**
|
|
67
|
+
* Use this operation to `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
68
|
+
* `DELETE /<ext>/v1/oauth/connections/{secret_id}`.
|
|
69
|
+
*/
|
|
70
|
+
secretDisconnectOauth(requestParameters: SecretDisconnectOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for secretListOauthConnections without sending the request
|
|
73
|
+
*/
|
|
74
|
+
secretListOauthConnectionsRequestOpts(requestParameters: SecretListOauthConnectionsRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* Use this operation to `GET /<ext>/v1/oauth/connections`.
|
|
77
|
+
* `GET /<ext>/v1/oauth/connections`.
|
|
78
|
+
*/
|
|
79
|
+
secretListOauthConnectionsRaw(requestParameters: SecretListOauthConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GatewayOauthConnection>>>;
|
|
80
|
+
/**
|
|
81
|
+
* Use this operation to `GET /<ext>/v1/oauth/connections`.
|
|
82
|
+
* `GET /<ext>/v1/oauth/connections`.
|
|
83
|
+
*/
|
|
84
|
+
secretListOauthConnections(requestParameters?: SecretListOauthConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GatewayOauthConnection>>;
|
|
85
|
+
/**
|
|
86
|
+
* Creates request options for secretListOauthProviders without sending the request
|
|
87
|
+
*/
|
|
88
|
+
secretListOauthProvidersRequestOpts(): Promise<runtime.RequestOpts>;
|
|
89
|
+
/**
|
|
90
|
+
* Use this operation to `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
91
|
+
* `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
92
|
+
*/
|
|
93
|
+
secretListOauthProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GatewayOauthProviderView>>>;
|
|
94
|
+
/**
|
|
95
|
+
* Use this operation to `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
96
|
+
* `GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL to register for each.
|
|
97
|
+
*/
|
|
98
|
+
secretListOauthProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GatewayOauthProviderView>>;
|
|
99
|
+
/**
|
|
100
|
+
* Creates request options for secretOauthCallback without sending the request
|
|
101
|
+
*/
|
|
102
|
+
secretOauthCallbackRequestOpts(requestParameters: SecretOauthCallbackRequest): Promise<runtime.RequestOpts>;
|
|
103
|
+
/**
|
|
104
|
+
* # 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.
|
|
105
|
+
* `GET /<ext>/v1/oauth/callback/{provider}` — the provider\'s redirect target.
|
|
106
|
+
*/
|
|
107
|
+
secretOauthCallbackRaw(requestParameters: SecretOauthCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
108
|
+
/**
|
|
109
|
+
* # 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.
|
|
110
|
+
* `GET /<ext>/v1/oauth/callback/{provider}` — the provider\'s redirect target.
|
|
111
|
+
*/
|
|
112
|
+
secretOauthCallback(requestParameters: SecretOauthCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for secretStartOauth without sending the request
|
|
115
|
+
*/
|
|
116
|
+
secretStartOauthRequestOpts(requestParameters: SecretStartOauthRequest): Promise<runtime.RequestOpts>;
|
|
117
|
+
/**
|
|
118
|
+
* Use this operation to `POST /<ext>/v1/oauth/start`.
|
|
119
|
+
* `POST /<ext>/v1/oauth/start`.
|
|
120
|
+
*/
|
|
121
|
+
secretStartOauthRaw(requestParameters: SecretStartOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GatewayOauthStarted>>;
|
|
122
|
+
/**
|
|
123
|
+
* Use this operation to `POST /<ext>/v1/oauth/start`.
|
|
124
|
+
* `POST /<ext>/v1/oauth/start`.
|
|
125
|
+
*/
|
|
126
|
+
secretStartOauth(requestParameters: SecretStartOauthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GatewayOauthStarted>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @export
|
|
130
|
+
* @enum {string}
|
|
131
|
+
*/
|
|
132
|
+
export declare enum SecretCompleteOauthContentEncodingEnum {
|
|
133
|
+
Base64 = "base64",
|
|
134
|
+
GzipBase64 = "gzip, base64"
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
* @enum {string}
|
|
139
|
+
*/
|
|
140
|
+
export declare enum SecretStartOauthContentEncodingEnum {
|
|
141
|
+
Base64 = "base64",
|
|
142
|
+
GzipBase64 = "gzip, base64"
|
|
143
|
+
}
|