@atlanai/sdk 0.2.2 → 0.2.3
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 +4 -1
- package/dist/client.js +13 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +12 -1
- package/dist/evals.d.ts +5 -1
- package/dist/evals.js +285 -70
- package/dist/index.d.ts +1 -0
- 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.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,78 @@
|
|
|
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.SecretOauthCallback400ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretOauthCallback400Response = instanceOfSecretOauthCallback400Response;
|
|
18
|
+
exports.SecretOauthCallback400ResponseFromJSON = SecretOauthCallback400ResponseFromJSON;
|
|
19
|
+
exports.SecretOauthCallback400ResponseFromJSONTyped = SecretOauthCallback400ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretOauthCallback400ResponseToJSON = SecretOauthCallback400ResponseToJSON;
|
|
21
|
+
exports.SecretOauthCallback400ResponseToJSONTyped = SecretOauthCallback400ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretOauthCallback400ResponseCodeEnum;
|
|
27
|
+
(function (SecretOauthCallback400ResponseCodeEnum) {
|
|
28
|
+
SecretOauthCallback400ResponseCodeEnum["InvalidQuery"] = "invalid_query";
|
|
29
|
+
SecretOauthCallback400ResponseCodeEnum["OauthBadRequest"] = "oauth_bad_request";
|
|
30
|
+
SecretOauthCallback400ResponseCodeEnum["OauthDenied"] = "oauth_denied";
|
|
31
|
+
SecretOauthCallback400ResponseCodeEnum["OauthProviderConfig"] = "oauth_provider_config";
|
|
32
|
+
SecretOauthCallback400ResponseCodeEnum["OauthProviderRefused"] = "oauth_provider_refused";
|
|
33
|
+
SecretOauthCallback400ResponseCodeEnum["OauthUnsupportedOwner"] = "oauth_unsupported_owner";
|
|
34
|
+
})(SecretOauthCallback400ResponseCodeEnum || (exports.SecretOauthCallback400ResponseCodeEnum = SecretOauthCallback400ResponseCodeEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the SecretOauthCallback400Response interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfSecretOauthCallback400Response(value) {
|
|
39
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function SecretOauthCallback400ResponseFromJSON(json) {
|
|
50
|
+
return SecretOauthCallback400ResponseFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SecretOauthCallback400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'code': json['code'],
|
|
58
|
+
'detail': json['detail'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'title': json['title'],
|
|
61
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function SecretOauthCallback400ResponseToJSON(json) {
|
|
65
|
+
return SecretOauthCallback400ResponseToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function SecretOauthCallback400ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'code': value['code'],
|
|
73
|
+
'detail': value['detail'],
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'title': value['title'],
|
|
76
|
+
'trace_id': value['traceId'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 401 (Unauthorized).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretOauthCallback401Response
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretOauthCallback401Response {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable reason for this failure.
|
|
20
|
+
* @type {SecretOauthCallback401ResponseCodeEnum}
|
|
21
|
+
* @memberof SecretOauthCallback401Response
|
|
22
|
+
*/
|
|
23
|
+
code: SecretOauthCallback401ResponseCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `detail` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretOauthCallback401Response
|
|
28
|
+
*/
|
|
29
|
+
detail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current lifecycle state.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecretOauthCallback401Response
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `title` field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecretOauthCallback401Response
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable identifier of the related trace resource.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecretOauthCallback401Response
|
|
46
|
+
*/
|
|
47
|
+
traceId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SecretOauthCallback401ResponseCodeEnum {
|
|
54
|
+
AlgMismatch = "alg_mismatch",
|
|
55
|
+
AlgNotAllowed = "alg_not_allowed",
|
|
56
|
+
AudienceMismatch = "audience_mismatch",
|
|
57
|
+
InvalidApiKey = "invalid_api_key",
|
|
58
|
+
MissingIdentity = "missing_identity",
|
|
59
|
+
MissingOrg = "missing_org",
|
|
60
|
+
MissingUser = "missing_user",
|
|
61
|
+
SignatureInvalid = "signature_invalid",
|
|
62
|
+
TokenExpired = "token_expired",
|
|
63
|
+
TokenMalformed = "token_malformed",
|
|
64
|
+
TokenMissing = "token_missing",
|
|
65
|
+
TokenNotYetValid = "token_not_yet_valid",
|
|
66
|
+
TokenRejected = "token_rejected",
|
|
67
|
+
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
69
|
+
UnknownAccount = "unknown_account",
|
|
70
|
+
UnknownKey = "unknown_key",
|
|
71
|
+
UntrustedIssuer = "untrusted_issuer"
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the SecretOauthCallback401Response interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfSecretOauthCallback401Response(value: object): value is SecretOauthCallback401Response;
|
|
77
|
+
export declare function SecretOauthCallback401ResponseFromJSON(json: any): SecretOauthCallback401Response;
|
|
78
|
+
export declare function SecretOauthCallback401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretOauthCallback401Response;
|
|
79
|
+
export declare function SecretOauthCallback401ResponseToJSON(json: any): SecretOauthCallback401Response;
|
|
80
|
+
export declare function SecretOauthCallback401ResponseToJSONTyped(value?: SecretOauthCallback401Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.SecretOauthCallback401ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretOauthCallback401Response = instanceOfSecretOauthCallback401Response;
|
|
18
|
+
exports.SecretOauthCallback401ResponseFromJSON = SecretOauthCallback401ResponseFromJSON;
|
|
19
|
+
exports.SecretOauthCallback401ResponseFromJSONTyped = SecretOauthCallback401ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretOauthCallback401ResponseToJSON = SecretOauthCallback401ResponseToJSON;
|
|
21
|
+
exports.SecretOauthCallback401ResponseToJSONTyped = SecretOauthCallback401ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretOauthCallback401ResponseCodeEnum;
|
|
27
|
+
(function (SecretOauthCallback401ResponseCodeEnum) {
|
|
28
|
+
SecretOauthCallback401ResponseCodeEnum["AlgMismatch"] = "alg_mismatch";
|
|
29
|
+
SecretOauthCallback401ResponseCodeEnum["AlgNotAllowed"] = "alg_not_allowed";
|
|
30
|
+
SecretOauthCallback401ResponseCodeEnum["AudienceMismatch"] = "audience_mismatch";
|
|
31
|
+
SecretOauthCallback401ResponseCodeEnum["InvalidApiKey"] = "invalid_api_key";
|
|
32
|
+
SecretOauthCallback401ResponseCodeEnum["MissingIdentity"] = "missing_identity";
|
|
33
|
+
SecretOauthCallback401ResponseCodeEnum["MissingOrg"] = "missing_org";
|
|
34
|
+
SecretOauthCallback401ResponseCodeEnum["MissingUser"] = "missing_user";
|
|
35
|
+
SecretOauthCallback401ResponseCodeEnum["SignatureInvalid"] = "signature_invalid";
|
|
36
|
+
SecretOauthCallback401ResponseCodeEnum["TokenExpired"] = "token_expired";
|
|
37
|
+
SecretOauthCallback401ResponseCodeEnum["TokenMalformed"] = "token_malformed";
|
|
38
|
+
SecretOauthCallback401ResponseCodeEnum["TokenMissing"] = "token_missing";
|
|
39
|
+
SecretOauthCallback401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
|
+
SecretOauthCallback401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
|
+
SecretOauthCallback401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
SecretOauthCallback401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
43
|
+
SecretOauthCallback401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
44
|
+
SecretOauthCallback401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
45
|
+
SecretOauthCallback401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
46
|
+
})(SecretOauthCallback401ResponseCodeEnum || (exports.SecretOauthCallback401ResponseCodeEnum = SecretOauthCallback401ResponseCodeEnum = {}));
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the SecretOauthCallback401Response interface.
|
|
49
|
+
*/
|
|
50
|
+
function instanceOfSecretOauthCallback401Response(value) {
|
|
51
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
function SecretOauthCallback401ResponseFromJSON(json) {
|
|
62
|
+
return SecretOauthCallback401ResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function SecretOauthCallback401ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'code': json['code'],
|
|
70
|
+
'detail': json['detail'],
|
|
71
|
+
'status': json['status'],
|
|
72
|
+
'title': json['title'],
|
|
73
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function SecretOauthCallback401ResponseToJSON(json) {
|
|
77
|
+
return SecretOauthCallback401ResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function SecretOauthCallback401ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'code': value['code'],
|
|
85
|
+
'detail': value['detail'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'title': value['title'],
|
|
88
|
+
'trace_id': value['traceId'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 403 (Forbidden).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretOauthCallback403Response
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretOauthCallback403Response {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable reason for this failure.
|
|
20
|
+
* @type {SecretOauthCallback403ResponseCodeEnum}
|
|
21
|
+
* @memberof SecretOauthCallback403Response
|
|
22
|
+
*/
|
|
23
|
+
code: SecretOauthCallback403ResponseCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `detail` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretOauthCallback403Response
|
|
28
|
+
*/
|
|
29
|
+
detail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current lifecycle state.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecretOauthCallback403Response
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `title` field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecretOauthCallback403Response
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable identifier of the related trace resource.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecretOauthCallback403Response
|
|
46
|
+
*/
|
|
47
|
+
traceId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SecretOauthCallback403ResponseCodeEnum {
|
|
54
|
+
AccessDenied = "access_denied",
|
|
55
|
+
AccountSuspended = "account_suspended",
|
|
56
|
+
OauthAttemptNotYours = "oauth_attempt_not_yours",
|
|
57
|
+
OauthForbidden = "oauth_forbidden"
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the SecretOauthCallback403Response interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfSecretOauthCallback403Response(value: object): value is SecretOauthCallback403Response;
|
|
63
|
+
export declare function SecretOauthCallback403ResponseFromJSON(json: any): SecretOauthCallback403Response;
|
|
64
|
+
export declare function SecretOauthCallback403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretOauthCallback403Response;
|
|
65
|
+
export declare function SecretOauthCallback403ResponseToJSON(json: any): SecretOauthCallback403Response;
|
|
66
|
+
export declare function SecretOauthCallback403ResponseToJSONTyped(value?: SecretOauthCallback403Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.SecretOauthCallback403ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretOauthCallback403Response = instanceOfSecretOauthCallback403Response;
|
|
18
|
+
exports.SecretOauthCallback403ResponseFromJSON = SecretOauthCallback403ResponseFromJSON;
|
|
19
|
+
exports.SecretOauthCallback403ResponseFromJSONTyped = SecretOauthCallback403ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretOauthCallback403ResponseToJSON = SecretOauthCallback403ResponseToJSON;
|
|
21
|
+
exports.SecretOauthCallback403ResponseToJSONTyped = SecretOauthCallback403ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretOauthCallback403ResponseCodeEnum;
|
|
27
|
+
(function (SecretOauthCallback403ResponseCodeEnum) {
|
|
28
|
+
SecretOauthCallback403ResponseCodeEnum["AccessDenied"] = "access_denied";
|
|
29
|
+
SecretOauthCallback403ResponseCodeEnum["AccountSuspended"] = "account_suspended";
|
|
30
|
+
SecretOauthCallback403ResponseCodeEnum["OauthAttemptNotYours"] = "oauth_attempt_not_yours";
|
|
31
|
+
SecretOauthCallback403ResponseCodeEnum["OauthForbidden"] = "oauth_forbidden";
|
|
32
|
+
})(SecretOauthCallback403ResponseCodeEnum || (exports.SecretOauthCallback403ResponseCodeEnum = SecretOauthCallback403ResponseCodeEnum = {}));
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SecretOauthCallback403Response interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfSecretOauthCallback403Response(value) {
|
|
37
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function SecretOauthCallback403ResponseFromJSON(json) {
|
|
48
|
+
return SecretOauthCallback403ResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function SecretOauthCallback403ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'code': json['code'],
|
|
56
|
+
'detail': json['detail'],
|
|
57
|
+
'status': json['status'],
|
|
58
|
+
'title': json['title'],
|
|
59
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function SecretOauthCallback403ResponseToJSON(json) {
|
|
63
|
+
return SecretOauthCallback403ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function SecretOauthCallback403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'code': value['code'],
|
|
71
|
+
'detail': value['detail'],
|
|
72
|
+
'status': value['status'],
|
|
73
|
+
'title': value['title'],
|
|
74
|
+
'trace_id': value['traceId'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 404 (Not Found).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretOauthCallback404Response
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretOauthCallback404Response {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable reason for this failure.
|
|
20
|
+
* @type {SecretOauthCallback404ResponseCodeEnum}
|
|
21
|
+
* @memberof SecretOauthCallback404Response
|
|
22
|
+
*/
|
|
23
|
+
code: SecretOauthCallback404ResponseCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `detail` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretOauthCallback404Response
|
|
28
|
+
*/
|
|
29
|
+
detail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current lifecycle state.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecretOauthCallback404Response
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `title` field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecretOauthCallback404Response
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable identifier of the related trace resource.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecretOauthCallback404Response
|
|
46
|
+
*/
|
|
47
|
+
traceId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SecretOauthCallback404ResponseCodeEnum {
|
|
54
|
+
OauthNoWorkspace = "oauth_no_workspace",
|
|
55
|
+
OauthUnknownAttempt = "oauth_unknown_attempt",
|
|
56
|
+
OauthUnknownProvider = "oauth_unknown_provider"
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the SecretOauthCallback404Response interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfSecretOauthCallback404Response(value: object): value is SecretOauthCallback404Response;
|
|
62
|
+
export declare function SecretOauthCallback404ResponseFromJSON(json: any): SecretOauthCallback404Response;
|
|
63
|
+
export declare function SecretOauthCallback404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretOauthCallback404Response;
|
|
64
|
+
export declare function SecretOauthCallback404ResponseToJSON(json: any): SecretOauthCallback404Response;
|
|
65
|
+
export declare function SecretOauthCallback404ResponseToJSONTyped(value?: SecretOauthCallback404Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.SecretOauthCallback404ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretOauthCallback404Response = instanceOfSecretOauthCallback404Response;
|
|
18
|
+
exports.SecretOauthCallback404ResponseFromJSON = SecretOauthCallback404ResponseFromJSON;
|
|
19
|
+
exports.SecretOauthCallback404ResponseFromJSONTyped = SecretOauthCallback404ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretOauthCallback404ResponseToJSON = SecretOauthCallback404ResponseToJSON;
|
|
21
|
+
exports.SecretOauthCallback404ResponseToJSONTyped = SecretOauthCallback404ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretOauthCallback404ResponseCodeEnum;
|
|
27
|
+
(function (SecretOauthCallback404ResponseCodeEnum) {
|
|
28
|
+
SecretOauthCallback404ResponseCodeEnum["OauthNoWorkspace"] = "oauth_no_workspace";
|
|
29
|
+
SecretOauthCallback404ResponseCodeEnum["OauthUnknownAttempt"] = "oauth_unknown_attempt";
|
|
30
|
+
SecretOauthCallback404ResponseCodeEnum["OauthUnknownProvider"] = "oauth_unknown_provider";
|
|
31
|
+
})(SecretOauthCallback404ResponseCodeEnum || (exports.SecretOauthCallback404ResponseCodeEnum = SecretOauthCallback404ResponseCodeEnum = {}));
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SecretOauthCallback404Response interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfSecretOauthCallback404Response(value) {
|
|
36
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function SecretOauthCallback404ResponseFromJSON(json) {
|
|
47
|
+
return SecretOauthCallback404ResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SecretOauthCallback404ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'code': json['code'],
|
|
55
|
+
'detail': json['detail'],
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'title': json['title'],
|
|
58
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function SecretOauthCallback404ResponseToJSON(json) {
|
|
62
|
+
return SecretOauthCallback404ResponseToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function SecretOauthCallback404ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'code': value['code'],
|
|
70
|
+
'detail': value['detail'],
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
'title': value['title'],
|
|
73
|
+
'trace_id': value['traceId'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 500 (Internal Server Error).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretOauthCallback500Response
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretOauthCallback500Response {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable reason for this failure.
|
|
20
|
+
* @type {SecretOauthCallback500ResponseCodeEnum}
|
|
21
|
+
* @memberof SecretOauthCallback500Response
|
|
22
|
+
*/
|
|
23
|
+
code: SecretOauthCallback500ResponseCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `detail` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretOauthCallback500Response
|
|
28
|
+
*/
|
|
29
|
+
detail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current lifecycle state.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecretOauthCallback500Response
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `title` field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecretOauthCallback500Response
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable identifier of the related trace resource.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecretOauthCallback500Response
|
|
46
|
+
*/
|
|
47
|
+
traceId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SecretOauthCallback500ResponseCodeEnum {
|
|
54
|
+
InternalError = "internal_error",
|
|
55
|
+
OauthInternal = "oauth_internal"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SecretOauthCallback500Response interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfSecretOauthCallback500Response(value: object): value is SecretOauthCallback500Response;
|
|
61
|
+
export declare function SecretOauthCallback500ResponseFromJSON(json: any): SecretOauthCallback500Response;
|
|
62
|
+
export declare function SecretOauthCallback500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretOauthCallback500Response;
|
|
63
|
+
export declare function SecretOauthCallback500ResponseToJSON(json: any): SecretOauthCallback500Response;
|
|
64
|
+
export declare function SecretOauthCallback500ResponseToJSONTyped(value?: SecretOauthCallback500Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.SecretOauthCallback500ResponseCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfSecretOauthCallback500Response = instanceOfSecretOauthCallback500Response;
|
|
18
|
+
exports.SecretOauthCallback500ResponseFromJSON = SecretOauthCallback500ResponseFromJSON;
|
|
19
|
+
exports.SecretOauthCallback500ResponseFromJSONTyped = SecretOauthCallback500ResponseFromJSONTyped;
|
|
20
|
+
exports.SecretOauthCallback500ResponseToJSON = SecretOauthCallback500ResponseToJSON;
|
|
21
|
+
exports.SecretOauthCallback500ResponseToJSONTyped = SecretOauthCallback500ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var SecretOauthCallback500ResponseCodeEnum;
|
|
27
|
+
(function (SecretOauthCallback500ResponseCodeEnum) {
|
|
28
|
+
SecretOauthCallback500ResponseCodeEnum["InternalError"] = "internal_error";
|
|
29
|
+
SecretOauthCallback500ResponseCodeEnum["OauthInternal"] = "oauth_internal";
|
|
30
|
+
})(SecretOauthCallback500ResponseCodeEnum || (exports.SecretOauthCallback500ResponseCodeEnum = SecretOauthCallback500ResponseCodeEnum = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SecretOauthCallback500Response interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfSecretOauthCallback500Response(value) {
|
|
35
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function SecretOauthCallback500ResponseFromJSON(json) {
|
|
46
|
+
return SecretOauthCallback500ResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function SecretOauthCallback500ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'code': json['code'],
|
|
54
|
+
'detail': json['detail'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'title': json['title'],
|
|
57
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function SecretOauthCallback500ResponseToJSON(json) {
|
|
61
|
+
return SecretOauthCallback500ResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function SecretOauthCallback500ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'code': value['code'],
|
|
69
|
+
'detail': value['detail'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'trace_id': value['traceId'],
|
|
73
|
+
};
|
|
74
|
+
}
|