@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,5 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiKey } from "../../../common/v1/apikey_pb.js";
|
|
3
3
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
@@ -139,13 +139,13 @@ export type GetUserResponse = Message<"admiral.api.user.v1.GetUserResponse"> & {
|
|
|
139
139
|
*/
|
|
140
140
|
export declare const GetUserResponseSchema: GenMessage<GetUserResponse>;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* CreateApiKeyRequest contains the parameters for creating a new API key.
|
|
143
143
|
*
|
|
144
|
-
* @generated from message admiral.api.user.v1.
|
|
144
|
+
* @generated from message admiral.api.user.v1.CreateApiKeyRequest
|
|
145
145
|
*/
|
|
146
|
-
export type
|
|
146
|
+
export type CreateApiKeyRequest = Message<"admiral.api.user.v1.CreateApiKeyRequest"> & {
|
|
147
147
|
/**
|
|
148
|
-
* URL-safe, human-readable identifier for the
|
|
148
|
+
* URL-safe, human-readable identifier for the key (e.g., "postman-testing").
|
|
149
149
|
* Unique per user within the tenant. Lowercase alphanumeric and hyphens only,
|
|
150
150
|
* must start with a letter and end with an alphanumeric character (1-63 chars).
|
|
151
151
|
*
|
|
@@ -153,15 +153,15 @@ export type CreatePersonalAccessTokenRequest = Message<"admiral.api.user.v1.Crea
|
|
|
153
153
|
*/
|
|
154
154
|
name: string;
|
|
155
155
|
/**
|
|
156
|
-
* The scopes to grant this
|
|
156
|
+
* The scopes to grant this key. Must be scopes assignable to a user-bound key.
|
|
157
157
|
* The server enforces that issued scopes are a subset of the caller's own
|
|
158
|
-
* scopes. A
|
|
158
|
+
* scopes. A key cannot grant more access than the user holds.
|
|
159
159
|
*
|
|
160
160
|
* @generated from field: repeated string scopes = 2;
|
|
161
161
|
*/
|
|
162
162
|
scopes: string[];
|
|
163
163
|
/**
|
|
164
|
-
* Optional expiration time. If unset, the
|
|
164
|
+
* Optional expiration time. If unset, the key does not expire.
|
|
165
165
|
* Tenant policies may enforce a maximum lifetime.
|
|
166
166
|
*
|
|
167
167
|
* @generated from field: google.protobuf.Timestamp expires_at = 3;
|
|
@@ -169,48 +169,48 @@ export type CreatePersonalAccessTokenRequest = Message<"admiral.api.user.v1.Crea
|
|
|
169
169
|
expiresAt?: Timestamp | undefined;
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
172
|
-
* Describes the message admiral.api.user.v1.
|
|
173
|
-
* Use `create(
|
|
172
|
+
* Describes the message admiral.api.user.v1.CreateApiKeyRequest.
|
|
173
|
+
* Use `create(CreateApiKeyRequestSchema)` to create a new message.
|
|
174
174
|
*/
|
|
175
|
-
export declare const
|
|
175
|
+
export declare const CreateApiKeyRequestSchema: GenMessage<CreateApiKeyRequest>;
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
177
|
+
* CreateApiKeyResponse contains the newly created API key.
|
|
178
178
|
*
|
|
179
|
-
* @generated from message admiral.api.user.v1.
|
|
179
|
+
* @generated from message admiral.api.user.v1.CreateApiKeyResponse
|
|
180
180
|
*/
|
|
181
|
-
export type
|
|
181
|
+
export type CreateApiKeyResponse = Message<"admiral.api.user.v1.CreateApiKeyResponse"> & {
|
|
182
182
|
/**
|
|
183
|
-
* The created
|
|
183
|
+
* The created key metadata.
|
|
184
184
|
*
|
|
185
|
-
* @generated from field: admiral.common.v1.
|
|
185
|
+
* @generated from field: admiral.common.v1.ApiKey api_key = 1;
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
apiKey?: ApiKey | undefined;
|
|
188
188
|
/**
|
|
189
|
-
* The raw
|
|
189
|
+
* The raw secret (e.g., "admp_7kH3mNqR2xFb..."). This value is
|
|
190
190
|
* shown exactly once and cannot be retrieved again. Store it securely.
|
|
191
191
|
*
|
|
192
|
-
* @generated from field: string
|
|
192
|
+
* @generated from field: string plain_text_key = 2;
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
plainTextKey: string;
|
|
195
195
|
};
|
|
196
196
|
/**
|
|
197
|
-
* Describes the message admiral.api.user.v1.
|
|
198
|
-
* Use `create(
|
|
197
|
+
* Describes the message admiral.api.user.v1.CreateApiKeyResponse.
|
|
198
|
+
* Use `create(CreateApiKeyResponseSchema)` to create a new message.
|
|
199
199
|
*/
|
|
200
|
-
export declare const
|
|
200
|
+
export declare const CreateApiKeyResponseSchema: GenMessage<CreateApiKeyResponse>;
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* ListApiKeysRequest contains pagination and filter parameters.
|
|
203
203
|
*
|
|
204
|
-
* @generated from message admiral.api.user.v1.
|
|
204
|
+
* @generated from message admiral.api.user.v1.ListApiKeysRequest
|
|
205
205
|
*/
|
|
206
|
-
export type
|
|
206
|
+
export type ListApiKeysRequest = Message<"admiral.api.user.v1.ListApiKeysRequest"> & {
|
|
207
207
|
/**
|
|
208
208
|
* Filter expression to narrow results. Uses the Admiral filter DSL (see the
|
|
209
209
|
* API documentation for the full operator and predicate reference).
|
|
210
210
|
*
|
|
211
211
|
* Filterable fields:
|
|
212
|
-
* - `name`: filter by
|
|
213
|
-
* - `status`: filter by
|
|
212
|
+
* - `name`: filter by key name.
|
|
213
|
+
* - `status`: filter by key status (ACTIVE, REVOKED).
|
|
214
214
|
*
|
|
215
215
|
* Example: `field['status'] = 'ACTIVE'`
|
|
216
216
|
*
|
|
@@ -218,7 +218,7 @@ export type ListPersonalAccessTokensRequest = Message<"admiral.api.user.v1.ListP
|
|
|
218
218
|
*/
|
|
219
219
|
filter: string;
|
|
220
220
|
/**
|
|
221
|
-
* Maximum number of
|
|
221
|
+
* Maximum number of keys to return per page. Defaults to 50 when omitted
|
|
222
222
|
* or 0; must not exceed 100.
|
|
223
223
|
*
|
|
224
224
|
* @generated from field: int32 page_size = 2;
|
|
@@ -232,22 +232,22 @@ export type ListPersonalAccessTokensRequest = Message<"admiral.api.user.v1.ListP
|
|
|
232
232
|
pageToken: string;
|
|
233
233
|
};
|
|
234
234
|
/**
|
|
235
|
-
* Describes the message admiral.api.user.v1.
|
|
236
|
-
* Use `create(
|
|
235
|
+
* Describes the message admiral.api.user.v1.ListApiKeysRequest.
|
|
236
|
+
* Use `create(ListApiKeysRequestSchema)` to create a new message.
|
|
237
237
|
*/
|
|
238
|
-
export declare const
|
|
238
|
+
export declare const ListApiKeysRequestSchema: GenMessage<ListApiKeysRequest>;
|
|
239
239
|
/**
|
|
240
|
-
*
|
|
240
|
+
* ListApiKeysResponse contains a page of API key metadata.
|
|
241
241
|
*
|
|
242
|
-
* @generated from message admiral.api.user.v1.
|
|
242
|
+
* @generated from message admiral.api.user.v1.ListApiKeysResponse
|
|
243
243
|
*/
|
|
244
|
-
export type
|
|
244
|
+
export type ListApiKeysResponse = Message<"admiral.api.user.v1.ListApiKeysResponse"> & {
|
|
245
245
|
/**
|
|
246
|
-
* The list of
|
|
246
|
+
* The list of keys. Secrets are never included.
|
|
247
247
|
*
|
|
248
|
-
* @generated from field: repeated admiral.common.v1.
|
|
248
|
+
* @generated from field: repeated admiral.common.v1.ApiKey api_keys = 1;
|
|
249
249
|
*/
|
|
250
|
-
|
|
250
|
+
apiKeys: ApiKey[];
|
|
251
251
|
/**
|
|
252
252
|
* Pagination token for the next page. Empty when there are no more results.
|
|
253
253
|
*
|
|
@@ -256,70 +256,70 @@ export type ListPersonalAccessTokensResponse = Message<"admiral.api.user.v1.List
|
|
|
256
256
|
nextPageToken: string;
|
|
257
257
|
};
|
|
258
258
|
/**
|
|
259
|
-
* Describes the message admiral.api.user.v1.
|
|
260
|
-
* Use `create(
|
|
259
|
+
* Describes the message admiral.api.user.v1.ListApiKeysResponse.
|
|
260
|
+
* Use `create(ListApiKeysResponseSchema)` to create a new message.
|
|
261
261
|
*/
|
|
262
|
-
export declare const
|
|
262
|
+
export declare const ListApiKeysResponseSchema: GenMessage<ListApiKeysResponse>;
|
|
263
263
|
/**
|
|
264
|
-
*
|
|
264
|
+
* GetApiKeyRequest identifies an API key to retrieve.
|
|
265
265
|
*
|
|
266
|
-
* @generated from message admiral.api.user.v1.
|
|
266
|
+
* @generated from message admiral.api.user.v1.GetApiKeyRequest
|
|
267
267
|
*/
|
|
268
|
-
export type
|
|
268
|
+
export type GetApiKeyRequest = Message<"admiral.api.user.v1.GetApiKeyRequest"> & {
|
|
269
269
|
/**
|
|
270
|
-
* The unique identifier of the
|
|
270
|
+
* The unique identifier of the key (UUID).
|
|
271
271
|
*
|
|
272
272
|
* @generated from field: string token_id = 1;
|
|
273
273
|
*/
|
|
274
274
|
tokenId: string;
|
|
275
275
|
};
|
|
276
276
|
/**
|
|
277
|
-
* Describes the message admiral.api.user.v1.
|
|
278
|
-
* Use `create(
|
|
277
|
+
* Describes the message admiral.api.user.v1.GetApiKeyRequest.
|
|
278
|
+
* Use `create(GetApiKeyRequestSchema)` to create a new message.
|
|
279
279
|
*/
|
|
280
|
-
export declare const
|
|
280
|
+
export declare const GetApiKeyRequestSchema: GenMessage<GetApiKeyRequest>;
|
|
281
281
|
/**
|
|
282
|
-
*
|
|
282
|
+
* GetApiKeyResponse contains the requested API key metadata.
|
|
283
283
|
*
|
|
284
|
-
* @generated from message admiral.api.user.v1.
|
|
284
|
+
* @generated from message admiral.api.user.v1.GetApiKeyResponse
|
|
285
285
|
*/
|
|
286
|
-
export type
|
|
286
|
+
export type GetApiKeyResponse = Message<"admiral.api.user.v1.GetApiKeyResponse"> & {
|
|
287
287
|
/**
|
|
288
|
-
* The
|
|
288
|
+
* The key metadata. The key secret is never included.
|
|
289
289
|
*
|
|
290
|
-
* @generated from field: admiral.common.v1.
|
|
290
|
+
* @generated from field: admiral.common.v1.ApiKey api_key = 1;
|
|
291
291
|
*/
|
|
292
|
-
|
|
292
|
+
apiKey?: ApiKey | undefined;
|
|
293
293
|
};
|
|
294
294
|
/**
|
|
295
|
-
* Describes the message admiral.api.user.v1.
|
|
296
|
-
* Use `create(
|
|
295
|
+
* Describes the message admiral.api.user.v1.GetApiKeyResponse.
|
|
296
|
+
* Use `create(GetApiKeyResponseSchema)` to create a new message.
|
|
297
297
|
*/
|
|
298
|
-
export declare const
|
|
298
|
+
export declare const GetApiKeyResponseSchema: GenMessage<GetApiKeyResponse>;
|
|
299
299
|
/**
|
|
300
|
-
*
|
|
300
|
+
* UpdateApiKeyRequest contains the fields to update on an API key.
|
|
301
301
|
* Only provided fields are updated; omitted fields remain unchanged.
|
|
302
302
|
*
|
|
303
|
-
* @generated from message admiral.api.user.v1.
|
|
303
|
+
* @generated from message admiral.api.user.v1.UpdateApiKeyRequest
|
|
304
304
|
*/
|
|
305
|
-
export type
|
|
305
|
+
export type UpdateApiKeyRequest = Message<"admiral.api.user.v1.UpdateApiKeyRequest"> & {
|
|
306
306
|
/**
|
|
307
|
-
* The unique identifier of the
|
|
307
|
+
* The unique identifier of the key to update (UUID).
|
|
308
308
|
*
|
|
309
309
|
* @generated from field: string token_id = 1;
|
|
310
310
|
*/
|
|
311
311
|
tokenId: string;
|
|
312
312
|
/**
|
|
313
|
-
* New name for the
|
|
313
|
+
* New name for the key. Must follow the same naming rules as creation.
|
|
314
314
|
* Omit to leave the name unchanged.
|
|
315
315
|
*
|
|
316
316
|
* @generated from field: optional string name = 2;
|
|
317
317
|
*/
|
|
318
318
|
name?: string | undefined;
|
|
319
319
|
/**
|
|
320
|
-
* New scopes for the
|
|
320
|
+
* New scopes for the key. Replaces all existing scopes.
|
|
321
321
|
* The server enforces that issued scopes are a subset of the caller's own
|
|
322
|
-
* scopes. A
|
|
322
|
+
* scopes. A key cannot grant more access than the user holds.
|
|
323
323
|
* Omit to leave scopes unchanged.
|
|
324
324
|
*
|
|
325
325
|
* @generated from field: repeated string scopes = 3;
|
|
@@ -327,71 +327,73 @@ export type UpdatePersonalAccessTokenRequest = Message<"admiral.api.user.v1.Upda
|
|
|
327
327
|
scopes: string[];
|
|
328
328
|
};
|
|
329
329
|
/**
|
|
330
|
-
* Describes the message admiral.api.user.v1.
|
|
331
|
-
* Use `create(
|
|
330
|
+
* Describes the message admiral.api.user.v1.UpdateApiKeyRequest.
|
|
331
|
+
* Use `create(UpdateApiKeyRequestSchema)` to create a new message.
|
|
332
332
|
*/
|
|
333
|
-
export declare const
|
|
333
|
+
export declare const UpdateApiKeyRequestSchema: GenMessage<UpdateApiKeyRequest>;
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* UpdateApiKeyResponse contains the updated API key metadata.
|
|
336
336
|
*
|
|
337
|
-
* @generated from message admiral.api.user.v1.
|
|
337
|
+
* @generated from message admiral.api.user.v1.UpdateApiKeyResponse
|
|
338
338
|
*/
|
|
339
|
-
export type
|
|
339
|
+
export type UpdateApiKeyResponse = Message<"admiral.api.user.v1.UpdateApiKeyResponse"> & {
|
|
340
340
|
/**
|
|
341
|
-
* The updated
|
|
341
|
+
* The updated key metadata.
|
|
342
342
|
*
|
|
343
|
-
* @generated from field: admiral.common.v1.
|
|
343
|
+
* @generated from field: admiral.common.v1.ApiKey api_key = 1;
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
apiKey?: ApiKey | undefined;
|
|
346
346
|
};
|
|
347
347
|
/**
|
|
348
|
-
* Describes the message admiral.api.user.v1.
|
|
349
|
-
* Use `create(
|
|
348
|
+
* Describes the message admiral.api.user.v1.UpdateApiKeyResponse.
|
|
349
|
+
* Use `create(UpdateApiKeyResponseSchema)` to create a new message.
|
|
350
350
|
*/
|
|
351
|
-
export declare const
|
|
351
|
+
export declare const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse>;
|
|
352
352
|
/**
|
|
353
|
-
*
|
|
353
|
+
* RevokeApiKeyRequest identifies an API key to revoke.
|
|
354
354
|
*
|
|
355
|
-
* @generated from message admiral.api.user.v1.
|
|
355
|
+
* @generated from message admiral.api.user.v1.RevokeApiKeyRequest
|
|
356
356
|
*/
|
|
357
|
-
export type
|
|
357
|
+
export type RevokeApiKeyRequest = Message<"admiral.api.user.v1.RevokeApiKeyRequest"> & {
|
|
358
358
|
/**
|
|
359
|
-
* The unique identifier of the
|
|
359
|
+
* The unique identifier of the key to revoke (UUID).
|
|
360
360
|
*
|
|
361
361
|
* @generated from field: string token_id = 1;
|
|
362
362
|
*/
|
|
363
363
|
tokenId: string;
|
|
364
364
|
};
|
|
365
365
|
/**
|
|
366
|
-
* Describes the message admiral.api.user.v1.
|
|
367
|
-
* Use `create(
|
|
366
|
+
* Describes the message admiral.api.user.v1.RevokeApiKeyRequest.
|
|
367
|
+
* Use `create(RevokeApiKeyRequestSchema)` to create a new message.
|
|
368
368
|
*/
|
|
369
|
-
export declare const
|
|
369
|
+
export declare const RevokeApiKeyRequestSchema: GenMessage<RevokeApiKeyRequest>;
|
|
370
370
|
/**
|
|
371
|
-
*
|
|
371
|
+
* RevokeApiKeyResponse contains the revoked API key metadata.
|
|
372
372
|
*
|
|
373
|
-
* @generated from message admiral.api.user.v1.
|
|
373
|
+
* @generated from message admiral.api.user.v1.RevokeApiKeyResponse
|
|
374
374
|
*/
|
|
375
|
-
export type
|
|
375
|
+
export type RevokeApiKeyResponse = Message<"admiral.api.user.v1.RevokeApiKeyResponse"> & {
|
|
376
376
|
/**
|
|
377
|
-
* The
|
|
377
|
+
* The key metadata with updated status.
|
|
378
378
|
*
|
|
379
|
-
* @generated from field: admiral.common.v1.
|
|
379
|
+
* @generated from field: admiral.common.v1.ApiKey api_key = 1;
|
|
380
380
|
*/
|
|
381
|
-
|
|
381
|
+
apiKey?: ApiKey | undefined;
|
|
382
382
|
};
|
|
383
383
|
/**
|
|
384
|
-
* Describes the message admiral.api.user.v1.
|
|
385
|
-
* Use `create(
|
|
384
|
+
* Describes the message admiral.api.user.v1.RevokeApiKeyResponse.
|
|
385
|
+
* Use `create(RevokeApiKeyResponseSchema)` to create a new message.
|
|
386
386
|
*/
|
|
387
|
-
export declare const
|
|
387
|
+
export declare const RevokeApiKeyResponseSchema: GenMessage<RevokeApiKeyResponse>;
|
|
388
388
|
/**
|
|
389
|
-
* UserAPI provides operations for user profile retrieval and
|
|
390
|
-
*
|
|
389
|
+
* UserAPI provides operations for user profile retrieval and management of the
|
|
390
|
+
* caller's own API keys.
|
|
391
391
|
*
|
|
392
|
-
*
|
|
393
|
-
* pipelines, and other programmatic contexts.
|
|
394
|
-
* scopes and an
|
|
392
|
+
* An API key here is bound to the calling user (BINDING_TYPE_USER) and lets them
|
|
393
|
+
* authenticate from scripts, CI pipelines, and other programmatic contexts. Its
|
|
394
|
+
* scopes are selected at creation and it may carry an expiration. Personal
|
|
395
|
+
* access token is the same thing said in user-facing words, and the REST routes
|
|
396
|
+
* and generated documentation keep that name; the contract has one noun.
|
|
395
397
|
*
|
|
396
398
|
* @generated from service admiral.api.user.v1.UserAPI
|
|
397
399
|
*/
|
|
@@ -400,7 +402,7 @@ export declare const UserAPI: GenService<{
|
|
|
400
402
|
* GetMe retrieves the profile of the currently authenticated user.
|
|
401
403
|
* The user is identified by the authentication token provided in the request.
|
|
402
404
|
*
|
|
403
|
-
* Scope: any authenticated
|
|
405
|
+
* Scope: any authenticated key (no specific scope required).
|
|
404
406
|
*
|
|
405
407
|
* @generated from rpc admiral.api.user.v1.UserAPI.GetMe
|
|
406
408
|
*/
|
|
@@ -422,71 +424,71 @@ export declare const UserAPI: GenService<{
|
|
|
422
424
|
output: typeof GetUserResponseSchema;
|
|
423
425
|
};
|
|
424
426
|
/**
|
|
425
|
-
*
|
|
426
|
-
* The response includes the raw
|
|
427
|
+
* CreateApiKey creates a new API key for the authenticated user.
|
|
428
|
+
* The response includes the raw secret, which is shown exactly once
|
|
427
429
|
* and cannot be retrieved again.
|
|
428
430
|
*
|
|
429
431
|
* Scope: `token:write`
|
|
430
432
|
*
|
|
431
|
-
* @generated from rpc admiral.api.user.v1.UserAPI.
|
|
433
|
+
* @generated from rpc admiral.api.user.v1.UserAPI.CreateApiKey
|
|
432
434
|
*/
|
|
433
|
-
|
|
435
|
+
createApiKey: {
|
|
434
436
|
methodKind: "unary";
|
|
435
|
-
input: typeof
|
|
436
|
-
output: typeof
|
|
437
|
+
input: typeof CreateApiKeyRequestSchema;
|
|
438
|
+
output: typeof CreateApiKeyResponseSchema;
|
|
437
439
|
};
|
|
438
440
|
/**
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
+
* ListApiKeys returns a paginated list of the authenticated user's own API
|
|
442
|
+
* keys. Secrets are never included.
|
|
441
443
|
*
|
|
442
444
|
* Scope: `token:read`
|
|
443
445
|
*
|
|
444
|
-
* @generated from rpc admiral.api.user.v1.UserAPI.
|
|
446
|
+
* @generated from rpc admiral.api.user.v1.UserAPI.ListApiKeys
|
|
445
447
|
*/
|
|
446
|
-
|
|
448
|
+
listApiKeys: {
|
|
447
449
|
methodKind: "unary";
|
|
448
|
-
input: typeof
|
|
449
|
-
output: typeof
|
|
450
|
+
input: typeof ListApiKeysRequestSchema;
|
|
451
|
+
output: typeof ListApiKeysResponseSchema;
|
|
450
452
|
};
|
|
451
453
|
/**
|
|
452
|
-
*
|
|
453
|
-
* Returns metadata only. The
|
|
454
|
+
* GetApiKey retrieves a single API key by ID.
|
|
455
|
+
* Returns metadata only. The key secret is never included.
|
|
454
456
|
*
|
|
455
457
|
* Scope: `token:read`
|
|
456
458
|
*
|
|
457
|
-
* @generated from rpc admiral.api.user.v1.UserAPI.
|
|
459
|
+
* @generated from rpc admiral.api.user.v1.UserAPI.GetApiKey
|
|
458
460
|
*/
|
|
459
|
-
|
|
461
|
+
getApiKey: {
|
|
460
462
|
methodKind: "unary";
|
|
461
|
-
input: typeof
|
|
462
|
-
output: typeof
|
|
463
|
+
input: typeof GetApiKeyRequestSchema;
|
|
464
|
+
output: typeof GetApiKeyResponseSchema;
|
|
463
465
|
};
|
|
464
466
|
/**
|
|
465
|
-
*
|
|
466
|
-
* Only active
|
|
467
|
+
* UpdateApiKey updates an API key's mutable fields (name, scopes).
|
|
468
|
+
* Only active keys can be updated. The secret and expiration are
|
|
467
469
|
* immutable after creation.
|
|
468
470
|
*
|
|
469
471
|
* Scope: `token:write`
|
|
470
472
|
*
|
|
471
|
-
* @generated from rpc admiral.api.user.v1.UserAPI.
|
|
473
|
+
* @generated from rpc admiral.api.user.v1.UserAPI.UpdateApiKey
|
|
472
474
|
*/
|
|
473
|
-
|
|
475
|
+
updateApiKey: {
|
|
474
476
|
methodKind: "unary";
|
|
475
|
-
input: typeof
|
|
476
|
-
output: typeof
|
|
477
|
+
input: typeof UpdateApiKeyRequestSchema;
|
|
478
|
+
output: typeof UpdateApiKeyResponseSchema;
|
|
477
479
|
};
|
|
478
480
|
/**
|
|
479
|
-
*
|
|
481
|
+
* RevokeApiKey permanently revokes an API key. The key becomes
|
|
480
482
|
* immediately unusable and cannot be restored.
|
|
481
483
|
*
|
|
482
484
|
* Scope: `token:write`
|
|
483
485
|
*
|
|
484
|
-
* @generated from rpc admiral.api.user.v1.UserAPI.
|
|
486
|
+
* @generated from rpc admiral.api.user.v1.UserAPI.RevokeApiKey
|
|
485
487
|
*/
|
|
486
|
-
|
|
488
|
+
revokeApiKey: {
|
|
487
489
|
methodKind: "unary";
|
|
488
|
-
input: typeof
|
|
489
|
-
output: typeof
|
|
490
|
+
input: typeof RevokeApiKeyRequestSchema;
|
|
491
|
+
output: typeof RevokeApiKeyResponseSchema;
|
|
490
492
|
};
|
|
491
493
|
}>;
|
|
492
494
|
//# sourceMappingURL=user_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_pb.d.ts","sourceRoot":"","sources":["../../../../../../proto/admiral/api/user/v1/user_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MA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