@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,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file admiral/api/user/v1/user.proto (package admiral.api.user.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_admiral_common_v1_annotations } from "../../../common/v1/annotations_pb.js";
|
|
6
|
-
import {
|
|
6
|
+
import { file_admiral_common_v1_apikey } from "../../../common/v1/apikey_pb.js";
|
|
7
7
|
import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
|
|
8
8
|
import { file_gnostic_openapi_v3_annotations } from "../../../../gnostic/openapi/v3/annotations_pb.js";
|
|
9
9
|
import { file_google_api_annotations } from "../../../../google/api/annotations_pb.js";
|
|
@@ -12,7 +12,7 @@ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
|
12
12
|
/**
|
|
13
13
|
* Describes the file admiral/api/user/v1/user.proto.
|
|
14
14
|
*/
|
|
15
|
-
export const file_admiral_api_user_v1_user = /*@__PURE__*/ fileDesc("Ch5hZG1pcmFsL2FwaS91c2VyL3YxL3VzZXIucHJvdG8SE2FkbWlyYWwuYXBpLnVzZXIudjEiyQIKBFVzZXISFAoCaWQYASABKAlCCLpIBXIDsAEBEg0KBWVtYWlsGAIgASgJEhYKDmVtYWlsX3ZlcmlmaWVkGAMgASgIEhkKDGRpc3BsYXlfbmFtZRgEIAEoCUgAiAEBEhcKCmdpdmVuX25hbWU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zZXIudjFCCVVzZXJQcm90b1ABWjJnby5hZG1pcmFsLmlvL3Nkay9wcm90by9hZG1pcmFsL2FwaS91c2VyL3YxO3VzZXJ2MaICA0FBVaoCE0FkbWlyYWwuQXBpLlVzZXIuVjHKAhNBZG1pcmFsXEFwaVxVc2VyXFYx4gIfQWRtaXJhbFxBcGlcVXNlclxWMVxHUEJNZXRhZGF0YeoCFkFkbWlyYWw6OkFwaTo6VXNlcjo6VjFiBnByb3RvMw", [file_admiral_common_v1_annotations, file_admiral_common_v1_apikey, file_buf_validate_validate, file_gnostic_openapi_v3_annotations, file_google_api_annotations, file_google_api_field_behavior, file_google_protobuf_timestamp]);
|
|
16
16
|
/**
|
|
17
17
|
* Describes the message admiral.api.user.v1.User.
|
|
18
18
|
* Use `create(UserSchema)` to create a new message.
|
|
@@ -39,62 +39,64 @@ export const GetUserRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_u
|
|
|
39
39
|
*/
|
|
40
40
|
export const GetUserResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 4);
|
|
41
41
|
/**
|
|
42
|
-
* Describes the message admiral.api.user.v1.
|
|
43
|
-
* Use `create(
|
|
42
|
+
* Describes the message admiral.api.user.v1.CreateApiKeyRequest.
|
|
43
|
+
* Use `create(CreateApiKeyRequestSchema)` to create a new message.
|
|
44
44
|
*/
|
|
45
|
-
export const
|
|
45
|
+
export const CreateApiKeyRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 5);
|
|
46
46
|
/**
|
|
47
|
-
* Describes the message admiral.api.user.v1.
|
|
48
|
-
* Use `create(
|
|
47
|
+
* Describes the message admiral.api.user.v1.CreateApiKeyResponse.
|
|
48
|
+
* Use `create(CreateApiKeyResponseSchema)` to create a new message.
|
|
49
49
|
*/
|
|
50
|
-
export const
|
|
50
|
+
export const CreateApiKeyResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 6);
|
|
51
51
|
/**
|
|
52
|
-
* Describes the message admiral.api.user.v1.
|
|
53
|
-
* Use `create(
|
|
52
|
+
* Describes the message admiral.api.user.v1.ListApiKeysRequest.
|
|
53
|
+
* Use `create(ListApiKeysRequestSchema)` to create a new message.
|
|
54
54
|
*/
|
|
55
|
-
export const
|
|
55
|
+
export const ListApiKeysRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 7);
|
|
56
56
|
/**
|
|
57
|
-
* Describes the message admiral.api.user.v1.
|
|
58
|
-
* Use `create(
|
|
57
|
+
* Describes the message admiral.api.user.v1.ListApiKeysResponse.
|
|
58
|
+
* Use `create(ListApiKeysResponseSchema)` to create a new message.
|
|
59
59
|
*/
|
|
60
|
-
export const
|
|
60
|
+
export const ListApiKeysResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 8);
|
|
61
61
|
/**
|
|
62
|
-
* Describes the message admiral.api.user.v1.
|
|
63
|
-
* Use `create(
|
|
62
|
+
* Describes the message admiral.api.user.v1.GetApiKeyRequest.
|
|
63
|
+
* Use `create(GetApiKeyRequestSchema)` to create a new message.
|
|
64
64
|
*/
|
|
65
|
-
export const
|
|
65
|
+
export const GetApiKeyRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 9);
|
|
66
66
|
/**
|
|
67
|
-
* Describes the message admiral.api.user.v1.
|
|
68
|
-
* Use `create(
|
|
67
|
+
* Describes the message admiral.api.user.v1.GetApiKeyResponse.
|
|
68
|
+
* Use `create(GetApiKeyResponseSchema)` to create a new message.
|
|
69
69
|
*/
|
|
70
|
-
export const
|
|
70
|
+
export const GetApiKeyResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 10);
|
|
71
71
|
/**
|
|
72
|
-
* Describes the message admiral.api.user.v1.
|
|
73
|
-
* Use `create(
|
|
72
|
+
* Describes the message admiral.api.user.v1.UpdateApiKeyRequest.
|
|
73
|
+
* Use `create(UpdateApiKeyRequestSchema)` to create a new message.
|
|
74
74
|
*/
|
|
75
|
-
export const
|
|
75
|
+
export const UpdateApiKeyRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 11);
|
|
76
76
|
/**
|
|
77
|
-
* Describes the message admiral.api.user.v1.
|
|
78
|
-
* Use `create(
|
|
77
|
+
* Describes the message admiral.api.user.v1.UpdateApiKeyResponse.
|
|
78
|
+
* Use `create(UpdateApiKeyResponseSchema)` to create a new message.
|
|
79
79
|
*/
|
|
80
|
-
export const
|
|
80
|
+
export const UpdateApiKeyResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 12);
|
|
81
81
|
/**
|
|
82
|
-
* Describes the message admiral.api.user.v1.
|
|
83
|
-
* Use `create(
|
|
82
|
+
* Describes the message admiral.api.user.v1.RevokeApiKeyRequest.
|
|
83
|
+
* Use `create(RevokeApiKeyRequestSchema)` to create a new message.
|
|
84
84
|
*/
|
|
85
|
-
export const
|
|
85
|
+
export const RevokeApiKeyRequestSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 13);
|
|
86
86
|
/**
|
|
87
|
-
* Describes the message admiral.api.user.v1.
|
|
88
|
-
* Use `create(
|
|
87
|
+
* Describes the message admiral.api.user.v1.RevokeApiKeyResponse.
|
|
88
|
+
* Use `create(RevokeApiKeyResponseSchema)` to create a new message.
|
|
89
89
|
*/
|
|
90
|
-
export const
|
|
90
|
+
export const RevokeApiKeyResponseSchema = /*@__PURE__*/ messageDesc(file_admiral_api_user_v1_user, 14);
|
|
91
91
|
/**
|
|
92
|
-
* UserAPI provides operations for user profile retrieval and
|
|
93
|
-
*
|
|
92
|
+
* UserAPI provides operations for user profile retrieval and management of the
|
|
93
|
+
* caller's own API keys.
|
|
94
94
|
*
|
|
95
|
-
*
|
|
96
|
-
* pipelines, and other programmatic contexts.
|
|
97
|
-
* scopes and an
|
|
95
|
+
* An API key here is bound to the calling user (BINDING_TYPE_USER) and lets them
|
|
96
|
+
* authenticate from scripts, CI pipelines, and other programmatic contexts. Its
|
|
97
|
+
* scopes are selected at creation and it may carry an expiration. Personal
|
|
98
|
+
* access token is the same thing said in user-facing words, and the REST routes
|
|
99
|
+
* and generated documentation keep that name; the contract has one noun.
|
|
98
100
|
*
|
|
99
101
|
* @generated from service admiral.api.user.v1.UserAPI
|
|
100
102
|
*/
|
|
@@ -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,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,mCAAmC,EAAE,MAAM,kDAAkD,CAAC;AACvG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,ggIAAggI,EAAE,CAAC,kCAAkC,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,mCAAmC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kC,aAAa,CACjF,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAmCjD;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAgBjD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAgBjD;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAgBjD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GA6Ff,aAAa,CAChB,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file admiral/api/variable/v1/variable.proto (package admiral.api.variable.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file admiral/common/v1/actor.proto (package admiral.common.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file admiral/common/v1/annotations.proto (package admiral.common.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -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,CA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AER;;;;;;OAMG;IACH,eAAe,IAAI;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,WAAW,CACP,CAAC;AAE7C;;;;GAIG;AACH,oBAAY,YAAY;IACtB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;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.1 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admiral-io/sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"node": ">=22"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@bufbuild/protobuf": "^2.
|
|
52
|
+
"@bufbuild/protobuf": "^2.14.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@connectrpc/connect": "^2.1.
|
|
55
|
+
"@connectrpc/connect": "^2.1.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@connectrpc/connect": "^2.1.
|
|
58
|
+
"@connectrpc/connect": "^2.1.2",
|
|
59
59
|
"@semantic-release/changelog": "^6.0.3",
|
|
60
60
|
"@semantic-release/git": "^10.0.1",
|
|
61
|
-
"@types/node": "^22.
|
|
62
|
-
"conventional-changelog-conventionalcommits": "^9.1
|
|
63
|
-
"semantic-release": "^25.0.
|
|
61
|
+
"@types/node": "^22.20.1",
|
|
62
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
63
|
+
"semantic-release": "^25.0.9",
|
|
64
64
|
"typescript": "^5.9.3",
|
|
65
|
-
"vitest": "^
|
|
65
|
+
"vitest": "^5.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|