@structured-id/proto 0.1.0 → 0.2.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 +15 -0
- package/README.md +72 -4
- package/dist/generated/sid/v1/authn/auth.client.d.ts +46 -3
- package/dist/generated/sid/v1/authn/auth.client.js +73 -49
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +42 -27
- package/dist/generated/sid/v1/authn/auth.js +39 -50
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.client.d.ts +68 -0
- package/dist/generated/sid/v1/authn/password_history.client.js +36 -0
- package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +254 -0
- package/dist/generated/sid/v1/authn/password_history.js +348 -2
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +118 -0
- package/dist/generated/sid/v1/identity/identity.js +143 -1
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/transport/adaptive.d.ts +4 -1
- package/dist/transport/adaptive.js +40 -21
- package/dist/transport/adaptive.js.map +1 -1
- package/dist/transport/framing.js +2 -1
- package/dist/transport/framing.js.map +1 -1
- package/dist/transport/transport-failure.d.ts +7 -0
- package/dist/transport/transport-failure.js +17 -0
- package/dist/transport/transport-failure.js.map +1 -0
- package/dist/transport/webtransport.d.ts +4 -0
- package/dist/transport/webtransport.js +100 -28
- package/dist/transport/webtransport.js.map +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password_history.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/password_history.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,8GAA8G;AAC9G,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,8BAA8B,EAAE,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,WAAW,CAAC,8CAA8C,EAAE;IAC3G,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,8BAA8B,EAAE,CAAC,EAAE,+BAA+B,EAAE;CACnO,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/authn/password_history.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } 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 type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { PasswordOperationId } from \"../ids/ids.js\";\n/**\n * What a client needs to build its history request and proof for one\n * password operation. Returned by the step that prepares the operation\n * (registration start, password-change challenge, password-reset verification).\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryContext\n */\nexport interface PasswordHistoryContext {\n /**\n * The operation this context belongs to. Every later step of the operation\n * (evaluation, OPAQUE start, finish) and every retry carries it. Issued by\n * the server when it prepares the operation.\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The owner's history input domain: 32 bytes, a Pallas base-field element in\n * little-endian canonical form. The client hashes the password under it into\n * the history input it blinds. Server-derived from the credential owner;\n * opaque to the client and unlinkable across installations and owners.\n *\n * @generated from protobuf field: bytes owner_domain = 2\n */\n ownerDomain: Uint8Array;\n /**\n * The comparison domains the operation must produce a tag for, in the order\n * the evaluations and the proof's tags follow. Server-selected from the\n * owner's retained history; at least one. The client cannot omit or reorder\n * one: the proof commits to this list.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryDomain domains = 3\n */\n domains: PasswordHistoryDomain[];\n /**\n * Password policy version the registration proof must be made for; the\n * verifying key of that version and domain count checks it.\n *\n * @generated from protobuf field: uint32 policy_version = 4\n */\n policyVersion: number;\n}\n/**\n * One comparison domain: the epoch, key and format under which a tag is\n * compared with the entries retained in it.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryDomain\n */\nexport interface PasswordHistoryDomain {\n /**\n * The domain element: 32 bytes, a Pallas base-field element in little-endian\n * canonical form. Enters the tag derivation, so tags of different domains\n * never compare equal.\n *\n * @generated from protobuf field: bytes comparison_domain = 1\n */\n comparisonDomain: Uint8Array;\n /**\n * The evaluator's public key for this domain, k·G: a compressed Pallas point,\n * 32 bytes. The client checks each evaluation proof against it before\n * proving, so a wrong or missing key fails before the costly proof.\n *\n * @generated from protobuf field: bytes evaluator_public_key = 2\n */\n evaluatorPublicKey: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryRequest\n */\nexport interface EvaluatePasswordHistoryRequest {\n /**\n * The operation whose required domains are evaluated (from PasswordHistoryContext).\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The blinded history input B = r·H(u): a compressed Pallas point, 32 bytes,\n * not the identity. Client-computed from the password under the operation's\n * owner domain with a fresh nonzero blind r; reveals nothing about the password.\n *\n * @generated from protobuf field: bytes blinded_input = 2\n */\n blindedInput: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryResponse\n */\nexport interface EvaluatePasswordHistoryResponse {\n /**\n * One evaluation per required comparison domain, in the order of\n * PasswordHistoryContext.domains. Either all are present or the call fails.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1\n */\n evaluations: PasswordHistoryEvaluation[];\n}\n/**\n * The evaluator's answer for one comparison domain.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluation\n */\nexport interface PasswordHistoryEvaluation {\n /**\n * Z = k·B under this domain's key: a compressed Pallas point, 32 bytes.\n *\n * @generated from protobuf field: bytes evaluated_element = 1\n */\n evaluatedElement: Uint8Array;\n /**\n * Proof that Z uses the key behind this domain's evaluator_public_key\n * (Chaum-Pedersen DLEQ, RFC 9497 §2.2), bound to the operation.\n *\n * @generated from protobuf field: sid.v1.authn.PasswordHistoryEvaluationProof proof = 2\n */\n proof?: PasswordHistoryEvaluationProof;\n}\n/**\n * Chaum-Pedersen proof of log_G(pk) = log_B(Z). Each domain has its own key,\n * so each evaluation carries its own proof.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluationProof\n */\nexport interface PasswordHistoryEvaluationProof {\n /**\n * Challenge c: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes challenge = 1\n */\n challenge: Uint8Array;\n /**\n * Response s = nonce − c·k: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes response = 2\n */\n response: Uint8Array;\n}\n/**\n * A registration proof for the password being installed: its policy, breach\n * and history relation, and that the operation's OPAQUE registration element\n * is the blinded hash of that password. The operation ID and the registration\n * request bytes enter the proof transcript, so it verifies for no other\n * operation or request. Sent with the final registration record, where the\n * history checker verifies it and commits the credential. Absent when the\n * client cannot prove; the credential then installs policy-unverified and does\n * not advance trusted history.\n *\n * @generated from protobuf message sid.v1.authn.PasswordRegistrationProof\n */\nexport interface PasswordRegistrationProof {\n /**\n * Halo2 proof bytes. Client-generated with the OPAQUE registration request.\n *\n * @generated from protobuf field: bytes zkpp_proof = 1\n */\n zkppProof: Uint8Array;\n /**\n * The proof's public instances, 32 bytes each (Pallas base field,\n * little-endian): the OPAQUE registration element M = blind·H(P) (x, y), the\n * owner domain, the comparison domains, the blinded history input (x, y), and\n * per domain the evaluated element (x, y) and the tag. The server checks each\n * against the operation and its registration request; none is accepted from\n * the client on trust.\n *\n * @generated from protobuf field: repeated bytes instances = 2\n */\n instances: Uint8Array[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryContext$Type extends MessageType<PasswordHistoryContext> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryContext\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"owner_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"domains\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryDomain },\n { no: 4, name: \"policy_version\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryContext>): PasswordHistoryContext {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.ownerDomain = new Uint8Array(0);\n message.domains = [];\n message.policyVersion = 0;\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryContext>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryContext): PasswordHistoryContext {\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 /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes owner_domain */ 2:\n message.ownerDomain = reader.bytes();\n break;\n case /* repeated sid.v1.authn.PasswordHistoryDomain domains */ 3:\n message.domains.push(PasswordHistoryDomain.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* uint32 policy_version */ 4:\n message.policyVersion = reader.uint32();\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: PasswordHistoryContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes owner_domain = 2; */\n if (message.ownerDomain.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.ownerDomain);\n /* repeated sid.v1.authn.PasswordHistoryDomain domains = 3; */\n for (let i = 0; i < message.domains.length; i++)\n PasswordHistoryDomain.internalBinaryWrite(message.domains[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* uint32 policy_version = 4; */\n if (message.policyVersion !== 0)\n writer.tag(4, WireType.Varint).uint32(message.policyVersion);\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.authn.PasswordHistoryContext\n */\nexport const PasswordHistoryContext = new PasswordHistoryContext$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryDomain$Type extends MessageType<PasswordHistoryDomain> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryDomain\", [\n { no: 1, name: \"comparison_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"evaluator_public_key\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryDomain>): PasswordHistoryDomain {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.comparisonDomain = new Uint8Array(0);\n message.evaluatorPublicKey = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryDomain>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryDomain): PasswordHistoryDomain {\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 /* bytes comparison_domain */ 1:\n message.comparisonDomain = reader.bytes();\n break;\n case /* bytes evaluator_public_key */ 2:\n message.evaluatorPublicKey = reader.bytes();\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: PasswordHistoryDomain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes comparison_domain = 1; */\n if (message.comparisonDomain.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.comparisonDomain);\n /* bytes evaluator_public_key = 2; */\n if (message.evaluatorPublicKey.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.evaluatorPublicKey);\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.authn.PasswordHistoryDomain\n */\nexport const PasswordHistoryDomain = new PasswordHistoryDomain$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryRequest$Type extends MessageType<EvaluatePasswordHistoryRequest> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryRequest\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"blinded_input\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryRequest>): EvaluatePasswordHistoryRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.blindedInput = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryRequest): EvaluatePasswordHistoryRequest {\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 /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes blinded_input */ 2:\n message.blindedInput = reader.bytes();\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: EvaluatePasswordHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes blinded_input = 2; */\n if (message.blindedInput.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.blindedInput);\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.authn.EvaluatePasswordHistoryRequest\n */\nexport const EvaluatePasswordHistoryRequest = new EvaluatePasswordHistoryRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryResponse$Type extends MessageType<EvaluatePasswordHistoryResponse> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryResponse\", [\n { no: 1, name: \"evaluations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEvaluation }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryResponse>): EvaluatePasswordHistoryResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluations = [];\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryResponse): EvaluatePasswordHistoryResponse {\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 /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations */ 1:\n message.evaluations.push(PasswordHistoryEvaluation.internalBinaryRead(reader, reader.uint32(), options));\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: EvaluatePasswordHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1; */\n for (let i = 0; i < message.evaluations.length; i++)\n PasswordHistoryEvaluation.internalBinaryWrite(message.evaluations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\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.authn.EvaluatePasswordHistoryResponse\n */\nexport const EvaluatePasswordHistoryResponse = new EvaluatePasswordHistoryResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluation$Type extends MessageType<PasswordHistoryEvaluation> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluation\", [\n { no: 1, name: \"evaluated_element\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"proof\", kind: \"message\", T: () => PasswordHistoryEvaluationProof }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluation>): PasswordHistoryEvaluation {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluatedElement = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluation>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluation): PasswordHistoryEvaluation {\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 /* bytes evaluated_element */ 1:\n message.evaluatedElement = reader.bytes();\n break;\n case /* sid.v1.authn.PasswordHistoryEvaluationProof proof */ 2:\n message.proof = PasswordHistoryEvaluationProof.internalBinaryRead(reader, reader.uint32(), options, message.proof);\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: PasswordHistoryEvaluation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes evaluated_element = 1; */\n if (message.evaluatedElement.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.evaluatedElement);\n /* sid.v1.authn.PasswordHistoryEvaluationProof proof = 2; */\n if (message.proof)\n PasswordHistoryEvaluationProof.internalBinaryWrite(message.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\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.authn.PasswordHistoryEvaluation\n */\nexport const PasswordHistoryEvaluation = new PasswordHistoryEvaluation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluationProof$Type extends MessageType<PasswordHistoryEvaluationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluationProof\", [\n { no: 1, name: \"challenge\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"response\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluationProof>): PasswordHistoryEvaluationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challenge = new Uint8Array(0);\n message.response = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluationProof): PasswordHistoryEvaluationProof {\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 /* bytes challenge */ 1:\n message.challenge = reader.bytes();\n break;\n case /* bytes response */ 2:\n message.response = reader.bytes();\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: PasswordHistoryEvaluationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes challenge = 1; */\n if (message.challenge.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.challenge);\n /* bytes response = 2; */\n if (message.response.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.response);\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.authn.PasswordHistoryEvaluationProof\n */\nexport const PasswordHistoryEvaluationProof = new PasswordHistoryEvaluationProof$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordRegistrationProof$Type extends MessageType<PasswordRegistrationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordRegistrationProof\", [\n { no: 1, name: \"zkpp_proof\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"instances\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordRegistrationProof>): PasswordRegistrationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.zkppProof = new Uint8Array(0);\n message.instances = [];\n if (value !== undefined)\n reflectionMergePartial<PasswordRegistrationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordRegistrationProof): PasswordRegistrationProof {\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 /* bytes zkpp_proof */ 1:\n message.zkppProof = reader.bytes();\n break;\n case /* repeated bytes instances */ 2:\n message.instances.push(reader.bytes());\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: PasswordRegistrationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes zkpp_proof = 1; */\n if (message.zkppProof.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.zkppProof);\n /* repeated bytes instances = 2; */\n for (let i = 0; i < message.instances.length; i++)\n writer.tag(2, WireType.LengthDelimited).bytes(message.instances[i]);\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.authn.PasswordRegistrationProof\n */\nexport const PasswordRegistrationProof = new PasswordRegistrationProof$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.PasswordHistoryEvaluatorService\n */\nexport const PasswordHistoryEvaluatorService = new ServiceType(\"sid.v1.authn.PasswordHistoryEvaluatorService\", [\n { name: \"EvaluatePasswordHistory\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/auth/password-history/evaluate\", body: \"*\" } }, I: EvaluatePasswordHistoryRequest, O: EvaluatePasswordHistoryResponse }\n]);\n"]}
|
|
1
|
+
{"version":3,"file":"password_history.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/password_history.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,8GAA8G;AAC9G,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OA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BAA8B,CAAC,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;QACpJ,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,8BAA8B,EAAE,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,WAAW,CAAC,8CAA8C,EAAE;IAC3G,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,8BAA8B,EAAE,CAAC,EAAE,+BAA+B,EAAE;IAChO,EAAE,IAAI,EAAE,wBAAwB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,6BAA6B,EAAE,CAAC,EAAE,8BAA8B,EAAE;CAClJ,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/authn/password_history.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } 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 type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\nimport { PasswordOperationId } from \"../ids/ids.js\";\n/**\n * @generated from protobuf message sid.v1.authn.PreparePasswordHistoryRequest\n */\nexport interface PreparePasswordHistoryRequest {\n /**\n * The pending operation whose domains are selected, as the credential\n * service stored it.\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The owner, as the credential service resolved it from the authorized\n * ceremony: its history input domain (PasswordHistoryContext.owner_domain,\n * 32 bytes). The one owner reference the evaluator keys its history keys\n * by; it never receives the owner's account identifier. An end-user client\n * cannot supply it.\n *\n * @generated from protobuf field: bytes owner_domain = 5\n */\n ownerDomain: Uint8Array;\n /**\n * What the operation does to the owner's history.\n *\n * @generated from protobuf field: sid.v1.authn.PasswordHistoryOwnerKind owner_kind = 6\n */\n ownerKind: PasswordHistoryOwnerKind;\n /**\n * When the operation stops being able to commit, as the credential service\n * stored it. The evaluator admits no evaluation after it, and a repeat must\n * name the same instant.\n *\n * @generated from protobuf field: google.protobuf.Timestamp expires_at = 7\n */\n expiresAt?: Timestamp;\n /**\n * Who the operation's evaluations are charged to: an opaque key the\n * credential service derives from the authorized actor (at most 128\n * bytes), never a value an end-user client chooses.\n *\n * @generated from protobuf field: string charge_key = 8\n */\n chargeKey: string;\n /**\n * The comparison domains (PasswordHistoryDomain.comparison_domain, 32 bytes\n * each) in which the owner still retains at least one entry, as of\n * history_revision. Only the credential service, which holds the entries,\n * knows this; it commits the set with the entries it describes. Each must be\n * a domain the evaluator issued for this owner; an unknown one fails the call.\n *\n * @generated from protobuf field: repeated bytes live_comparison_domains = 2\n */\n liveComparisonDomains: Uint8Array[];\n /**\n * The owner's history revision the live domains belong to: increases with\n * every committed change of the owner's entries or retention, committed with\n * them. The evaluator acts on the newest revision it has accepted for the\n * owner and never retires a key on an older one, so a delayed or retried\n * request cannot retire a key a newer revision still needs.\n *\n * @generated from protobuf field: uint64 history_revision = 3\n */\n historyRevision: bigint;\n /**\n * The owner's earlier operations this revision settles: each one committed\n * (its entries are in the live set) or can no longer commit (aborted or\n * expired), as the credential service, which runs the commit, recorded with\n * the revision. The evaluator releases their pins; an operation not named\n * stays pinned until a later accepted revision names it or its lifetime\n * ends.\n *\n * @generated from protobuf field: repeated sid.v1.ids.PasswordOperationId settled_operations = 4\n */\n settledOperations: PasswordOperationId[];\n}\n/**\n * @generated from protobuf message sid.v1.authn.PreparePasswordHistoryResponse\n */\nexport interface PreparePasswordHistoryResponse {\n /**\n * The operation's comparison domains, in the order its evaluations and\n * proof follow; the credential service returns them to the client in\n * PasswordHistoryContext.domains.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryDomain domains = 1\n */\n domains: PasswordHistoryDomain[];\n /**\n * The public description of each domain's epoch, in the same order: what\n * the credential service keeps with the operation and, once committed,\n * with the owner's history, so the history checker compares without asking\n * the evaluator again. Never sent to an end-user client.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEpochDescriptor epochs = 2\n */\n epochs: PasswordHistoryEpochDescriptor[];\n}\n/**\n * The immutable public description of one history epoch: everything the\n * history checker needs to recompute the comparison domain and stretch a tag,\n * and nothing that evaluates one. The credential service rejects a\n * descriptor that differs from one it already holds for the same epoch.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEpochDescriptor\n */\nexport interface PasswordHistoryEpochDescriptor {\n /**\n * The epoch: a UUIDv7, 16 bytes.\n *\n * @generated from protobuf field: bytes epoch_id = 1\n */\n epochId: Uint8Array;\n /**\n * The evaluator's public key k·G: a compressed Pallas point, 32 bytes.\n *\n * @generated from protobuf field: bytes public_key = 2\n */\n publicKey: Uint8Array;\n /**\n * The relation suite the epoch's tags follow (\"pallas-poseidon-v1\").\n *\n * @generated from protobuf field: string suite = 3\n */\n suite: string;\n /**\n * The history KSF of the epoch's entries: Argon2id v1.3 (RFC 9106) with\n * a 32-byte output.\n *\n * @generated from protobuf field: sid.v1.authn.PasswordHistoryKsf ksf = 4\n */\n ksf?: PasswordHistoryKsf;\n /**\n * The KSF salt of every entry under the epoch: 32 bytes.\n *\n * @generated from protobuf field: bytes ksf_salt = 5\n */\n ksfSalt: Uint8Array;\n /**\n * When the evaluator created the epoch's key, before sealing or first use.\n * A history-key write cutoff bars new entries under every epoch created\n * before it; the credential service checks this instant when it commits.\n *\n * @generated from protobuf field: google.protobuf.Timestamp created_at = 6\n */\n createdAt?: Timestamp;\n}\n/**\n * Argon2id v1.3 (RFC 9106 §3.1) parameters of one epoch's history KSF; the\n * output is 32 bytes.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryKsf\n */\nexport interface PasswordHistoryKsf {\n /**\n * Memory, KiB.\n *\n * @generated from protobuf field: uint32 memory_kib = 1\n */\n memoryKib: number;\n /**\n * Passes.\n *\n * @generated from protobuf field: uint32 passes = 2\n */\n passes: number;\n /**\n * Lanes.\n *\n * @generated from protobuf field: uint32 lanes = 3\n */\n lanes: number;\n}\n/**\n * What a client needs to build its history request and proof for one\n * password operation. Returned by the step that prepares the operation\n * (registration start, password-change challenge, password-reset verification).\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryContext\n */\nexport interface PasswordHistoryContext {\n /**\n * The operation this context belongs to. Every later step of the operation\n * (evaluation, OPAQUE start, finish) and every retry carries it. Issued by\n * the server when it prepares the operation.\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The owner's history input domain: 32 bytes, a Pallas base-field element in\n * little-endian canonical form. The client hashes the password under it into\n * the history input it blinds. Server-derived from the credential owner;\n * opaque to the client and unlinkable across installations and owners.\n *\n * @generated from protobuf field: bytes owner_domain = 2\n */\n ownerDomain: Uint8Array;\n /**\n * The comparison domains the operation must produce a tag for, in the order\n * the evaluations and the proof's tags follow. Server-selected from the\n * owner's retained history; at least one. The client cannot omit or reorder\n * one: the proof commits to this list.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryDomain domains = 3\n */\n domains: PasswordHistoryDomain[];\n /**\n * Password policy version the registration proof must be made for; the\n * verifying key of that version and domain count checks it.\n *\n * @generated from protobuf field: uint32 policy_version = 4\n */\n policyVersion: number;\n}\n/**\n * One comparison domain: the epoch, key and format under which a tag is\n * compared with the entries retained in it.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryDomain\n */\nexport interface PasswordHistoryDomain {\n /**\n * The domain element: 32 bytes, a Pallas base-field element in little-endian\n * canonical form. Enters the tag derivation, so tags of different domains\n * never compare equal.\n *\n * @generated from protobuf field: bytes comparison_domain = 1\n */\n comparisonDomain: Uint8Array;\n /**\n * The evaluator's public key for this domain, k·G: a compressed Pallas point,\n * 32 bytes. The client checks each evaluation proof against it before\n * proving, so a wrong or missing key fails before the costly proof.\n *\n * @generated from protobuf field: bytes evaluator_public_key = 2\n */\n evaluatorPublicKey: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryRequest\n */\nexport interface EvaluatePasswordHistoryRequest {\n /**\n * The operation whose required domains are evaluated (from PasswordHistoryContext).\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The blinded history input B = r·H(u): a compressed Pallas point, 32 bytes,\n * not the identity. Client-computed from the password under the operation's\n * owner domain with a fresh nonzero blind r; reveals nothing about the password.\n *\n * @generated from protobuf field: bytes blinded_input = 2\n */\n blindedInput: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryResponse\n */\nexport interface EvaluatePasswordHistoryResponse {\n /**\n * One evaluation per required comparison domain, in the order of\n * PasswordHistoryContext.domains. Either all are present or the call fails.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1\n */\n evaluations: PasswordHistoryEvaluation[];\n}\n/**\n * The evaluator's answer for one comparison domain.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluation\n */\nexport interface PasswordHistoryEvaluation {\n /**\n * Z = k·B under this domain's key: a compressed Pallas point, 32 bytes.\n *\n * @generated from protobuf field: bytes evaluated_element = 1\n */\n evaluatedElement: Uint8Array;\n /**\n * Proof that Z uses the key behind this domain's evaluator_public_key\n * (Chaum-Pedersen DLEQ, RFC 9497 §2.2), bound to the operation.\n *\n * @generated from protobuf field: sid.v1.authn.PasswordHistoryEvaluationProof proof = 2\n */\n proof?: PasswordHistoryEvaluationProof;\n}\n/**\n * Chaum-Pedersen proof of log_G(pk) = log_B(Z). Each domain has its own key,\n * so each evaluation carries its own proof.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluationProof\n */\nexport interface PasswordHistoryEvaluationProof {\n /**\n * Challenge c: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes challenge = 1\n */\n challenge: Uint8Array;\n /**\n * Response s = nonce − c·k: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes response = 2\n */\n response: Uint8Array;\n}\n/**\n * A registration proof for the password being installed: its policy, breach\n * and history relation, and that the operation's OPAQUE registration element\n * is the blinded hash of that password. The operation ID and the registration\n * request bytes enter the proof transcript, so it verifies for no other\n * operation or request. Sent with the final registration record, where the\n * history checker verifies it and commits the credential. Absent when the\n * client cannot prove; the credential then installs policy-unverified and does\n * not advance trusted history.\n *\n * @generated from protobuf message sid.v1.authn.PasswordRegistrationProof\n */\nexport interface PasswordRegistrationProof {\n /**\n * Halo2 proof bytes. Client-generated with the OPAQUE registration request.\n *\n * @generated from protobuf field: bytes zkpp_proof = 1\n */\n zkppProof: Uint8Array;\n /**\n * The proof's public instances, 32 bytes each (Pallas base field,\n * little-endian): the OPAQUE registration element M = blind·H(P) (x, y), the\n * owner domain, the comparison domains, the blinded history input (x, y), and\n * per domain the evaluated element (x, y) and the tag. The server checks each\n * against the operation and its registration request; none is accepted from\n * the client on trust.\n *\n * @generated from protobuf field: repeated bytes instances = 2\n */\n instances: Uint8Array[];\n /**\n * The evaluator's proofs (EvaluatePasswordHistoryResponse), one per\n * comparison domain in the order of PasswordHistoryContext.domains, relayed\n * unchanged. The history checker verifies each against the blinded input\n * and evaluated element among `instances` and the domain key it prepared;\n * a missing, reordered or substituted proof fails the finish.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs = 4\n */\n evaluationProofs: PasswordHistoryEvaluationProof[];\n}\n/**\n * What a password operation does to its owner's history.\n *\n * @generated from protobuf enum sid.v1.authn.PasswordHistoryOwnerKind\n */\nexport enum PasswordHistoryOwnerKind {\n /**\n * @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * An owner with an account: its existing history keys apply.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_EXISTING = 1;\n */\n EXISTING = 1,\n /**\n * An owner the operation creates: it gets its first history key. Fails for\n * an owner that already has one, so it never resets a history.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_NEW = 2;\n */\n NEW = 2,\n /**\n * A registration start for an identifier someone holds: answered like any\n * other with throwaway keys, and never committed.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_DECOY = 3;\n */\n DECOY = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass PreparePasswordHistoryRequest$Type extends MessageType<PreparePasswordHistoryRequest> {\n constructor() {\n super(\"sid.v1.authn.PreparePasswordHistoryRequest\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 5, name: \"owner_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 6, name: \"owner_kind\", kind: \"enum\", T: () => [\"sid.v1.authn.PasswordHistoryOwnerKind\", PasswordHistoryOwnerKind, \"PASSWORD_HISTORY_OWNER_KIND_\"] },\n { no: 7, name: \"expires_at\", kind: \"message\", T: () => Timestamp },\n { no: 8, name: \"charge_key\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"live_comparison_domains\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"history_revision\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"settled_operations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordOperationId }\n ]);\n }\n create(value?: PartialMessage<PreparePasswordHistoryRequest>): PreparePasswordHistoryRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.ownerDomain = new Uint8Array(0);\n message.ownerKind = 0;\n message.chargeKey = \"\";\n message.liveComparisonDomains = [];\n message.historyRevision = 0n;\n message.settledOperations = [];\n if (value !== undefined)\n reflectionMergePartial<PreparePasswordHistoryRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PreparePasswordHistoryRequest): PreparePasswordHistoryRequest {\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 /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes owner_domain */ 5:\n message.ownerDomain = reader.bytes();\n break;\n case /* sid.v1.authn.PasswordHistoryOwnerKind owner_kind */ 6:\n message.ownerKind = reader.int32();\n break;\n case /* google.protobuf.Timestamp expires_at */ 7:\n message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);\n break;\n case /* string charge_key */ 8:\n message.chargeKey = reader.string();\n break;\n case /* repeated bytes live_comparison_domains */ 2:\n message.liveComparisonDomains.push(reader.bytes());\n break;\n case /* uint64 history_revision */ 3:\n message.historyRevision = reader.uint64().toBigInt();\n break;\n case /* repeated sid.v1.ids.PasswordOperationId settled_operations */ 4:\n message.settledOperations.push(PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options));\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: PreparePasswordHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* repeated bytes live_comparison_domains = 2; */\n for (let i = 0; i < message.liveComparisonDomains.length; i++)\n writer.tag(2, WireType.LengthDelimited).bytes(message.liveComparisonDomains[i]);\n /* uint64 history_revision = 3; */\n if (message.historyRevision !== 0n)\n writer.tag(3, WireType.Varint).uint64(message.historyRevision);\n /* repeated sid.v1.ids.PasswordOperationId settled_operations = 4; */\n for (let i = 0; i < message.settledOperations.length; i++)\n PasswordOperationId.internalBinaryWrite(message.settledOperations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();\n /* bytes owner_domain = 5; */\n if (message.ownerDomain.length)\n writer.tag(5, WireType.LengthDelimited).bytes(message.ownerDomain);\n /* sid.v1.authn.PasswordHistoryOwnerKind owner_kind = 6; */\n if (message.ownerKind !== 0)\n writer.tag(6, WireType.Varint).int32(message.ownerKind);\n /* google.protobuf.Timestamp expires_at = 7; */\n if (message.expiresAt)\n Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();\n /* string charge_key = 8; */\n if (message.chargeKey !== \"\")\n writer.tag(8, WireType.LengthDelimited).string(message.chargeKey);\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.authn.PreparePasswordHistoryRequest\n */\nexport const PreparePasswordHistoryRequest = new PreparePasswordHistoryRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PreparePasswordHistoryResponse$Type extends MessageType<PreparePasswordHistoryResponse> {\n constructor() {\n super(\"sid.v1.authn.PreparePasswordHistoryResponse\", [\n { no: 1, name: \"domains\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryDomain },\n { no: 2, name: \"epochs\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEpochDescriptor }\n ]);\n }\n create(value?: PartialMessage<PreparePasswordHistoryResponse>): PreparePasswordHistoryResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.domains = [];\n message.epochs = [];\n if (value !== undefined)\n reflectionMergePartial<PreparePasswordHistoryResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PreparePasswordHistoryResponse): PreparePasswordHistoryResponse {\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 /* repeated sid.v1.authn.PasswordHistoryDomain domains */ 1:\n message.domains.push(PasswordHistoryDomain.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* repeated sid.v1.authn.PasswordHistoryEpochDescriptor epochs */ 2:\n message.epochs.push(PasswordHistoryEpochDescriptor.internalBinaryRead(reader, reader.uint32(), options));\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: PreparePasswordHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.authn.PasswordHistoryDomain domains = 1; */\n for (let i = 0; i < message.domains.length; i++)\n PasswordHistoryDomain.internalBinaryWrite(message.domains[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* repeated sid.v1.authn.PasswordHistoryEpochDescriptor epochs = 2; */\n for (let i = 0; i < message.epochs.length; i++)\n PasswordHistoryEpochDescriptor.internalBinaryWrite(message.epochs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\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.authn.PreparePasswordHistoryResponse\n */\nexport const PreparePasswordHistoryResponse = new PreparePasswordHistoryResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEpochDescriptor$Type extends MessageType<PasswordHistoryEpochDescriptor> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEpochDescriptor\", [\n { no: 1, name: \"epoch_id\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"public_key\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"suite\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"ksf\", kind: \"message\", T: () => PasswordHistoryKsf },\n { no: 5, name: \"ksf_salt\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 6, name: \"created_at\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEpochDescriptor>): PasswordHistoryEpochDescriptor {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.epochId = new Uint8Array(0);\n message.publicKey = new Uint8Array(0);\n message.suite = \"\";\n message.ksfSalt = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEpochDescriptor>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEpochDescriptor): PasswordHistoryEpochDescriptor {\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 /* bytes epoch_id */ 1:\n message.epochId = reader.bytes();\n break;\n case /* bytes public_key */ 2:\n message.publicKey = reader.bytes();\n break;\n case /* string suite */ 3:\n message.suite = reader.string();\n break;\n case /* sid.v1.authn.PasswordHistoryKsf ksf */ 4:\n message.ksf = PasswordHistoryKsf.internalBinaryRead(reader, reader.uint32(), options, message.ksf);\n break;\n case /* bytes ksf_salt */ 5:\n message.ksfSalt = reader.bytes();\n break;\n case /* google.protobuf.Timestamp created_at */ 6:\n message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);\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: PasswordHistoryEpochDescriptor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes epoch_id = 1; */\n if (message.epochId.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.epochId);\n /* bytes public_key = 2; */\n if (message.publicKey.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.publicKey);\n /* string suite = 3; */\n if (message.suite !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.suite);\n /* sid.v1.authn.PasswordHistoryKsf ksf = 4; */\n if (message.ksf)\n PasswordHistoryKsf.internalBinaryWrite(message.ksf, writer.tag(4, WireType.LengthDelimited).fork(), options).join();\n /* bytes ksf_salt = 5; */\n if (message.ksfSalt.length)\n writer.tag(5, WireType.LengthDelimited).bytes(message.ksfSalt);\n /* google.protobuf.Timestamp created_at = 6; */\n if (message.createdAt)\n Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();\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.authn.PasswordHistoryEpochDescriptor\n */\nexport const PasswordHistoryEpochDescriptor = new PasswordHistoryEpochDescriptor$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryKsf$Type extends MessageType<PasswordHistoryKsf> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryKsf\", [\n { no: 1, name: \"memory_kib\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ },\n { no: 2, name: \"passes\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ },\n { no: 3, name: \"lanes\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryKsf>): PasswordHistoryKsf {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.memoryKib = 0;\n message.passes = 0;\n message.lanes = 0;\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryKsf>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryKsf): PasswordHistoryKsf {\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 /* uint32 memory_kib */ 1:\n message.memoryKib = reader.uint32();\n break;\n case /* uint32 passes */ 2:\n message.passes = reader.uint32();\n break;\n case /* uint32 lanes */ 3:\n message.lanes = reader.uint32();\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: PasswordHistoryKsf, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint32 memory_kib = 1; */\n if (message.memoryKib !== 0)\n writer.tag(1, WireType.Varint).uint32(message.memoryKib);\n /* uint32 passes = 2; */\n if (message.passes !== 0)\n writer.tag(2, WireType.Varint).uint32(message.passes);\n /* uint32 lanes = 3; */\n if (message.lanes !== 0)\n writer.tag(3, WireType.Varint).uint32(message.lanes);\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.authn.PasswordHistoryKsf\n */\nexport const PasswordHistoryKsf = new PasswordHistoryKsf$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryContext$Type extends MessageType<PasswordHistoryContext> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryContext\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"owner_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"domains\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryDomain },\n { no: 4, name: \"policy_version\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryContext>): PasswordHistoryContext {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.ownerDomain = new Uint8Array(0);\n message.domains = [];\n message.policyVersion = 0;\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryContext>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryContext): PasswordHistoryContext {\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 /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes owner_domain */ 2:\n message.ownerDomain = reader.bytes();\n break;\n case /* repeated sid.v1.authn.PasswordHistoryDomain domains */ 3:\n message.domains.push(PasswordHistoryDomain.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* uint32 policy_version */ 4:\n message.policyVersion = reader.uint32();\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: PasswordHistoryContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes owner_domain = 2; */\n if (message.ownerDomain.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.ownerDomain);\n /* repeated sid.v1.authn.PasswordHistoryDomain domains = 3; */\n for (let i = 0; i < message.domains.length; i++)\n PasswordHistoryDomain.internalBinaryWrite(message.domains[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* uint32 policy_version = 4; */\n if (message.policyVersion !== 0)\n writer.tag(4, WireType.Varint).uint32(message.policyVersion);\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.authn.PasswordHistoryContext\n */\nexport const PasswordHistoryContext = new PasswordHistoryContext$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryDomain$Type extends MessageType<PasswordHistoryDomain> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryDomain\", [\n { no: 1, name: \"comparison_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"evaluator_public_key\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryDomain>): PasswordHistoryDomain {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.comparisonDomain = new Uint8Array(0);\n message.evaluatorPublicKey = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryDomain>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryDomain): PasswordHistoryDomain {\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 /* bytes comparison_domain */ 1:\n message.comparisonDomain = reader.bytes();\n break;\n case /* bytes evaluator_public_key */ 2:\n message.evaluatorPublicKey = reader.bytes();\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: PasswordHistoryDomain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes comparison_domain = 1; */\n if (message.comparisonDomain.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.comparisonDomain);\n /* bytes evaluator_public_key = 2; */\n if (message.evaluatorPublicKey.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.evaluatorPublicKey);\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.authn.PasswordHistoryDomain\n */\nexport const PasswordHistoryDomain = new PasswordHistoryDomain$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryRequest$Type extends MessageType<EvaluatePasswordHistoryRequest> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryRequest\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"blinded_input\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryRequest>): EvaluatePasswordHistoryRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.blindedInput = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryRequest): EvaluatePasswordHistoryRequest {\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 /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes blinded_input */ 2:\n message.blindedInput = reader.bytes();\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: EvaluatePasswordHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes blinded_input = 2; */\n if (message.blindedInput.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.blindedInput);\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.authn.EvaluatePasswordHistoryRequest\n */\nexport const EvaluatePasswordHistoryRequest = new EvaluatePasswordHistoryRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryResponse$Type extends MessageType<EvaluatePasswordHistoryResponse> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryResponse\", [\n { no: 1, name: \"evaluations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEvaluation }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryResponse>): EvaluatePasswordHistoryResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluations = [];\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryResponse): EvaluatePasswordHistoryResponse {\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 /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations */ 1:\n message.evaluations.push(PasswordHistoryEvaluation.internalBinaryRead(reader, reader.uint32(), options));\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: EvaluatePasswordHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1; */\n for (let i = 0; i < message.evaluations.length; i++)\n PasswordHistoryEvaluation.internalBinaryWrite(message.evaluations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\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.authn.EvaluatePasswordHistoryResponse\n */\nexport const EvaluatePasswordHistoryResponse = new EvaluatePasswordHistoryResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluation$Type extends MessageType<PasswordHistoryEvaluation> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluation\", [\n { no: 1, name: \"evaluated_element\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"proof\", kind: \"message\", T: () => PasswordHistoryEvaluationProof }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluation>): PasswordHistoryEvaluation {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluatedElement = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluation>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluation): PasswordHistoryEvaluation {\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 /* bytes evaluated_element */ 1:\n message.evaluatedElement = reader.bytes();\n break;\n case /* sid.v1.authn.PasswordHistoryEvaluationProof proof */ 2:\n message.proof = PasswordHistoryEvaluationProof.internalBinaryRead(reader, reader.uint32(), options, message.proof);\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: PasswordHistoryEvaluation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes evaluated_element = 1; */\n if (message.evaluatedElement.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.evaluatedElement);\n /* sid.v1.authn.PasswordHistoryEvaluationProof proof = 2; */\n if (message.proof)\n PasswordHistoryEvaluationProof.internalBinaryWrite(message.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\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.authn.PasswordHistoryEvaluation\n */\nexport const PasswordHistoryEvaluation = new PasswordHistoryEvaluation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluationProof$Type extends MessageType<PasswordHistoryEvaluationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluationProof\", [\n { no: 1, name: \"challenge\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"response\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluationProof>): PasswordHistoryEvaluationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challenge = new Uint8Array(0);\n message.response = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluationProof): PasswordHistoryEvaluationProof {\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 /* bytes challenge */ 1:\n message.challenge = reader.bytes();\n break;\n case /* bytes response */ 2:\n message.response = reader.bytes();\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: PasswordHistoryEvaluationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes challenge = 1; */\n if (message.challenge.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.challenge);\n /* bytes response = 2; */\n if (message.response.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.response);\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.authn.PasswordHistoryEvaluationProof\n */\nexport const PasswordHistoryEvaluationProof = new PasswordHistoryEvaluationProof$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordRegistrationProof$Type extends MessageType<PasswordRegistrationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordRegistrationProof\", [\n { no: 1, name: \"zkpp_proof\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"instances\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },\n { no: 4, name: \"evaluation_proofs\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEvaluationProof }\n ]);\n }\n create(value?: PartialMessage<PasswordRegistrationProof>): PasswordRegistrationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.zkppProof = new Uint8Array(0);\n message.instances = [];\n message.evaluationProofs = [];\n if (value !== undefined)\n reflectionMergePartial<PasswordRegistrationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordRegistrationProof): PasswordRegistrationProof {\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 /* bytes zkpp_proof */ 1:\n message.zkppProof = reader.bytes();\n break;\n case /* repeated bytes instances */ 2:\n message.instances.push(reader.bytes());\n break;\n case /* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs */ 4:\n message.evaluationProofs.push(PasswordHistoryEvaluationProof.internalBinaryRead(reader, reader.uint32(), options));\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: PasswordRegistrationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes zkpp_proof = 1; */\n if (message.zkppProof.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.zkppProof);\n /* repeated bytes instances = 2; */\n for (let i = 0; i < message.instances.length; i++)\n writer.tag(2, WireType.LengthDelimited).bytes(message.instances[i]);\n /* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs = 4; */\n for (let i = 0; i < message.evaluationProofs.length; i++)\n PasswordHistoryEvaluationProof.internalBinaryWrite(message.evaluationProofs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();\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.authn.PasswordRegistrationProof\n */\nexport const PasswordRegistrationProof = new PasswordRegistrationProof$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.PasswordHistoryEvaluatorService\n */\nexport const PasswordHistoryEvaluatorService = new ServiceType(\"sid.v1.authn.PasswordHistoryEvaluatorService\", [\n { name: \"EvaluatePasswordHistory\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/auth/password-history/evaluate\", body: \"*\" } }, I: EvaluatePasswordHistoryRequest, O: EvaluatePasswordHistoryResponse },\n { name: \"PreparePasswordHistory\", idempotency: \"IDEMPOTENT\", options: {}, I: PreparePasswordHistoryRequest, O: PreparePasswordHistoryResponse }\n]);\n"]}
|
|
@@ -331,10 +331,34 @@ export interface Credential {
|
|
|
331
331
|
* @generated from protobuf field: sid.v1.identity.WebAuthnCredentialInfo webauthn_info = 8
|
|
332
332
|
*/
|
|
333
333
|
webauthnInfo: WebAuthnCredentialInfo;
|
|
334
|
+
} | {
|
|
335
|
+
oneofKind: "opaqueInfo";
|
|
336
|
+
/**
|
|
337
|
+
* @generated from protobuf field: sid.v1.identity.OpaqueCredentialInfo opaque_info = 9
|
|
338
|
+
*/
|
|
339
|
+
opaqueInfo: OpaqueCredentialInfo;
|
|
334
340
|
} | {
|
|
335
341
|
oneofKind: undefined;
|
|
336
342
|
};
|
|
337
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Display-safe metadata of an OPAQUE password credential.
|
|
346
|
+
*
|
|
347
|
+
* @generated from protobuf message sid.v1.identity.OpaqueCredentialInfo
|
|
348
|
+
*/
|
|
349
|
+
export interface OpaqueCredentialInfo {
|
|
350
|
+
/**
|
|
351
|
+
* The OPAQUE configuration the credential was registered in (RFC 9807
|
|
352
|
+
* §3.1): a client signs in with it, or proves it as the current password in
|
|
353
|
+
* a change, only in this suite. This field serves an authenticated caller
|
|
354
|
+
* managing its own credentials. It is not how a client without a session
|
|
355
|
+
* learns the configuration before its first sign-in message (KE1): that
|
|
356
|
+
* agreement is not defined by this revision of the API.
|
|
357
|
+
*
|
|
358
|
+
* @generated from protobuf field: sid.v1.identity.OpaqueSuite suite = 1
|
|
359
|
+
*/
|
|
360
|
+
suite: OpaqueSuite;
|
|
361
|
+
}
|
|
338
362
|
/**
|
|
339
363
|
* Display-safe metadata for WebAuthn/passkey credentials.
|
|
340
364
|
* Extracted from the stored Passkey blob for management UI.
|
|
@@ -1451,6 +1475,90 @@ export declare enum ProfileVisibility {
|
|
|
1451
1475
|
*/
|
|
1452
1476
|
PRIVATE = 2
|
|
1453
1477
|
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Complete OPAQUE configurations (RFC 9807 §7): each value fixes the OPRF, the
|
|
1480
|
+
* KDF, MAC and hash, the KSF with its parameters, the group and the context.
|
|
1481
|
+
* A change of any of them is a new value, never a new meaning of an old one.
|
|
1482
|
+
* A value names a credential's configuration; it does not state that a given
|
|
1483
|
+
* deployment installs or accepts it.
|
|
1484
|
+
*
|
|
1485
|
+
* Common to every value: the key exchange is 3DH (RFC 9807 §6) on the OPRF's
|
|
1486
|
+
* group, with HKDF, HMAC and the hash named below; the identities are the
|
|
1487
|
+
* parties' public keys (the defaults of RFC 9807 §4); the KSF output is as
|
|
1488
|
+
* long as the OPRF output (Nh: 32 bytes for SHA-256, 48 for SHA-384, 64 for
|
|
1489
|
+
* SHA-512). No password is longer than 65,534 bytes: OPRF inputs must be
|
|
1490
|
+
* smaller than 2^16 - 1 bytes (RFC 9497 §5.1), and a client refuses a longer
|
|
1491
|
+
* one. The context is empty for an ordinary sign-in; a sign-in inside another
|
|
1492
|
+
* operation replaces it with that operation's context, which the operation
|
|
1493
|
+
* defines (the password change: PasswordChangeChallenge).
|
|
1494
|
+
*
|
|
1495
|
+
* @generated from protobuf enum sid.v1.identity.OpaqueSuite
|
|
1496
|
+
*/
|
|
1497
|
+
export declare enum OpaqueSuite {
|
|
1498
|
+
/**
|
|
1499
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_UNSPECIFIED = 0;
|
|
1500
|
+
*/
|
|
1501
|
+
UNSPECIFIED = 0,
|
|
1502
|
+
/**
|
|
1503
|
+
* A custom suite, not an RFC 9497 one, and the one the ZKPP password proof
|
|
1504
|
+
* is defined for. OPRF Pallas-Poseidon-SHA256: the DST is ignored; a
|
|
1505
|
+
* password of at most 128 bytes is zero-padded to 128, a longer one is not
|
|
1506
|
+
* padded; its bytes are packed 31 per Pallas base-field element,
|
|
1507
|
+
* little-endian, the last element zero-padded, and chained with Poseidon;
|
|
1508
|
+
* the point is the first of 2^8 offsets that lies on the curve, with the
|
|
1509
|
+
* even root of y. The padding applies only to that element, which the proof
|
|
1510
|
+
* covers: Finalize (RFC 9497 §3.3.1) hashes the password as given, with its
|
|
1511
|
+
* length, so a password and the same one with trailing zero bytes have
|
|
1512
|
+
* different OPRF outputs and neither signs in to the other's credential. A
|
|
1513
|
+
* provable password is at most 128 bytes with no zero byte; a longer one
|
|
1514
|
+
* installs without the proof. The proof binds the password as it enters the
|
|
1515
|
+
* element M, not Finalize, the KSF or the final record, which the server
|
|
1516
|
+
* never sees. A modified client can therefore prove P and install P
|
|
1517
|
+
* followed by zero bytes, the only other input with the same M; it gains
|
|
1518
|
+
* nothing a policy or history check protects: the history entry is that of
|
|
1519
|
+
* P, so reusing the installed password means proving P again and is caught,
|
|
1520
|
+
* and every character property the policy counts is that of P. Policy
|
|
1521
|
+
* evidence attests the proved password, not the uploaded record. Hash
|
|
1522
|
+
* SHA-256; KSF Argon2id v1.3 with m = 19456 KiB, t = 2, p = 1 and a salt of
|
|
1523
|
+
* 16 zero bytes. Normative definition, fixed at this revision: "The Pallas
|
|
1524
|
+
* OPAQUE suite" in
|
|
1525
|
+
* https://github.com/structured-id/zkpp/blob/235e3e966b5133cd11b41db83bbdd7dfec44dbb4/docs/construction.md.
|
|
1526
|
+
*
|
|
1527
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_PALLAS_V1 = 1;
|
|
1528
|
+
*/
|
|
1529
|
+
PALLAS_V1 = 1,
|
|
1530
|
+
/**
|
|
1531
|
+
* OPRF ristretto255-SHA512 (RFC 9497 §4.1), hash SHA-512, KSF Argon2id
|
|
1532
|
+
* v1.3 with m = 19456 KiB, t = 2, p = 1 and a salt of 16 zero bytes.
|
|
1533
|
+
*
|
|
1534
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_RISTRETTO255_V1 = 2;
|
|
1535
|
+
*/
|
|
1536
|
+
RISTRETTO255_V1 = 2,
|
|
1537
|
+
/**
|
|
1538
|
+
* OPRF P256-SHA256 (RFC 9497 §4.3), hash SHA-256, KSF PBKDF2-HMAC-SHA256
|
|
1539
|
+
* (RFC 8018) with 600000 iterations, the salt "sid-opaque-ksf" and
|
|
1540
|
+
* dkLen = 32.
|
|
1541
|
+
*
|
|
1542
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_P256_V1 = 3;
|
|
1543
|
+
*/
|
|
1544
|
+
P256_V1 = 3,
|
|
1545
|
+
/**
|
|
1546
|
+
* OPRF P384-SHA384 (RFC 9497 §4.4), hash SHA-384, KSF PBKDF2-HMAC-SHA384
|
|
1547
|
+
* (RFC 8018) with 600000 iterations, the salt "sid-opaque-ksf" and
|
|
1548
|
+
* dkLen = 48.
|
|
1549
|
+
*
|
|
1550
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_P384_V1 = 4;
|
|
1551
|
+
*/
|
|
1552
|
+
P384_V1 = 4,
|
|
1553
|
+
/**
|
|
1554
|
+
* OPRF P521-SHA512 (RFC 9497 §4.5), hash SHA-512, KSF PBKDF2-HMAC-SHA512
|
|
1555
|
+
* (RFC 8018) with 600000 iterations, the salt "sid-opaque-ksf" and
|
|
1556
|
+
* dkLen = 64.
|
|
1557
|
+
*
|
|
1558
|
+
* @generated from protobuf enum value: OPAQUE_SUITE_P521_V1 = 5;
|
|
1559
|
+
*/
|
|
1560
|
+
P521_V1 = 5
|
|
1561
|
+
}
|
|
1454
1562
|
/**
|
|
1455
1563
|
* @generated from protobuf enum sid.v1.identity.AuthenticatorTransport
|
|
1456
1564
|
*/
|
|
@@ -1760,6 +1868,16 @@ declare class Credential$Type extends MessageType<Credential> {
|
|
|
1760
1868
|
* @generated MessageType for protobuf message sid.v1.identity.Credential
|
|
1761
1869
|
*/
|
|
1762
1870
|
export declare const Credential: Credential$Type;
|
|
1871
|
+
declare class OpaqueCredentialInfo$Type extends MessageType<OpaqueCredentialInfo> {
|
|
1872
|
+
constructor();
|
|
1873
|
+
create(value?: PartialMessage<OpaqueCredentialInfo>): OpaqueCredentialInfo;
|
|
1874
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpaqueCredentialInfo): OpaqueCredentialInfo;
|
|
1875
|
+
internalBinaryWrite(message: OpaqueCredentialInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* @generated MessageType for protobuf message sid.v1.identity.OpaqueCredentialInfo
|
|
1879
|
+
*/
|
|
1880
|
+
export declare const OpaqueCredentialInfo: OpaqueCredentialInfo$Type;
|
|
1763
1881
|
declare class WebAuthnCredentialInfo$Type extends MessageType<WebAuthnCredentialInfo> {
|
|
1764
1882
|
constructor();
|
|
1765
1883
|
create(value?: PartialMessage<WebAuthnCredentialInfo>): WebAuthnCredentialInfo;
|