@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,83 @@
|
|
|
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.instanceOfGatewayOauthConnection = instanceOfGatewayOauthConnection;
|
|
17
|
+
exports.GatewayOauthConnectionFromJSON = GatewayOauthConnectionFromJSON;
|
|
18
|
+
exports.GatewayOauthConnectionFromJSONTyped = GatewayOauthConnectionFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthConnectionToJSON = GatewayOauthConnectionToJSON;
|
|
20
|
+
exports.GatewayOauthConnectionToJSONTyped = GatewayOauthConnectionToJSONTyped;
|
|
21
|
+
const GatewayOauthOwner_1 = require("./GatewayOauthOwner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GatewayOauthConnection interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGatewayOauthConnection(value) {
|
|
26
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('credentialType' in value) && !('credential_type' in value)) || (value['credentialType'] === undefined && value['credential_type'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('owner' in value) || value['owner'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if ((!('secretId' in value) && !('secret_id' in value)) || (value['secretId'] === undefined && value['secret_id'] === undefined))
|
|
39
|
+
return false;
|
|
40
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
41
|
+
return false;
|
|
42
|
+
if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function GatewayOauthConnectionFromJSON(json) {
|
|
47
|
+
return GatewayOauthConnectionFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GatewayOauthConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'createdAt': json['created_at'],
|
|
55
|
+
'credentialType': json['credential_type'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
'owner': (0, GatewayOauthOwner_1.GatewayOauthOwnerFromJSON)(json['owner']),
|
|
58
|
+
'provider': json['provider'],
|
|
59
|
+
'scopes': json['scopes'],
|
|
60
|
+
'secretId': json['secret_id'],
|
|
61
|
+
'updatedAt': json['updated_at'],
|
|
62
|
+
'workspaceId': json['workspace_id'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function GatewayOauthConnectionToJSON(json) {
|
|
66
|
+
return GatewayOauthConnectionToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function GatewayOauthConnectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'created_at': value['createdAt'],
|
|
74
|
+
'credential_type': value['credentialType'],
|
|
75
|
+
'label': value['label'],
|
|
76
|
+
'owner': (0, GatewayOauthOwner_1.GatewayOauthOwnerToJSON)(value['owner']),
|
|
77
|
+
'provider': value['provider'],
|
|
78
|
+
'scopes': value['scopes'],
|
|
79
|
+
'secret_id': value['secretId'],
|
|
80
|
+
'updated_at': value['updatedAt'],
|
|
81
|
+
'workspace_id': value['workspaceId'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* Who a connection belongs to, which decides the workspace it lands in and the
|
|
14
|
+
* permission required to make it.
|
|
15
|
+
*
|
|
16
|
+
* Two modes and not a general ACL: a credential is either the organization's
|
|
17
|
+
* (org root, `manage` required) or one person's (their personal root, no check
|
|
18
|
+
* beyond being themselves). Anything between those is a sharing decision the
|
|
19
|
+
* authorization model already owns.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
export declare enum GatewayOauthOwner {
|
|
24
|
+
Organization = "organization",
|
|
25
|
+
Personal = "personal"
|
|
26
|
+
}
|
|
27
|
+
export declare function instanceOfGatewayOauthOwner(value: any): boolean;
|
|
28
|
+
export declare function GatewayOauthOwnerFromJSON(json: any): GatewayOauthOwner;
|
|
29
|
+
export declare function GatewayOauthOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthOwner;
|
|
30
|
+
export declare function GatewayOauthOwnerToJSON(value?: GatewayOauthOwner | null): any;
|
|
31
|
+
export declare function GatewayOauthOwnerToJSONTyped(value: any, ignoreDiscriminator: boolean): GatewayOauthOwner;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.GatewayOauthOwner = void 0;
|
|
17
|
+
exports.instanceOfGatewayOauthOwner = instanceOfGatewayOauthOwner;
|
|
18
|
+
exports.GatewayOauthOwnerFromJSON = GatewayOauthOwnerFromJSON;
|
|
19
|
+
exports.GatewayOauthOwnerFromJSONTyped = GatewayOauthOwnerFromJSONTyped;
|
|
20
|
+
exports.GatewayOauthOwnerToJSON = GatewayOauthOwnerToJSON;
|
|
21
|
+
exports.GatewayOauthOwnerToJSONTyped = GatewayOauthOwnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Who a connection belongs to, which decides the workspace it lands in and the
|
|
24
|
+
* permission required to make it.
|
|
25
|
+
*
|
|
26
|
+
* Two modes and not a general ACL: a credential is either the organization's
|
|
27
|
+
* (org root, `manage` required) or one person's (their personal root, no check
|
|
28
|
+
* beyond being themselves). Anything between those is a sharing decision the
|
|
29
|
+
* authorization model already owns.
|
|
30
|
+
* @export
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var GatewayOauthOwner;
|
|
34
|
+
(function (GatewayOauthOwner) {
|
|
35
|
+
GatewayOauthOwner["Organization"] = "organization";
|
|
36
|
+
GatewayOauthOwner["Personal"] = "personal";
|
|
37
|
+
})(GatewayOauthOwner || (exports.GatewayOauthOwner = GatewayOauthOwner = {}));
|
|
38
|
+
function instanceOfGatewayOauthOwner(value) {
|
|
39
|
+
for (const key in GatewayOauthOwner) {
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(GatewayOauthOwner, key)) {
|
|
41
|
+
if (GatewayOauthOwner[key] === value) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
function GatewayOauthOwnerFromJSON(json) {
|
|
49
|
+
return GatewayOauthOwnerFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function GatewayOauthOwnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
function GatewayOauthOwnerToJSON(value) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
function GatewayOauthOwnerToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* One row of `GET /<ext>/v1/oauth/providers`: what can be connected, and how.
|
|
15
|
+
*
|
|
16
|
+
* Carries the **callback URL** the operator must register with the provider.
|
|
17
|
+
* That is the "automatically add the callback URLs" half: the gateway derives
|
|
18
|
+
* it, so it cannot drift from the route that actually serves it, and an operator
|
|
19
|
+
* reads it off the API instead of reconstructing it from a base URL and a
|
|
20
|
+
* convention.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface GatewayOauthProviderView
|
|
23
|
+
*/
|
|
24
|
+
export interface GatewayOauthProviderView {
|
|
25
|
+
/**
|
|
26
|
+
* Whether multiple accounts.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof GatewayOauthProviderView
|
|
29
|
+
*/
|
|
30
|
+
allowMultipleAccounts: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Value of the `callback_url` field.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GatewayOauthProviderView
|
|
35
|
+
*/
|
|
36
|
+
callbackUrl?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable name.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GatewayOauthProviderView
|
|
41
|
+
*/
|
|
42
|
+
displayName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Value of the `key` field.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GatewayOauthProviderView
|
|
47
|
+
*/
|
|
48
|
+
key: string;
|
|
49
|
+
/**
|
|
50
|
+
* Value of the `owner_modes` field.
|
|
51
|
+
* @type {Array<GatewayOauthOwner>}
|
|
52
|
+
* @memberof GatewayOauthProviderView
|
|
53
|
+
*/
|
|
54
|
+
ownerModes: Array<GatewayOauthOwner>;
|
|
55
|
+
/**
|
|
56
|
+
* Value of the `scopes` field.
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof GatewayOauthProviderView
|
|
59
|
+
*/
|
|
60
|
+
scopes: Array<string>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GatewayOauthProviderView interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfGatewayOauthProviderView(value: object): value is GatewayOauthProviderView;
|
|
66
|
+
export declare function GatewayOauthProviderViewFromJSON(json: any): GatewayOauthProviderView;
|
|
67
|
+
export declare function GatewayOauthProviderViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthProviderView;
|
|
68
|
+
export declare function GatewayOauthProviderViewToJSON(json: any): GatewayOauthProviderView;
|
|
69
|
+
export declare function GatewayOauthProviderViewToJSONTyped(value?: GatewayOauthProviderView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfGatewayOauthProviderView = instanceOfGatewayOauthProviderView;
|
|
17
|
+
exports.GatewayOauthProviderViewFromJSON = GatewayOauthProviderViewFromJSON;
|
|
18
|
+
exports.GatewayOauthProviderViewFromJSONTyped = GatewayOauthProviderViewFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthProviderViewToJSON = GatewayOauthProviderViewToJSON;
|
|
20
|
+
exports.GatewayOauthProviderViewToJSONTyped = GatewayOauthProviderViewToJSONTyped;
|
|
21
|
+
const GatewayOauthOwner_1 = require("./GatewayOauthOwner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GatewayOauthProviderView interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGatewayOauthProviderView(value) {
|
|
26
|
+
if ((!('allowMultipleAccounts' in value) && !('allow_multiple_accounts' in value)) || (value['allowMultipleAccounts'] === undefined && value['allow_multiple_accounts'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if ((!('ownerModes' in value) && !('owner_modes' in value)) || (value['ownerModes'] === undefined && value['owner_modes'] === undefined))
|
|
33
|
+
return false;
|
|
34
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GatewayOauthProviderViewFromJSON(json) {
|
|
39
|
+
return GatewayOauthProviderViewFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GatewayOauthProviderViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'allowMultipleAccounts': json['allow_multiple_accounts'],
|
|
47
|
+
'callbackUrl': json['callback_url'] === undefined ? undefined : json['callback_url'] === null ? null : json['callback_url'],
|
|
48
|
+
'displayName': json['display_name'],
|
|
49
|
+
'key': json['key'],
|
|
50
|
+
'ownerModes': (json['owner_modes'].map(GatewayOauthOwner_1.GatewayOauthOwnerFromJSON)),
|
|
51
|
+
'scopes': json['scopes'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function GatewayOauthProviderViewToJSON(json) {
|
|
55
|
+
return GatewayOauthProviderViewToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function GatewayOauthProviderViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'allow_multiple_accounts': value['allowMultipleAccounts'],
|
|
63
|
+
'callback_url': value['callbackUrl'],
|
|
64
|
+
'display_name': value['displayName'],
|
|
65
|
+
'key': value['key'],
|
|
66
|
+
'owner_modes': (value['ownerModes'].map(GatewayOauthOwner_1.GatewayOauthOwnerToJSON)),
|
|
67
|
+
'scopes': value['scopes'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
* `POST /<ext>/v1/oauth/start`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GatewayOauthStartRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface GatewayOauthStartRequest {
|
|
19
|
+
/**
|
|
20
|
+
* A human label, for a provider that allows several connections per owner.
|
|
21
|
+
* Refused for one that does not, rather than ignored.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GatewayOauthStartRequest
|
|
24
|
+
*/
|
|
25
|
+
label?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {any}
|
|
29
|
+
* @memberof GatewayOauthStartRequest
|
|
30
|
+
*/
|
|
31
|
+
options?: any | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {GatewayOauthOwner}
|
|
35
|
+
* @memberof GatewayOauthStartRequest
|
|
36
|
+
*/
|
|
37
|
+
owner: GatewayOauthOwner;
|
|
38
|
+
/**
|
|
39
|
+
* The provider key, as `GET /<ext>/v1/oauth/providers` lists it.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GatewayOauthStartRequest
|
|
42
|
+
*/
|
|
43
|
+
provider: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the GatewayOauthStartRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfGatewayOauthStartRequest(value: object): value is GatewayOauthStartRequest;
|
|
49
|
+
export declare function GatewayOauthStartRequestFromJSON(json: any): GatewayOauthStartRequest;
|
|
50
|
+
export declare function GatewayOauthStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthStartRequest;
|
|
51
|
+
export declare function GatewayOauthStartRequestToJSON(json: any): GatewayOauthStartRequest;
|
|
52
|
+
export declare function GatewayOauthStartRequestToJSONTyped(value?: GatewayOauthStartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfGatewayOauthStartRequest = instanceOfGatewayOauthStartRequest;
|
|
17
|
+
exports.GatewayOauthStartRequestFromJSON = GatewayOauthStartRequestFromJSON;
|
|
18
|
+
exports.GatewayOauthStartRequestFromJSONTyped = GatewayOauthStartRequestFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthStartRequestToJSON = GatewayOauthStartRequestToJSON;
|
|
20
|
+
exports.GatewayOauthStartRequestToJSONTyped = GatewayOauthStartRequestToJSONTyped;
|
|
21
|
+
const GatewayOauthOwner_1 = require("./GatewayOauthOwner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GatewayOauthStartRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGatewayOauthStartRequest(value) {
|
|
26
|
+
if (!('owner' in value) || value['owner'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function GatewayOauthStartRequestFromJSON(json) {
|
|
33
|
+
return GatewayOauthStartRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function GatewayOauthStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'label': json['label'] === undefined ? undefined : json['label'] === null ? null : json['label'],
|
|
41
|
+
'options': json['options'] === undefined ? undefined : json['options'] === null ? null : json['options'],
|
|
42
|
+
'owner': (0, GatewayOauthOwner_1.GatewayOauthOwnerFromJSON)(json['owner']),
|
|
43
|
+
'provider': json['provider'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GatewayOauthStartRequestToJSON(json) {
|
|
47
|
+
return GatewayOauthStartRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GatewayOauthStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'label': value['label'],
|
|
55
|
+
'options': value['options'],
|
|
56
|
+
'owner': (0, GatewayOauthOwner_1.GatewayOauthOwnerToJSON)(value['owner']),
|
|
57
|
+
'provider': value['provider'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* The reply to `start`: where to send the browser, and the handle to poll.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GatewayOauthStarted
|
|
16
|
+
*/
|
|
17
|
+
export interface GatewayOauthStarted {
|
|
18
|
+
/**
|
|
19
|
+
* The completion handle. Unguessable, single-use, and bound to the caller
|
|
20
|
+
* who started — so it is safe to hand back, and useless to anyone else.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GatewayOauthStarted
|
|
23
|
+
*/
|
|
24
|
+
attemptId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Open this in a browser.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GatewayOauthStarted
|
|
29
|
+
*/
|
|
30
|
+
authorizationUrl: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GatewayOauthStarted interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfGatewayOauthStarted(value: object): value is GatewayOauthStarted;
|
|
36
|
+
export declare function GatewayOauthStartedFromJSON(json: any): GatewayOauthStarted;
|
|
37
|
+
export declare function GatewayOauthStartedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayOauthStarted;
|
|
38
|
+
export declare function GatewayOauthStartedToJSON(json: any): GatewayOauthStarted;
|
|
39
|
+
export declare function GatewayOauthStartedToJSONTyped(value?: GatewayOauthStarted | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfGatewayOauthStarted = instanceOfGatewayOauthStarted;
|
|
17
|
+
exports.GatewayOauthStartedFromJSON = GatewayOauthStartedFromJSON;
|
|
18
|
+
exports.GatewayOauthStartedFromJSONTyped = GatewayOauthStartedFromJSONTyped;
|
|
19
|
+
exports.GatewayOauthStartedToJSON = GatewayOauthStartedToJSON;
|
|
20
|
+
exports.GatewayOauthStartedToJSONTyped = GatewayOauthStartedToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GatewayOauthStarted interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGatewayOauthStarted(value) {
|
|
25
|
+
if ((!('attemptId' in value) && !('attempt_id' in value)) || (value['attemptId'] === undefined && value['attempt_id'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('authorizationUrl' in value) && !('authorization_url' in value)) || (value['authorizationUrl'] === undefined && value['authorization_url'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GatewayOauthStartedFromJSON(json) {
|
|
32
|
+
return GatewayOauthStartedFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GatewayOauthStartedFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'attemptId': json['attempt_id'],
|
|
40
|
+
'authorizationUrl': json['authorization_url'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GatewayOauthStartedToJSON(json) {
|
|
44
|
+
return GatewayOauthStartedToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GatewayOauthStartedToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'attempt_id': value['attemptId'],
|
|
52
|
+
'authorization_url': value['authorizationUrl'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* RFC 7807 problem document for 400 (Bad Request).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretCompleteOauth400Response
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretCompleteOauth400Response {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable reason for this failure.
|
|
20
|
+
* @type {SecretCompleteOauth400ResponseCodeEnum}
|
|
21
|
+
* @memberof SecretCompleteOauth400Response
|
|
22
|
+
*/
|
|
23
|
+
code: SecretCompleteOauth400ResponseCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `detail` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretCompleteOauth400Response
|
|
28
|
+
*/
|
|
29
|
+
detail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current lifecycle state.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecretCompleteOauth400Response
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `title` field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecretCompleteOauth400Response
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable identifier of the related trace resource.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecretCompleteOauth400Response
|
|
46
|
+
*/
|
|
47
|
+
traceId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SecretCompleteOauth400ResponseCodeEnum {
|
|
54
|
+
InvalidBase64 = "invalid_base64",
|
|
55
|
+
InvalidGzip = "invalid_gzip",
|
|
56
|
+
InvalidJson = "invalid_json",
|
|
57
|
+
OauthBadRequest = "oauth_bad_request",
|
|
58
|
+
OauthDenied = "oauth_denied",
|
|
59
|
+
OauthProviderConfig = "oauth_provider_config",
|
|
60
|
+
OauthProviderRefused = "oauth_provider_refused",
|
|
61
|
+
OauthUnsupportedOwner = "oauth_unsupported_owner"
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the SecretCompleteOauth400Response interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfSecretCompleteOauth400Response(value: object): value is SecretCompleteOauth400Response;
|
|
67
|
+
export declare function SecretCompleteOauth400ResponseFromJSON(json: any): SecretCompleteOauth400Response;
|
|
68
|
+
export declare function SecretCompleteOauth400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretCompleteOauth400Response;
|
|
69
|
+
export declare function SecretCompleteOauth400ResponseToJSON(json: any): SecretCompleteOauth400Response;
|
|
70
|
+
export declare function SecretCompleteOauth400ResponseToJSONTyped(value?: SecretCompleteOauth400Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.SecretCompleteOauth400ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretCompleteOauth400Response = instanceOfSecretCompleteOauth400Response;
|
|
18
|
+
exports.SecretCompleteOauth400ResponseFromJSON = SecretCompleteOauth400ResponseFromJSON;
|
|
19
|
+
exports.SecretCompleteOauth400ResponseFromJSONTyped = SecretCompleteOauth400ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretCompleteOauth400ResponseToJSON = SecretCompleteOauth400ResponseToJSON;
|
|
21
|
+
exports.SecretCompleteOauth400ResponseToJSONTyped = SecretCompleteOauth400ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretCompleteOauth400ResponseCodeEnum;
|
|
27
|
+
(function (SecretCompleteOauth400ResponseCodeEnum) {
|
|
28
|
+
SecretCompleteOauth400ResponseCodeEnum["InvalidBase64"] = "invalid_base64";
|
|
29
|
+
SecretCompleteOauth400ResponseCodeEnum["InvalidGzip"] = "invalid_gzip";
|
|
30
|
+
SecretCompleteOauth400ResponseCodeEnum["InvalidJson"] = "invalid_json";
|
|
31
|
+
SecretCompleteOauth400ResponseCodeEnum["OauthBadRequest"] = "oauth_bad_request";
|
|
32
|
+
SecretCompleteOauth400ResponseCodeEnum["OauthDenied"] = "oauth_denied";
|
|
33
|
+
SecretCompleteOauth400ResponseCodeEnum["OauthProviderConfig"] = "oauth_provider_config";
|
|
34
|
+
SecretCompleteOauth400ResponseCodeEnum["OauthProviderRefused"] = "oauth_provider_refused";
|
|
35
|
+
SecretCompleteOauth400ResponseCodeEnum["OauthUnsupportedOwner"] = "oauth_unsupported_owner";
|
|
36
|
+
})(SecretCompleteOauth400ResponseCodeEnum || (exports.SecretCompleteOauth400ResponseCodeEnum = SecretCompleteOauth400ResponseCodeEnum = {}));
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SecretCompleteOauth400Response interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfSecretCompleteOauth400Response(value) {
|
|
41
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function SecretCompleteOauth400ResponseFromJSON(json) {
|
|
52
|
+
return SecretCompleteOauth400ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SecretCompleteOauth400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'code': json['code'],
|
|
60
|
+
'detail': json['detail'],
|
|
61
|
+
'status': json['status'],
|
|
62
|
+
'title': json['title'],
|
|
63
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function SecretCompleteOauth400ResponseToJSON(json) {
|
|
67
|
+
return SecretCompleteOauth400ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function SecretCompleteOauth400ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'code': value['code'],
|
|
75
|
+
'detail': value['detail'],
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
'title': value['title'],
|
|
78
|
+
'trace_id': value['traceId'],
|
|
79
|
+
};
|
|
80
|
+
}
|