@structured-id/proto 0.22.0 → 0.23.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/CHANGELOG.md +7 -0
- package/dist/generated/sid/v1/authn/application_session.d.ts +9 -0
- package/dist/generated/sid/v1/authn/application_session.js +9 -1
- package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +11 -0
- package/dist/generated/sid/v1/authn/auth.js +9 -1
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/sign_in_entry.d.ts +23 -0
- package/dist/generated/sid/v1/authn/sign_in_entry.js +34 -0
- package/dist/generated/sid/v1/authn/sign_in_entry.js.map +1 -0
- package/dist/generated/sid/v1/ui/public_settings.d.ts +20 -0
- package/dist/generated/sid/v1/ui/public_settings.js +17 -1
- package/dist/generated/sid/v1/ui/public_settings.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The issuer's sign-in a user can choose for one authorization request.
|
|
3
|
+
* Its values are numbered consecutively: a value that is no longer a choice
|
|
4
|
+
* leaves no gap, since no released issuer or adapter reads the number of one.
|
|
5
|
+
*
|
|
6
|
+
* @generated from protobuf enum sid.v1.authn.SignInEntry
|
|
7
|
+
*/
|
|
8
|
+
export declare enum SignInEntry {
|
|
9
|
+
/**
|
|
10
|
+
* The issuer's ordinary sign-in for the client: its own ceremony, or the
|
|
11
|
+
* authority it trusts, as its installation decides.
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf enum value: SIGN_IN_ENTRY_UNSPECIFIED = 0;
|
|
14
|
+
*/
|
|
15
|
+
UNSPECIFIED = 0,
|
|
16
|
+
/**
|
|
17
|
+
* The sign-in through the authority the issuer trusts, for a user who
|
|
18
|
+
* holds an account there and no login the issuer assigned.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf enum value: SIGN_IN_ENTRY_AUTHORITY = 1;
|
|
21
|
+
*/
|
|
22
|
+
AUTHORITY = 1
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "sid/v1/authn/sign_in_entry.proto" (package "sid.v1.authn", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
//
|
|
6
|
+
// The issuer's sign-in a user can choose for one authorization request: what
|
|
7
|
+
// the authorization endpoint accepts and what an application's browser
|
|
8
|
+
// adapter passes on from its own sign-in start.
|
|
9
|
+
//
|
|
10
|
+
/**
|
|
11
|
+
* The issuer's sign-in a user can choose for one authorization request.
|
|
12
|
+
* Its values are numbered consecutively: a value that is no longer a choice
|
|
13
|
+
* leaves no gap, since no released issuer or adapter reads the number of one.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf enum sid.v1.authn.SignInEntry
|
|
16
|
+
*/
|
|
17
|
+
export var SignInEntry;
|
|
18
|
+
(function (SignInEntry) {
|
|
19
|
+
/**
|
|
20
|
+
* The issuer's ordinary sign-in for the client: its own ceremony, or the
|
|
21
|
+
* authority it trusts, as its installation decides.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf enum value: SIGN_IN_ENTRY_UNSPECIFIED = 0;
|
|
24
|
+
*/
|
|
25
|
+
SignInEntry[SignInEntry["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
26
|
+
/**
|
|
27
|
+
* The sign-in through the authority the issuer trusts, for a user who
|
|
28
|
+
* holds an account there and no login the issuer assigned.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf enum value: SIGN_IN_ENTRY_AUTHORITY = 1;
|
|
31
|
+
*/
|
|
32
|
+
SignInEntry[SignInEntry["AUTHORITY"] = 1] = "AUTHORITY";
|
|
33
|
+
})(SignInEntry || (SignInEntry = {}));
|
|
34
|
+
//# sourceMappingURL=sign_in_entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign_in_entry.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/sign_in_entry.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,2GAA2G;AAC3G,iBAAiB;AACjB,cAAc;AACd,EAAE;AACF,6EAA6E;AAC7E,uEAAuE;AACvE,gDAAgD;AAChD,EAAE;AACF;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACnB;;;;;OAKG;IACH,2DAAe,CAAA;IACf;;;;;OAKG;IACH,uDAAa,CAAA;AACjB,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/sign_in_entry.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// The issuer's sign-in a user can choose for one authorization request: what\n// the authorization endpoint accepts and what an application's browser\n// adapter passes on from its own sign-in start.\n//\n/**\n * The issuer's sign-in a user can choose for one authorization request.\n * Its values are numbered consecutively: a value that is no longer a choice\n * leaves no gap, since no released issuer or adapter reads the number of one.\n *\n * @generated from protobuf enum sid.v1.authn.SignInEntry\n */\nexport enum SignInEntry {\n /**\n * The issuer's ordinary sign-in for the client: its own ceremony, or the\n * authority it trusts, as its installation decides.\n *\n * @generated from protobuf enum value: SIGN_IN_ENTRY_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * The sign-in through the authority the issuer trusts, for a user who\n * holds an account there and no login the issuer assigned.\n *\n * @generated from protobuf enum value: SIGN_IN_ENTRY_AUTHORITY = 1;\n */\n AUTHORITY = 1\n}\n"]}
|
|
@@ -52,6 +52,26 @@ export interface PublicUiSettings {
|
|
|
52
52
|
* @generated from protobuf field: bool registration_open = 5
|
|
53
53
|
*/
|
|
54
54
|
registrationOpen: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The local sign-in methods this installation offers before an identifier
|
|
57
|
+
* is typed, in the vocabulary of ResolvePrincipalResponse.available_methods:
|
|
58
|
+
* "opaque" (the password form) and "webauthn" (a passkey used without
|
|
59
|
+
* naming an account first). Empty: the installation signs nobody in locally
|
|
60
|
+
* and the page shows no local form. An installation choice, the same for
|
|
61
|
+
* every visitor: whether one account holds a password or a passkey changes
|
|
62
|
+
* nothing here, and each ceremony still decides at its own step.
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf field: repeated string sign_in_methods = 6
|
|
65
|
+
*/
|
|
66
|
+
signInMethods: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Whether this installation serves self-service password reset now. False
|
|
69
|
+
* shows no reset link; it never refuses a reset already started, which the
|
|
70
|
+
* server decides at its own step.
|
|
71
|
+
*
|
|
72
|
+
* @generated from protobuf field: bool password_reset_open = 7
|
|
73
|
+
*/
|
|
74
|
+
passwordResetOpen: boolean;
|
|
55
75
|
}
|
|
56
76
|
declare class PublicUiSettings$Type extends MessageType<PublicUiSettings> {
|
|
57
77
|
constructor();
|
|
@@ -17,7 +17,9 @@ class PublicUiSettings$Type extends MessageType {
|
|
|
17
17
|
{ no: 2, name: "registration_principal_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.identity.PrincipalType", PrincipalType, "PRINCIPAL_TYPE_"] },
|
|
18
18
|
{ no: 3, name: "registration_username_min_length", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
19
19
|
{ no: 4, name: "sign_in_principal_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.identity.PrincipalType", PrincipalType, "PRINCIPAL_TYPE_"] },
|
|
20
|
-
{ no: 5, name: "registration_open", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
20
|
+
{ no: 5, name: "registration_open", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
21
|
+
{ no: 6, name: "sign_in_methods", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
22
|
+
{ no: 7, name: "password_reset_open", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
21
23
|
]);
|
|
22
24
|
}
|
|
23
25
|
create(value) {
|
|
@@ -27,6 +29,8 @@ class PublicUiSettings$Type extends MessageType {
|
|
|
27
29
|
message.registrationUsernameMinLength = 0;
|
|
28
30
|
message.signInPrincipalTypes = [];
|
|
29
31
|
message.registrationOpen = false;
|
|
32
|
+
message.signInMethods = [];
|
|
33
|
+
message.passwordResetOpen = false;
|
|
30
34
|
if (value !== undefined)
|
|
31
35
|
reflectionMergePartial(this, message, value);
|
|
32
36
|
return message;
|
|
@@ -59,6 +63,12 @@ class PublicUiSettings$Type extends MessageType {
|
|
|
59
63
|
case /* bool registration_open */ 5:
|
|
60
64
|
message.registrationOpen = reader.bool();
|
|
61
65
|
break;
|
|
66
|
+
case /* repeated string sign_in_methods */ 6:
|
|
67
|
+
message.signInMethods.push(reader.string());
|
|
68
|
+
break;
|
|
69
|
+
case /* bool password_reset_open */ 7:
|
|
70
|
+
message.passwordResetOpen = reader.bool();
|
|
71
|
+
break;
|
|
62
72
|
default:
|
|
63
73
|
let u = options.readUnknownField;
|
|
64
74
|
if (u === "throw")
|
|
@@ -94,6 +104,12 @@ class PublicUiSettings$Type extends MessageType {
|
|
|
94
104
|
/* bool registration_open = 5; */
|
|
95
105
|
if (message.registrationOpen !== false)
|
|
96
106
|
writer.tag(5, WireType.Varint).bool(message.registrationOpen);
|
|
107
|
+
/* repeated string sign_in_methods = 6; */
|
|
108
|
+
for (let i = 0; i < message.signInMethods.length; i++)
|
|
109
|
+
writer.tag(6, WireType.LengthDelimited).string(message.signInMethods[i]);
|
|
110
|
+
/* bool password_reset_open = 7; */
|
|
111
|
+
if (message.passwordResetOpen !== false)
|
|
112
|
+
writer.tag(7, WireType.Varint).bool(message.passwordResetOpen);
|
|
97
113
|
let u = options.writeUnknownFields;
|
|
98
114
|
if (u !== false)
|
|
99
115
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_settings.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ui/public_settings.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,uGAAuG;AACvG,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAKvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAgDxD,2FAA2F;AAC3F,MAAM,qBAAsB,SAAQ,WAA6B;IAC7D;QACI,KAAK,CAAC,4BAA4B,EAAE;YAChC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE,CAAC,EAAE,CAAC,CAAC,mBAAmB,EAAE;YACjG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,qBAAqB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,+BAA+B,EAAE,aAAa,EAAE,iBAAiB,CAAC,EAAE;YAC5K,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,kCAAkC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,qBAAqB,EAAE;YAChG,EAAE,EAAE,EAAE,CAAC,EAAE,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AAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,uDAAuD,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE;CAClO,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/ui/public_settings.proto\" (package \"sid.v1.ui\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { Empty } from \"../../../google/protobuf/empty.js\";\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { PrincipalType } from \"../identity/identity.js\";\n/**\n * The public projection of the installation's UI settings.\n *\n * @generated from protobuf message sid.v1.ui.PublicUiSettings\n */\nexport interface PublicUiSettings {\n /**\n * Grows with every committed change of the projected settings. A reader\n * ignores a message whose revision is not greater than the one it holds.\n *\n * @generated from protobuf field: uint64 revision = 1\n */\n revision: bigint;\n /**\n * The principal types a self-registration may use, in the order the UI\n * names them. Empty: this installation offers no self-registration.\n *\n * @generated from protobuf field: repeated sid.v1.identity.PrincipalType registration_principal_types = 2\n */\n registrationPrincipalTypes: PrincipalType[];\n /**\n * The fewest characters (code points of the display spelling's NFC form) an\n * ordinary registration admits for a username. Set when\n * registration_principal_types holds PRINCIPAL_TYPE_USERNAME, 0 otherwise.\n * It is not the sign-in minimum: an assigned shorter name still signs in.\n *\n * @generated from protobuf field: uint32 registration_username_min_length = 3\n */\n registrationUsernameMinLength: number;\n /**\n * The principal types an existing holder signs in and recovers with.\n * Separate from registration: closing a type to registration leaves it\n * here while its holders still sign in with it.\n *\n * @generated from protobuf field: repeated sid.v1.identity.PrincipalType sign_in_principal_types = 4\n */\n signInPrincipalTypes: PrincipalType[];\n /**\n * Whether a self-registration may start now, computed by the server from\n * its stored switch and current restrictions. False shows the page closed\n * before anything is typed; it never grants anything, and the server still\n * decides each registration. A claim's continuation is not governed by it.\n *\n * @generated from protobuf field: bool registration_open = 5\n */\n registrationOpen: boolean;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass PublicUiSettings$Type extends MessageType<PublicUiSettings> {\n constructor() {\n super(\"sid.v1.ui.PublicUiSettings\", [\n { no: 1, name: \"revision\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"registration_principal_types\", kind: \"enum\", repeat: 1 /*RepeatType.PACKED*/, T: () => [\"sid.v1.identity.PrincipalType\", PrincipalType, \"PRINCIPAL_TYPE_\"] },\n { no: 3, name: \"registration_username_min_length\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ },\n { no: 4, name: \"sign_in_principal_types\", kind: \"enum\", repeat: 1 /*RepeatType.PACKED*/, T: () => [\"sid.v1.identity.PrincipalType\", PrincipalType, \"PRINCIPAL_TYPE_\"] },\n { no: 5, name: \"registration_open\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<PublicUiSettings>): PublicUiSettings {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.revision = 0n;\n message.registrationPrincipalTypes = [];\n message.registrationUsernameMinLength = 0;\n message.signInPrincipalTypes = [];\n message.registrationOpen = false;\n if (value !== undefined)\n reflectionMergePartial<PublicUiSettings>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PublicUiSettings): PublicUiSettings {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 revision */ 1:\n message.revision = reader.uint64().toBigInt();\n break;\n case /* repeated sid.v1.identity.PrincipalType registration_principal_types */ 2:\n if (wireType === WireType.LengthDelimited)\n for (let e = reader.int32() + reader.pos; reader.pos < e;)\n message.registrationPrincipalTypes.push(reader.int32());\n else\n message.registrationPrincipalTypes.push(reader.int32());\n break;\n case /* uint32 registration_username_min_length */ 3:\n message.registrationUsernameMinLength = reader.uint32();\n break;\n case /* repeated sid.v1.identity.PrincipalType sign_in_principal_types */ 4:\n if (wireType === WireType.LengthDelimited)\n for (let e = reader.int32() + reader.pos; reader.pos < e;)\n message.signInPrincipalTypes.push(reader.int32());\n else\n message.signInPrincipalTypes.push(reader.int32());\n break;\n case /* bool registration_open */ 5:\n message.registrationOpen = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PublicUiSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 revision = 1; */\n if (message.revision !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.revision);\n /* repeated sid.v1.identity.PrincipalType registration_principal_types = 2; */\n if (message.registrationPrincipalTypes.length) {\n writer.tag(2, WireType.LengthDelimited).fork();\n for (let i = 0; i < message.registrationPrincipalTypes.length; i++)\n writer.int32(message.registrationPrincipalTypes[i]);\n writer.join();\n }\n /* uint32 registration_username_min_length = 3; */\n if (message.registrationUsernameMinLength !== 0)\n writer.tag(3, WireType.Varint).uint32(message.registrationUsernameMinLength);\n /* repeated sid.v1.identity.PrincipalType sign_in_principal_types = 4; */\n if (message.signInPrincipalTypes.length) {\n writer.tag(4, WireType.LengthDelimited).fork();\n for (let i = 0; i < message.signInPrincipalTypes.length; i++)\n writer.int32(message.signInPrincipalTypes[i]);\n writer.join();\n }\n /* bool registration_open = 5; */\n if (message.registrationOpen !== false)\n writer.tag(5, WireType.Varint).bool(message.registrationOpen);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.ui.PublicUiSettings\n */\nexport const PublicUiSettings = new PublicUiSettings$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.ui.PublicUiSettingsService\n */\nexport const PublicUiSettingsService = new ServiceType(\"sid.v1.ui.PublicUiSettingsService\", [\n { name: \"GetPublicUiSettings\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/ui/settings\" }, \"sid.v1.common.access\": { open: \"public settings the pages read before anyone signs in\" } }, I: Empty, O: PublicUiSettings },\n { name: \"WatchPublicUiSettings\", idempotency: \"NO_SIDE_EFFECTS\", serverStreaming: true, options: { \"sid.v1.common.access\": { open: \"public settings the pages read before anyone signs in\" } }, I: Empty, O: PublicUiSettings }\n]);\n"]}
|
|
1
|
+
{"version":3,"file":"public_settings.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ui/public_settings.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,uGAAuG;AACvG,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAKvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACn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C;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,qBAAqB,EAAE,CAAC;AAC5D;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,WAAW,CAAC,mCAAmC,EAAE;IACxF,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,uDAAuD,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE;IACrP,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,uDAAuD,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE;CAClO,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/ui/public_settings.proto\" (package \"sid.v1.ui\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { Empty } from \"../../../google/protobuf/empty.js\";\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { PrincipalType } from \"../identity/identity.js\";\n/**\n * The public projection of the installation's UI settings.\n *\n * @generated from protobuf message sid.v1.ui.PublicUiSettings\n */\nexport interface PublicUiSettings {\n /**\n * Grows with every committed change of the projected settings. A reader\n * ignores a message whose revision is not greater than the one it holds.\n *\n * @generated from protobuf field: uint64 revision = 1\n */\n revision: bigint;\n /**\n * The principal types a self-registration may use, in the order the UI\n * names them. Empty: this installation offers no self-registration.\n *\n * @generated from protobuf field: repeated sid.v1.identity.PrincipalType registration_principal_types = 2\n */\n registrationPrincipalTypes: PrincipalType[];\n /**\n * The fewest characters (code points of the display spelling's NFC form) an\n * ordinary registration admits for a username. Set when\n * registration_principal_types holds PRINCIPAL_TYPE_USERNAME, 0 otherwise.\n * It is not the sign-in minimum: an assigned shorter name still signs in.\n *\n * @generated from protobuf field: uint32 registration_username_min_length = 3\n */\n registrationUsernameMinLength: number;\n /**\n * The principal types an existing holder signs in and recovers with.\n * Separate from registration: closing a type to registration leaves it\n * here while its holders still sign in with it.\n *\n * @generated from protobuf field: repeated sid.v1.identity.PrincipalType sign_in_principal_types = 4\n */\n signInPrincipalTypes: PrincipalType[];\n /**\n * Whether a self-registration may start now, computed by the server from\n * its stored switch and current restrictions. False shows the page closed\n * before anything is typed; it never grants anything, and the server still\n * decides each registration. A claim's continuation is not governed by it.\n *\n * @generated from protobuf field: bool registration_open = 5\n */\n registrationOpen: boolean;\n /**\n * The local sign-in methods this installation offers before an identifier\n * is typed, in the vocabulary of ResolvePrincipalResponse.available_methods:\n * \"opaque\" (the password form) and \"webauthn\" (a passkey used without\n * naming an account first). Empty: the installation signs nobody in locally\n * and the page shows no local form. An installation choice, the same for\n * every visitor: whether one account holds a password or a passkey changes\n * nothing here, and each ceremony still decides at its own step.\n *\n * @generated from protobuf field: repeated string sign_in_methods = 6\n */\n signInMethods: string[];\n /**\n * Whether this installation serves self-service password reset now. False\n * shows no reset link; it never refuses a reset already started, which the\n * server decides at its own step.\n *\n * @generated from protobuf field: bool password_reset_open = 7\n */\n passwordResetOpen: boolean;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass PublicUiSettings$Type extends MessageType<PublicUiSettings> {\n constructor() {\n super(\"sid.v1.ui.PublicUiSettings\", [\n { no: 1, name: \"revision\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"registration_principal_types\", kind: \"enum\", repeat: 1 /*RepeatType.PACKED*/, T: () => [\"sid.v1.identity.PrincipalType\", PrincipalType, \"PRINCIPAL_TYPE_\"] },\n { no: 3, name: \"registration_username_min_length\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ },\n { no: 4, name: \"sign_in_principal_types\", kind: \"enum\", repeat: 1 /*RepeatType.PACKED*/, T: () => [\"sid.v1.identity.PrincipalType\", PrincipalType, \"PRINCIPAL_TYPE_\"] },\n { no: 5, name: \"registration_open\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 6, name: \"sign_in_methods\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },\n { no: 7, name: \"password_reset_open\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<PublicUiSettings>): PublicUiSettings {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.revision = 0n;\n message.registrationPrincipalTypes = [];\n message.registrationUsernameMinLength = 0;\n message.signInPrincipalTypes = [];\n message.registrationOpen = false;\n message.signInMethods = [];\n message.passwordResetOpen = false;\n if (value !== undefined)\n reflectionMergePartial<PublicUiSettings>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PublicUiSettings): PublicUiSettings {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 revision */ 1:\n message.revision = reader.uint64().toBigInt();\n break;\n case /* repeated sid.v1.identity.PrincipalType registration_principal_types */ 2:\n if (wireType === WireType.LengthDelimited)\n for (let e = reader.int32() + reader.pos; reader.pos < e;)\n message.registrationPrincipalTypes.push(reader.int32());\n else\n message.registrationPrincipalTypes.push(reader.int32());\n break;\n case /* uint32 registration_username_min_length */ 3:\n message.registrationUsernameMinLength = reader.uint32();\n break;\n case /* repeated sid.v1.identity.PrincipalType sign_in_principal_types */ 4:\n if (wireType === WireType.LengthDelimited)\n for (let e = reader.int32() + reader.pos; reader.pos < e;)\n message.signInPrincipalTypes.push(reader.int32());\n else\n message.signInPrincipalTypes.push(reader.int32());\n break;\n case /* bool registration_open */ 5:\n message.registrationOpen = reader.bool();\n break;\n case /* repeated string sign_in_methods */ 6:\n message.signInMethods.push(reader.string());\n break;\n case /* bool password_reset_open */ 7:\n message.passwordResetOpen = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PublicUiSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 revision = 1; */\n if (message.revision !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.revision);\n /* repeated sid.v1.identity.PrincipalType registration_principal_types = 2; */\n if (message.registrationPrincipalTypes.length) {\n writer.tag(2, WireType.LengthDelimited).fork();\n for (let i = 0; i < message.registrationPrincipalTypes.length; i++)\n writer.int32(message.registrationPrincipalTypes[i]);\n writer.join();\n }\n /* uint32 registration_username_min_length = 3; */\n if (message.registrationUsernameMinLength !== 0)\n writer.tag(3, WireType.Varint).uint32(message.registrationUsernameMinLength);\n /* repeated sid.v1.identity.PrincipalType sign_in_principal_types = 4; */\n if (message.signInPrincipalTypes.length) {\n writer.tag(4, WireType.LengthDelimited).fork();\n for (let i = 0; i < message.signInPrincipalTypes.length; i++)\n writer.int32(message.signInPrincipalTypes[i]);\n writer.join();\n }\n /* bool registration_open = 5; */\n if (message.registrationOpen !== false)\n writer.tag(5, WireType.Varint).bool(message.registrationOpen);\n /* repeated string sign_in_methods = 6; */\n for (let i = 0; i < message.signInMethods.length; i++)\n writer.tag(6, WireType.LengthDelimited).string(message.signInMethods[i]);\n /* bool password_reset_open = 7; */\n if (message.passwordResetOpen !== false)\n writer.tag(7, WireType.Varint).bool(message.passwordResetOpen);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.ui.PublicUiSettings\n */\nexport const PublicUiSettings = new PublicUiSettings$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.ui.PublicUiSettingsService\n */\nexport const PublicUiSettingsService = new ServiceType(\"sid.v1.ui.PublicUiSettingsService\", [\n { name: \"GetPublicUiSettings\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/ui/settings\" }, \"sid.v1.common.access\": { open: \"public settings the pages read before anyone signs in\" } }, I: Empty, O: PublicUiSettings },\n { name: \"WatchPublicUiSettings\", idempotency: \"NO_SIDE_EFFECTS\", serverStreaming: true, options: { \"sid.v1.common.access\": { open: \"public settings the pages read before anyone signs in\" } }, I: Empty, O: PublicUiSettings }\n]);\n"]}
|