@structured-id/ui-core 1.1.0 → 1.3.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/README.md +9 -5
- package/dist/browser-vp/index.d.cts +0 -11
- package/dist/browser-vp/index.d.ts +0 -11
- package/dist/index.cjs +13721 -9514
- package/dist/index.d.cts +4362 -2375
- package/dist/index.d.ts +4362 -2375
- package/dist/index.js +13937 -9730
- package/package.json +3 -3
- package/src/browser-vp/crypto.ts +0 -1
- package/src/browser-vp/index.ts +0 -2
- package/src/browser-vp/prf.ts +0 -2
- package/src/browser-vp/storage.ts +0 -2
- package/src/browser-vp/types.ts +0 -2
- package/src/browser-vp/vp.ts +0 -2
- package/src/composables/index.ts +6 -1
- package/src/composables/useAccountTransport.test.ts +121 -0
- package/src/composables/useAccountTransport.ts +69 -0
- package/src/composables/useBffAuth.ts +44 -34
- package/src/generated/google/api/httpbody.ts +159 -0
- package/src/generated/google/protobuf/any.ts +326 -0
- package/src/generated/google/rpc/error_details.ts +1386 -0
- package/src/generated/google/rpc/status.ts +127 -0
- package/src/generated/sid/v1/account/account.ts +1 -1
- package/src/generated/sid/v1/admin/admin.client.ts +15 -12
- package/src/generated/sid/v1/admin/admin.ts +24 -89
- package/src/generated/sid/v1/admin/enrollment.client.ts +24 -12
- package/src/generated/sid/v1/admin/enrollment.ts +65 -3
- package/src/generated/sid/v1/admin/events.client.ts +8 -8
- package/src/generated/sid/v1/admin/flow.ts +1 -1
- package/src/generated/sid/v1/admin/keys.ts +1 -1
- package/src/generated/sid/v1/admin/notifications.client.ts +12 -6
- package/src/generated/sid/v1/admin/notifications.ts +11 -70
- package/src/generated/sid/v1/admin/operations.ts +20 -35
- package/src/generated/sid/v1/admin/organizations.client.ts +2 -2
- package/src/generated/sid/v1/admin/organizations.ts +15 -32
- package/src/generated/sid/v1/admin/provisioning.client.ts +232 -0
- package/src/generated/sid/v1/admin/provisioning.ts +1383 -0
- package/src/generated/sid/v1/admin/scopes.ts +1 -1
- package/src/generated/sid/v1/admin/security.client.ts +22 -24
- package/src/generated/sid/v1/admin/security.ts +13 -22
- package/src/generated/sid/v1/admin/settings.client.ts +29 -18
- package/src/generated/sid/v1/admin/settings.ts +2 -82
- package/src/generated/sid/v1/attestation/attestation.client.ts +6 -6
- package/src/generated/sid/v1/attestation/attestation.ts +8 -8
- package/src/generated/sid/v1/authn/auth.client.ts +101 -58
- package/src/generated/sid/v1/authn/auth.ts +842 -414
- package/src/generated/sid/v1/authn/flows.ts +0 -12
- package/src/generated/sid/v1/authn/issuer.client.ts +489 -0
- package/src/generated/sid/v1/authn/issuer.ts +1600 -0
- package/src/generated/sid/v1/authn/password_history.client.ts +57 -0
- package/src/generated/sid/v1/authn/password_history.ts +578 -0
- package/src/generated/sid/v1/authn/system_integration.client.ts +73 -0
- package/src/generated/sid/v1/authn/system_integration.ts +218 -0
- package/src/generated/sid/v1/authz/authz.ts +1498 -317
- package/src/generated/sid/v1/authz/forward_auth.client.ts +97 -0
- package/src/generated/sid/v1/authz/forward_auth.ts +79 -0
- package/src/generated/sid/v1/authz/governance.client.ts +2 -2
- package/src/generated/sid/v1/authz/governance.ts +61 -4
- package/src/generated/sid/v1/common/errors.ts +532 -6
- package/src/generated/sid/v1/events/event_stream.client.ts +2 -2
- package/src/generated/sid/v1/events/event_stream.ts +2 -1
- package/src/generated/sid/v1/identity/identity.ts +98 -58
- package/src/generated/sid/v1/ids/ids.ts +395 -0
- package/src/generated/sid/v1/machine/machine_user.ts +0 -36
- package/src/generated/sid/v1/machine/pat.client.ts +2 -19
- package/src/generated/sid/v1/machine/pat.ts +1 -186
- package/src/generated/sid/v1/projects/projects.client.ts +137 -19
- package/src/generated/sid/v1/projects/projects.ts +2105 -405
- package/src/generated/sid/v1/scim/scim.client.ts +248 -2
- package/src/generated/sid/v1/scim/scim.ts +153 -14
- package/src/generated/sid/v1/test/test.ts +1 -1
- package/src/i18n/index.ts +0 -11
- package/src/index.ts +36 -2
- package/src/package-exports.test.ts +18 -0
- package/src/profile/components/SidLoginForm.vue +5 -2
- package/src/profile/components/SidRegistrationForm.test.ts +58 -1
- package/src/profile/components/SidRegistrationForm.vue +118 -12
- package/src/profile/components/index.ts +4 -0
- package/src/profile/composables/index.ts +2 -1
- package/src/profile/composables/useAccountApi.ts +20 -7
- package/src/profile/composables/useAuth.test.ts +453 -0
- package/src/profile/composables/useAuth.ts +414 -0
- package/src/profile/composables/useAuthApi.opaque.test.ts +18 -0
- package/src/profile/composables/useAuthApi.ts +188 -20
- package/src/profile/composables/useEnrollmentApi.test.ts +33 -0
- package/src/profile/composables/useEnrollmentApi.ts +26 -0
- package/src/profile/composables/useIdentityApi.ts +17 -7
- package/src/profile/composables/useLoginSuccess.test.ts +97 -3
- package/src/profile/composables/useLoginSuccess.ts +80 -22
- package/src/profile/composables/useSecurityLevel.test.ts +10 -3
- package/src/profile/composables/useSecurityLevel.ts +12 -3
- package/src/quasar/SidPrincipalInput.vue +4 -7
- package/src/utils/normalizePrincipal.test.ts +19 -5
- package/src/utils/normalizePrincipal.ts +7 -9
- package/src/utils/rpcRefusal.test.ts +151 -0
- package/src/utils/rpcRefusal.ts +252 -0
- package/src/utils/validators.test.ts +9 -0
- package/src/utils/validators.ts +14 -2
- package/src/composables/useAuth.ts +0 -40
- package/src/profile/composables/useOpaqueAuth.test.ts +0 -290
- package/src/profile/composables/useOpaqueAuth.ts +0 -191
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import { NotificationTemplateService } from "./notifications";
|
|
7
|
-
import type {
|
|
7
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
8
8
|
import type { SendTestNotificationRequest } from "./notifications";
|
|
9
9
|
import type { PreviewTemplateResponse } from "./notifications";
|
|
10
10
|
import type { PreviewTemplateRequest } from "./notifications";
|
|
@@ -54,11 +54,14 @@ export interface INotificationTemplateServiceClient {
|
|
|
54
54
|
*/
|
|
55
55
|
previewTemplate(input: PreviewTemplateRequest, options?: RpcOptions): UnaryCall<PreviewTemplateRequest, PreviewTemplateResponse>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Render the template with its example values and deliver it once through
|
|
58
|
+
* its channel. Succeeds when the channel accepted the message. A channel
|
|
59
|
+
* that is not enabled is FEATURE_NOT_CONFIGURED; a channel that did not
|
|
60
|
+
* accept it is DEPENDENCY_UNAVAILABLE with a RetryInfo delay.
|
|
58
61
|
*
|
|
59
62
|
* @generated from protobuf rpc: SendTestNotification
|
|
60
63
|
*/
|
|
61
|
-
sendTestNotification(input: SendTestNotificationRequest, options?: RpcOptions): UnaryCall<SendTestNotificationRequest,
|
|
64
|
+
sendTestNotification(input: SendTestNotificationRequest, options?: RpcOptions): UnaryCall<SendTestNotificationRequest, Empty>;
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
67
|
* NotificationTemplateService manages notification templates across channels.
|
|
@@ -117,12 +120,15 @@ export class NotificationTemplateServiceClient implements INotificationTemplateS
|
|
|
117
120
|
return stackIntercept<PreviewTemplateRequest, PreviewTemplateResponse>("unary", this._transport, method, opt, input);
|
|
118
121
|
}
|
|
119
122
|
/**
|
|
120
|
-
*
|
|
123
|
+
* Render the template with its example values and deliver it once through
|
|
124
|
+
* its channel. Succeeds when the channel accepted the message. A channel
|
|
125
|
+
* that is not enabled is FEATURE_NOT_CONFIGURED; a channel that did not
|
|
126
|
+
* accept it is DEPENDENCY_UNAVAILABLE with a RetryInfo delay.
|
|
121
127
|
*
|
|
122
128
|
* @generated from protobuf rpc: SendTestNotification
|
|
123
129
|
*/
|
|
124
|
-
sendTestNotification(input: SendTestNotificationRequest, options?: RpcOptions): UnaryCall<SendTestNotificationRequest,
|
|
130
|
+
sendTestNotification(input: SendTestNotificationRequest, options?: RpcOptions): UnaryCall<SendTestNotificationRequest, Empty> {
|
|
125
131
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
126
|
-
return stackIntercept<SendTestNotificationRequest,
|
|
132
|
+
return stackIntercept<SendTestNotificationRequest, Empty>("unary", this._transport, method, opt, input);
|
|
127
133
|
}
|
|
128
134
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
2
|
// @generated from protobuf file "sid/v1/admin/notifications.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
+
import { Empty } from "../../../google/protobuf/empty";
|
|
4
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
7
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -306,37 +307,32 @@ export interface PreviewTemplateResponse {
|
|
|
306
307
|
*/
|
|
307
308
|
export interface SendTestNotificationRequest {
|
|
308
309
|
/**
|
|
310
|
+
* Template to send, as listed by ListTemplates.
|
|
311
|
+
*
|
|
309
312
|
* @generated from protobuf field: string template_id = 1
|
|
310
313
|
*/
|
|
311
314
|
templateId: string;
|
|
312
315
|
/**
|
|
316
|
+
* Channel to send through; unspecified means email.
|
|
317
|
+
*
|
|
313
318
|
* @generated from protobuf field: sid.v1.admin.NotificationChannel channel = 2
|
|
314
319
|
*/
|
|
315
320
|
channel: NotificationChannel;
|
|
316
321
|
/**
|
|
322
|
+
* Locale of the content; empty means "en".
|
|
323
|
+
*
|
|
317
324
|
* @generated from protobuf field: string locale = 3
|
|
318
325
|
*/
|
|
319
326
|
locale: string;
|
|
320
327
|
/**
|
|
321
|
-
*
|
|
328
|
+
* Address for the channel: an email address, or a phone number in E.164.
|
|
329
|
+
* Empty sends to the requesting administrator's own address on that
|
|
330
|
+
* channel, resolved by the server; without one the request is refused.
|
|
322
331
|
*
|
|
323
332
|
* @generated from protobuf field: string recipient = 4
|
|
324
333
|
*/
|
|
325
334
|
recipient: string;
|
|
326
335
|
}
|
|
327
|
-
/**
|
|
328
|
-
* @generated from protobuf message sid.v1.admin.SendTestNotificationResponse
|
|
329
|
-
*/
|
|
330
|
-
export interface SendTestNotificationResponse {
|
|
331
|
-
/**
|
|
332
|
-
* @generated from protobuf field: bool success = 1
|
|
333
|
-
*/
|
|
334
|
-
success: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* @generated from protobuf field: string error = 2
|
|
337
|
-
*/
|
|
338
|
-
error: string;
|
|
339
|
-
}
|
|
340
336
|
// ── Enums ──
|
|
341
337
|
|
|
342
338
|
/**
|
|
@@ -1264,61 +1260,6 @@ class SendTestNotificationRequest$Type extends MessageType<SendTestNotificationR
|
|
|
1264
1260
|
* @generated MessageType for protobuf message sid.v1.admin.SendTestNotificationRequest
|
|
1265
1261
|
*/
|
|
1266
1262
|
export const SendTestNotificationRequest = new SendTestNotificationRequest$Type();
|
|
1267
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1268
|
-
class SendTestNotificationResponse$Type extends MessageType<SendTestNotificationResponse> {
|
|
1269
|
-
constructor() {
|
|
1270
|
-
super("sid.v1.admin.SendTestNotificationResponse", [
|
|
1271
|
-
{ no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1272
|
-
{ no: 2, name: "error", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1273
|
-
]);
|
|
1274
|
-
}
|
|
1275
|
-
create(value?: PartialMessage<SendTestNotificationResponse>): SendTestNotificationResponse {
|
|
1276
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1277
|
-
message.success = false;
|
|
1278
|
-
message.error = "";
|
|
1279
|
-
if (value !== undefined)
|
|
1280
|
-
reflectionMergePartial<SendTestNotificationResponse>(this, message, value);
|
|
1281
|
-
return message;
|
|
1282
|
-
}
|
|
1283
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SendTestNotificationResponse): SendTestNotificationResponse {
|
|
1284
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1285
|
-
while (reader.pos < end) {
|
|
1286
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1287
|
-
switch (fieldNo) {
|
|
1288
|
-
case /* bool success */ 1:
|
|
1289
|
-
message.success = reader.bool();
|
|
1290
|
-
break;
|
|
1291
|
-
case /* string error */ 2:
|
|
1292
|
-
message.error = reader.string();
|
|
1293
|
-
break;
|
|
1294
|
-
default:
|
|
1295
|
-
let u = options.readUnknownField;
|
|
1296
|
-
if (u === "throw")
|
|
1297
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1298
|
-
let d = reader.skip(wireType);
|
|
1299
|
-
if (u !== false)
|
|
1300
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
return message;
|
|
1304
|
-
}
|
|
1305
|
-
internalBinaryWrite(message: SendTestNotificationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1306
|
-
/* bool success = 1; */
|
|
1307
|
-
if (message.success !== false)
|
|
1308
|
-
writer.tag(1, WireType.Varint).bool(message.success);
|
|
1309
|
-
/* string error = 2; */
|
|
1310
|
-
if (message.error !== "")
|
|
1311
|
-
writer.tag(2, WireType.LengthDelimited).string(message.error);
|
|
1312
|
-
let u = options.writeUnknownFields;
|
|
1313
|
-
if (u !== false)
|
|
1314
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1315
|
-
return writer;
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
/**
|
|
1319
|
-
* @generated MessageType for protobuf message sid.v1.admin.SendTestNotificationResponse
|
|
1320
|
-
*/
|
|
1321
|
-
export const SendTestNotificationResponse = new SendTestNotificationResponse$Type();
|
|
1322
1263
|
/**
|
|
1323
1264
|
* @generated ServiceType for protobuf service sid.v1.admin.NotificationTemplateService
|
|
1324
1265
|
*/
|
|
@@ -1328,5 +1269,5 @@ export const NotificationTemplateService = new ServiceType("sid.v1.admin.Notific
|
|
|
1328
1269
|
{ name: "UpdateTemplate", options: { "google.api.http": { patch: "/v1/admin/notification-templates/{template_id}", body: "*" } }, I: UpdateTemplateRequest, O: NotificationTemplate },
|
|
1329
1270
|
{ name: "ResetTemplate", options: { "google.api.http": { post: "/v1/admin/notification-templates/{template_id}/reset", body: "*" } }, I: ResetTemplateRequest, O: NotificationTemplate },
|
|
1330
1271
|
{ name: "PreviewTemplate", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/admin/notification-templates/{template_id}/preview", body: "*" } }, I: PreviewTemplateRequest, O: PreviewTemplateResponse },
|
|
1331
|
-
{ name: "SendTestNotification", options: { "google.api.http": { post: "/v1/admin/notification-templates/{template_id}/test", body: "*" } }, I: SendTestNotificationRequest, O:
|
|
1272
|
+
{ name: "SendTestNotification", options: { "google.api.http": { post: "/v1/admin/notification-templates/{template_id}/test", body: "*" } }, I: SendTestNotificationRequest, O: Empty }
|
|
1332
1273
|
]);
|
|
@@ -56,7 +56,8 @@ export interface FeatureFlag {
|
|
|
56
56
|
*/
|
|
57
57
|
changedAt?: Timestamp;
|
|
58
58
|
/**
|
|
59
|
-
* Whether
|
|
59
|
+
* Whether the flag ships with the server rather than being defined by an
|
|
60
|
+
* administrator.
|
|
60
61
|
*
|
|
61
62
|
* @generated from protobuf field: bool built_in = 9
|
|
62
63
|
*/
|
|
@@ -230,10 +231,6 @@ export interface InstanceInfo {
|
|
|
230
231
|
* @generated from protobuf field: string build_date = 3
|
|
231
232
|
*/
|
|
232
233
|
buildDate: string;
|
|
233
|
-
/**
|
|
234
|
-
* @generated from protobuf field: sid.v1.admin.InstanceTier tier = 4
|
|
235
|
-
*/
|
|
236
|
-
tier: InstanceTier;
|
|
237
234
|
/**
|
|
238
235
|
* @generated from protobuf field: string instance_id = 5
|
|
239
236
|
*/
|
|
@@ -262,6 +259,15 @@ export interface InstanceInfo {
|
|
|
262
259
|
* @generated from protobuf field: uint32 healthy_nodes = 11
|
|
263
260
|
*/
|
|
264
261
|
healthyNodes: number;
|
|
262
|
+
/**
|
|
263
|
+
* Name of the server build serving this instance, set by the server itself
|
|
264
|
+
* (`community` for this repository's server). Shown to administrators;
|
|
265
|
+
* clients do not branch on it: an unavailable feature answers
|
|
266
|
+
* FEATURE_NOT_AVAILABLE.
|
|
267
|
+
*
|
|
268
|
+
* @generated from protobuf field: string edition = 12
|
|
269
|
+
*/
|
|
270
|
+
edition: string;
|
|
265
271
|
}
|
|
266
272
|
// ── Notification Channel Messages ──
|
|
267
273
|
|
|
@@ -741,27 +747,6 @@ export enum SmsHttpMethod {
|
|
|
741
747
|
*/
|
|
742
748
|
GET = 2
|
|
743
749
|
}
|
|
744
|
-
/**
|
|
745
|
-
* @generated from protobuf enum sid.v1.admin.InstanceTier
|
|
746
|
-
*/
|
|
747
|
-
export enum InstanceTier {
|
|
748
|
-
/**
|
|
749
|
-
* @generated from protobuf enum value: INSTANCE_TIER_UNSPECIFIED = 0;
|
|
750
|
-
*/
|
|
751
|
-
UNSPECIFIED = 0,
|
|
752
|
-
/**
|
|
753
|
-
* @generated from protobuf enum value: INSTANCE_TIER_CE = 1;
|
|
754
|
-
*/
|
|
755
|
-
CE = 1,
|
|
756
|
-
/**
|
|
757
|
-
* @generated from protobuf enum value: INSTANCE_TIER_EE = 2;
|
|
758
|
-
*/
|
|
759
|
-
EE = 2,
|
|
760
|
-
/**
|
|
761
|
-
* @generated from protobuf enum value: INSTANCE_TIER_SAAS = 3;
|
|
762
|
-
*/
|
|
763
|
-
SAAS = 3
|
|
764
|
-
}
|
|
765
750
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
766
751
|
class FeatureFlag$Type extends MessageType<FeatureFlag> {
|
|
767
752
|
constructor() {
|
|
@@ -1458,14 +1443,14 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1458
1443
|
{ no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1459
1444
|
{ no: 2, name: "build_commit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1460
1445
|
{ no: 3, name: "build_date", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1461
|
-
{ no: 4, name: "tier", kind: "enum", T: () => ["sid.v1.admin.InstanceTier", InstanceTier, "INSTANCE_TIER_"] },
|
|
1462
1446
|
{ no: 5, name: "instance_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1463
1447
|
{ no: 6, name: "uptime", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1464
1448
|
{ no: 7, name: "rust_version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1465
1449
|
{ no: 8, name: "compiled_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1466
1450
|
{ no: 9, name: "os", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1467
1451
|
{ no: 10, name: "node_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1468
|
-
{ no: 11, name: "healthy_nodes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1452
|
+
{ no: 11, name: "healthy_nodes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1453
|
+
{ no: 12, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1469
1454
|
]);
|
|
1470
1455
|
}
|
|
1471
1456
|
create(value?: PartialMessage<InstanceInfo>): InstanceInfo {
|
|
@@ -1473,7 +1458,6 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1473
1458
|
message.version = "";
|
|
1474
1459
|
message.buildCommit = "";
|
|
1475
1460
|
message.buildDate = "";
|
|
1476
|
-
message.tier = 0;
|
|
1477
1461
|
message.instanceId = "";
|
|
1478
1462
|
message.uptime = "";
|
|
1479
1463
|
message.rustVersion = "";
|
|
@@ -1481,6 +1465,7 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1481
1465
|
message.os = "";
|
|
1482
1466
|
message.nodeCount = 0;
|
|
1483
1467
|
message.healthyNodes = 0;
|
|
1468
|
+
message.edition = "";
|
|
1484
1469
|
if (value !== undefined)
|
|
1485
1470
|
reflectionMergePartial<InstanceInfo>(this, message, value);
|
|
1486
1471
|
return message;
|
|
@@ -1499,9 +1484,6 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1499
1484
|
case /* string build_date */ 3:
|
|
1500
1485
|
message.buildDate = reader.string();
|
|
1501
1486
|
break;
|
|
1502
|
-
case /* sid.v1.admin.InstanceTier tier */ 4:
|
|
1503
|
-
message.tier = reader.int32();
|
|
1504
|
-
break;
|
|
1505
1487
|
case /* string instance_id */ 5:
|
|
1506
1488
|
message.instanceId = reader.string();
|
|
1507
1489
|
break;
|
|
@@ -1523,6 +1505,9 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1523
1505
|
case /* uint32 healthy_nodes */ 11:
|
|
1524
1506
|
message.healthyNodes = reader.uint32();
|
|
1525
1507
|
break;
|
|
1508
|
+
case /* string edition */ 12:
|
|
1509
|
+
message.edition = reader.string();
|
|
1510
|
+
break;
|
|
1526
1511
|
default:
|
|
1527
1512
|
let u = options.readUnknownField;
|
|
1528
1513
|
if (u === "throw")
|
|
@@ -1544,9 +1529,6 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1544
1529
|
/* string build_date = 3; */
|
|
1545
1530
|
if (message.buildDate !== "")
|
|
1546
1531
|
writer.tag(3, WireType.LengthDelimited).string(message.buildDate);
|
|
1547
|
-
/* sid.v1.admin.InstanceTier tier = 4; */
|
|
1548
|
-
if (message.tier !== 0)
|
|
1549
|
-
writer.tag(4, WireType.Varint).int32(message.tier);
|
|
1550
1532
|
/* string instance_id = 5; */
|
|
1551
1533
|
if (message.instanceId !== "")
|
|
1552
1534
|
writer.tag(5, WireType.LengthDelimited).string(message.instanceId);
|
|
@@ -1568,6 +1550,9 @@ class InstanceInfo$Type extends MessageType<InstanceInfo> {
|
|
|
1568
1550
|
/* uint32 healthy_nodes = 11; */
|
|
1569
1551
|
if (message.healthyNodes !== 0)
|
|
1570
1552
|
writer.tag(11, WireType.Varint).uint32(message.healthyNodes);
|
|
1553
|
+
/* string edition = 12; */
|
|
1554
|
+
if (message.edition !== "")
|
|
1555
|
+
writer.tag(12, WireType.LengthDelimited).string(message.edition);
|
|
1571
1556
|
let u = options.writeUnknownFields;
|
|
1572
1557
|
if (u !== false)
|
|
1573
1558
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -15,7 +15,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ISiteServiceClient {
|
|
17
17
|
/**
|
|
18
|
-
* Get site summary info
|
|
18
|
+
* Get site summary info.
|
|
19
19
|
*
|
|
20
20
|
* @generated from protobuf rpc: GetSiteInfo
|
|
21
21
|
*/
|
|
@@ -37,7 +37,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|
|
37
37
|
constructor(private readonly _transport: RpcTransport) {
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Get site summary info
|
|
40
|
+
* Get site summary info.
|
|
41
41
|
*
|
|
42
42
|
* @generated from protobuf rpc: GetSiteInfo
|
|
43
43
|
*/
|
|
@@ -30,10 +30,6 @@ export interface SiteInfo {
|
|
|
30
30
|
* @generated from protobuf field: string version = 2
|
|
31
31
|
*/
|
|
32
32
|
version: string;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: sid.v1.admin.EditionType edition = 3
|
|
35
|
-
*/
|
|
36
|
-
edition: EditionType;
|
|
37
33
|
/**
|
|
38
34
|
* @generated from protobuf field: string primary_domain = 4
|
|
39
35
|
*/
|
|
@@ -48,6 +44,12 @@ export interface SiteInfo {
|
|
|
48
44
|
* @generated from protobuf field: sid.v1.admin.SiteStats stats = 6
|
|
49
45
|
*/
|
|
50
46
|
stats?: SiteStats;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the server build serving the site (InstanceInfo.edition).
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: string edition = 7
|
|
51
|
+
*/
|
|
52
|
+
edition: string;
|
|
51
53
|
}
|
|
52
54
|
/**
|
|
53
55
|
* @generated from protobuf message sid.v1.admin.SiteStats
|
|
@@ -79,25 +81,6 @@ export interface UpdateSiteNameRequest {
|
|
|
79
81
|
*/
|
|
80
82
|
siteName: string;
|
|
81
83
|
}
|
|
82
|
-
// ── Enums ──
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf enum sid.v1.admin.EditionType
|
|
86
|
-
*/
|
|
87
|
-
export enum EditionType {
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf enum value: EDITION_TYPE_UNSPECIFIED = 0;
|
|
90
|
-
*/
|
|
91
|
-
UNSPECIFIED = 0,
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf enum value: EDITION_TYPE_CE = 1;
|
|
94
|
-
*/
|
|
95
|
-
CE = 1,
|
|
96
|
-
/**
|
|
97
|
-
* @generated from protobuf enum value: EDITION_TYPE_EE = 2;
|
|
98
|
-
*/
|
|
99
|
-
EE = 2
|
|
100
|
-
}
|
|
101
84
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
102
85
|
class GetSiteInfoRequest$Type extends MessageType<GetSiteInfoRequest> {
|
|
103
86
|
constructor() {
|
|
@@ -142,19 +125,19 @@ class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
|
142
125
|
super("sid.v1.admin.SiteInfo", [
|
|
143
126
|
{ no: 1, name: "site_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
144
127
|
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
145
|
-
{ no: 3, name: "edition", kind: "enum", T: () => ["sid.v1.admin.EditionType", EditionType, "EDITION_TYPE_"] },
|
|
146
128
|
{ no: 4, name: "primary_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
147
129
|
{ no: 5, name: "admin_contact", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
148
|
-
{ no: 6, name: "stats", kind: "message", T: () => SiteStats }
|
|
130
|
+
{ no: 6, name: "stats", kind: "message", T: () => SiteStats },
|
|
131
|
+
{ no: 7, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
149
132
|
]);
|
|
150
133
|
}
|
|
151
134
|
create(value?: PartialMessage<SiteInfo>): SiteInfo {
|
|
152
135
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
153
136
|
message.siteName = "";
|
|
154
137
|
message.version = "";
|
|
155
|
-
message.edition = 0;
|
|
156
138
|
message.primaryDomain = "";
|
|
157
139
|
message.adminContact = "";
|
|
140
|
+
message.edition = "";
|
|
158
141
|
if (value !== undefined)
|
|
159
142
|
reflectionMergePartial<SiteInfo>(this, message, value);
|
|
160
143
|
return message;
|
|
@@ -170,9 +153,6 @@ class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
|
170
153
|
case /* string version */ 2:
|
|
171
154
|
message.version = reader.string();
|
|
172
155
|
break;
|
|
173
|
-
case /* sid.v1.admin.EditionType edition */ 3:
|
|
174
|
-
message.edition = reader.int32();
|
|
175
|
-
break;
|
|
176
156
|
case /* string primary_domain */ 4:
|
|
177
157
|
message.primaryDomain = reader.string();
|
|
178
158
|
break;
|
|
@@ -182,6 +162,9 @@ class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
|
182
162
|
case /* sid.v1.admin.SiteStats stats */ 6:
|
|
183
163
|
message.stats = SiteStats.internalBinaryRead(reader, reader.uint32(), options, message.stats);
|
|
184
164
|
break;
|
|
165
|
+
case /* string edition */ 7:
|
|
166
|
+
message.edition = reader.string();
|
|
167
|
+
break;
|
|
185
168
|
default:
|
|
186
169
|
let u = options.readUnknownField;
|
|
187
170
|
if (u === "throw")
|
|
@@ -200,9 +183,6 @@ class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
|
200
183
|
/* string version = 2; */
|
|
201
184
|
if (message.version !== "")
|
|
202
185
|
writer.tag(2, WireType.LengthDelimited).string(message.version);
|
|
203
|
-
/* sid.v1.admin.EditionType edition = 3; */
|
|
204
|
-
if (message.edition !== 0)
|
|
205
|
-
writer.tag(3, WireType.Varint).int32(message.edition);
|
|
206
186
|
/* string primary_domain = 4; */
|
|
207
187
|
if (message.primaryDomain !== "")
|
|
208
188
|
writer.tag(4, WireType.LengthDelimited).string(message.primaryDomain);
|
|
@@ -212,6 +192,9 @@ class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
|
212
192
|
/* sid.v1.admin.SiteStats stats = 6; */
|
|
213
193
|
if (message.stats)
|
|
214
194
|
SiteStats.internalBinaryWrite(message.stats, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
195
|
+
/* string edition = 7; */
|
|
196
|
+
if (message.edition !== "")
|
|
197
|
+
writer.tag(7, WireType.LengthDelimited).string(message.edition);
|
|
215
198
|
let u = options.writeUnknownFields;
|
|
216
199
|
if (u !== false)
|
|
217
200
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|