@loams/client 0.0.0-stage → 0.1.0
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/LICENSE +202 -0
- package/README.md +137 -2
- package/dist/gen/facade.d.ts +446 -0
- package/dist/gen/facade.js +441 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +32 -0
- package/dist/loams.d.ts +110 -0
- package/dist/loams.js +203 -0
- package/dist/node.d.ts +12 -0
- package/dist/node.js +43 -0
- package/dist/runtime/call.d.ts +132 -0
- package/dist/runtime/call.js +273 -0
- package/dist/runtime/consistency.d.ts +22 -0
- package/dist/runtime/consistency.js +68 -0
- package/dist/runtime/errors.d.ts +100 -0
- package/dist/runtime/errors.js +165 -0
- package/dist/runtime/pagination.d.ts +25 -0
- package/dist/runtime/pagination.js +47 -0
- package/dist/runtime/retry.d.ts +30 -0
- package/dist/runtime/retry.js +75 -0
- package/dist/runtime/streams.d.ts +30 -0
- package/dist/runtime/streams.js +61 -0
- package/dist/runtime/token-source.d.ts +57 -0
- package/dist/runtime/token-source.js +117 -0
- package/dist/runtime/transports.d.ts +58 -0
- package/dist/runtime/transports.js +66 -0
- package/dist/runtime/uuidv7.d.ts +10 -0
- package/dist/runtime/uuidv7.js +57 -0
- package/dist/system.d.ts +87 -0
- package/dist/system.js +152 -0
- package/dist/vendor/proto/admin.d.ts +6 -0
- package/dist/vendor/proto/admin.js +12 -0
- package/dist/vendor/proto/gen/loams/admin/v1/agent_pb.d.ts +902 -0
- package/dist/vendor/proto/gen/loams/admin/v1/agent_pb.js +215 -0
- package/dist/vendor/proto/gen/loams/admin/v1/audit_pb.d.ts +289 -0
- package/dist/vendor/proto/gen/loams/admin/v1/audit_pb.js +76 -0
- package/dist/vendor/proto/gen/loams/admin/v1/common_pb.d.ts +203 -0
- package/dist/vendor/proto/gen/loams/admin/v1/common_pb.js +118 -0
- package/dist/vendor/proto/gen/loams/admin/v1/key_pb.d.ts +284 -0
- package/dist/vendor/proto/gen/loams/admin/v1/key_pb.js +62 -0
- package/dist/vendor/proto/gen/loams/admin/v1/org_pb.d.ts +634 -0
- package/dist/vendor/proto/gen/loams/admin/v1/org_pb.js +142 -0
- package/dist/vendor/proto/gen/loams/admin/v1/project_pb.d.ts +662 -0
- package/dist/vendor/proto/gen/loams/admin/v1/project_pb.js +132 -0
- package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.d.ts +435 -0
- package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.js +156 -0
- package/dist/vendor/proto/gen/loams/errors/v1/errors_pb.d.ts +45 -0
- package/dist/vendor/proto/gen/loams/errors/v1/errors_pb.js +17 -0
- package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.d.ts +501 -0
- package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.js +170 -0
- package/dist/vendor/proto/gen/loams/options/v1/options_pb.d.ts +97 -0
- package/dist/vendor/proto/gen/loams/options/v1/options_pb.js +47 -0
- package/package.json +49 -4
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file loams/admin/v1/common.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_loams_admin_v1_common: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* A person in the org.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message loams.admin.v1.User
|
|
12
|
+
*/
|
|
13
|
+
export type User = Message<"loams.admin.v1.User"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string id = 1;
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string name = 2;
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: string email = 3;
|
|
24
|
+
*/
|
|
25
|
+
email: string;
|
|
26
|
+
/**
|
|
27
|
+
* Empty when the person has no avatar.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string avatar_url = 4;
|
|
30
|
+
*/
|
|
31
|
+
avatarUrl: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the person has a second factor enrolled.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: bool two_factor = 5;
|
|
36
|
+
*/
|
|
37
|
+
twoFactor: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The OIDC provider id the person signs in with; empty for a password.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string sso = 6;
|
|
42
|
+
*/
|
|
43
|
+
sso: string;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
46
|
+
*/
|
|
47
|
+
createdAt?: Timestamp | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Unset when the person has never signed in.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: google.protobuf.Timestamp last_seen_at = 8;
|
|
52
|
+
*/
|
|
53
|
+
lastSeenAt?: Timestamp | undefined;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message loams.admin.v1.User.
|
|
57
|
+
* Use `create(UserSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export declare const UserSchema: GenMessage<User>;
|
|
60
|
+
/**
|
|
61
|
+
* A principal, by kind and id, with its display name.
|
|
62
|
+
*
|
|
63
|
+
* In a request (an agent's owner, a grant's subject) only `kind` and `id` are
|
|
64
|
+
* read; `name` is filled in on the way out.
|
|
65
|
+
*
|
|
66
|
+
* @generated from message loams.admin.v1.SubjectRef
|
|
67
|
+
*/
|
|
68
|
+
export type SubjectRef = Message<"loams.admin.v1.SubjectRef"> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: loams.admin.v1.SubjectKind kind = 1;
|
|
71
|
+
*/
|
|
72
|
+
kind: SubjectKind;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string id = 2;
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: string name = 3;
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message loams.admin.v1.SubjectRef.
|
|
84
|
+
* Use `create(SubjectRefSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const SubjectRefSchema: GenMessage<SubjectRef>;
|
|
87
|
+
/**
|
|
88
|
+
* Anything an audit event can be about: a principal, or a resource such as a
|
|
89
|
+
* collection or a key. `kind` is open ("collection", "api_key", "agent"), so
|
|
90
|
+
* a new resource type needs no enum value.
|
|
91
|
+
*
|
|
92
|
+
* @generated from message loams.admin.v1.ResourceRef
|
|
93
|
+
*/
|
|
94
|
+
export type ResourceRef = Message<"loams.admin.v1.ResourceRef"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string kind = 1;
|
|
97
|
+
*/
|
|
98
|
+
kind: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string id = 2;
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string name = 3;
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message loams.admin.v1.ResourceRef.
|
|
110
|
+
* Use `create(ResourceRefSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const ResourceRefSchema: GenMessage<ResourceRef>;
|
|
113
|
+
/**
|
|
114
|
+
* A role in the org.
|
|
115
|
+
*
|
|
116
|
+
* @generated from enum loams.admin.v1.OrgRole
|
|
117
|
+
*/
|
|
118
|
+
export declare enum OrgRole {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
121
|
+
*/
|
|
122
|
+
UNSPECIFIED = 0,
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
125
|
+
*/
|
|
126
|
+
OWNER = 1,
|
|
127
|
+
/**
|
|
128
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
129
|
+
*/
|
|
130
|
+
ADMIN = 2,
|
|
131
|
+
/**
|
|
132
|
+
* @generated from enum value: ORG_ROLE_MEMBER = 3;
|
|
133
|
+
*/
|
|
134
|
+
MEMBER = 3
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Describes the enum loams.admin.v1.OrgRole.
|
|
138
|
+
*/
|
|
139
|
+
export declare const OrgRoleSchema: GenEnum<OrgRole>;
|
|
140
|
+
/**
|
|
141
|
+
* A role on a project.
|
|
142
|
+
*
|
|
143
|
+
* @generated from enum loams.admin.v1.ProjectRole
|
|
144
|
+
*/
|
|
145
|
+
export declare enum ProjectRole {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from enum value: PROJECT_ROLE_UNSPECIFIED = 0;
|
|
148
|
+
*/
|
|
149
|
+
UNSPECIFIED = 0,
|
|
150
|
+
/**
|
|
151
|
+
* @generated from enum value: PROJECT_ROLE_ADMIN = 1;
|
|
152
|
+
*/
|
|
153
|
+
ADMIN = 1,
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum value: PROJECT_ROLE_DEVELOPER = 2;
|
|
156
|
+
*/
|
|
157
|
+
DEVELOPER = 2,
|
|
158
|
+
/**
|
|
159
|
+
* @generated from enum value: PROJECT_ROLE_VIEWER = 3;
|
|
160
|
+
*/
|
|
161
|
+
VIEWER = 3
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Describes the enum loams.admin.v1.ProjectRole.
|
|
165
|
+
*/
|
|
166
|
+
export declare const ProjectRoleSchema: GenEnum<ProjectRole>;
|
|
167
|
+
/**
|
|
168
|
+
* What kind of principal a `SubjectRef` names.
|
|
169
|
+
*
|
|
170
|
+
* @generated from enum loams.admin.v1.SubjectKind
|
|
171
|
+
*/
|
|
172
|
+
export declare enum SubjectKind {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from enum value: SUBJECT_KIND_UNSPECIFIED = 0;
|
|
175
|
+
*/
|
|
176
|
+
UNSPECIFIED = 0,
|
|
177
|
+
/**
|
|
178
|
+
* @generated from enum value: SUBJECT_KIND_USER = 1;
|
|
179
|
+
*/
|
|
180
|
+
USER = 1,
|
|
181
|
+
/**
|
|
182
|
+
* @generated from enum value: SUBJECT_KIND_TEAM = 2;
|
|
183
|
+
*/
|
|
184
|
+
TEAM = 2,
|
|
185
|
+
/**
|
|
186
|
+
* @generated from enum value: SUBJECT_KIND_AGENT = 3;
|
|
187
|
+
*/
|
|
188
|
+
AGENT = 3,
|
|
189
|
+
/**
|
|
190
|
+
* @generated from enum value: SUBJECT_KIND_SERVICE_ACCOUNT = 4;
|
|
191
|
+
*/
|
|
192
|
+
SERVICE_ACCOUNT = 4,
|
|
193
|
+
/**
|
|
194
|
+
* The instance itself (a scheduled job, a retention sweep).
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum value: SUBJECT_KIND_SYSTEM = 5;
|
|
197
|
+
*/
|
|
198
|
+
SYSTEM = 5
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Describes the enum loams.admin.v1.SubjectKind.
|
|
202
|
+
*/
|
|
203
|
+
export declare const SubjectKindSchema: GenEnum<SubjectKind>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file loams/admin/v1/common.proto (package loams.admin.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file loams/admin/v1/common.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_loams_admin_v1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[file_google_protobuf_timestamp]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message loams.admin.v1.User.
|
|
12
|
+
* Use `create(UserSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const UserSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_common, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message loams.admin.v1.SubjectRef.
|
|
17
|
+
* Use `create(SubjectRefSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const SubjectRefSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_common, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message loams.admin.v1.ResourceRef.
|
|
22
|
+
* Use `create(ResourceRefSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ResourceRefSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_common, 2);
|
|
25
|
+
/**
|
|
26
|
+
* A role in the org.
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum loams.admin.v1.OrgRole
|
|
29
|
+
*/
|
|
30
|
+
export var OrgRole;
|
|
31
|
+
(function (OrgRole) {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
OrgRole[OrgRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
38
|
+
*/
|
|
39
|
+
OrgRole[OrgRole["OWNER"] = 1] = "OWNER";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
42
|
+
*/
|
|
43
|
+
OrgRole[OrgRole["ADMIN"] = 2] = "ADMIN";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: ORG_ROLE_MEMBER = 3;
|
|
46
|
+
*/
|
|
47
|
+
OrgRole[OrgRole["MEMBER"] = 3] = "MEMBER";
|
|
48
|
+
})(OrgRole || (OrgRole = {}));
|
|
49
|
+
/**
|
|
50
|
+
* Describes the enum loams.admin.v1.OrgRole.
|
|
51
|
+
*/
|
|
52
|
+
export const OrgRoleSchema = /*@__PURE__*/ enumDesc(file_loams_admin_v1_common, 0);
|
|
53
|
+
/**
|
|
54
|
+
* A role on a project.
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum loams.admin.v1.ProjectRole
|
|
57
|
+
*/
|
|
58
|
+
export var ProjectRole;
|
|
59
|
+
(function (ProjectRole) {
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: PROJECT_ROLE_UNSPECIFIED = 0;
|
|
62
|
+
*/
|
|
63
|
+
ProjectRole[ProjectRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
64
|
+
/**
|
|
65
|
+
* @generated from enum value: PROJECT_ROLE_ADMIN = 1;
|
|
66
|
+
*/
|
|
67
|
+
ProjectRole[ProjectRole["ADMIN"] = 1] = "ADMIN";
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: PROJECT_ROLE_DEVELOPER = 2;
|
|
70
|
+
*/
|
|
71
|
+
ProjectRole[ProjectRole["DEVELOPER"] = 2] = "DEVELOPER";
|
|
72
|
+
/**
|
|
73
|
+
* @generated from enum value: PROJECT_ROLE_VIEWER = 3;
|
|
74
|
+
*/
|
|
75
|
+
ProjectRole[ProjectRole["VIEWER"] = 3] = "VIEWER";
|
|
76
|
+
})(ProjectRole || (ProjectRole = {}));
|
|
77
|
+
/**
|
|
78
|
+
* Describes the enum loams.admin.v1.ProjectRole.
|
|
79
|
+
*/
|
|
80
|
+
export const ProjectRoleSchema = /*@__PURE__*/ enumDesc(file_loams_admin_v1_common, 1);
|
|
81
|
+
/**
|
|
82
|
+
* What kind of principal a `SubjectRef` names.
|
|
83
|
+
*
|
|
84
|
+
* @generated from enum loams.admin.v1.SubjectKind
|
|
85
|
+
*/
|
|
86
|
+
export var SubjectKind;
|
|
87
|
+
(function (SubjectKind) {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: SUBJECT_KIND_UNSPECIFIED = 0;
|
|
90
|
+
*/
|
|
91
|
+
SubjectKind[SubjectKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: SUBJECT_KIND_USER = 1;
|
|
94
|
+
*/
|
|
95
|
+
SubjectKind[SubjectKind["USER"] = 1] = "USER";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: SUBJECT_KIND_TEAM = 2;
|
|
98
|
+
*/
|
|
99
|
+
SubjectKind[SubjectKind["TEAM"] = 2] = "TEAM";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: SUBJECT_KIND_AGENT = 3;
|
|
102
|
+
*/
|
|
103
|
+
SubjectKind[SubjectKind["AGENT"] = 3] = "AGENT";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum value: SUBJECT_KIND_SERVICE_ACCOUNT = 4;
|
|
106
|
+
*/
|
|
107
|
+
SubjectKind[SubjectKind["SERVICE_ACCOUNT"] = 4] = "SERVICE_ACCOUNT";
|
|
108
|
+
/**
|
|
109
|
+
* The instance itself (a scheduled job, a retention sweep).
|
|
110
|
+
*
|
|
111
|
+
* @generated from enum value: SUBJECT_KIND_SYSTEM = 5;
|
|
112
|
+
*/
|
|
113
|
+
SubjectKind[SubjectKind["SYSTEM"] = 5] = "SYSTEM";
|
|
114
|
+
})(SubjectKind || (SubjectKind = {}));
|
|
115
|
+
/**
|
|
116
|
+
* Describes the enum loams.admin.v1.SubjectKind.
|
|
117
|
+
*/
|
|
118
|
+
export const SubjectKindSchema = /*@__PURE__*/ enumDesc(file_loams_admin_v1_common, 2);
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { SubjectRef } from "./common_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file loams/admin/v1/key.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_loams_admin_v1_key: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* An API key, without its secret.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message loams.admin.v1.ApiKey
|
|
13
|
+
*/
|
|
14
|
+
export type ApiKey = Message<"loams.admin.v1.ApiKey"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string id = 1;
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: string name = 2;
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The secret's first characters, to tell keys apart.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string prefix = 3;
|
|
27
|
+
*/
|
|
28
|
+
prefix: string;
|
|
29
|
+
/**
|
|
30
|
+
* The environment's slug.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: string environment = 4;
|
|
33
|
+
*/
|
|
34
|
+
environment: string;
|
|
35
|
+
/**
|
|
36
|
+
* The user or service account the key acts as.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: loams.admin.v1.SubjectRef principal = 5;
|
|
39
|
+
*/
|
|
40
|
+
principal?: SubjectRef | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: repeated string scopes = 6;
|
|
43
|
+
*/
|
|
44
|
+
scopes: string[];
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
47
|
+
*/
|
|
48
|
+
createdAt?: Timestamp | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Unset for a key that does not expire.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 8;
|
|
53
|
+
*/
|
|
54
|
+
expiresAt?: Timestamp | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Unset when the key has never been used.
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: google.protobuf.Timestamp last_used_at = 9;
|
|
59
|
+
*/
|
|
60
|
+
lastUsedAt?: Timestamp | undefined;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message loams.admin.v1.ApiKey.
|
|
64
|
+
* Use `create(ApiKeySchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export declare const ApiKeySchema: GenMessage<ApiKey>;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message loams.admin.v1.ListKeysRequest
|
|
69
|
+
*/
|
|
70
|
+
export type ListKeysRequest = Message<"loams.admin.v1.ListKeysRequest"> & {
|
|
71
|
+
/**
|
|
72
|
+
* The project's slug.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: string project = 1;
|
|
75
|
+
*/
|
|
76
|
+
project: string;
|
|
77
|
+
/**
|
|
78
|
+
* The environment's slug.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: string environment = 2;
|
|
81
|
+
*/
|
|
82
|
+
environment: string;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: int32 page_size = 3;
|
|
85
|
+
*/
|
|
86
|
+
pageSize: number;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string page_token = 4;
|
|
89
|
+
*/
|
|
90
|
+
pageToken: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message loams.admin.v1.ListKeysRequest.
|
|
94
|
+
* Use `create(ListKeysRequestSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export declare const ListKeysRequestSchema: GenMessage<ListKeysRequest>;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from message loams.admin.v1.ListKeysResponse
|
|
99
|
+
*/
|
|
100
|
+
export type ListKeysResponse = Message<"loams.admin.v1.ListKeysResponse"> & {
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: repeated loams.admin.v1.ApiKey keys = 1;
|
|
103
|
+
*/
|
|
104
|
+
keys: ApiKey[];
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string next_page_token = 2;
|
|
107
|
+
*/
|
|
108
|
+
nextPageToken: string;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Describes the message loams.admin.v1.ListKeysResponse.
|
|
112
|
+
* Use `create(ListKeysResponseSchema)` to create a new message.
|
|
113
|
+
*/
|
|
114
|
+
export declare const ListKeysResponseSchema: GenMessage<ListKeysResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from message loams.admin.v1.CreateKeyRequest
|
|
117
|
+
*/
|
|
118
|
+
export type CreateKeyRequest = Message<"loams.admin.v1.CreateKeyRequest"> & {
|
|
119
|
+
/**
|
|
120
|
+
* The project's slug.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: string project = 1;
|
|
123
|
+
*/
|
|
124
|
+
project: string;
|
|
125
|
+
/**
|
|
126
|
+
* The environment's slug.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: string environment = 2;
|
|
129
|
+
*/
|
|
130
|
+
environment: string;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: string name = 3;
|
|
133
|
+
*/
|
|
134
|
+
name: string;
|
|
135
|
+
/**
|
|
136
|
+
* The service account's id the key acts as; empty for the caller.
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: string service_account = 4;
|
|
139
|
+
*/
|
|
140
|
+
serviceAccount: string;
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: repeated string scopes = 5;
|
|
143
|
+
*/
|
|
144
|
+
scopes: string[];
|
|
145
|
+
/**
|
|
146
|
+
* 0 for a key that does not expire.
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: int32 expires_in_days = 6;
|
|
149
|
+
*/
|
|
150
|
+
expiresInDays: number;
|
|
151
|
+
/**
|
|
152
|
+
* Required. A retry with the same key does not answer the secret again:
|
|
153
|
+
* it fails with `secret_already_issued`.
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: string idempotency_key = 15;
|
|
156
|
+
*/
|
|
157
|
+
idempotencyKey: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Describes the message loams.admin.v1.CreateKeyRequest.
|
|
161
|
+
* Use `create(CreateKeyRequestSchema)` to create a new message.
|
|
162
|
+
*/
|
|
163
|
+
export declare const CreateKeyRequestSchema: GenMessage<CreateKeyRequest>;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from message loams.admin.v1.CreateKeyResponse
|
|
166
|
+
*/
|
|
167
|
+
export type CreateKeyResponse = Message<"loams.admin.v1.CreateKeyResponse"> & {
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: loams.admin.v1.ApiKey key = 1;
|
|
170
|
+
*/
|
|
171
|
+
key?: ApiKey | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The key itself. Shown once: store it now.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: string secret = 2;
|
|
176
|
+
*/
|
|
177
|
+
secret: string;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Describes the message loams.admin.v1.CreateKeyResponse.
|
|
181
|
+
* Use `create(CreateKeyResponseSchema)` to create a new message.
|
|
182
|
+
*/
|
|
183
|
+
export declare const CreateKeyResponseSchema: GenMessage<CreateKeyResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from message loams.admin.v1.RevokeKeyRequest
|
|
186
|
+
*/
|
|
187
|
+
export type RevokeKeyRequest = Message<"loams.admin.v1.RevokeKeyRequest"> & {
|
|
188
|
+
/**
|
|
189
|
+
* The key's id.
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: string key = 1;
|
|
192
|
+
*/
|
|
193
|
+
key: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message loams.admin.v1.RevokeKeyRequest.
|
|
197
|
+
* Use `create(RevokeKeyRequestSchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const RevokeKeyRequestSchema: GenMessage<RevokeKeyRequest>;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from message loams.admin.v1.RevokeKeyResponse
|
|
202
|
+
*/
|
|
203
|
+
export type RevokeKeyResponse = Message<"loams.admin.v1.RevokeKeyResponse"> & {};
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message loams.admin.v1.RevokeKeyResponse.
|
|
206
|
+
* Use `create(RevokeKeyResponseSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export declare const RevokeKeyResponseSchema: GenMessage<RevokeKeyResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message loams.admin.v1.RevokeTokenRequest
|
|
211
|
+
*/
|
|
212
|
+
export type RevokeTokenRequest = Message<"loams.admin.v1.RevokeTokenRequest"> & {
|
|
213
|
+
/**
|
|
214
|
+
* The token's `jti`.
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: string jti = 1;
|
|
217
|
+
*/
|
|
218
|
+
jti: string;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message loams.admin.v1.RevokeTokenRequest.
|
|
222
|
+
* Use `create(RevokeTokenRequestSchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
export declare const RevokeTokenRequestSchema: GenMessage<RevokeTokenRequest>;
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message loams.admin.v1.RevokeTokenResponse
|
|
227
|
+
*/
|
|
228
|
+
export type RevokeTokenResponse = Message<"loams.admin.v1.RevokeTokenResponse"> & {};
|
|
229
|
+
/**
|
|
230
|
+
* Describes the message loams.admin.v1.RevokeTokenResponse.
|
|
231
|
+
* Use `create(RevokeTokenResponseSchema)` to create a new message.
|
|
232
|
+
*/
|
|
233
|
+
export declare const RevokeTokenResponseSchema: GenMessage<RevokeTokenResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* API keys of an environment, and revoking agent tokens.
|
|
236
|
+
*
|
|
237
|
+
* @generated from service loams.admin.v1.KeyService
|
|
238
|
+
*/
|
|
239
|
+
export declare const KeyService: GenService<{
|
|
240
|
+
/**
|
|
241
|
+
* An environment's API keys, without their secrets.
|
|
242
|
+
* (replaces `GET /api/v1/projects/{project}/environments/{environment}/keys`)
|
|
243
|
+
*
|
|
244
|
+
* @generated from rpc loams.admin.v1.KeyService.ListKeys
|
|
245
|
+
*/
|
|
246
|
+
listKeys: {
|
|
247
|
+
methodKind: "unary";
|
|
248
|
+
input: typeof ListKeysRequestSchema;
|
|
249
|
+
output: typeof ListKeysResponseSchema;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Creates an API key and answers its secret, once.
|
|
253
|
+
* (replaces `POST /api/v1/projects/{project}/environments/{environment}/keys`)
|
|
254
|
+
*
|
|
255
|
+
* @generated from rpc loams.admin.v1.KeyService.CreateKey
|
|
256
|
+
*/
|
|
257
|
+
createKey: {
|
|
258
|
+
methodKind: "unary";
|
|
259
|
+
input: typeof CreateKeyRequestSchema;
|
|
260
|
+
output: typeof CreateKeyResponseSchema;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Revokes an API key; revoking it again is not an error.
|
|
264
|
+
* (replaces `DELETE /api/v1/keys/{key}`)
|
|
265
|
+
*
|
|
266
|
+
* @generated from rpc loams.admin.v1.KeyService.RevokeKey
|
|
267
|
+
*/
|
|
268
|
+
revokeKey: {
|
|
269
|
+
methodKind: "unary";
|
|
270
|
+
input: typeof RevokeKeyRequestSchema;
|
|
271
|
+
output: typeof RevokeKeyResponseSchema;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Revokes an agent token by its `jti`; revoking it again is not an error.
|
|
275
|
+
* (replaces `DELETE /api/v1/tokens/{jti}`)
|
|
276
|
+
*
|
|
277
|
+
* @generated from rpc loams.admin.v1.KeyService.RevokeToken
|
|
278
|
+
*/
|
|
279
|
+
revokeToken: {
|
|
280
|
+
methodKind: "unary";
|
|
281
|
+
input: typeof RevokeTokenRequestSchema;
|
|
282
|
+
output: typeof RevokeTokenResponseSchema;
|
|
283
|
+
};
|
|
284
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file loams/admin/v1/key.proto (package loams.admin.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_loams_admin_v1_common } from "./common_pb.js";
|
|
7
|
+
import { file_loams_options_v1_options } from "../../options/v1/options_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file loams/admin/v1/key.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_loams_admin_v1_key = /*@__PURE__*/ fileDesc("Chhsb2Ftcy9hZG1pbi92MS9rZXkucHJvdG8SDmxvYW1zLmFkbWluLnYxIpgCCgZBcGlLZXkSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIOCgZwcmVmaXgYAyABKAkSEwoLZW52aXJvbm1lbnQYBCABKAkSLQoJcHJpbmNpcGFsGAUgASgLMhoubG9hbXMuYWRtaW4udjEuU3ViamVjdFJlZhIOCgZzY29wZXMYBiADKAkSLgoKY3JlYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKZXhwaXJlc19hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMAoMbGFzdF91c2VkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJeCg9MaXN0S2V5c1JlcXVlc3QSDwoHcHJvamVjdBgBIAEoCRITCgtlbnZpcm9ubWVudBgCIAEoCRIRCglwYWdlX3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCSJRChBMaXN0S2V5c1Jlc3BvbnNlEiQKBGtleXMYASADKAsyFi5sb2Ftcy5hZG1pbi52MS5BcGlLZXkSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIq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iRBUEkga2V5cywgYW5kIHJldm9raW5nIGFnZW50IHRva2Vucy5iBnByb3RvMw", [file_google_protobuf_timestamp, file_loams_admin_v1_common, file_loams_options_v1_options]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message loams.admin.v1.ApiKey.
|
|
14
|
+
* Use `create(ApiKeySchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ApiKeySchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message loams.admin.v1.ListKeysRequest.
|
|
19
|
+
* Use `create(ListKeysRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const ListKeysRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.admin.v1.ListKeysResponse.
|
|
24
|
+
* Use `create(ListKeysResponseSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const ListKeysResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.admin.v1.CreateKeyRequest.
|
|
29
|
+
* Use `create(CreateKeyRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const CreateKeyRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.admin.v1.CreateKeyResponse.
|
|
34
|
+
* Use `create(CreateKeyResponseSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const CreateKeyResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message loams.admin.v1.RevokeKeyRequest.
|
|
39
|
+
* Use `create(RevokeKeyRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const RevokeKeyRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 5);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message loams.admin.v1.RevokeKeyResponse.
|
|
44
|
+
* Use `create(RevokeKeyResponseSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const RevokeKeyResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 6);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message loams.admin.v1.RevokeTokenRequest.
|
|
49
|
+
* Use `create(RevokeTokenRequestSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const RevokeTokenRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 7);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message loams.admin.v1.RevokeTokenResponse.
|
|
54
|
+
* Use `create(RevokeTokenResponseSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const RevokeTokenResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_key, 8);
|
|
57
|
+
/**
|
|
58
|
+
* API keys of an environment, and revoking agent tokens.
|
|
59
|
+
*
|
|
60
|
+
* @generated from service loams.admin.v1.KeyService
|
|
61
|
+
*/
|
|
62
|
+
export const KeyService = /*@__PURE__*/ serviceDesc(file_loams_admin_v1_key, 0);
|