@admiral-io/sdk 1.6.3 → 1.6.5
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 +39 -33
- package/dist/proto/admiral/api/agent/v1/agent_pb.js.map +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 +39 -37
- package/dist/proto/admiral/api/user/v1/user_pb.js.map +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 +1 -1
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_pb.js","sourceRoot":"","sources":["../../../../../../proto/admiral/api/user/v1/user_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,mGAAmG;AACnG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user_pb.js","sourceRoot":"","sources":["../../../../../../proto/admiral/api/user/v1/user_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,mGAAmG;AACnG,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C"}
|
|
@@ -0,0 +1,202 @@
|
|
|
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/apikey.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_admiral_common_v1_apikey: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* ApiKey contains metadata for an opaque, long-lived credential issued by
|
|
11
|
+
* Admiral and presented by a caller to authenticate.
|
|
12
|
+
*
|
|
13
|
+
* A key is bound to exactly one subject for its whole life -- see
|
|
14
|
+
* `binding_type` and `binding_id` -- and to exactly one tenant. Presenting one
|
|
15
|
+
* is exchanged for a short-lived access token whose `sub` is the binding and
|
|
16
|
+
* whose scopes are bounded by this key's.
|
|
17
|
+
*
|
|
18
|
+
* The raw secret is returned exactly once, in the `plain_text_key` field of the
|
|
19
|
+
* Create response. This message carries only metadata; the secret is never
|
|
20
|
+
* retrievable afterwards. The non-secret `key_prefix` is safe to log and
|
|
21
|
+
* display.
|
|
22
|
+
*
|
|
23
|
+
* Key lifecycle is managed by each parent resource's API:
|
|
24
|
+
* - user-bound: UserAPI (/v1/user/tokens)
|
|
25
|
+
* - service-account-bound: AgentAPI (/v1/agents/{id}/tokens)
|
|
26
|
+
*
|
|
27
|
+
* @generated from message admiral.common.v1.ApiKey
|
|
28
|
+
*/
|
|
29
|
+
export type ApiKey = Message<"admiral.common.v1.ApiKey"> & {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the key (UUID).
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string id = 1;
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The tenant this key belongs to (UUID), and the `tid` of every access token
|
|
38
|
+
* minted from it.
|
|
39
|
+
*
|
|
40
|
+
* Load-bearing on the resolve path and an echo everywhere else: resolving a
|
|
41
|
+
* raw key is the one lookup that has no tenant in hand and must return one,
|
|
42
|
+
* where every lifecycle call already knows the tenant from the caller. The
|
|
43
|
+
* key belongs to one tenant for its whole life, so the two can never disagree.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: string tenant_id = 2;
|
|
46
|
+
*/
|
|
47
|
+
tenantId: string;
|
|
48
|
+
/**
|
|
49
|
+
* URL-safe, human-readable identifier for the key (e.g., "ci-deploy-key").
|
|
50
|
+
* Unique within the parent resource. Lowercase alphanumeric and hyphens only,
|
|
51
|
+
* must start with a letter and end with an alphanumeric character (1-63 chars).
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string name = 3;
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Non-secret prefix of the key. The five-character brand (`admp_` when bound
|
|
58
|
+
* to a user, `adms_` when bound to a service account) followed by a short
|
|
59
|
+
* sample of characters from the secret body (e.g., "adms_pL2m"). URL-safe and
|
|
60
|
+
* safe to log and display. Use for incident response and audit trails without
|
|
61
|
+
* exposing the secret.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string key_prefix = 4;
|
|
64
|
+
*/
|
|
65
|
+
keyPrefix: string;
|
|
66
|
+
/**
|
|
67
|
+
* The scopes granted to this key, and the ceiling on any access token minted
|
|
68
|
+
* from it. A mint request may narrow them and may never widen them.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: repeated string scopes = 5;
|
|
71
|
+
*/
|
|
72
|
+
scopes: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Current lifecycle status of the key.
|
|
75
|
+
*
|
|
76
|
+
* @generated from field: admiral.common.v1.ApiKeyStatus status = 6;
|
|
77
|
+
*/
|
|
78
|
+
status: ApiKeyStatus;
|
|
79
|
+
/**
|
|
80
|
+
* The kind of resource this key is bound to.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: admiral.common.v1.BindingType binding_type = 7;
|
|
83
|
+
*/
|
|
84
|
+
bindingType: BindingType;
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the resource this key is bound to (UUID): a user id or a service
|
|
87
|
+
* account id, per `binding_type`. Access tokens minted from this key carry it
|
|
88
|
+
* as their `sub`.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: string binding_id = 8;
|
|
91
|
+
*/
|
|
92
|
+
bindingId: string;
|
|
93
|
+
/**
|
|
94
|
+
* When the key expires. If unset, the key does not expire.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 9;
|
|
97
|
+
*/
|
|
98
|
+
expiresAt?: Timestamp | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* When this key was last exchanged for an access token.
|
|
101
|
+
*
|
|
102
|
+
* NOT the time of the last API request made with it: minted tokens are cached
|
|
103
|
+
* and reused for their lifetime, so a key in continuous use is exchanged only
|
|
104
|
+
* when the token minted from it runs out. Reads as "still in use", at a
|
|
105
|
+
* granularity of the access-token lifetime, which is the question this field
|
|
106
|
+
* exists to answer before revoking one.
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: google.protobuf.Timestamp last_used_at = 10;
|
|
109
|
+
*/
|
|
110
|
+
lastUsedAt?: Timestamp | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* When the key was revoked. Only set when status is REVOKED.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: google.protobuf.Timestamp revoked_at = 11;
|
|
115
|
+
*/
|
|
116
|
+
revokedAt?: Timestamp | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* The user who created this key. When bound to a user, this is the key's
|
|
119
|
+
* owner; when bound to a service account, the administrator who issued it.
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: admiral.common.v1.ActorRef created_by = 12;
|
|
122
|
+
*/
|
|
123
|
+
createdBy?: ActorRef | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* When the key was created.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: google.protobuf.Timestamp created_at = 13;
|
|
128
|
+
*/
|
|
129
|
+
createdAt?: Timestamp | undefined;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Describes the message admiral.common.v1.ApiKey.
|
|
133
|
+
* Use `create(ApiKeySchema)` to create a new message.
|
|
134
|
+
*/
|
|
135
|
+
export declare const ApiKeySchema: GenMessage<ApiKey>;
|
|
136
|
+
/**
|
|
137
|
+
* BindingType identifies the kind of resource an API key is bound to.
|
|
138
|
+
*
|
|
139
|
+
* This is the ONLY discriminator the contract carries. What a key is bound to
|
|
140
|
+
* decides the subject it authenticates as, and every other distinction that used
|
|
141
|
+
* to be modelled separately -- which surface created it, which brand its prefix
|
|
142
|
+
* carries, whether its scopes were chosen or assigned -- follows from the
|
|
143
|
+
* binding rather than varying independently of it.
|
|
144
|
+
*
|
|
145
|
+
* @generated from enum admiral.common.v1.BindingType
|
|
146
|
+
*/
|
|
147
|
+
export declare enum BindingType {
|
|
148
|
+
/**
|
|
149
|
+
* Default value. Must not be used.
|
|
150
|
+
*
|
|
151
|
+
* @generated from enum value: BINDING_TYPE_UNSPECIFIED = 0;
|
|
152
|
+
*/
|
|
153
|
+
UNSPECIFIED = 0,
|
|
154
|
+
/**
|
|
155
|
+
* Bound to a user, and created by that user. Scopes are selected at creation.
|
|
156
|
+
*
|
|
157
|
+
* @generated from enum value: BINDING_TYPE_USER = 1;
|
|
158
|
+
*/
|
|
159
|
+
USER = 1,
|
|
160
|
+
/**
|
|
161
|
+
* Bound to a service account, and created by an administrator. Scopes are
|
|
162
|
+
* assigned from a profile rather than chosen. An agent has a service account;
|
|
163
|
+
* which agent, if any, is resolved from the service account record.
|
|
164
|
+
*
|
|
165
|
+
* @generated from enum value: BINDING_TYPE_SERVICE_ACCOUNT = 2;
|
|
166
|
+
*/
|
|
167
|
+
SERVICE_ACCOUNT = 2
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Describes the enum admiral.common.v1.BindingType.
|
|
171
|
+
*/
|
|
172
|
+
export declare const BindingTypeSchema: GenEnum<BindingType>;
|
|
173
|
+
/**
|
|
174
|
+
* ApiKeyStatus represents the lifecycle state of an API key.
|
|
175
|
+
*
|
|
176
|
+
* @generated from enum admiral.common.v1.ApiKeyStatus
|
|
177
|
+
*/
|
|
178
|
+
export declare enum ApiKeyStatus {
|
|
179
|
+
/**
|
|
180
|
+
* Default value. Must not be used.
|
|
181
|
+
*
|
|
182
|
+
* @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;
|
|
183
|
+
*/
|
|
184
|
+
UNSPECIFIED = 0,
|
|
185
|
+
/**
|
|
186
|
+
* The key is valid and can be used to authenticate.
|
|
187
|
+
*
|
|
188
|
+
* @generated from enum value: API_KEY_STATUS_ACTIVE = 1;
|
|
189
|
+
*/
|
|
190
|
+
ACTIVE = 1,
|
|
191
|
+
/**
|
|
192
|
+
* The key has been permanently revoked and cannot be used.
|
|
193
|
+
*
|
|
194
|
+
* @generated from enum value: API_KEY_STATUS_REVOKED = 2;
|
|
195
|
+
*/
|
|
196
|
+
REVOKED = 2
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Describes the enum admiral.common.v1.ApiKeyStatus.
|
|
200
|
+
*/
|
|
201
|
+
export declare const ApiKeyStatusSchema: GenEnum<ApiKeyStatus>;
|
|
202
|
+
//# sourceMappingURL=apikey_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikey_pb.d.ts","sourceRoot":"","sources":["../../../../../proto/admiral/common/v1/apikey_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;;G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;;;;OAIG;IACH,MAAM,IAAI;IAEV;;;;OAIG;IACH,OAAO,IAAI;CACZ;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,YAAY,CACT,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.14.0 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file admiral/common/v1/apikey.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/apikey.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_admiral_common_v1_apikey = /*@__PURE__*/ fileDesc("Ch5hZG1pcmFsL2NvbW1vbi92MS9hcGlrZXkucHJvdG8SEWFkbWlyYWwuY29tbW9uLnYxIokECgZBcGlLZXkSFAoCaWQYASABKAlCCLpIBXIDsAEBEhsKCXRlbmFudF9pZBgCIAEoCUIIukgFcgOwAQESOgoEbmFtZRgDIAEoCUIsukgpcicQARg/MiFeW2Etel0oW2EtejAtOS1dezAsNjF9W2EtejAtOV0pPyQSEgoKa2V5X3ByZWZpeBgEIAEoCRIOCgZzY29wZXMYBSADKAkSLwoGc3RhdHVzGAYgASgOMh8uYWRtaXJhbC5jb21tb24udjEuQXBpS2V5U3RhdHVzEjQKDGJpbmRpbmdfdHlwZRgHIAEoDjIeLmFkbWlyYWwuY29tbW9uLnYxLkJpbmRpbmdUeXBlEhIKCmJpbmRpbmdfaWQYCCABKAkSLgoKZXhwaXJlc19hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMAoMbGFzdF91c2VkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpyZXZva2VkX2F0GAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgpjcmVhdGVkX2J5GAwgASgLMhsuYWRtaXJhbC5jb21tb24udjEuQWN0b3JSZWYSLgoKY3JlYXRlZF9hdBgNIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAqZAoLQmluZGluZ1R5cGUSHAoYQklORElOR19UWVBFX1VOU1BFQ0lGSUVEEAASFQoRQklORElOR19UWVBFX1VTRVIQARIgChxCSU5ESU5HX1RZUEVfU0VSVklDRV9BQ0NPVU5UEAIqZQoMQXBpS2V5U3RhdHVzEh4KGkFQSV9LRVlfU1RBVFVTX1VOU1BFQ0lGSUVEEAASGQoVQVBJX0tFWV9TVEFUVVNfQUNUSVZFEAESGgoWQVBJX0tFWV9TVEFUVVNfUkVWT0tFRBACQk9aTWJ1Zi5idWlsZC9nZW4vZ28vYWRtaXJhbC9jb21tb24vcHJvdG9jb2xidWZmZXJzL2dvL2FkbWlyYWwvY29tbW9uL3YxO2NvbW1vbnYxYgZwcm90bzM", [file_admiral_common_v1_actor, file_buf_validate_validate, file_google_protobuf_timestamp]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message admiral.common.v1.ApiKey.
|
|
14
|
+
* Use `create(ApiKeySchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ApiKeySchema = /*@__PURE__*/ messageDesc(file_admiral_common_v1_apikey, 0);
|
|
17
|
+
/**
|
|
18
|
+
* BindingType identifies the kind of resource an API key is bound to.
|
|
19
|
+
*
|
|
20
|
+
* This is the ONLY discriminator the contract carries. What a key is bound to
|
|
21
|
+
* decides the subject it authenticates as, and every other distinction that used
|
|
22
|
+
* to be modelled separately -- which surface created it, which brand its prefix
|
|
23
|
+
* carries, whether its scopes were chosen or assigned -- follows from the
|
|
24
|
+
* binding rather than varying independently of it.
|
|
25
|
+
*
|
|
26
|
+
* @generated from enum admiral.common.v1.BindingType
|
|
27
|
+
*/
|
|
28
|
+
export var BindingType;
|
|
29
|
+
(function (BindingType) {
|
|
30
|
+
/**
|
|
31
|
+
* Default value. Must not be used.
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: BINDING_TYPE_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
BindingType[BindingType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
36
|
+
/**
|
|
37
|
+
* Bound to a user, and created by that user. Scopes are selected at creation.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: BINDING_TYPE_USER = 1;
|
|
40
|
+
*/
|
|
41
|
+
BindingType[BindingType["USER"] = 1] = "USER";
|
|
42
|
+
/**
|
|
43
|
+
* Bound to a service account, and created by an administrator. Scopes are
|
|
44
|
+
* assigned from a profile rather than chosen. An agent has a service account;
|
|
45
|
+
* which agent, if any, is resolved from the service account record.
|
|
46
|
+
*
|
|
47
|
+
* @generated from enum value: BINDING_TYPE_SERVICE_ACCOUNT = 2;
|
|
48
|
+
*/
|
|
49
|
+
BindingType[BindingType["SERVICE_ACCOUNT"] = 2] = "SERVICE_ACCOUNT";
|
|
50
|
+
})(BindingType || (BindingType = {}));
|
|
51
|
+
/**
|
|
52
|
+
* Describes the enum admiral.common.v1.BindingType.
|
|
53
|
+
*/
|
|
54
|
+
export const BindingTypeSchema = /*@__PURE__*/ enumDesc(file_admiral_common_v1_apikey, 0);
|
|
55
|
+
/**
|
|
56
|
+
* ApiKeyStatus represents the lifecycle state of an API key.
|
|
57
|
+
*
|
|
58
|
+
* @generated from enum admiral.common.v1.ApiKeyStatus
|
|
59
|
+
*/
|
|
60
|
+
export var ApiKeyStatus;
|
|
61
|
+
(function (ApiKeyStatus) {
|
|
62
|
+
/**
|
|
63
|
+
* Default value. Must not be used.
|
|
64
|
+
*
|
|
65
|
+
* @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;
|
|
66
|
+
*/
|
|
67
|
+
ApiKeyStatus[ApiKeyStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
68
|
+
/**
|
|
69
|
+
* The key is valid and can be used to authenticate.
|
|
70
|
+
*
|
|
71
|
+
* @generated from enum value: API_KEY_STATUS_ACTIVE = 1;
|
|
72
|
+
*/
|
|
73
|
+
ApiKeyStatus[ApiKeyStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
74
|
+
/**
|
|
75
|
+
* The key has been permanently revoked and cannot be used.
|
|
76
|
+
*
|
|
77
|
+
* @generated from enum value: API_KEY_STATUS_REVOKED = 2;
|
|
78
|
+
*/
|
|
79
|
+
ApiKeyStatus[ApiKeyStatus["REVOKED"] = 2] = "REVOKED";
|
|
80
|
+
})(ApiKeyStatus || (ApiKeyStatus = {}));
|
|
81
|
+
/**
|
|
82
|
+
* Describes the enum admiral.common.v1.ApiKeyStatus.
|
|
83
|
+
*/
|
|
84
|
+
export const ApiKeyStatusSchema = /*@__PURE__*/ enumDesc(file_admiral_common_v1_apikey, 1);
|
|
85
|
+
//# sourceMappingURL=apikey_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikey_pb.js","sourceRoot":"","sources":["../../../../../proto/admiral/common/v1/apikey_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,iGAAiG;AACjG,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,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,yoCAAyoC,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAyIlvC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuB,aAAa,CAC3D,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,WAuBX;AAvBD,WAAY,WAAW;IACrB;;;;OAIG;IACH,2DAAe,CAAA;IAEf;;;;OAIG;IACH,6CAAQ,CAAA;IAER;;;;;;OAMG;IACH,mEAAmB,CAAA;AACrB,CAAC,EAvBW,WAAW,KAAX,WAAW,QAuBtB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAyB,aAAa,CAClE,QAAQ,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAN,IAAY,YAqBX;AArBD,WAAY,YAAY;IACtB;;;;OAIG;IACH,6DAAe,CAAA;IAEf;;;;OAIG;IACH,mDAAU,CAAA;IAEV;;;;OAIG;IACH,qDAAW,CAAA;AACb,CAAC,EArBW,YAAY,KAAZ,YAAY,QAqBvB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA0B,aAAa,CACpE,QAAQ,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -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,CA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,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,SA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