@admiral-io/sdk 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proto/admiral/api/agent/v1/agent_pb.d.ts +135 -129
- package/dist/proto/admiral/api/agent/v1/agent_pb.d.ts.map +1 -1
- package/dist/proto/admiral/api/agent/v1/agent_pb.js +40 -34
- package/dist/proto/admiral/api/agent/v1/agent_pb.js.map +1 -1
- package/dist/proto/admiral/api/agent/v1/jobs_pb.js +1 -1
- package/dist/proto/admiral/api/agent/v1/runtime_pb.js +1 -1
- package/dist/proto/admiral/api/agent/v1/workloads_pb.js +1 -1
- package/dist/proto/admiral/api/application/v1/application_pb.js +1 -1
- package/dist/proto/admiral/api/catalog/v1/catalog_pb.js +1 -1
- package/dist/proto/admiral/api/changeset/v1/changeset_pb.js +1 -1
- package/dist/proto/admiral/api/component/v1/component_pb.js +1 -1
- package/dist/proto/admiral/api/credential/v1/credential_pb.js +1 -1
- package/dist/proto/admiral/api/environment/v1/environment_pb.js +1 -1
- package/dist/proto/admiral/api/healthcheck/v1/healthcheck_pb.js +1 -1
- package/dist/proto/admiral/api/run/v1/run_pb.js +1 -1
- package/dist/proto/admiral/api/source/v1/source_pb.js +1 -1
- package/dist/proto/admiral/api/tenant/v1/tenant_pb.js +1 -1
- package/dist/proto/admiral/api/user/v1/user_pb.d.ts +129 -127
- package/dist/proto/admiral/api/user/v1/user_pb.d.ts.map +1 -1
- package/dist/proto/admiral/api/user/v1/user_pb.js +40 -38
- package/dist/proto/admiral/api/user/v1/user_pb.js.map +1 -1
- package/dist/proto/admiral/api/variable/v1/variable_pb.js +1 -1
- package/dist/proto/admiral/common/v1/actor_pb.js +1 -1
- package/dist/proto/admiral/common/v1/annotations_pb.js +1 -1
- package/dist/proto/admiral/common/v1/apikey_pb.d.ts +202 -0
- package/dist/proto/admiral/common/v1/apikey_pb.d.ts.map +1 -0
- package/dist/proto/admiral/common/v1/apikey_pb.js +85 -0
- package/dist/proto/admiral/common/v1/apikey_pb.js.map +1 -0
- package/package.json +8 -8
- package/dist/proto/admiral/common/v1/token_pb.d.ts +0 -222
- package/dist/proto/admiral/common/v1/token_pb.d.ts.map +0 -1
- package/dist/proto/admiral/common/v1/token_pb.js +0 -110
- package/dist/proto/admiral/common/v1/token_pb.js.map +0 -1
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { ActorRef } from "./actor_pb.js";
|
|
3
|
-
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
-
/**
|
|
6
|
-
* Describes the file admiral/common/v1/token.proto.
|
|
7
|
-
*/
|
|
8
|
-
export declare const file_admiral_common_v1_token: GenFile;
|
|
9
|
-
/**
|
|
10
|
-
* AccessToken contains metadata for an opaque access token issued by Admiral.
|
|
11
|
-
*
|
|
12
|
-
* Admiral issues two kinds of tokens, distinguished by `token_type`:
|
|
13
|
-
*
|
|
14
|
-
* - **Personal Access Tokens (PATs)**: bound to a user, created by that
|
|
15
|
-
* user via UserAPI. Scopes are user-selected at creation time. Intended
|
|
16
|
-
* for CLI, CI, and human-driven automation.
|
|
17
|
-
* - **Service Access Tokens (SATs)**: bound to a service account, created by
|
|
18
|
-
* administrators via AgentAPI. Scopes are auto-assigned from the agent's
|
|
19
|
-
* kind. Intended for long-lived agents that authenticate as the agent
|
|
20
|
-
* itself.
|
|
21
|
-
*
|
|
22
|
-
* The raw token secret is returned exactly once, in the `plain_text_token`
|
|
23
|
-
* field of the Create response. This message carries only metadata; the
|
|
24
|
-
* original secret is never retrievable after creation. The non-secret
|
|
25
|
-
* `token_prefix` is safe to log and display.
|
|
26
|
-
*
|
|
27
|
-
* Token CRUD is managed by each parent resource's API:
|
|
28
|
-
* - PATs: UserAPI (/v1/user/tokens)
|
|
29
|
-
* - SATs: AgentAPI (/v1/agents/{id}/tokens)
|
|
30
|
-
*
|
|
31
|
-
* IDP-issued JWTs (OAuth2/OIDC sessions) are not represented here; they are
|
|
32
|
-
* resolved by separate middleware.
|
|
33
|
-
*
|
|
34
|
-
* @generated from message admiral.common.v1.AccessToken
|
|
35
|
-
*/
|
|
36
|
-
export type AccessToken = Message<"admiral.common.v1.AccessToken"> & {
|
|
37
|
-
/**
|
|
38
|
-
* Unique identifier for the token (UUID).
|
|
39
|
-
*
|
|
40
|
-
* @generated from field: string id = 1;
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* URL-safe, human-readable identifier for the token (e.g., "ci-deploy-key").
|
|
45
|
-
* Unique within the parent resource. Lowercase alphanumeric and hyphens only,
|
|
46
|
-
* must start with a letter and end with an alphanumeric character (1-63 chars).
|
|
47
|
-
*
|
|
48
|
-
* @generated from field: string name = 2;
|
|
49
|
-
*/
|
|
50
|
-
name: string;
|
|
51
|
-
/**
|
|
52
|
-
* Non-secret prefix of the token value. The five-character brand
|
|
53
|
-
* (`admp_` for PATs, `adms_` for SATs) followed by a short sample of
|
|
54
|
-
* characters from the secret body (e.g., "adms_pL2m"). URL-safe and safe
|
|
55
|
-
* to log and display. Use for incident response and audit trails without
|
|
56
|
-
* exposing the secret.
|
|
57
|
-
*
|
|
58
|
-
* @generated from field: string token_prefix = 3;
|
|
59
|
-
*/
|
|
60
|
-
tokenPrefix: string;
|
|
61
|
-
/**
|
|
62
|
-
* The category of this token.
|
|
63
|
-
*
|
|
64
|
-
* @generated from field: admiral.common.v1.TokenType token_type = 4;
|
|
65
|
-
*/
|
|
66
|
-
tokenType: TokenType;
|
|
67
|
-
/**
|
|
68
|
-
* The scopes granted to this token. For PATs, these are user-selected.
|
|
69
|
-
* For SATs, these are auto-assigned from the service account's profile and
|
|
70
|
-
* cannot be chosen by the caller.
|
|
71
|
-
*
|
|
72
|
-
* @generated from field: repeated string scopes = 5;
|
|
73
|
-
*/
|
|
74
|
-
scopes: string[];
|
|
75
|
-
/**
|
|
76
|
-
* Current lifecycle status of the token.
|
|
77
|
-
*
|
|
78
|
-
* @generated from field: admiral.common.v1.AccessTokenStatus status = 6;
|
|
79
|
-
*/
|
|
80
|
-
status: AccessTokenStatus;
|
|
81
|
-
/**
|
|
82
|
-
* The kind of resource this token is bound to.
|
|
83
|
-
*
|
|
84
|
-
* @generated from field: admiral.common.v1.BindingType binding_type = 7;
|
|
85
|
-
*/
|
|
86
|
-
bindingType: BindingType;
|
|
87
|
-
/**
|
|
88
|
-
* The ID of the resource this token is bound to (UUID): the user ID for PATs,
|
|
89
|
-
* the service account ID for SATs. Tokens minted from this credential carry it
|
|
90
|
-
* as their `sub`.
|
|
91
|
-
*
|
|
92
|
-
* @generated from field: string binding_id = 8;
|
|
93
|
-
*/
|
|
94
|
-
bindingId: string;
|
|
95
|
-
/**
|
|
96
|
-
* When the token expires. If unset, the token does not expire.
|
|
97
|
-
*
|
|
98
|
-
* @generated from field: google.protobuf.Timestamp expires_at = 9;
|
|
99
|
-
*/
|
|
100
|
-
expiresAt?: Timestamp | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* When the token was last used to authenticate an API request.
|
|
103
|
-
*
|
|
104
|
-
* @generated from field: google.protobuf.Timestamp last_used_at = 10;
|
|
105
|
-
*/
|
|
106
|
-
lastUsedAt?: Timestamp | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* When the token was revoked. Only set when status is REVOKED.
|
|
109
|
-
*
|
|
110
|
-
* @generated from field: google.protobuf.Timestamp revoked_at = 11;
|
|
111
|
-
*/
|
|
112
|
-
revokedAt?: Timestamp | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* The user who created this token. For PATs, this is the token owner.
|
|
115
|
-
* For SATs, this is the administrator who issued the token.
|
|
116
|
-
*
|
|
117
|
-
* @generated from field: admiral.common.v1.ActorRef created_by = 12;
|
|
118
|
-
*/
|
|
119
|
-
createdBy?: ActorRef | undefined;
|
|
120
|
-
/**
|
|
121
|
-
* When the token was created.
|
|
122
|
-
*
|
|
123
|
-
* @generated from field: google.protobuf.Timestamp created_at = 13;
|
|
124
|
-
*/
|
|
125
|
-
createdAt?: Timestamp | undefined;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Describes the message admiral.common.v1.AccessToken.
|
|
129
|
-
* Use `create(AccessTokenSchema)` to create a new message.
|
|
130
|
-
*/
|
|
131
|
-
export declare const AccessTokenSchema: GenMessage<AccessToken>;
|
|
132
|
-
/**
|
|
133
|
-
* TokenType identifies the category of an access token issued by Admiral's token system.
|
|
134
|
-
* IDP-issued JWTs (OAuth2/OIDC sessions) are NOT represented here. They are
|
|
135
|
-
* resolved by separate middleware.
|
|
136
|
-
*
|
|
137
|
-
* @generated from enum admiral.common.v1.TokenType
|
|
138
|
-
*/
|
|
139
|
-
export declare enum TokenType {
|
|
140
|
-
/**
|
|
141
|
-
* Default value. Must not be used.
|
|
142
|
-
*
|
|
143
|
-
* @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
|
|
144
|
-
*/
|
|
145
|
-
UNSPECIFIED = 0,
|
|
146
|
-
/**
|
|
147
|
-
* Personal Access Token, bound to a user.
|
|
148
|
-
*
|
|
149
|
-
* @generated from enum value: TOKEN_TYPE_PAT = 1;
|
|
150
|
-
*/
|
|
151
|
-
PAT = 1,
|
|
152
|
-
/**
|
|
153
|
-
* Service Access Token, bound to a service account.
|
|
154
|
-
*
|
|
155
|
-
* @generated from enum value: TOKEN_TYPE_SAT = 2;
|
|
156
|
-
*/
|
|
157
|
-
SAT = 2
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Describes the enum admiral.common.v1.TokenType.
|
|
161
|
-
*/
|
|
162
|
-
export declare const TokenTypeSchema: GenEnum<TokenType>;
|
|
163
|
-
/**
|
|
164
|
-
* BindingType identifies the kind of resource an access token is bound to.
|
|
165
|
-
*
|
|
166
|
-
* @generated from enum admiral.common.v1.BindingType
|
|
167
|
-
*/
|
|
168
|
-
export declare enum BindingType {
|
|
169
|
-
/**
|
|
170
|
-
* Default value. Must not be used.
|
|
171
|
-
*
|
|
172
|
-
* @generated from enum value: BINDING_TYPE_UNSPECIFIED = 0;
|
|
173
|
-
*/
|
|
174
|
-
UNSPECIFIED = 0,
|
|
175
|
-
/**
|
|
176
|
-
* Token is bound to a user (PATs).
|
|
177
|
-
*
|
|
178
|
-
* @generated from enum value: BINDING_TYPE_USER = 1;
|
|
179
|
-
*/
|
|
180
|
-
USER = 1,
|
|
181
|
-
/**
|
|
182
|
-
* Token is bound to a service account (SATs). An agent has a service account;
|
|
183
|
-
* which agent, if any, is resolved from the service account record.
|
|
184
|
-
*
|
|
185
|
-
* @generated from enum value: BINDING_TYPE_SERVICE_ACCOUNT = 2;
|
|
186
|
-
*/
|
|
187
|
-
SERVICE_ACCOUNT = 2
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Describes the enum admiral.common.v1.BindingType.
|
|
191
|
-
*/
|
|
192
|
-
export declare const BindingTypeSchema: GenEnum<BindingType>;
|
|
193
|
-
/**
|
|
194
|
-
* AccessTokenStatus represents the lifecycle state of an access token.
|
|
195
|
-
*
|
|
196
|
-
* @generated from enum admiral.common.v1.AccessTokenStatus
|
|
197
|
-
*/
|
|
198
|
-
export declare enum AccessTokenStatus {
|
|
199
|
-
/**
|
|
200
|
-
* Default value. Must not be used.
|
|
201
|
-
*
|
|
202
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_UNSPECIFIED = 0;
|
|
203
|
-
*/
|
|
204
|
-
UNSPECIFIED = 0,
|
|
205
|
-
/**
|
|
206
|
-
* The token is valid and can be used for authentication.
|
|
207
|
-
*
|
|
208
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_ACTIVE = 1;
|
|
209
|
-
*/
|
|
210
|
-
ACTIVE = 1,
|
|
211
|
-
/**
|
|
212
|
-
* The token has been permanently revoked and cannot be used.
|
|
213
|
-
*
|
|
214
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_REVOKED = 2;
|
|
215
|
-
*/
|
|
216
|
-
REVOKED = 2
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Describes the enum admiral.common.v1.AccessTokenStatus.
|
|
220
|
-
*/
|
|
221
|
-
export declare const AccessTokenStatusSchema: GenEnum<AccessTokenStatus>;
|
|
222
|
-
//# sourceMappingURL=token_pb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token_pb.d.ts","sourceRoot":"","sources":["../../../../../proto/admiral/common/v1/token_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,OACu3C,CAAC;AAEn6C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,+BAA+B,CAAC,GAAG;IACnE;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;OAIG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAEnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAElC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,CACR,CAAC;AAE/C;;;;;;GAMG;AACH,oBAAY,SAAS;IACnB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,GAAG,IAAI;IAEP;;;;OAIG;IACH,GAAG,IAAI;CACR;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,SAAS,CACJ,CAAC;AAE5C;;;;GAIG;AACH,oBAAY,WAAW;IACrB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,eAAe,IAAI;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,WAAW,CACR,CAAC;AAE5C;;;;GAIG;AACH,oBAAY,iBAAiB;IAC3B;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,MAAM,IAAI;IAEV;;;;OAIG;IACH,OAAO,IAAI;CACZ;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,iBAAiB,CACpB,CAAC"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.0 with parameter "target=ts,import_extension=js"
|
|
2
|
-
// @generated from file admiral/common/v1/token.proto (package admiral.common.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_admiral_common_v1_actor } from "./actor_pb.js";
|
|
6
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
7
|
-
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
-
/**
|
|
9
|
-
* Describes the file admiral/common/v1/token.proto.
|
|
10
|
-
*/
|
|
11
|
-
export const file_admiral_common_v1_token = /*@__PURE__*/ fileDesc("Ch1hZG1pcmFsL2NvbW1vbi92MS90b2tlbi5wcm90bxIRYWRtaXJhbC5jb21tb24udjEiqgQKC0FjY2Vzc1Rva2VuEhQKAmlkGAEgASgJQgi6SAVyA7ABARI6CgRuYW1lGAIgASgJQiy6SClyJxABGD8yIV5bYS16XShbYS16MC05LV17MCw2MX1bYS16MC05XSk/JBIUCgx0b2tlbl9wcmVmaXgYAyABKAkSMAoKdG9rZW5fdHlwZRgEIAEoDjIcLmFkbWlyYWwuY29tbW9uLnYxLlRva2VuVHlwZRIOCgZzY29wZXMYBSADKAkSNAoGc3RhdHVzGAYgASgOMiQuYWRtaXJhbC5jb21tb24udjEuQWNjZXNzVG9rZW5TdGF0dXMSNAoMYmluZGluZ190eXBlGAcgASgOMh4uYWRtaXJhbC5jb21tb24udjEuQmluZGluZ1R5cGUSEgoKYmluZGluZ19pZBgIIAEoCRIuCgpleHBpcmVzX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgxsYXN0X3VzZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnJldm9rZWRfYXQYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KCmNyZWF0ZWRfYnkYDCABKAsyGy5hZG1pcmFsLmNvbW1vbi52MS5BY3RvclJlZhIuCgpjcmVhdGVkX2F0GA0gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCpPCglUb2tlblR5cGUSGgoWVE9LRU5fVFlQRV9VTlNQRUNJRklFRBAAEhIKDlRPS0VOX1RZUEVfUEFUEAESEgoOVE9LRU5fVFlQRV9TQVQQAipkCgtCaW5kaW5nVHlwZRIcChhCSU5ESU5HX1RZUEVfVU5TUEVDSUZJRUQQABIVChFCSU5ESU5HX1RZUEVfVVNFUhABEiAKHEJJTkRJTkdfVFlQRV9TRVJWSUNFX0FDQ09VTlQQAip5ChFBY2Nlc3NUb2tlblN0YXR1cxIjCh9BQ0NFU1NfVE9LRU5fU1RBVFVTX1VOU1BFQ0lGSUVEEAASHgoaQUNDRVNTX1RPS0VOX1NUQVRVU19BQ1RJVkUQARIfChtBQ0NFU1NfVE9LRU5fU1RBVFVTX1JFVk9LRUQQAkJPWk1idWYuYnVpbGQvZ2VuL2dvL2FkbWlyYWwvY29tbW9uL3Byb3RvY29sYnVmZmVycy9nby9hZG1pcmFsL2NvbW1vbi92MTtjb21tb252MWIGcHJvdG8z", [file_admiral_common_v1_actor, file_buf_validate_validate, file_google_protobuf_timestamp]);
|
|
12
|
-
/**
|
|
13
|
-
* Describes the message admiral.common.v1.AccessToken.
|
|
14
|
-
* Use `create(AccessTokenSchema)` to create a new message.
|
|
15
|
-
*/
|
|
16
|
-
export const AccessTokenSchema = /*@__PURE__*/ messageDesc(file_admiral_common_v1_token, 0);
|
|
17
|
-
/**
|
|
18
|
-
* TokenType identifies the category of an access token issued by Admiral's token system.
|
|
19
|
-
* IDP-issued JWTs (OAuth2/OIDC sessions) are NOT represented here. They are
|
|
20
|
-
* resolved by separate middleware.
|
|
21
|
-
*
|
|
22
|
-
* @generated from enum admiral.common.v1.TokenType
|
|
23
|
-
*/
|
|
24
|
-
export var TokenType;
|
|
25
|
-
(function (TokenType) {
|
|
26
|
-
/**
|
|
27
|
-
* Default value. Must not be used.
|
|
28
|
-
*
|
|
29
|
-
* @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
|
|
30
|
-
*/
|
|
31
|
-
TokenType[TokenType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
32
|
-
/**
|
|
33
|
-
* Personal Access Token, bound to a user.
|
|
34
|
-
*
|
|
35
|
-
* @generated from enum value: TOKEN_TYPE_PAT = 1;
|
|
36
|
-
*/
|
|
37
|
-
TokenType[TokenType["PAT"] = 1] = "PAT";
|
|
38
|
-
/**
|
|
39
|
-
* Service Access Token, bound to a service account.
|
|
40
|
-
*
|
|
41
|
-
* @generated from enum value: TOKEN_TYPE_SAT = 2;
|
|
42
|
-
*/
|
|
43
|
-
TokenType[TokenType["SAT"] = 2] = "SAT";
|
|
44
|
-
})(TokenType || (TokenType = {}));
|
|
45
|
-
/**
|
|
46
|
-
* Describes the enum admiral.common.v1.TokenType.
|
|
47
|
-
*/
|
|
48
|
-
export const TokenTypeSchema = /*@__PURE__*/ enumDesc(file_admiral_common_v1_token, 0);
|
|
49
|
-
/**
|
|
50
|
-
* BindingType identifies the kind of resource an access token is bound to.
|
|
51
|
-
*
|
|
52
|
-
* @generated from enum admiral.common.v1.BindingType
|
|
53
|
-
*/
|
|
54
|
-
export var BindingType;
|
|
55
|
-
(function (BindingType) {
|
|
56
|
-
/**
|
|
57
|
-
* Default value. Must not be used.
|
|
58
|
-
*
|
|
59
|
-
* @generated from enum value: BINDING_TYPE_UNSPECIFIED = 0;
|
|
60
|
-
*/
|
|
61
|
-
BindingType[BindingType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
62
|
-
/**
|
|
63
|
-
* Token is bound to a user (PATs).
|
|
64
|
-
*
|
|
65
|
-
* @generated from enum value: BINDING_TYPE_USER = 1;
|
|
66
|
-
*/
|
|
67
|
-
BindingType[BindingType["USER"] = 1] = "USER";
|
|
68
|
-
/**
|
|
69
|
-
* Token is bound to a service account (SATs). An agent has a service account;
|
|
70
|
-
* which agent, if any, is resolved from the service account record.
|
|
71
|
-
*
|
|
72
|
-
* @generated from enum value: BINDING_TYPE_SERVICE_ACCOUNT = 2;
|
|
73
|
-
*/
|
|
74
|
-
BindingType[BindingType["SERVICE_ACCOUNT"] = 2] = "SERVICE_ACCOUNT";
|
|
75
|
-
})(BindingType || (BindingType = {}));
|
|
76
|
-
/**
|
|
77
|
-
* Describes the enum admiral.common.v1.BindingType.
|
|
78
|
-
*/
|
|
79
|
-
export const BindingTypeSchema = /*@__PURE__*/ enumDesc(file_admiral_common_v1_token, 1);
|
|
80
|
-
/**
|
|
81
|
-
* AccessTokenStatus represents the lifecycle state of an access token.
|
|
82
|
-
*
|
|
83
|
-
* @generated from enum admiral.common.v1.AccessTokenStatus
|
|
84
|
-
*/
|
|
85
|
-
export var AccessTokenStatus;
|
|
86
|
-
(function (AccessTokenStatus) {
|
|
87
|
-
/**
|
|
88
|
-
* Default value. Must not be used.
|
|
89
|
-
*
|
|
90
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_UNSPECIFIED = 0;
|
|
91
|
-
*/
|
|
92
|
-
AccessTokenStatus[AccessTokenStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
93
|
-
/**
|
|
94
|
-
* The token is valid and can be used for authentication.
|
|
95
|
-
*
|
|
96
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_ACTIVE = 1;
|
|
97
|
-
*/
|
|
98
|
-
AccessTokenStatus[AccessTokenStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
99
|
-
/**
|
|
100
|
-
* The token has been permanently revoked and cannot be used.
|
|
101
|
-
*
|
|
102
|
-
* @generated from enum value: ACCESS_TOKEN_STATUS_REVOKED = 2;
|
|
103
|
-
*/
|
|
104
|
-
AccessTokenStatus[AccessTokenStatus["REVOKED"] = 2] = "REVOKED";
|
|
105
|
-
})(AccessTokenStatus || (AccessTokenStatus = {}));
|
|
106
|
-
/**
|
|
107
|
-
* Describes the enum admiral.common.v1.AccessTokenStatus.
|
|
108
|
-
*/
|
|
109
|
-
export const AccessTokenStatusSchema = /*@__PURE__*/ enumDesc(file_admiral_common_v1_token, 2);
|
|
110
|
-
//# sourceMappingURL=token_pb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token_pb.js","sourceRoot":"","sources":["../../../../../proto/admiral/common/v1/token_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,gGAAgG;AAChG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAY,aAAa,CAChE,QAAQ,CAAC,0zCAA0zC,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAqIn6C;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,SAqBX;AArBD,WAAY,SAAS;IACnB;;;;OAIG;IACH,uDAAe,CAAA;IAEf;;;;OAIG;IACH,uCAAO,CAAA;IAEP;;;;OAIG;IACH,uCAAO,CAAA;AACT,CAAC,EArBW,SAAS,KAAT,SAAS,QAqBpB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,aAAa,CAC9D,QAAQ,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAsBX;AAtBD,WAAY,WAAW;IACrB;;;;OAIG;IACH,2DAAe,CAAA;IAEf;;;;OAIG;IACH,6CAAQ,CAAA;IAER;;;;;OAKG;IACH,mEAAmB,CAAA;AACrB,CAAC,EAtBW,WAAW,KAAX,WAAW,QAsBtB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAyB,aAAa,CAClE,QAAQ,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAN,IAAY,iBAqBX;AArBD,WAAY,iBAAiB;IAC3B;;;;OAIG;IACH,uEAAe,CAAA;IAEf;;;;OAIG;IACH,6DAAU,CAAA;IAEV;;;;OAIG;IACH,+DAAW,CAAA;AACb,CAAC,EArBW,iBAAiB,KAAjB,iBAAiB,QAqB5B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA+B,aAAa,CAC9E,QAAQ,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC"}
|