@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,501 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } 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/instance/v1/instance.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_loams_instance_v1_instance: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message loams.instance.v1.GetInstanceRequest
|
|
10
|
+
*/
|
|
11
|
+
export type GetInstanceRequest = Message<"loams.instance.v1.GetInstanceRequest"> & {};
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message loams.instance.v1.GetInstanceRequest.
|
|
14
|
+
* Use `create(GetInstanceRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export declare const GetInstanceRequestSchema: GenMessage<GetInstanceRequest>;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message loams.instance.v1.GetInstanceResponse
|
|
19
|
+
*/
|
|
20
|
+
export type GetInstanceResponse = Message<"loams.instance.v1.GetInstanceResponse"> & {
|
|
21
|
+
/**
|
|
22
|
+
* A ULID, stable for the lifetime of the install.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: string instance_id = 1;
|
|
25
|
+
*/
|
|
26
|
+
instanceId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The instance's display name (OpenAPI `Instance.name`).
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string name = 2;
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: loams.instance.v1.Edition edition = 3;
|
|
35
|
+
*/
|
|
36
|
+
edition: Edition;
|
|
37
|
+
/**
|
|
38
|
+
* The server's semver (OpenAPI `Instance.version`).
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string server_version = 4;
|
|
41
|
+
*/
|
|
42
|
+
serverVersion: string;
|
|
43
|
+
/**
|
|
44
|
+
* The proto packages this instance serves, for example
|
|
45
|
+
* "loams.approvals.v1". The console provides an `rpc.<service>` only for a
|
|
46
|
+
* listed package (AP1a Ruling 6). The same list, with what is *not*
|
|
47
|
+
* served, is `services`.
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: repeated string api_versions = 5;
|
|
50
|
+
*/
|
|
51
|
+
apiVersions: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Feature flags, for example {"billing": false, "passkeys": true}.
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: map<string, bool> features = 6;
|
|
56
|
+
*/
|
|
57
|
+
features: {
|
|
58
|
+
[key: string]: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The Loams gateway: the OAuth authorization server for Loams tokens
|
|
62
|
+
* (pairing grant, RFC 8693 exchange, refresh). Empty before the auth plan.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: string issuer = 7;
|
|
65
|
+
*/
|
|
66
|
+
issuer: string;
|
|
67
|
+
/**
|
|
68
|
+
* The JWKS of the instance's token-signing keys.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: string jwks_uri = 8;
|
|
71
|
+
*/
|
|
72
|
+
jwksUri: string;
|
|
73
|
+
/**
|
|
74
|
+
* How people sign in. Authentik is the identity provider (§37 §6.5).
|
|
75
|
+
*
|
|
76
|
+
* @generated from field: repeated loams.instance.v1.SignInMethod sign_in_methods = 9;
|
|
77
|
+
*/
|
|
78
|
+
signInMethods: SignInMethod[];
|
|
79
|
+
/**
|
|
80
|
+
* A compact JWS, signed by the instance key, listing the current and next
|
|
81
|
+
* TLS SPKI hashes (§37 §7.2.3). Empty for instances with public CAs only.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: string tls_pins = 10;
|
|
84
|
+
*/
|
|
85
|
+
tlsPins: string;
|
|
86
|
+
/**
|
|
87
|
+
* Present when the instance pushes to phones (§37 §7.4).
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: loams.instance.v1.PushConfig push = 11;
|
|
90
|
+
*/
|
|
91
|
+
push?: PushConfig | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* The minimum app version per platform: keys "ios", "android", "desktop".
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: map<string, string> min_app_versions = 12;
|
|
96
|
+
*/
|
|
97
|
+
minAppVersions: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* True until first-run setup has created the org and its owner.
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: bool setup_required = 13;
|
|
104
|
+
*/
|
|
105
|
+
setupRequired: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Set during a signing-key rotation: the new key's thumbprint, signed by
|
|
108
|
+
* the old key (§37 §7.2.3).
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: string key_rotation = 14;
|
|
111
|
+
*/
|
|
112
|
+
keyRotation: string;
|
|
113
|
+
/**
|
|
114
|
+
* The public packages of the API catalogue (design §44 §4, D600) that
|
|
115
|
+
* exist, and whether this binary serves each. A package whose engine is
|
|
116
|
+
* not in the build variant (§30 §9) is listed with `available = false`, and
|
|
117
|
+
* its RPCs answer `unimplemented` with reason `feature_not_in_variant`, so
|
|
118
|
+
* an SDK feature-detects from this list instead of by calling and reading
|
|
119
|
+
* the error. A package whose services have not been defined yet has no
|
|
120
|
+
* entry, so this list never advertises a contract that does not exist. It
|
|
121
|
+
* is the long form of `api_versions`, which lists only what is served.
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: repeated loams.instance.v1.ServiceStatus services = 15;
|
|
124
|
+
*/
|
|
125
|
+
services: ServiceStatus[];
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message loams.instance.v1.GetInstanceResponse.
|
|
129
|
+
* Use `create(GetInstanceResponseSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export declare const GetInstanceResponseSchema: GenMessage<GetInstanceResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* One package of the API catalogue and what this binary does with it.
|
|
134
|
+
*
|
|
135
|
+
* @generated from message loams.instance.v1.ServiceStatus
|
|
136
|
+
*/
|
|
137
|
+
export type ServiceStatus = Message<"loams.instance.v1.ServiceStatus"> & {
|
|
138
|
+
/**
|
|
139
|
+
* The proto package, for example "loams.collection.v1".
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string package = 1;
|
|
142
|
+
*/
|
|
143
|
+
package: string;
|
|
144
|
+
/**
|
|
145
|
+
* The package's API version, for example "v1".
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string version = 2;
|
|
148
|
+
*/
|
|
149
|
+
version: string;
|
|
150
|
+
/**
|
|
151
|
+
* Whether this binary serves the package. False means every one of its RPCs
|
|
152
|
+
* answers `unimplemented` with reason `feature_not_in_variant`.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: bool available = 3;
|
|
155
|
+
*/
|
|
156
|
+
available: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The services in the package, fully qualified, for example
|
|
159
|
+
* "loams.collection.v1.CollectionService".
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: repeated string services = 4;
|
|
162
|
+
*/
|
|
163
|
+
services: string[];
|
|
164
|
+
/**
|
|
165
|
+
* True for a package whose wire contract may still change
|
|
166
|
+
* (`loams.options.v1.ModuleOptions.unstable`, §44 §10.3).
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: bool unstable = 5;
|
|
169
|
+
*/
|
|
170
|
+
unstable: boolean;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message loams.instance.v1.ServiceStatus.
|
|
174
|
+
* Use `create(ServiceStatusSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const ServiceStatusSchema: GenMessage<ServiceStatus>;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from message loams.instance.v1.SignInMethod
|
|
179
|
+
*/
|
|
180
|
+
export type SignInMethod = Message<"loams.instance.v1.SignInMethod"> & {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: loams.instance.v1.SignInKind kind = 1;
|
|
183
|
+
*/
|
|
184
|
+
kind: SignInKind;
|
|
185
|
+
/**
|
|
186
|
+
* The OIDC issuer for KIND_AUTHENTIK (Authentik's application issuer URL).
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: string issuer = 2;
|
|
189
|
+
*/
|
|
190
|
+
issuer: string;
|
|
191
|
+
/**
|
|
192
|
+
* The public OAuth client id for this app, for example "loams-desktop".
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: string client_id = 3;
|
|
195
|
+
*/
|
|
196
|
+
clientId: string;
|
|
197
|
+
/**
|
|
198
|
+
* A label to show on the sign-in button.
|
|
199
|
+
*
|
|
200
|
+
* @generated from field: string display_name = 4;
|
|
201
|
+
*/
|
|
202
|
+
displayName: string;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message loams.instance.v1.SignInMethod.
|
|
206
|
+
* Use `create(SignInMethodSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export declare const SignInMethodSchema: GenMessage<SignInMethod>;
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message loams.instance.v1.PushConfig
|
|
211
|
+
*/
|
|
212
|
+
export type PushConfig = Message<"loams.instance.v1.PushConfig"> & {
|
|
213
|
+
/**
|
|
214
|
+
* The push gateway, for example "https://push.loams.dev".
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: string gateway_url = 1;
|
|
217
|
+
*/
|
|
218
|
+
gatewayUrl: string;
|
|
219
|
+
/**
|
|
220
|
+
* App ids per platform: "ios" → bundle id, "android" → package name.
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: map<string, string> app_ids = 2;
|
|
223
|
+
*/
|
|
224
|
+
appIds: {
|
|
225
|
+
[key: string]: string;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Whether UnifiedPush endpoints are accepted (Android without Google).
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: bool unifiedpush = 3;
|
|
231
|
+
*/
|
|
232
|
+
unifiedpush: boolean;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Describes the message loams.instance.v1.PushConfig.
|
|
236
|
+
* Use `create(PushConfigSchema)` to create a new message.
|
|
237
|
+
*/
|
|
238
|
+
export declare const PushConfigSchema: GenMessage<PushConfig>;
|
|
239
|
+
/**
|
|
240
|
+
* @generated from message loams.instance.v1.WhoAmIRequest
|
|
241
|
+
*/
|
|
242
|
+
export type WhoAmIRequest = Message<"loams.instance.v1.WhoAmIRequest"> & {};
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message loams.instance.v1.WhoAmIRequest.
|
|
245
|
+
* Use `create(WhoAmIRequestSchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export declare const WhoAmIRequestSchema: GenMessage<WhoAmIRequest>;
|
|
248
|
+
/**
|
|
249
|
+
* @generated from message loams.instance.v1.WhoAmIResponse
|
|
250
|
+
*/
|
|
251
|
+
export type WhoAmIResponse = Message<"loams.instance.v1.WhoAmIResponse"> & {
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: loams.instance.v1.Principal principal = 1;
|
|
254
|
+
*/
|
|
255
|
+
principal?: Principal | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* The RFC 8693 `act` chain, outermost first: an agent acting for a user
|
|
258
|
+
* lists the agent here and the user as `principal`.
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: repeated loams.instance.v1.Principal actor_chain = 2;
|
|
261
|
+
*/
|
|
262
|
+
actorChain: Principal[];
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: loams.instance.v1.Org org = 3;
|
|
265
|
+
*/
|
|
266
|
+
org?: Org | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* @generated from field: repeated loams.instance.v1.Environment environments = 4;
|
|
269
|
+
*/
|
|
270
|
+
environments: Environment[];
|
|
271
|
+
/**
|
|
272
|
+
* The device this token is bound to, when it was issued to a device.
|
|
273
|
+
*
|
|
274
|
+
* @generated from field: loams.instance.v1.DeviceRef device = 5;
|
|
275
|
+
*/
|
|
276
|
+
device?: DeviceRef | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* When the session last authenticated the person; the step-up rule of
|
|
279
|
+
* AP0 Ruling 7 compares it to now.
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: google.protobuf.Timestamp authenticated_at = 6;
|
|
282
|
+
*/
|
|
283
|
+
authenticatedAt?: Timestamp | undefined;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Describes the message loams.instance.v1.WhoAmIResponse.
|
|
287
|
+
* Use `create(WhoAmIResponseSchema)` to create a new message.
|
|
288
|
+
*/
|
|
289
|
+
export declare const WhoAmIResponseSchema: GenMessage<WhoAmIResponse>;
|
|
290
|
+
/**
|
|
291
|
+
* @generated from message loams.instance.v1.Principal
|
|
292
|
+
*/
|
|
293
|
+
export type Principal = Message<"loams.instance.v1.Principal"> & {
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: string id = 1;
|
|
296
|
+
*/
|
|
297
|
+
id: string;
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: loams.instance.v1.PrincipalKind kind = 2;
|
|
300
|
+
*/
|
|
301
|
+
kind: PrincipalKind;
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: string display_name = 3;
|
|
304
|
+
*/
|
|
305
|
+
displayName: string;
|
|
306
|
+
/**
|
|
307
|
+
* Users only.
|
|
308
|
+
*
|
|
309
|
+
* @generated from field: string email = 4;
|
|
310
|
+
*/
|
|
311
|
+
email: string;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Describes the message loams.instance.v1.Principal.
|
|
315
|
+
* Use `create(PrincipalSchema)` to create a new message.
|
|
316
|
+
*/
|
|
317
|
+
export declare const PrincipalSchema: GenMessage<Principal>;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from message loams.instance.v1.Org
|
|
320
|
+
*/
|
|
321
|
+
export type Org = Message<"loams.instance.v1.Org"> & {
|
|
322
|
+
/**
|
|
323
|
+
* @generated from field: string id = 1;
|
|
324
|
+
*/
|
|
325
|
+
id: string;
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: string name = 2;
|
|
328
|
+
*/
|
|
329
|
+
name: string;
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Describes the message loams.instance.v1.Org.
|
|
333
|
+
* Use `create(OrgSchema)` to create a new message.
|
|
334
|
+
*/
|
|
335
|
+
export declare const OrgSchema: GenMessage<Org>;
|
|
336
|
+
/**
|
|
337
|
+
* @generated from message loams.instance.v1.Environment
|
|
338
|
+
*/
|
|
339
|
+
export type Environment = Message<"loams.instance.v1.Environment"> & {
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: string id = 1;
|
|
342
|
+
*/
|
|
343
|
+
id: string;
|
|
344
|
+
/**
|
|
345
|
+
* The project's id.
|
|
346
|
+
*
|
|
347
|
+
* @generated from field: string project = 2;
|
|
348
|
+
*/
|
|
349
|
+
project: string;
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: string name = 3;
|
|
352
|
+
*/
|
|
353
|
+
name: string;
|
|
354
|
+
/**
|
|
355
|
+
* The engine namespace this environment is (1:1).
|
|
356
|
+
*
|
|
357
|
+
* @generated from field: string namespace = 4;
|
|
358
|
+
*/
|
|
359
|
+
namespace: string;
|
|
360
|
+
/**
|
|
361
|
+
* Destructive actions need the project admin role and an approval.
|
|
362
|
+
*
|
|
363
|
+
* @generated from field: bool protected = 5;
|
|
364
|
+
*/
|
|
365
|
+
protected: boolean;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Describes the message loams.instance.v1.Environment.
|
|
369
|
+
* Use `create(EnvironmentSchema)` to create a new message.
|
|
370
|
+
*/
|
|
371
|
+
export declare const EnvironmentSchema: GenMessage<Environment>;
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message loams.instance.v1.DeviceRef
|
|
374
|
+
*/
|
|
375
|
+
export type DeviceRef = Message<"loams.instance.v1.DeviceRef"> & {
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: string id = 1;
|
|
378
|
+
*/
|
|
379
|
+
id: string;
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: string name = 2;
|
|
382
|
+
*/
|
|
383
|
+
name: string;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Describes the message loams.instance.v1.DeviceRef.
|
|
387
|
+
* Use `create(DeviceRefSchema)` to create a new message.
|
|
388
|
+
*/
|
|
389
|
+
export declare const DeviceRefSchema: GenMessage<DeviceRef>;
|
|
390
|
+
/**
|
|
391
|
+
* @generated from enum loams.instance.v1.Edition
|
|
392
|
+
*/
|
|
393
|
+
export declare enum Edition {
|
|
394
|
+
/**
|
|
395
|
+
* @generated from enum value: EDITION_UNSPECIFIED = 0;
|
|
396
|
+
*/
|
|
397
|
+
UNSPECIFIED = 0,
|
|
398
|
+
/**
|
|
399
|
+
* @generated from enum value: EDITION_OSS = 1;
|
|
400
|
+
*/
|
|
401
|
+
OSS = 1,
|
|
402
|
+
/**
|
|
403
|
+
* @generated from enum value: EDITION_CLOUD = 2;
|
|
404
|
+
*/
|
|
405
|
+
CLOUD = 2,
|
|
406
|
+
/**
|
|
407
|
+
* @generated from enum value: EDITION_BYOC = 3;
|
|
408
|
+
*/
|
|
409
|
+
BYOC = 3
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Describes the enum loams.instance.v1.Edition.
|
|
413
|
+
*/
|
|
414
|
+
export declare const EditionSchema: GenEnum<Edition>;
|
|
415
|
+
/**
|
|
416
|
+
* @generated from enum loams.instance.v1.SignInKind
|
|
417
|
+
*/
|
|
418
|
+
export declare enum SignInKind {
|
|
419
|
+
/**
|
|
420
|
+
* @generated from enum value: SIGN_IN_KIND_UNSPECIFIED = 0;
|
|
421
|
+
*/
|
|
422
|
+
UNSPECIFIED = 0,
|
|
423
|
+
/**
|
|
424
|
+
* No sign-in: a loopback stack before the auth plan (D111).
|
|
425
|
+
*
|
|
426
|
+
* @generated from enum value: SIGN_IN_KIND_NONE = 1;
|
|
427
|
+
*/
|
|
428
|
+
NONE = 1,
|
|
429
|
+
/**
|
|
430
|
+
* OIDC authorization code + PKCE at the instance's Authentik (§38).
|
|
431
|
+
*
|
|
432
|
+
* @generated from enum value: SIGN_IN_KIND_AUTHENTIK = 2;
|
|
433
|
+
*/
|
|
434
|
+
AUTHENTIK = 2,
|
|
435
|
+
/**
|
|
436
|
+
* Authentik's device authorization flow (RFC 8628).
|
|
437
|
+
*
|
|
438
|
+
* @generated from enum value: SIGN_IN_KIND_AUTHENTIK_DEVICE_CODE = 3;
|
|
439
|
+
*/
|
|
440
|
+
AUTHENTIK_DEVICE_CODE = 3,
|
|
441
|
+
/**
|
|
442
|
+
* A QR or typed pairing code from a signed-in session (§37 §7.2).
|
|
443
|
+
*
|
|
444
|
+
* @generated from enum value: SIGN_IN_KIND_PAIRING = 4;
|
|
445
|
+
*/
|
|
446
|
+
PAIRING = 4
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Describes the enum loams.instance.v1.SignInKind.
|
|
450
|
+
*/
|
|
451
|
+
export declare const SignInKindSchema: GenEnum<SignInKind>;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from enum loams.instance.v1.PrincipalKind
|
|
454
|
+
*/
|
|
455
|
+
export declare enum PrincipalKind {
|
|
456
|
+
/**
|
|
457
|
+
* @generated from enum value: PRINCIPAL_KIND_UNSPECIFIED = 0;
|
|
458
|
+
*/
|
|
459
|
+
UNSPECIFIED = 0,
|
|
460
|
+
/**
|
|
461
|
+
* @generated from enum value: PRINCIPAL_KIND_USER = 1;
|
|
462
|
+
*/
|
|
463
|
+
USER = 1,
|
|
464
|
+
/**
|
|
465
|
+
* @generated from enum value: PRINCIPAL_KIND_SERVICE_ACCOUNT = 2;
|
|
466
|
+
*/
|
|
467
|
+
SERVICE_ACCOUNT = 2,
|
|
468
|
+
/**
|
|
469
|
+
* @generated from enum value: PRINCIPAL_KIND_AGENT = 3;
|
|
470
|
+
*/
|
|
471
|
+
AGENT = 3
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Describes the enum loams.instance.v1.PrincipalKind.
|
|
475
|
+
*/
|
|
476
|
+
export declare const PrincipalKindSchema: GenEnum<PrincipalKind>;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from service loams.instance.v1.InstanceService
|
|
479
|
+
*/
|
|
480
|
+
export declare const InstanceService: GenService<{
|
|
481
|
+
/**
|
|
482
|
+
* What this instance is and how to sign in to it. No auth.
|
|
483
|
+
*
|
|
484
|
+
* @generated from rpc loams.instance.v1.InstanceService.GetInstance
|
|
485
|
+
*/
|
|
486
|
+
getInstance: {
|
|
487
|
+
methodKind: "unary";
|
|
488
|
+
input: typeof GetInstanceRequestSchema;
|
|
489
|
+
output: typeof GetInstanceResponseSchema;
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* The calling principal, its org, and the environments it can reach.
|
|
493
|
+
*
|
|
494
|
+
* @generated from rpc loams.instance.v1.InstanceService.WhoAmI
|
|
495
|
+
*/
|
|
496
|
+
whoAmI: {
|
|
497
|
+
methodKind: "unary";
|
|
498
|
+
input: typeof WhoAmIRequestSchema;
|
|
499
|
+
output: typeof WhoAmIResponseSchema;
|
|
500
|
+
};
|
|
501
|
+
}>;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// Instance discovery and "who am I" for the Loams apps (design §37 §8.2,
|
|
2
|
+
// AP0 Task 1).
|
|
3
|
+
//
|
|
4
|
+
// `GetInstance` needs no credentials: an app calls it first, before sign-in,
|
|
5
|
+
// to learn what this instance is, which API packages it serves and where to
|
|
6
|
+
// sign in. It mirrors the console's `GET /api/v1/instance` (§19 §3) and adds
|
|
7
|
+
// what the desktop and phones need: the OAuth issuer and JWKS, the TLS pin
|
|
8
|
+
// set for paired phones, push configuration and minimum app versions.
|
|
9
|
+
//
|
|
10
|
+
// Rules shared by every app-facing package (AP0 Rulings 2–6): unary and
|
|
11
|
+
// server-streaming RPCs only; every RPC has its own request and response
|
|
12
|
+
// message; idempotent reads are marked NO_SIDE_EFFECTS so Connect clients
|
|
13
|
+
// may send them as HTTP GET; every mutation takes an `idempotency_key`;
|
|
14
|
+
// errors carry a `loams.errors.v1.ErrorInfo` with a stable `reason`.
|
|
15
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
16
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
17
|
+
import { file_loams_options_v1_options } from "../../options/v1/options_pb.js";
|
|
18
|
+
/**
|
|
19
|
+
* Describes the file loams/instance/v1/instance.proto.
|
|
20
|
+
*/
|
|
21
|
+
export const file_loams_instance_v1_instance = /*@__PURE__*/ fileDesc("CiBsb2Ftcy9pbnN0YW5jZS92MS9pbnN0YW5jZS5wcm90bxIRbG9hbXMuaW5zdGFuY2UudjEiFAoSR2V0SW5zdGFuY2VSZXF1ZXN0IpYFChNHZXRJbnN0YW5jZVJlc3BvbnNlEh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ASgJEgwKBG5hbWUYAiABKAkqWAoHRWRpdGlvbhIXChNFRElUSU9OX1VOU1BFQ0lGSUVEEAASDwoLRURJVElPTl9PU1MQARIRCg1FRElUSU9OX0NMT1VEEAISEAoMRURJVElPTl9CWU9DEAMqnwEKClNpZ25JbktpbmQSHAoYU0lHTl9JTl9LSU5EX1VOU1BFQ0lGSUVEEAASFQoRU0lHTl9JTl9LSU5EX05PTkUQARIaChZTSUdOX0lOX0tJTkRfQVVUSEVOVElLEAISJgoiU0lHTl9JTl9LSU5EX0FVVEhFTlRJS19ERVZJQ0VfQ09ERRADEhgKFFNJR05fSU5fS0lORF9QQUlSSU5HEAQqhgEKDVByaW5jaXBhbEtpbmQSHgoaUFJJTkNJUEFMX0tJTkRfVU5TUEVDSUZJRUQQABIXChNQUklOQ0lQQUxfS0lORF9VU0VSEAESIgoeUFJJTkNJUEFMX0tJTkRfU0VSVklDRV9BQ0NPVU5UEAISGAoUUFJJTkNJUEFMX0tJTkRfQUdFTlQQAzKqAgoPSW5zdGFuY2VTZXJ2aWNlEnIKC0dldEluc3RhbmNlEiUubG9hbXMuaW5zdGFuY2UudjEuR2V0SW5zdGFuY2VSZXF1ZXN0GiYubG9hbXMuaW5zdGFuY2UudjEuR2V0SW5zdGFuY2VSZXNwb25zZSIUkAIBkrUYDRILZ2V0SW5zdGFuY2USXgoGV2hvQW1JEiAubG9hbXMuaW5zdGFuY2UudjEuV2hvQW1JUmVxdWVzdBohLmxvYW1zLmluc3RhbmNlLnYxLldob0FtSVJlc3BvbnNlIg+QAgGStRgIEgZ3aG9BbUkaQ4q1GD8KCGluc3RhbmNlEjNXaGF0IHRoaXMgaW5zdGFuY2UgaXMsIGFuZCB3aG8gdGhlIGNhbGxlciBpcyBvbiBpdC5iBnByb3RvMw", [file_google_protobuf_timestamp, file_loams_options_v1_options]);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.instance.v1.GetInstanceRequest.
|
|
24
|
+
* Use `create(GetInstanceRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const GetInstanceRequestSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 0);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.instance.v1.GetInstanceResponse.
|
|
29
|
+
* Use `create(GetInstanceResponseSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const GetInstanceResponseSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 1);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.instance.v1.ServiceStatus.
|
|
34
|
+
* Use `create(ServiceStatusSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const ServiceStatusSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 2);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message loams.instance.v1.SignInMethod.
|
|
39
|
+
* Use `create(SignInMethodSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const SignInMethodSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 3);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message loams.instance.v1.PushConfig.
|
|
44
|
+
* Use `create(PushConfigSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const PushConfigSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 4);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message loams.instance.v1.WhoAmIRequest.
|
|
49
|
+
* Use `create(WhoAmIRequestSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const WhoAmIRequestSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 5);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message loams.instance.v1.WhoAmIResponse.
|
|
54
|
+
* Use `create(WhoAmIResponseSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const WhoAmIResponseSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 6);
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message loams.instance.v1.Principal.
|
|
59
|
+
* Use `create(PrincipalSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const PrincipalSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 7);
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message loams.instance.v1.Org.
|
|
64
|
+
* Use `create(OrgSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const OrgSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 8);
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message loams.instance.v1.Environment.
|
|
69
|
+
* Use `create(EnvironmentSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const EnvironmentSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 9);
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message loams.instance.v1.DeviceRef.
|
|
74
|
+
* Use `create(DeviceRefSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export const DeviceRefSchema = /*@__PURE__*/ messageDesc(file_loams_instance_v1_instance, 10);
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum loams.instance.v1.Edition
|
|
79
|
+
*/
|
|
80
|
+
export var Edition;
|
|
81
|
+
(function (Edition) {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: EDITION_UNSPECIFIED = 0;
|
|
84
|
+
*/
|
|
85
|
+
Edition[Edition["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: EDITION_OSS = 1;
|
|
88
|
+
*/
|
|
89
|
+
Edition[Edition["OSS"] = 1] = "OSS";
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: EDITION_CLOUD = 2;
|
|
92
|
+
*/
|
|
93
|
+
Edition[Edition["CLOUD"] = 2] = "CLOUD";
|
|
94
|
+
/**
|
|
95
|
+
* @generated from enum value: EDITION_BYOC = 3;
|
|
96
|
+
*/
|
|
97
|
+
Edition[Edition["BYOC"] = 3] = "BYOC";
|
|
98
|
+
})(Edition || (Edition = {}));
|
|
99
|
+
/**
|
|
100
|
+
* Describes the enum loams.instance.v1.Edition.
|
|
101
|
+
*/
|
|
102
|
+
export const EditionSchema = /*@__PURE__*/ enumDesc(file_loams_instance_v1_instance, 0);
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum loams.instance.v1.SignInKind
|
|
105
|
+
*/
|
|
106
|
+
export var SignInKind;
|
|
107
|
+
(function (SignInKind) {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: SIGN_IN_KIND_UNSPECIFIED = 0;
|
|
110
|
+
*/
|
|
111
|
+
SignInKind[SignInKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
112
|
+
/**
|
|
113
|
+
* No sign-in: a loopback stack before the auth plan (D111).
|
|
114
|
+
*
|
|
115
|
+
* @generated from enum value: SIGN_IN_KIND_NONE = 1;
|
|
116
|
+
*/
|
|
117
|
+
SignInKind[SignInKind["NONE"] = 1] = "NONE";
|
|
118
|
+
/**
|
|
119
|
+
* OIDC authorization code + PKCE at the instance's Authentik (§38).
|
|
120
|
+
*
|
|
121
|
+
* @generated from enum value: SIGN_IN_KIND_AUTHENTIK = 2;
|
|
122
|
+
*/
|
|
123
|
+
SignInKind[SignInKind["AUTHENTIK"] = 2] = "AUTHENTIK";
|
|
124
|
+
/**
|
|
125
|
+
* Authentik's device authorization flow (RFC 8628).
|
|
126
|
+
*
|
|
127
|
+
* @generated from enum value: SIGN_IN_KIND_AUTHENTIK_DEVICE_CODE = 3;
|
|
128
|
+
*/
|
|
129
|
+
SignInKind[SignInKind["AUTHENTIK_DEVICE_CODE"] = 3] = "AUTHENTIK_DEVICE_CODE";
|
|
130
|
+
/**
|
|
131
|
+
* A QR or typed pairing code from a signed-in session (§37 §7.2).
|
|
132
|
+
*
|
|
133
|
+
* @generated from enum value: SIGN_IN_KIND_PAIRING = 4;
|
|
134
|
+
*/
|
|
135
|
+
SignInKind[SignInKind["PAIRING"] = 4] = "PAIRING";
|
|
136
|
+
})(SignInKind || (SignInKind = {}));
|
|
137
|
+
/**
|
|
138
|
+
* Describes the enum loams.instance.v1.SignInKind.
|
|
139
|
+
*/
|
|
140
|
+
export const SignInKindSchema = /*@__PURE__*/ enumDesc(file_loams_instance_v1_instance, 1);
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum loams.instance.v1.PrincipalKind
|
|
143
|
+
*/
|
|
144
|
+
export var PrincipalKind;
|
|
145
|
+
(function (PrincipalKind) {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from enum value: PRINCIPAL_KIND_UNSPECIFIED = 0;
|
|
148
|
+
*/
|
|
149
|
+
PrincipalKind[PrincipalKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
150
|
+
/**
|
|
151
|
+
* @generated from enum value: PRINCIPAL_KIND_USER = 1;
|
|
152
|
+
*/
|
|
153
|
+
PrincipalKind[PrincipalKind["USER"] = 1] = "USER";
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum value: PRINCIPAL_KIND_SERVICE_ACCOUNT = 2;
|
|
156
|
+
*/
|
|
157
|
+
PrincipalKind[PrincipalKind["SERVICE_ACCOUNT"] = 2] = "SERVICE_ACCOUNT";
|
|
158
|
+
/**
|
|
159
|
+
* @generated from enum value: PRINCIPAL_KIND_AGENT = 3;
|
|
160
|
+
*/
|
|
161
|
+
PrincipalKind[PrincipalKind["AGENT"] = 3] = "AGENT";
|
|
162
|
+
})(PrincipalKind || (PrincipalKind = {}));
|
|
163
|
+
/**
|
|
164
|
+
* Describes the enum loams.instance.v1.PrincipalKind.
|
|
165
|
+
*/
|
|
166
|
+
export const PrincipalKindSchema = /*@__PURE__*/ enumDesc(file_loams_instance_v1_instance, 2);
|
|
167
|
+
/**
|
|
168
|
+
* @generated from service loams.instance.v1.InstanceService
|
|
169
|
+
*/
|
|
170
|
+
export const InstanceService = /*@__PURE__*/ serviceDesc(file_loams_instance_v1_instance, 0);
|