@structured-id/proto 0.13.0 → 0.15.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/dist/generated/sid/v1/account/account.d.ts +8 -8
- package/dist/generated/sid/v1/account/account.js +34 -34
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +4 -4
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
- package/dist/generated/sid/v1/admin/operations.js +32 -32
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
- package/dist/generated/sid/v1/admin/organizations.js +16 -16
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
- package/dist/generated/sid/v1/admin/provisioning.js +13 -13
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
- package/dist/generated/sid/v1/authn/auth.js +315 -315
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
- package/dist/generated/sid/v1/authn/flows.js +4 -4
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
- package/dist/generated/sid/v1/authn/native_session.js +5 -5
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
- package/dist/generated/sid/v1/authn/password_history.js +35 -35
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +229 -137
- package/dist/generated/sid/v1/authz/authz.js +404 -426
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
- package/dist/generated/sid/v1/authz/governance.js +65 -71
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/operation.d.ts +3 -3
- package/dist/generated/sid/v1/common/operation.js +13 -13
- package/dist/generated/sid/v1/common/operation.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
- package/dist/generated/sid/v1/federation/upstream.js +48 -48
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
- package/dist/generated/sid/v1/identity/identity.js +367 -367
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +16 -0
- package/dist/generated/sid/v1/ids/ids.js +8 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +115 -56
- package/dist/generated/sid/v1/machine/machine_user.js +260 -211
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
- package/dist/generated/sid/v1/machine/pat.js +41 -45
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
- package/dist/generated/sid/v1/projects/projects.js +293 -271
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/package.json +5 -5
|
@@ -137,7 +137,7 @@ export interface RefreshNativeSessionResponse {
|
|
|
137
137
|
* The refreshed session: the same session, never a new one. Not a
|
|
138
138
|
* credential.
|
|
139
139
|
*
|
|
140
|
-
* @generated from protobuf field: sid.v1.ids.SessionId session_id =
|
|
140
|
+
* @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
|
|
141
141
|
*/
|
|
142
142
|
sessionId?: SessionId;
|
|
143
143
|
/**
|
|
@@ -212,7 +212,7 @@ export const RefreshNativeSessionRequest = new RefreshNativeSessionRequest$Type(
|
|
|
212
212
|
class RefreshNativeSessionResponse$Type extends MessageType {
|
|
213
213
|
constructor() {
|
|
214
214
|
super("sid.v1.authn.RefreshNativeSessionResponse", [
|
|
215
|
-
{ no:
|
|
215
|
+
{ no: 1, name: "session_id", kind: "message", T: () => SessionId },
|
|
216
216
|
{ no: 2, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
@@ -228,7 +228,7 @@ class RefreshNativeSessionResponse$Type extends MessageType {
|
|
|
228
228
|
while (reader.pos < end) {
|
|
229
229
|
let [fieldNo, wireType] = reader.tag();
|
|
230
230
|
switch (fieldNo) {
|
|
231
|
-
case /* sid.v1.ids.SessionId session_id */
|
|
231
|
+
case /* sid.v1.ids.SessionId session_id */ 1:
|
|
232
232
|
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
233
233
|
break;
|
|
234
234
|
case /* int64 expires_in */ 2:
|
|
@@ -246,12 +246,12 @@ class RefreshNativeSessionResponse$Type extends MessageType {
|
|
|
246
246
|
return message;
|
|
247
247
|
}
|
|
248
248
|
internalBinaryWrite(message, writer, options) {
|
|
249
|
+
/* sid.v1.ids.SessionId session_id = 1; */
|
|
250
|
+
if (message.sessionId)
|
|
251
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
249
252
|
/* int64 expires_in = 2; */
|
|
250
253
|
if (message.expiresIn !== 0n)
|
|
251
254
|
writer.tag(2, WireType.Varint).int64(message.expiresIn);
|
|
252
|
-
/* sid.v1.ids.SessionId session_id = 3; */
|
|
253
|
-
if (message.sessionId)
|
|
254
|
-
SessionId.internalBinaryWrite(message.sessionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
255
255
|
let u = options.writeUnknownFields;
|
|
256
256
|
if (u !== false)
|
|
257
257
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1 +1 @@
|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C,KAAK,KAAK;wBACX,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxG,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,mBAAmB,CAAC,OAAqC,EAAE,MAAqB,EAAE,OAA2B;QACzG,2BAA2B;QAC3B,IAAI,OAAO,CAAC,SAAS,KAAK,EAAE;YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5D,0CAA0C;QAC1C,IAAI,OAAO,CAAC,SAAS;YACjB,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;QACrH,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,4BAA4B,GAAG,IAAI,iCAAiC,EAAE,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/native_session.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\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 { SessionId } from \"../ids/ids.js\";\n/**\n * One generation of a native session's refresh credentials, delivered in\n * `sid-native-credentials-bin` response metadata by a native ceremony\n * completion, a refresh and a redelivery of that refresh. The client\n * replaces its stored generation with this one as a whole: credentials of\n * different generations are never mixed.\n *\n * @generated from protobuf message sid.v1.authn.NativeCredentialSet\n */\nexport interface NativeCredentialSet {\n /**\n * The generation's refresh credentials, opaque bearer secrets of equal\n * standing bound to the application key: any one of them, with a fresh\n * proof by that key, refreshes the session once. Their number is the\n * issuer's session policy (`native_refresh_generation_size`); a client\n * accepts any count from 1 up to 16 and refuses a set outside it.\n *\n * @generated from protobuf field: repeated string refresh_credentials = 1\n */\n refreshCredentials: string[];\n /**\n * Seconds until these credentials expire, counted from the response.\n * Never beyond the session's absolute end or a source deadline.\n *\n * @generated from protobuf field: int64 expires_in = 2\n */\n expiresIn: bigint;\n /**\n * Seconds after a refresh commits during which a retry of the same\n * exchange with another credential of the presented generation receives\n * this same set again (the issuer's `native_redelivery_window_seconds`).\n * After it, the presented generation is retired.\n *\n * @generated from protobuf field: int64 redelivery_window = 3\n */\n redeliveryWindow: bigint;\n}\n/**\n * The claims of a SID native proof (JWS header `typ: \"sid-native+jwt\"`,\n * `jwk`: the application key's public JWK, `alg`: an asymmetric algorithm\n * of RFC 9449 §4.2). Signature, key, `jti`, `htm`, `htu` and `iat` follow\n * RFC 9449 §4.2 and §4.3: `htu` and `htm` name the request as the client\n * actually addressed it (the issuer URL and gRPC method path for a direct\n * gRPC call, the HTTP route for an HTTP call), and each `jti` is admitted\n * once by the issuer. The SID claims below bind what standard DPoP does not\n * (RFC 9449 §11.7): `ath` keeps its access-token meaning and is not used.\n * This message documents the claim set; the proof is the JWS, not this\n * message.\n *\n * @generated from protobuf message sid.v1.authn.NativeProofClaims\n */\nexport interface NativeProofClaims {\n /**\n * RFC 9449 §4.2: unique identifier of this proof; a proof is used once.\n *\n * @generated from protobuf field: string jti = 1\n */\n jti: string;\n /**\n * RFC 9449 §4.2: the HTTP method of the request (\"POST\").\n *\n * @generated from protobuf field: string htm = 2\n */\n htm: string;\n /**\n * RFC 9449 §4.2: the request URI without query and fragment, as the\n * client addressed it.\n *\n * @generated from protobuf field: string htu = 3\n */\n htu: string;\n /**\n * RFC 9449 §4.2: creation time, seconds since the epoch.\n *\n * @generated from protobuf field: int64 iat = 4\n */\n iat: bigint;\n /**\n * On RefreshNativeSession: base64url (no padding) SHA-256 of the\n * presented refresh credential's ASCII form. A proof for one credential\n * presents no other.\n *\n * @generated from protobuf field: string sid_rt = 5\n */\n sidRt: string;\n /**\n * On RefreshNativeSession: base64url (no padding) of the request's\n * `exchange`. A retry of the same exchange keeps it under a new proof.\n *\n * @generated from protobuf field: string sid_ex = 6\n */\n sidEx: string;\n /**\n * On a ceremony completion: base64url (no padding) SHA-256 of the\n * ceremony reference that completion echoes, as the completing method\n * documents it (for OpaqueLoginFinish the 16 bytes of its `login_id`). Binds\n * the application key to that one authenticated ceremony.\n *\n * @generated from protobuf field: string sid_cer = 7\n */\n sidCer: string;\n}\n/**\n * Refresh a native session, or receive again the generation a lost response\n * carried. Presented credential in `sid-native-refresh`, proof in\n * `sid-native-proof`; the access token in `authorization` and the next\n * generation in `sid-native-credentials-bin` response metadata.\n *\n * @generated from protobuf message sid.v1.authn.RefreshNativeSessionRequest\n */\nexport interface RefreshNativeSessionRequest {\n /**\n * The logical exchange: 16 random bytes the client chooses for one refresh\n * and keeps across its retries. Retrying an exchange within the\n * redelivery window, with any credential of the generation it rotated and\n * a fresh proof, answers the generation it committed; it grants no\n * authority by itself.\n *\n * @generated from protobuf field: bytes exchange = 1\n */\n exchange: Uint8Array;\n}\n/**\n * The refreshed session. Its credentials are in the response metadata.\n *\n * @generated from protobuf message sid.v1.authn.RefreshNativeSessionResponse\n */\nexport interface RefreshNativeSessionResponse {\n /**\n * The refreshed session: the same session, never a new one. Not a\n * credential.\n *\n * @generated from protobuf field: sid.v1.ids.SessionId session_id = 3\n */\n sessionId?: SessionId;\n /**\n * Seconds until the delivered access token expires.\n *\n * @generated from protobuf field: int64 expires_in = 2\n */\n expiresIn: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass NativeCredentialSet$Type extends MessageType<NativeCredentialSet> {\n constructor() {\n super(\"sid.v1.authn.NativeCredentialSet\", [\n { no: 1, name: \"refresh_credentials\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"expires_in\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"redelivery_window\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<NativeCredentialSet>): NativeCredentialSet {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.refreshCredentials = [];\n message.expiresIn = 0n;\n message.redeliveryWindow = 0n;\n if (value !== undefined)\n reflectionMergePartial<NativeCredentialSet>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NativeCredentialSet): NativeCredentialSet {\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 string refresh_credentials */ 1:\n message.refreshCredentials.push(reader.string());\n break;\n case /* int64 expires_in */ 2:\n message.expiresIn = reader.int64().toBigInt();\n break;\n case /* int64 redelivery_window */ 3:\n message.redeliveryWindow = reader.int64().toBigInt();\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: NativeCredentialSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated string refresh_credentials = 1; */\n for (let i = 0; i < message.refreshCredentials.length; i++)\n writer.tag(1, WireType.LengthDelimited).string(message.refreshCredentials[i]);\n /* int64 expires_in = 2; */\n if (message.expiresIn !== 0n)\n writer.tag(2, WireType.Varint).int64(message.expiresIn);\n /* int64 redelivery_window = 3; */\n if (message.redeliveryWindow !== 0n)\n writer.tag(3, WireType.Varint).int64(message.redeliveryWindow);\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.NativeCredentialSet\n */\nexport const NativeCredentialSet = new NativeCredentialSet$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass NativeProofClaims$Type extends MessageType<NativeProofClaims> {\n constructor() {\n super(\"sid.v1.authn.NativeProofClaims\", [\n { no: 1, name: \"jti\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"htm\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"htu\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"iat\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 5, name: \"sid_rt\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 6, name: \"sid_ex\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 7, name: \"sid_cer\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<NativeProofClaims>): NativeProofClaims {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.jti = \"\";\n message.htm = \"\";\n message.htu = \"\";\n message.iat = 0n;\n message.sidRt = \"\";\n message.sidEx = \"\";\n message.sidCer = \"\";\n if (value !== undefined)\n reflectionMergePartial<NativeProofClaims>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NativeProofClaims): NativeProofClaims {\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 /* string jti */ 1:\n message.jti = reader.string();\n break;\n case /* string htm */ 2:\n message.htm = reader.string();\n break;\n case /* string htu */ 3:\n message.htu = reader.string();\n break;\n case /* int64 iat */ 4:\n message.iat = reader.int64().toBigInt();\n break;\n case /* string sid_rt */ 5:\n message.sidRt = reader.string();\n break;\n case /* string sid_ex */ 6:\n message.sidEx = reader.string();\n break;\n case /* string sid_cer */ 7:\n message.sidCer = reader.string();\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: NativeProofClaims, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string jti = 1; */\n if (message.jti !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.jti);\n /* string htm = 2; */\n if (message.htm !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.htm);\n /* string htu = 3; */\n if (message.htu !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.htu);\n /* int64 iat = 4; */\n if (message.iat !== 0n)\n writer.tag(4, WireType.Varint).int64(message.iat);\n /* string sid_rt = 5; */\n if (message.sidRt !== \"\")\n writer.tag(5, WireType.LengthDelimited).string(message.sidRt);\n /* string sid_ex = 6; */\n if (message.sidEx !== \"\")\n writer.tag(6, WireType.LengthDelimited).string(message.sidEx);\n /* string sid_cer = 7; */\n if (message.sidCer !== \"\")\n writer.tag(7, WireType.LengthDelimited).string(message.sidCer);\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.NativeProofClaims\n */\nexport const NativeProofClaims = new NativeProofClaims$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RefreshNativeSessionRequest$Type extends MessageType<RefreshNativeSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.RefreshNativeSessionRequest\", [\n { no: 1, name: \"exchange\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<RefreshNativeSessionRequest>): RefreshNativeSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.exchange = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<RefreshNativeSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshNativeSessionRequest): RefreshNativeSessionRequest {\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 exchange */ 1:\n message.exchange = 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: RefreshNativeSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes exchange = 1; */\n if (message.exchange.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.exchange);\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.RefreshNativeSessionRequest\n */\nexport const RefreshNativeSessionRequest = new RefreshNativeSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RefreshNativeSessionResponse$Type extends MessageType<RefreshNativeSessionResponse> {\n constructor() {\n super(\"sid.v1.authn.RefreshNativeSessionResponse\", [\n { no: 3, name: \"session_id\", kind: \"message\", T: () => SessionId },\n { no: 2, name: \"expires_in\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<RefreshNativeSessionResponse>): RefreshNativeSessionResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.expiresIn = 0n;\n if (value !== undefined)\n reflectionMergePartial<RefreshNativeSessionResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshNativeSessionResponse): RefreshNativeSessionResponse {\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.SessionId session_id */ 3:\n message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);\n break;\n case /* int64 expires_in */ 2:\n message.expiresIn = reader.int64().toBigInt();\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: RefreshNativeSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* int64 expires_in = 2; */\n if (message.expiresIn !== 0n)\n writer.tag(2, WireType.Varint).int64(message.expiresIn);\n /* sid.v1.ids.SessionId session_id = 3; */\n if (message.sessionId)\n SessionId.internalBinaryWrite(message.sessionId, writer.tag(3, 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.RefreshNativeSessionResponse\n */\nexport const RefreshNativeSessionResponse = new RefreshNativeSessionResponse$Type();\n"]}
|
|
1
|
+
{"version":3,"file":"native_session.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/native_session.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AA+I1C,2FAA2F;AAC3F,MAAM,wBAAyB,SAAQ,WAAgC;IACnE;QACI,KAAK,CAAC,kCAAkC,EAAE;YACtC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,uBAAuB,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;YACrH,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC,EAAE,CAAC,CAAC,mBAAmB,EAAE;YAClG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE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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,4BAA4B,GAAG,IAAI,iCAAiC,EAAE,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/native_session.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\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 { SessionId } from \"../ids/ids.js\";\n/**\n * One generation of a native session's refresh credentials, delivered in\n * `sid-native-credentials-bin` response metadata by a native ceremony\n * completion, a refresh and a redelivery of that refresh. The client\n * replaces its stored generation with this one as a whole: credentials of\n * different generations are never mixed.\n *\n * @generated from protobuf message sid.v1.authn.NativeCredentialSet\n */\nexport interface NativeCredentialSet {\n /**\n * The generation's refresh credentials, opaque bearer secrets of equal\n * standing bound to the application key: any one of them, with a fresh\n * proof by that key, refreshes the session once. Their number is the\n * issuer's session policy (`native_refresh_generation_size`); a client\n * accepts any count from 1 up to 16 and refuses a set outside it.\n *\n * @generated from protobuf field: repeated string refresh_credentials = 1\n */\n refreshCredentials: string[];\n /**\n * Seconds until these credentials expire, counted from the response.\n * Never beyond the session's absolute end or a source deadline.\n *\n * @generated from protobuf field: int64 expires_in = 2\n */\n expiresIn: bigint;\n /**\n * Seconds after a refresh commits during which a retry of the same\n * exchange with another credential of the presented generation receives\n * this same set again (the issuer's `native_redelivery_window_seconds`).\n * After it, the presented generation is retired.\n *\n * @generated from protobuf field: int64 redelivery_window = 3\n */\n redeliveryWindow: bigint;\n}\n/**\n * The claims of a SID native proof (JWS header `typ: \"sid-native+jwt\"`,\n * `jwk`: the application key's public JWK, `alg`: an asymmetric algorithm\n * of RFC 9449 §4.2). Signature, key, `jti`, `htm`, `htu` and `iat` follow\n * RFC 9449 §4.2 and §4.3: `htu` and `htm` name the request as the client\n * actually addressed it (the issuer URL and gRPC method path for a direct\n * gRPC call, the HTTP route for an HTTP call), and each `jti` is admitted\n * once by the issuer. The SID claims below bind what standard DPoP does not\n * (RFC 9449 §11.7): `ath` keeps its access-token meaning and is not used.\n * This message documents the claim set; the proof is the JWS, not this\n * message.\n *\n * @generated from protobuf message sid.v1.authn.NativeProofClaims\n */\nexport interface NativeProofClaims {\n /**\n * RFC 9449 §4.2: unique identifier of this proof; a proof is used once.\n *\n * @generated from protobuf field: string jti = 1\n */\n jti: string;\n /**\n * RFC 9449 §4.2: the HTTP method of the request (\"POST\").\n *\n * @generated from protobuf field: string htm = 2\n */\n htm: string;\n /**\n * RFC 9449 §4.2: the request URI without query and fragment, as the\n * client addressed it.\n *\n * @generated from protobuf field: string htu = 3\n */\n htu: string;\n /**\n * RFC 9449 §4.2: creation time, seconds since the epoch.\n *\n * @generated from protobuf field: int64 iat = 4\n */\n iat: bigint;\n /**\n * On RefreshNativeSession: base64url (no padding) SHA-256 of the\n * presented refresh credential's ASCII form. A proof for one credential\n * presents no other.\n *\n * @generated from protobuf field: string sid_rt = 5\n */\n sidRt: string;\n /**\n * On RefreshNativeSession: base64url (no padding) of the request's\n * `exchange`. A retry of the same exchange keeps it under a new proof.\n *\n * @generated from protobuf field: string sid_ex = 6\n */\n sidEx: string;\n /**\n * On a ceremony completion: base64url (no padding) SHA-256 of the\n * ceremony reference that completion echoes, as the completing method\n * documents it (for OpaqueLoginFinish the 16 bytes of its `login_id`). Binds\n * the application key to that one authenticated ceremony.\n *\n * @generated from protobuf field: string sid_cer = 7\n */\n sidCer: string;\n}\n/**\n * Refresh a native session, or receive again the generation a lost response\n * carried. Presented credential in `sid-native-refresh`, proof in\n * `sid-native-proof`; the access token in `authorization` and the next\n * generation in `sid-native-credentials-bin` response metadata.\n *\n * @generated from protobuf message sid.v1.authn.RefreshNativeSessionRequest\n */\nexport interface RefreshNativeSessionRequest {\n /**\n * The logical exchange: 16 random bytes the client chooses for one refresh\n * and keeps across its retries. Retrying an exchange within the\n * redelivery window, with any credential of the generation it rotated and\n * a fresh proof, answers the generation it committed; it grants no\n * authority by itself.\n *\n * @generated from protobuf field: bytes exchange = 1\n */\n exchange: Uint8Array;\n}\n/**\n * The refreshed session. Its credentials are in the response metadata.\n *\n * @generated from protobuf message sid.v1.authn.RefreshNativeSessionResponse\n */\nexport interface RefreshNativeSessionResponse {\n /**\n * The refreshed session: the same session, never a new one. Not a\n * credential.\n *\n * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1\n */\n sessionId?: SessionId;\n /**\n * Seconds until the delivered access token expires.\n *\n * @generated from protobuf field: int64 expires_in = 2\n */\n expiresIn: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass NativeCredentialSet$Type extends MessageType<NativeCredentialSet> {\n constructor() {\n super(\"sid.v1.authn.NativeCredentialSet\", [\n { no: 1, name: \"refresh_credentials\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"expires_in\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"redelivery_window\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<NativeCredentialSet>): NativeCredentialSet {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.refreshCredentials = [];\n message.expiresIn = 0n;\n message.redeliveryWindow = 0n;\n if (value !== undefined)\n reflectionMergePartial<NativeCredentialSet>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NativeCredentialSet): NativeCredentialSet {\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 string refresh_credentials */ 1:\n message.refreshCredentials.push(reader.string());\n break;\n case /* int64 expires_in */ 2:\n message.expiresIn = reader.int64().toBigInt();\n break;\n case /* int64 redelivery_window */ 3:\n message.redeliveryWindow = reader.int64().toBigInt();\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: NativeCredentialSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated string refresh_credentials = 1; */\n for (let i = 0; i < message.refreshCredentials.length; i++)\n writer.tag(1, WireType.LengthDelimited).string(message.refreshCredentials[i]);\n /* int64 expires_in = 2; */\n if (message.expiresIn !== 0n)\n writer.tag(2, WireType.Varint).int64(message.expiresIn);\n /* int64 redelivery_window = 3; */\n if (message.redeliveryWindow !== 0n)\n writer.tag(3, WireType.Varint).int64(message.redeliveryWindow);\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.NativeCredentialSet\n */\nexport const NativeCredentialSet = new NativeCredentialSet$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass NativeProofClaims$Type extends MessageType<NativeProofClaims> {\n constructor() {\n super(\"sid.v1.authn.NativeProofClaims\", [\n { no: 1, name: \"jti\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"htm\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"htu\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"iat\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 5, name: \"sid_rt\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 6, name: \"sid_ex\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 7, name: \"sid_cer\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<NativeProofClaims>): NativeProofClaims {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.jti = \"\";\n message.htm = \"\";\n message.htu = \"\";\n message.iat = 0n;\n message.sidRt = \"\";\n message.sidEx = \"\";\n message.sidCer = \"\";\n if (value !== undefined)\n reflectionMergePartial<NativeProofClaims>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NativeProofClaims): NativeProofClaims {\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 /* string jti */ 1:\n message.jti = reader.string();\n break;\n case /* string htm */ 2:\n message.htm = reader.string();\n break;\n case /* string htu */ 3:\n message.htu = reader.string();\n break;\n case /* int64 iat */ 4:\n message.iat = reader.int64().toBigInt();\n break;\n case /* string sid_rt */ 5:\n message.sidRt = reader.string();\n break;\n case /* string sid_ex */ 6:\n message.sidEx = reader.string();\n break;\n case /* string sid_cer */ 7:\n message.sidCer = reader.string();\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: NativeProofClaims, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string jti = 1; */\n if (message.jti !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.jti);\n /* string htm = 2; */\n if (message.htm !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.htm);\n /* string htu = 3; */\n if (message.htu !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.htu);\n /* int64 iat = 4; */\n if (message.iat !== 0n)\n writer.tag(4, WireType.Varint).int64(message.iat);\n /* string sid_rt = 5; */\n if (message.sidRt !== \"\")\n writer.tag(5, WireType.LengthDelimited).string(message.sidRt);\n /* string sid_ex = 6; */\n if (message.sidEx !== \"\")\n writer.tag(6, WireType.LengthDelimited).string(message.sidEx);\n /* string sid_cer = 7; */\n if (message.sidCer !== \"\")\n writer.tag(7, WireType.LengthDelimited).string(message.sidCer);\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.NativeProofClaims\n */\nexport const NativeProofClaims = new NativeProofClaims$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RefreshNativeSessionRequest$Type extends MessageType<RefreshNativeSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.RefreshNativeSessionRequest\", [\n { no: 1, name: \"exchange\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<RefreshNativeSessionRequest>): RefreshNativeSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.exchange = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<RefreshNativeSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshNativeSessionRequest): RefreshNativeSessionRequest {\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 exchange */ 1:\n message.exchange = 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: RefreshNativeSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes exchange = 1; */\n if (message.exchange.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.exchange);\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.RefreshNativeSessionRequest\n */\nexport const RefreshNativeSessionRequest = new RefreshNativeSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RefreshNativeSessionResponse$Type extends MessageType<RefreshNativeSessionResponse> {\n constructor() {\n super(\"sid.v1.authn.RefreshNativeSessionResponse\", [\n { no: 1, name: \"session_id\", kind: \"message\", T: () => SessionId },\n { no: 2, name: \"expires_in\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<RefreshNativeSessionResponse>): RefreshNativeSessionResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.expiresIn = 0n;\n if (value !== undefined)\n reflectionMergePartial<RefreshNativeSessionResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshNativeSessionResponse): RefreshNativeSessionResponse {\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.SessionId session_id */ 1:\n message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);\n break;\n case /* int64 expires_in */ 2:\n message.expiresIn = reader.int64().toBigInt();\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: RefreshNativeSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.SessionId session_id = 1; */\n if (message.sessionId)\n SessionId.internalBinaryWrite(message.sessionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* int64 expires_in = 2; */\n if (message.expiresIn !== 0n)\n writer.tag(2, WireType.Varint).int64(message.expiresIn);\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.RefreshNativeSessionResponse\n */\nexport const RefreshNativeSessionResponse = new RefreshNativeSessionResponse$Type();\n"]}
|
|
@@ -25,13 +25,13 @@ export interface PreparePasswordHistoryRequest {
|
|
|
25
25
|
* by; it never receives the owner's account identifier. An end-user client
|
|
26
26
|
* cannot supply it.
|
|
27
27
|
*
|
|
28
|
-
* @generated from protobuf field: bytes owner_domain =
|
|
28
|
+
* @generated from protobuf field: bytes owner_domain = 2
|
|
29
29
|
*/
|
|
30
30
|
ownerDomain: Uint8Array;
|
|
31
31
|
/**
|
|
32
32
|
* What the operation does to the owner's history.
|
|
33
33
|
*
|
|
34
|
-
* @generated from protobuf field: sid.v1.authn.PasswordHistoryOwnerKind owner_kind =
|
|
34
|
+
* @generated from protobuf field: sid.v1.authn.PasswordHistoryOwnerKind owner_kind = 3
|
|
35
35
|
*/
|
|
36
36
|
ownerKind: PasswordHistoryOwnerKind;
|
|
37
37
|
/**
|
|
@@ -39,7 +39,7 @@ export interface PreparePasswordHistoryRequest {
|
|
|
39
39
|
* stored it. The evaluator admits no evaluation after it, and a repeat must
|
|
40
40
|
* name the same instant.
|
|
41
41
|
*
|
|
42
|
-
* @generated from protobuf field: google.protobuf.Timestamp expires_at =
|
|
42
|
+
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 4
|
|
43
43
|
*/
|
|
44
44
|
expiresAt?: Timestamp;
|
|
45
45
|
/**
|
|
@@ -47,7 +47,7 @@ export interface PreparePasswordHistoryRequest {
|
|
|
47
47
|
* credential service derives from the authorized actor (at most 128
|
|
48
48
|
* bytes), never a value an end-user client chooses.
|
|
49
49
|
*
|
|
50
|
-
* @generated from protobuf field: string charge_key =
|
|
50
|
+
* @generated from protobuf field: string charge_key = 5
|
|
51
51
|
*/
|
|
52
52
|
chargeKey: string;
|
|
53
53
|
/**
|
|
@@ -57,7 +57,7 @@ export interface PreparePasswordHistoryRequest {
|
|
|
57
57
|
* knows this; it commits the set with the entries it describes. Each must be
|
|
58
58
|
* a domain the evaluator issued for this owner; an unknown one fails the call.
|
|
59
59
|
*
|
|
60
|
-
* @generated from protobuf field: repeated bytes live_comparison_domains =
|
|
60
|
+
* @generated from protobuf field: repeated bytes live_comparison_domains = 6
|
|
61
61
|
*/
|
|
62
62
|
liveComparisonDomains: Uint8Array[];
|
|
63
63
|
/**
|
|
@@ -67,7 +67,7 @@ export interface PreparePasswordHistoryRequest {
|
|
|
67
67
|
* owner and never retires a key on an older one, so a delayed or retried
|
|
68
68
|
* request cannot retire a key a newer revision still needs.
|
|
69
69
|
*
|
|
70
|
-
* @generated from protobuf field: uint64 history_revision =
|
|
70
|
+
* @generated from protobuf field: uint64 history_revision = 7
|
|
71
71
|
*/
|
|
72
72
|
historyRevision: bigint;
|
|
73
73
|
/**
|
|
@@ -78,7 +78,7 @@ export interface PreparePasswordHistoryRequest {
|
|
|
78
78
|
* stays pinned until a later accepted revision names it or its lifetime
|
|
79
79
|
* ends.
|
|
80
80
|
*
|
|
81
|
-
* @generated from protobuf field: repeated sid.v1.ids.PasswordOperationId settled_operations =
|
|
81
|
+
* @generated from protobuf field: repeated sid.v1.ids.PasswordOperationId settled_operations = 8
|
|
82
82
|
*/
|
|
83
83
|
settledOperations: PasswordOperationId[];
|
|
84
84
|
}
|
|
@@ -353,7 +353,7 @@ export interface PasswordRegistrationProof {
|
|
|
353
353
|
* and evaluated element among `instances` and the domain key it prepared;
|
|
354
354
|
* a missing, reordered or substituted proof fails the finish.
|
|
355
355
|
*
|
|
356
|
-
* @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs =
|
|
356
|
+
* @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs = 3
|
|
357
357
|
*/
|
|
358
358
|
evaluationProofs: PasswordHistoryEvaluationProof[];
|
|
359
359
|
}
|
|
@@ -46,13 +46,13 @@ class PreparePasswordHistoryRequest$Type extends MessageType {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
super("sid.v1.authn.PreparePasswordHistoryRequest", [
|
|
48
48
|
{ no: 1, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
49
|
-
{ no:
|
|
50
|
-
{ no:
|
|
51
|
-
{ no:
|
|
52
|
-
{ no:
|
|
53
|
-
{ no:
|
|
54
|
-
{ no:
|
|
55
|
-
{ no:
|
|
49
|
+
{ no: 2, name: "owner_domain", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
50
|
+
{ no: 3, name: "owner_kind", kind: "enum", T: () => ["sid.v1.authn.PasswordHistoryOwnerKind", PasswordHistoryOwnerKind, "PASSWORD_HISTORY_OWNER_KIND_"] },
|
|
51
|
+
{ no: 4, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
52
|
+
{ no: 5, name: "charge_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
53
|
+
{ no: 6, name: "live_comparison_domains", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
54
|
+
{ no: 7, name: "history_revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
55
|
+
{ no: 8, name: "settled_operations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordOperationId }
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
58
|
create(value) {
|
|
@@ -75,25 +75,25 @@ class PreparePasswordHistoryRequest$Type extends MessageType {
|
|
|
75
75
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 1:
|
|
76
76
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
77
77
|
break;
|
|
78
|
-
case /* bytes owner_domain */
|
|
78
|
+
case /* bytes owner_domain */ 2:
|
|
79
79
|
message.ownerDomain = reader.bytes();
|
|
80
80
|
break;
|
|
81
|
-
case /* sid.v1.authn.PasswordHistoryOwnerKind owner_kind */
|
|
81
|
+
case /* sid.v1.authn.PasswordHistoryOwnerKind owner_kind */ 3:
|
|
82
82
|
message.ownerKind = reader.int32();
|
|
83
83
|
break;
|
|
84
|
-
case /* google.protobuf.Timestamp expires_at */
|
|
84
|
+
case /* google.protobuf.Timestamp expires_at */ 4:
|
|
85
85
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
86
86
|
break;
|
|
87
|
-
case /* string charge_key */
|
|
87
|
+
case /* string charge_key */ 5:
|
|
88
88
|
message.chargeKey = reader.string();
|
|
89
89
|
break;
|
|
90
|
-
case /* repeated bytes live_comparison_domains */
|
|
90
|
+
case /* repeated bytes live_comparison_domains */ 6:
|
|
91
91
|
message.liveComparisonDomains.push(reader.bytes());
|
|
92
92
|
break;
|
|
93
|
-
case /* uint64 history_revision */
|
|
93
|
+
case /* uint64 history_revision */ 7:
|
|
94
94
|
message.historyRevision = reader.uint64().toBigInt();
|
|
95
95
|
break;
|
|
96
|
-
case /* repeated sid.v1.ids.PasswordOperationId settled_operations */
|
|
96
|
+
case /* repeated sid.v1.ids.PasswordOperationId settled_operations */ 8:
|
|
97
97
|
message.settledOperations.push(PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options));
|
|
98
98
|
break;
|
|
99
99
|
default:
|
|
@@ -111,27 +111,27 @@ class PreparePasswordHistoryRequest$Type extends MessageType {
|
|
|
111
111
|
/* sid.v1.ids.PasswordOperationId operation_id = 1; */
|
|
112
112
|
if (message.operationId)
|
|
113
113
|
PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
114
|
-
/*
|
|
115
|
-
for (let i = 0; i < message.liveComparisonDomains.length; i++)
|
|
116
|
-
writer.tag(2, WireType.LengthDelimited).bytes(message.liveComparisonDomains[i]);
|
|
117
|
-
/* uint64 history_revision = 3; */
|
|
118
|
-
if (message.historyRevision !== 0n)
|
|
119
|
-
writer.tag(3, WireType.Varint).uint64(message.historyRevision);
|
|
120
|
-
/* repeated sid.v1.ids.PasswordOperationId settled_operations = 4; */
|
|
121
|
-
for (let i = 0; i < message.settledOperations.length; i++)
|
|
122
|
-
PasswordOperationId.internalBinaryWrite(message.settledOperations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
123
|
-
/* bytes owner_domain = 5; */
|
|
114
|
+
/* bytes owner_domain = 2; */
|
|
124
115
|
if (message.ownerDomain.length)
|
|
125
|
-
writer.tag(
|
|
126
|
-
/* sid.v1.authn.PasswordHistoryOwnerKind owner_kind =
|
|
116
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.ownerDomain);
|
|
117
|
+
/* sid.v1.authn.PasswordHistoryOwnerKind owner_kind = 3; */
|
|
127
118
|
if (message.ownerKind !== 0)
|
|
128
|
-
writer.tag(
|
|
129
|
-
/* google.protobuf.Timestamp expires_at =
|
|
119
|
+
writer.tag(3, WireType.Varint).int32(message.ownerKind);
|
|
120
|
+
/* google.protobuf.Timestamp expires_at = 4; */
|
|
130
121
|
if (message.expiresAt)
|
|
131
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(
|
|
132
|
-
/* string charge_key =
|
|
122
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
123
|
+
/* string charge_key = 5; */
|
|
133
124
|
if (message.chargeKey !== "")
|
|
134
|
-
writer.tag(
|
|
125
|
+
writer.tag(5, WireType.LengthDelimited).string(message.chargeKey);
|
|
126
|
+
/* repeated bytes live_comparison_domains = 6; */
|
|
127
|
+
for (let i = 0; i < message.liveComparisonDomains.length; i++)
|
|
128
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.liveComparisonDomains[i]);
|
|
129
|
+
/* uint64 history_revision = 7; */
|
|
130
|
+
if (message.historyRevision !== 0n)
|
|
131
|
+
writer.tag(7, WireType.Varint).uint64(message.historyRevision);
|
|
132
|
+
/* repeated sid.v1.ids.PasswordOperationId settled_operations = 8; */
|
|
133
|
+
for (let i = 0; i < message.settledOperations.length; i++)
|
|
134
|
+
PasswordOperationId.internalBinaryWrite(message.settledOperations[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
135
135
|
let u = options.writeUnknownFields;
|
|
136
136
|
if (u !== false)
|
|
137
137
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -686,7 +686,7 @@ class PasswordRegistrationProof$Type extends MessageType {
|
|
|
686
686
|
super("sid.v1.authn.PasswordRegistrationProof", [
|
|
687
687
|
{ no: 1, name: "zkpp_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
688
688
|
{ no: 2, name: "instances", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
689
|
-
{ no:
|
|
689
|
+
{ no: 3, name: "evaluation_proofs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEvaluationProof }
|
|
690
690
|
]);
|
|
691
691
|
}
|
|
692
692
|
create(value) {
|
|
@@ -709,7 +709,7 @@ class PasswordRegistrationProof$Type extends MessageType {
|
|
|
709
709
|
case /* repeated bytes instances */ 2:
|
|
710
710
|
message.instances.push(reader.bytes());
|
|
711
711
|
break;
|
|
712
|
-
case /* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs */
|
|
712
|
+
case /* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs */ 3:
|
|
713
713
|
message.evaluationProofs.push(PasswordHistoryEvaluationProof.internalBinaryRead(reader, reader.uint32(), options));
|
|
714
714
|
break;
|
|
715
715
|
default:
|
|
@@ -730,9 +730,9 @@ class PasswordRegistrationProof$Type extends MessageType {
|
|
|
730
730
|
/* repeated bytes instances = 2; */
|
|
731
731
|
for (let i = 0; i < message.instances.length; i++)
|
|
732
732
|
writer.tag(2, WireType.LengthDelimited).bytes(message.instances[i]);
|
|
733
|
-
/* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs =
|
|
733
|
+
/* repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs = 3; */
|
|
734
734
|
for (let i = 0; i < message.evaluationProofs.length; i++)
|
|
735
|
-
PasswordHistoryEvaluationProof.internalBinaryWrite(message.evaluationProofs[i], writer.tag(
|
|
735
|
+
PasswordHistoryEvaluationProof.internalBinaryWrite(message.evaluationProofs[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
736
736
|
let u = options.writeUnknownFields;
|
|
737
737
|
if (u !== false)
|
|
738
738
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|