@structured-id/proto 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/generated/sid/v1/attestation/attestation.js +1 -1
- package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +33 -2
- package/dist/generated/sid/v1/federation/upstream.js +41 -1
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.18.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.17.0...typescript-proto-v0.18.0) (2026-11-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **proto:** pending second factor of an upstream sign-in ([#101](https://github.com/structured-id/sdk/issues/101)) ([5e92be1](https://github.com/structured-id/sdk/commit/5e92be13752eba96c03f53463e16fec1f16b1ee2)), closes [#100](https://github.com/structured-id/sdk/issues/100)
|
|
9
|
+
|
|
3
10
|
## [0.17.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.16.0...typescript-proto-v0.17.0) (2026-11-07)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -830,7 +830,7 @@ export const ListDeviceAttestationsResponse = new ListDeviceAttestationsResponse
|
|
|
830
830
|
* @generated ServiceType for protobuf service sid.v1.attestation.AttestationService
|
|
831
831
|
*/
|
|
832
832
|
export const AttestationService = new ServiceType("sid.v1.attestation.AttestationService", [
|
|
833
|
-
{ name: "StartDeviceEnrollment", options: { "google.api.http": { post: "/v1/attestation/enrollments", body: "*" } }, I: StartDeviceEnrollmentRequest, O: DeviceEnrollmentChallenge },
|
|
833
|
+
{ name: "StartDeviceEnrollment", options: { "google.api.http": { post: "/v1/attestation/enrollments", body: "*" }, "sid.v1.common.retry": { ceremony: "each start opens its own pending ceremony with its own single-use challenge; nothing is enrolled before its finish" } }, I: StartDeviceEnrollmentRequest, O: DeviceEnrollmentChallenge },
|
|
834
834
|
{ name: "FinishDeviceEnrollment", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/attestation/enrollments/{enrollment_id.value}/finish", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: FinishDeviceEnrollmentRequest, O: DeviceAttestation },
|
|
835
835
|
{ name: "GetDeviceAttestation", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/attestation/devices/{device_id.value}" } }, I: GetDeviceAttestationRequest, O: DeviceAttestation },
|
|
836
836
|
{ name: "RotateDeviceKey", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/attestation/enrollments/{enrollment_id.value}/rotate", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: RotateDeviceKeyRequest, O: DeviceAttestation },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/attestation/attestation.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,qHAAqH;AACrH,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,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,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE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CAC1O,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/attestation/attestation.proto\" (package \"sid.v1.attestation\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { Empty } from \"../../../google/protobuf/empty.js\";\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { 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 { DeviceEnrollmentId } from \"../ids/ids.js\";\nimport { DeviceType } from \"../identity/identity.js\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\nimport { ProfileId } from \"../ids/ids.js\";\nimport { DeviceId } from \"../ids/ids.js\";\nimport { DeviceAttestationId } from \"../ids/ids.js\";\n/**\n * Device attestation record: the key bound to a device and the evidence\n * recorded with it.\n *\n * @generated from protobuf message sid.v1.attestation.DeviceAttestation\n */\nexport interface DeviceAttestation {\n /**\n * This attestation record, issued by SID when the key is bound.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceAttestationId id = 1\n */\n id?: DeviceAttestationId;\n /**\n * The device the key is bound to (`Device.id` in sid-identity).\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * The Profile that owns the device, resolved by SID at enrollment from the\n * authorized context, never from a client field.\n *\n * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 3\n */\n profileId?: ProfileId;\n /**\n * Attestation format the device presented.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 4\n */\n format: AttestationFormat;\n /**\n * Key storage the device reported; self-asserted unless `status` is\n * VERIFIED.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 5\n */\n keyStorage: KeyStorageType;\n /**\n * Verification status of the attestation. A key whose possession was\n * proven but whose attestation was not verified is UNVERIFIED.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationStatus status = 6\n */\n status: AttestationStatus;\n /**\n * The device's public key as a JSON Web Key (RFC 7517) holding public\n * members only, UTF-8 JSON. Its RFC 7638 thumbprint names the key in the\n * enrollment proofs.\n *\n * @generated from protobuf field: string public_jwk = 7\n */\n publicJwk: string;\n /**\n * Raw attestation blob in its platform format, as presented.\n *\n * @generated from protobuf field: optional bytes attestation_object = 8\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the attestation chain, as presented.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 9\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn), as presented.\n *\n * @generated from protobuf field: optional string aaguid = 10\n */\n aaguid?: string;\n /**\n * When the key was bound.\n *\n * @generated from protobuf field: google.protobuf.Timestamp created_at = 11\n */\n createdAt?: Timestamp;\n /**\n * When the record last changed (rotation, revocation).\n *\n * @generated from protobuf field: google.protobuf.Timestamp updated_at = 12\n */\n updatedAt?: Timestamp;\n /**\n * When the key was revoked; absent while it is live.\n *\n * @generated from protobuf field: optional google.protobuf.Timestamp revoked_at = 13\n */\n revokedAt?: Timestamp;\n}\n// ── Request/Response Messages ──\n\n/**\n * @generated from protobuf message sid.v1.attestation.StartDeviceEnrollmentRequest\n */\nexport interface StartDeviceEnrollmentRequest {\n /**\n * What the ceremony does.\n *\n * @generated from protobuf field: sid.v1.attestation.DeviceEnrollmentPurpose purpose = 1\n */\n purpose: DeviceEnrollmentPurpose;\n /**\n * The device the ceremony targets: required for a rotation, and for the\n * enrollment of a device that already has metadata; absent to enroll a\n * new device, whose id SID allocates. A target to authorize, never\n * evidence of identity or authority.\n *\n * @generated from protobuf field: optional sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * Form factor of a new device, as the client describes it. Descriptive\n * only; ignored for an existing device.\n *\n * @generated from protobuf field: sid.v1.identity.DeviceType device_type = 3\n */\n deviceType: DeviceType;\n /**\n * Operating system name and version of a new device, as the client\n * reports it. Self-asserted, informational only.\n *\n * @generated from protobuf field: optional string os_info = 4\n */\n osInfo?: string;\n /**\n * User-given label of a new device.\n *\n * @generated from protobuf field: optional string display_name = 5\n */\n displayName?: string;\n}\n/**\n * The challenge a ceremony's proofs answer.\n *\n * @generated from protobuf message sid.v1.attestation.DeviceEnrollmentChallenge\n */\nexport interface DeviceEnrollmentChallenge {\n /**\n * The ceremony, named by the finishing call.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The device the ceremony binds a key to: the one allocated for a new\n * device or the requested one. The proofs name it in their `dev` claim.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * Fresh random challenge (32 bytes) the proofs carry in their `chl`\n * claim. Single-use, bound to this ceremony only.\n *\n * @generated from protobuf field: bytes challenge = 3\n */\n challenge: Uint8Array;\n /**\n * When the ceremony expires; a later finish completes nothing.\n *\n * @generated from protobuf field: google.protobuf.Timestamp expires_at = 4\n */\n expiresAt?: Timestamp;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.FinishDeviceEnrollmentRequest\n */\nexport interface FinishDeviceEnrollmentRequest {\n /**\n * The ceremony StartDeviceEnrollment issued, of purpose ENROLL.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The proposed key's proof of possession, purpose \"enroll\"; its `jwk`\n * header is the key bound to the device.\n *\n * @generated from protobuf field: string proof = 2\n */\n proof: string;\n /**\n * Attestation format of the optional attestation below.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 3\n */\n format: AttestationFormat;\n /**\n * Key storage the device reports; recorded as reported, raising no\n * assurance without verified attestation.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 4\n */\n keyStorage: KeyStorageType;\n /**\n * Raw attestation blob in its platform format.\n *\n * @generated from protobuf field: optional bytes attestation_object = 5\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the attestation chain.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 6\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn).\n *\n * @generated from protobuf field: optional string aaguid = 7\n */\n aaguid?: string;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.GetDeviceAttestationRequest\n */\nexport interface GetDeviceAttestationRequest {\n /**\n * Device to fetch the attestation of.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 1\n */\n deviceId?: DeviceId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.RotateDeviceKeyRequest\n */\nexport interface RotateDeviceKeyRequest {\n /**\n * The ceremony StartDeviceEnrollment issued, of purpose ROTATE.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The proposed key's proof of possession, purpose \"rotate-new\".\n *\n * @generated from protobuf field: string new_key_proof = 2\n */\n newKeyProof: string;\n /**\n * The current key's approval of this replacement, purpose\n * \"rotate-current\", naming the proposed key in its `key` claim.\n *\n * @generated from protobuf field: string current_key_proof = 3\n */\n currentKeyProof: string;\n /**\n * Attestation format of the new key's optional attestation below.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 4\n */\n format: AttestationFormat;\n /**\n * Key storage the device reports for the new key; recorded as reported,\n * raising no assurance without verified attestation.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 5\n */\n keyStorage: KeyStorageType;\n /**\n * Attestation of the new key, in its platform format.\n *\n * @generated from protobuf field: optional bytes attestation_object = 6\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the new key's attestation chain.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 7\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn) of the new key.\n *\n * @generated from protobuf field: optional string aaguid = 8\n */\n aaguid?: string;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.RevokeDeviceKeyRequest\n */\nexport interface RevokeDeviceKeyRequest {\n /**\n * Device whose key is revoked.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 1\n */\n deviceId?: DeviceId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.ListDeviceAttestationsRequest\n */\nexport interface ListDeviceAttestationsRequest {\n /**\n * Profile whose device keys are listed.\n *\n * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1\n */\n profileId?: ProfileId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.ListDeviceAttestationsResponse\n */\nexport interface ListDeviceAttestationsResponse {\n /**\n * The Profile's device key attestations, live and revoked.\n *\n * @generated from protobuf field: repeated sid.v1.attestation.DeviceAttestation attestations = 1\n */\n attestations: DeviceAttestation[];\n}\n/**\n * Attestation format reported by the device.\n *\n * @generated from protobuf enum sid.v1.attestation.AttestationFormat\n */\nexport enum AttestationFormat {\n /**\n * @generated from protobuf enum value: ATTESTATION_FORMAT_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * No attestation provided\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_NONE = 1;\n */\n NONE = 1,\n /**\n * FIDO2 packed attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_PACKED = 2;\n */\n PACKED = 2,\n /**\n * TPM 2.0 attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_TPM = 3;\n */\n TPM = 3,\n /**\n * Android Keystore attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_ANDROID_KEY = 4;\n */\n ANDROID_KEY = 4,\n /**\n * Apple App Attest / Secure Enclave\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_APPLE = 5;\n */\n APPLE = 5,\n /**\n * FIDO U2F attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_FIDO_U2F = 6;\n */\n FIDO_U2F = 6\n}\n/**\n * Type of hardware key storage the device reports. Self-asserted: it raises\n * no assurance unless verified attestation establishes it.\n *\n * @generated from protobuf enum sid.v1.attestation.KeyStorageType\n */\nexport enum KeyStorageType {\n /**\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Software-only key (no hardware backing)\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_SOFTWARE = 1;\n */\n SOFTWARE = 1,\n /**\n * Trusted Platform Module\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_TPM = 2;\n */\n TPM = 2,\n /**\n * Apple Secure Enclave\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_SECURE_ENCLAVE = 3;\n */\n SECURE_ENCLAVE = 3,\n /**\n * Android StrongBox\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_STRONGBOX = 4;\n */\n STRONGBOX = 4,\n /**\n * ARM TrustZone or similar TEE\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_TEE = 5;\n */\n TEE = 5\n}\n/**\n * Attestation verification status.\n *\n * @generated from protobuf enum sid.v1.attestation.AttestationStatus\n */\nexport enum AttestationStatus {\n /**\n * @generated from protobuf enum value: ATTESTATION_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Received, not yet verified\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_PENDING = 1;\n */\n PENDING = 1,\n /**\n * Attestation chain verified\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_VERIFIED = 2;\n */\n VERIFIED = 2,\n /**\n * Stored; the server does not verify chains\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_UNVERIFIED = 3;\n */\n UNVERIFIED = 3,\n /**\n * Verification failed\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_REJECTED = 4;\n */\n REJECTED = 4,\n /**\n * Key has been revoked\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_REVOKED = 5;\n */\n REVOKED = 5\n}\n/**\n * What a device-key enrollment ceremony does. A proof made for one purpose\n * is refused for the other.\n *\n * @generated from protobuf enum sid.v1.attestation.DeviceEnrollmentPurpose\n */\nexport enum DeviceEnrollmentPurpose {\n /**\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Bind the first key of a new device, or of a device that has metadata\n * and no live key.\n *\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_ENROLL = 1;\n */\n ENROLL = 1,\n /**\n * Replace the live key of an enrolled device with a new one.\n *\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_ROTATE = 2;\n */\n ROTATE = 2\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeviceAttestation$Type extends MessageType<DeviceAttestation> {\n constructor() {\n super(\"sid.v1.attestation.DeviceAttestation\", [\n { no: 1, name: \"id\", kind: \"message\", T: () => DeviceAttestationId },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"profile_id\", kind: \"message\", T: () => ProfileId },\n { no: 4, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 5, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 6, name: \"status\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationStatus\", AttestationStatus, \"ATTESTATION_STATUS_\"] },\n { no: 7, name: \"public_jwk\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 8, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 9, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 10, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 11, name: \"created_at\", kind: \"message\", T: () => Timestamp },\n { no: 12, name: \"updated_at\", kind: \"message\", T: () => Timestamp },\n { no: 13, name: \"revoked_at\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<DeviceAttestation>): DeviceAttestation {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.format = 0;\n message.keyStorage = 0;\n message.status = 0;\n message.publicJwk = \"\";\n if (value !== undefined)\n reflectionMergePartial<DeviceAttestation>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceAttestation): DeviceAttestation {\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.DeviceAttestationId id */ 1:\n message.id = DeviceAttestationId.internalBinaryRead(reader, reader.uint32(), options, message.id);\n break;\n case /* sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* sid.v1.ids.ProfileId profile_id */ 3:\n message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 4:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 5:\n message.keyStorage = reader.int32();\n break;\n case /* sid.v1.attestation.AttestationStatus status */ 6:\n message.status = reader.int32();\n break;\n case /* string public_jwk */ 7:\n message.publicJwk = reader.string();\n break;\n case /* optional bytes attestation_object */ 8:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 9:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 10:\n message.aaguid = reader.string();\n break;\n case /* google.protobuf.Timestamp created_at */ 11:\n message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);\n break;\n case /* google.protobuf.Timestamp updated_at */ 12:\n message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);\n break;\n case /* optional google.protobuf.Timestamp revoked_at */ 13:\n message.revokedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.revokedAt);\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: DeviceAttestation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceAttestationId id = 1; */\n if (message.id)\n DeviceAttestationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.ProfileId profile_id = 3; */\n if (message.profileId)\n ProfileId.internalBinaryWrite(message.profileId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.attestation.AttestationFormat format = 4; */\n if (message.format !== 0)\n writer.tag(4, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 5; */\n if (message.keyStorage !== 0)\n writer.tag(5, WireType.Varint).int32(message.keyStorage);\n /* sid.v1.attestation.AttestationStatus status = 6; */\n if (message.status !== 0)\n writer.tag(6, WireType.Varint).int32(message.status);\n /* string public_jwk = 7; */\n if (message.publicJwk !== \"\")\n writer.tag(7, WireType.LengthDelimited).string(message.publicJwk);\n /* optional bytes attestation_object = 8; */\n if (message.attestationObject !== undefined)\n writer.tag(8, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 9; */\n if (message.attestationCertificate !== undefined)\n writer.tag(9, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 10; */\n if (message.aaguid !== undefined)\n writer.tag(10, WireType.LengthDelimited).string(message.aaguid);\n /* google.protobuf.Timestamp created_at = 11; */\n if (message.createdAt)\n Timestamp.internalBinaryWrite(message.createdAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();\n /* google.protobuf.Timestamp updated_at = 12; */\n if (message.updatedAt)\n Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(12, WireType.LengthDelimited).fork(), options).join();\n /* optional google.protobuf.Timestamp revoked_at = 13; */\n if (message.revokedAt)\n Timestamp.internalBinaryWrite(message.revokedAt, writer.tag(13, 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.attestation.DeviceAttestation\n */\nexport const DeviceAttestation = new DeviceAttestation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StartDeviceEnrollmentRequest$Type extends MessageType<StartDeviceEnrollmentRequest> {\n constructor() {\n super(\"sid.v1.attestation.StartDeviceEnrollmentRequest\", [\n { no: 1, name: \"purpose\", kind: \"enum\", T: () => [\"sid.v1.attestation.DeviceEnrollmentPurpose\", DeviceEnrollmentPurpose, \"DEVICE_ENROLLMENT_PURPOSE_\"] },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"device_type\", kind: \"enum\", T: () => [\"sid.v1.identity.DeviceType\", DeviceType, \"DEVICE_TYPE_\"] },\n { no: 4, name: \"os_info\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"display_name\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StartDeviceEnrollmentRequest>): StartDeviceEnrollmentRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.purpose = 0;\n message.deviceType = 0;\n if (value !== undefined)\n reflectionMergePartial<StartDeviceEnrollmentRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartDeviceEnrollmentRequest): StartDeviceEnrollmentRequest {\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.attestation.DeviceEnrollmentPurpose purpose */ 1:\n message.purpose = reader.int32();\n break;\n case /* optional sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* sid.v1.identity.DeviceType device_type */ 3:\n message.deviceType = reader.int32();\n break;\n case /* optional string os_info */ 4:\n message.osInfo = reader.string();\n break;\n case /* optional string display_name */ 5:\n message.displayName = 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: StartDeviceEnrollmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.attestation.DeviceEnrollmentPurpose purpose = 1; */\n if (message.purpose !== 0)\n writer.tag(1, WireType.Varint).int32(message.purpose);\n /* optional sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.identity.DeviceType device_type = 3; */\n if (message.deviceType !== 0)\n writer.tag(3, WireType.Varint).int32(message.deviceType);\n /* optional string os_info = 4; */\n if (message.osInfo !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.osInfo);\n /* optional string display_name = 5; */\n if (message.displayName !== undefined)\n writer.tag(5, WireType.LengthDelimited).string(message.displayName);\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.attestation.StartDeviceEnrollmentRequest\n */\nexport const StartDeviceEnrollmentRequest = new StartDeviceEnrollmentRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeviceEnrollmentChallenge$Type extends MessageType<DeviceEnrollmentChallenge> {\n constructor() {\n super(\"sid.v1.attestation.DeviceEnrollmentChallenge\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"challenge\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 4, name: \"expires_at\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<DeviceEnrollmentChallenge>): DeviceEnrollmentChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challenge = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<DeviceEnrollmentChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceEnrollmentChallenge): DeviceEnrollmentChallenge {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* bytes challenge */ 3:\n message.challenge = reader.bytes();\n break;\n case /* google.protobuf.Timestamp expires_at */ 4:\n message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);\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: DeviceEnrollmentChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* bytes challenge = 3; */\n if (message.challenge.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.challenge);\n /* google.protobuf.Timestamp expires_at = 4; */\n if (message.expiresAt)\n Timestamp.internalBinaryWrite(message.expiresAt, 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.attestation.DeviceEnrollmentChallenge\n */\nexport const DeviceEnrollmentChallenge = new DeviceEnrollmentChallenge$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FinishDeviceEnrollmentRequest$Type extends MessageType<FinishDeviceEnrollmentRequest> {\n constructor() {\n super(\"sid.v1.attestation.FinishDeviceEnrollmentRequest\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 4, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 5, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 6, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 7, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FinishDeviceEnrollmentRequest>): FinishDeviceEnrollmentRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.proof = \"\";\n message.format = 0;\n message.keyStorage = 0;\n if (value !== undefined)\n reflectionMergePartial<FinishDeviceEnrollmentRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FinishDeviceEnrollmentRequest): FinishDeviceEnrollmentRequest {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* string proof */ 2:\n message.proof = reader.string();\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 3:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 4:\n message.keyStorage = reader.int32();\n break;\n case /* optional bytes attestation_object */ 5:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 6:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 7:\n message.aaguid = 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: FinishDeviceEnrollmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string proof = 2; */\n if (message.proof !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.proof);\n /* sid.v1.attestation.AttestationFormat format = 3; */\n if (message.format !== 0)\n writer.tag(3, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 4; */\n if (message.keyStorage !== 0)\n writer.tag(4, WireType.Varint).int32(message.keyStorage);\n /* optional bytes attestation_object = 5; */\n if (message.attestationObject !== undefined)\n writer.tag(5, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 6; */\n if (message.attestationCertificate !== undefined)\n writer.tag(6, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 7; */\n if (message.aaguid !== undefined)\n writer.tag(7, WireType.LengthDelimited).string(message.aaguid);\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.attestation.FinishDeviceEnrollmentRequest\n */\nexport const FinishDeviceEnrollmentRequest = new FinishDeviceEnrollmentRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetDeviceAttestationRequest$Type extends MessageType<GetDeviceAttestationRequest> {\n constructor() {\n super(\"sid.v1.attestation.GetDeviceAttestationRequest\", [\n { no: 1, name: \"device_id\", kind: \"message\", T: () => DeviceId }\n ]);\n }\n create(value?: PartialMessage<GetDeviceAttestationRequest>): GetDeviceAttestationRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetDeviceAttestationRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDeviceAttestationRequest): GetDeviceAttestationRequest {\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.DeviceId device_id */ 1:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\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: GetDeviceAttestationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceId device_id = 1; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, 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.attestation.GetDeviceAttestationRequest\n */\nexport const GetDeviceAttestationRequest = new GetDeviceAttestationRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RotateDeviceKeyRequest$Type extends MessageType<RotateDeviceKeyRequest> {\n constructor() {\n super(\"sid.v1.attestation.RotateDeviceKeyRequest\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"new_key_proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"current_key_proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 5, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 6, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 7, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 8, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<RotateDeviceKeyRequest>): RotateDeviceKeyRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.newKeyProof = \"\";\n message.currentKeyProof = \"\";\n message.format = 0;\n message.keyStorage = 0;\n if (value !== undefined)\n reflectionMergePartial<RotateDeviceKeyRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RotateDeviceKeyRequest): RotateDeviceKeyRequest {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* string new_key_proof */ 2:\n message.newKeyProof = reader.string();\n break;\n case /* string current_key_proof */ 3:\n message.currentKeyProof = reader.string();\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 4:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 5:\n message.keyStorage = reader.int32();\n break;\n case /* optional bytes attestation_object */ 6:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 7:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 8:\n message.aaguid = 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: RotateDeviceKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string new_key_proof = 2; */\n if (message.newKeyProof !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.newKeyProof);\n /* string current_key_proof = 3; */\n if (message.currentKeyProof !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.currentKeyProof);\n /* sid.v1.attestation.AttestationFormat format = 4; */\n if (message.format !== 0)\n writer.tag(4, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 5; */\n if (message.keyStorage !== 0)\n writer.tag(5, WireType.Varint).int32(message.keyStorage);\n /* optional bytes attestation_object = 6; */\n if (message.attestationObject !== undefined)\n writer.tag(6, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 7; */\n if (message.attestationCertificate !== undefined)\n writer.tag(7, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 8; */\n if (message.aaguid !== undefined)\n writer.tag(8, WireType.LengthDelimited).string(message.aaguid);\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.attestation.RotateDeviceKeyRequest\n */\nexport const RotateDeviceKeyRequest = new RotateDeviceKeyRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RevokeDeviceKeyRequest$Type extends MessageType<RevokeDeviceKeyRequest> {\n constructor() {\n super(\"sid.v1.attestation.RevokeDeviceKeyRequest\", [\n { no: 1, name: \"device_id\", kind: \"message\", T: () => DeviceId }\n ]);\n }\n create(value?: PartialMessage<RevokeDeviceKeyRequest>): RevokeDeviceKeyRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<RevokeDeviceKeyRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeDeviceKeyRequest): RevokeDeviceKeyRequest {\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.DeviceId device_id */ 1:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\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: RevokeDeviceKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceId device_id = 1; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, 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.attestation.RevokeDeviceKeyRequest\n */\nexport const RevokeDeviceKeyRequest = new RevokeDeviceKeyRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListDeviceAttestationsRequest$Type extends MessageType<ListDeviceAttestationsRequest> {\n constructor() {\n super(\"sid.v1.attestation.ListDeviceAttestationsRequest\", [\n { no: 1, name: \"profile_id\", kind: \"message\", T: () => ProfileId }\n ]);\n }\n create(value?: PartialMessage<ListDeviceAttestationsRequest>): ListDeviceAttestationsRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<ListDeviceAttestationsRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDeviceAttestationsRequest): ListDeviceAttestationsRequest {\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.ProfileId profile_id */ 1:\n message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);\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: ListDeviceAttestationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.ProfileId profile_id = 1; */\n if (message.profileId)\n ProfileId.internalBinaryWrite(message.profileId, 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.attestation.ListDeviceAttestationsRequest\n */\nexport const ListDeviceAttestationsRequest = new ListDeviceAttestationsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListDeviceAttestationsResponse$Type extends MessageType<ListDeviceAttestationsResponse> {\n constructor() {\n super(\"sid.v1.attestation.ListDeviceAttestationsResponse\", [\n { no: 1, name: \"attestations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceAttestation }\n ]);\n }\n create(value?: PartialMessage<ListDeviceAttestationsResponse>): ListDeviceAttestationsResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.attestations = [];\n if (value !== undefined)\n reflectionMergePartial<ListDeviceAttestationsResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDeviceAttestationsResponse): ListDeviceAttestationsResponse {\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.attestation.DeviceAttestation attestations */ 1:\n message.attestations.push(DeviceAttestation.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: ListDeviceAttestationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.attestation.DeviceAttestation attestations = 1; */\n for (let i = 0; i < message.attestations.length; i++)\n DeviceAttestation.internalBinaryWrite(message.attestations[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.attestation.ListDeviceAttestationsResponse\n */\nexport const ListDeviceAttestationsResponse = new ListDeviceAttestationsResponse$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.attestation.AttestationService\n */\nexport const AttestationService = new ServiceType(\"sid.v1.attestation.AttestationService\", [\n { name: \"StartDeviceEnrollment\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments\", body: \"*\" } }, I: StartDeviceEnrollmentRequest, O: DeviceEnrollmentChallenge },\n { name: \"FinishDeviceEnrollment\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments/{enrollment_id.value}/finish\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: FinishDeviceEnrollmentRequest, O: DeviceAttestation },\n { name: \"GetDeviceAttestation\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/attestation/devices/{device_id.value}\" } }, I: GetDeviceAttestationRequest, O: DeviceAttestation },\n { name: \"RotateDeviceKey\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments/{enrollment_id.value}/rotate\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: RotateDeviceKeyRequest, O: DeviceAttestation },\n { name: \"RevokeDeviceKey\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/devices/{device_id.value}/revoke\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: RevokeDeviceKeyRequest, O: Empty },\n { name: \"ListDeviceAttestations\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/attestation/profiles/{profile_id.value}/devices\" } }, I: ListDeviceAttestationsRequest, O: ListDeviceAttestationsResponse }\n]);\n"]}
|
|
1
|
+
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/attestation/attestation.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,qHAAqH;AACrH,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAG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EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,kDAAkD,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,sBAAsB,EAAE,CAAC,EAAE,KAAK,EAAE;IAC5O,EAAE,IAAI,EAAE,wBAAwB,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,qDAAqD,EAAE,EAAE,EAAE,CAAC,EAAE,6BAA6B,EAAE,CAAC,EAAE,8BAA8B,EAAE;CAC1O,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/attestation/attestation.proto\" (package \"sid.v1.attestation\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { Empty } from \"../../../google/protobuf/empty.js\";\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { 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 { DeviceEnrollmentId } from \"../ids/ids.js\";\nimport { DeviceType } from \"../identity/identity.js\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\nimport { ProfileId } from \"../ids/ids.js\";\nimport { DeviceId } from \"../ids/ids.js\";\nimport { DeviceAttestationId } from \"../ids/ids.js\";\n/**\n * Device attestation record: the key bound to a device and the evidence\n * recorded with it.\n *\n * @generated from protobuf message sid.v1.attestation.DeviceAttestation\n */\nexport interface DeviceAttestation {\n /**\n * This attestation record, issued by SID when the key is bound.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceAttestationId id = 1\n */\n id?: DeviceAttestationId;\n /**\n * The device the key is bound to (`Device.id` in sid-identity).\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * The Profile that owns the device, resolved by SID at enrollment from the\n * authorized context, never from a client field.\n *\n * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 3\n */\n profileId?: ProfileId;\n /**\n * Attestation format the device presented.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 4\n */\n format: AttestationFormat;\n /**\n * Key storage the device reported; self-asserted unless `status` is\n * VERIFIED.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 5\n */\n keyStorage: KeyStorageType;\n /**\n * Verification status of the attestation. A key whose possession was\n * proven but whose attestation was not verified is UNVERIFIED.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationStatus status = 6\n */\n status: AttestationStatus;\n /**\n * The device's public key as a JSON Web Key (RFC 7517) holding public\n * members only, UTF-8 JSON. Its RFC 7638 thumbprint names the key in the\n * enrollment proofs.\n *\n * @generated from protobuf field: string public_jwk = 7\n */\n publicJwk: string;\n /**\n * Raw attestation blob in its platform format, as presented.\n *\n * @generated from protobuf field: optional bytes attestation_object = 8\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the attestation chain, as presented.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 9\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn), as presented.\n *\n * @generated from protobuf field: optional string aaguid = 10\n */\n aaguid?: string;\n /**\n * When the key was bound.\n *\n * @generated from protobuf field: google.protobuf.Timestamp created_at = 11\n */\n createdAt?: Timestamp;\n /**\n * When the record last changed (rotation, revocation).\n *\n * @generated from protobuf field: google.protobuf.Timestamp updated_at = 12\n */\n updatedAt?: Timestamp;\n /**\n * When the key was revoked; absent while it is live.\n *\n * @generated from protobuf field: optional google.protobuf.Timestamp revoked_at = 13\n */\n revokedAt?: Timestamp;\n}\n// ── Request/Response Messages ──\n\n/**\n * @generated from protobuf message sid.v1.attestation.StartDeviceEnrollmentRequest\n */\nexport interface StartDeviceEnrollmentRequest {\n /**\n * What the ceremony does.\n *\n * @generated from protobuf field: sid.v1.attestation.DeviceEnrollmentPurpose purpose = 1\n */\n purpose: DeviceEnrollmentPurpose;\n /**\n * The device the ceremony targets: required for a rotation, and for the\n * enrollment of a device that already has metadata; absent to enroll a\n * new device, whose id SID allocates. A target to authorize, never\n * evidence of identity or authority.\n *\n * @generated from protobuf field: optional sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * Form factor of a new device, as the client describes it. Descriptive\n * only; ignored for an existing device.\n *\n * @generated from protobuf field: sid.v1.identity.DeviceType device_type = 3\n */\n deviceType: DeviceType;\n /**\n * Operating system name and version of a new device, as the client\n * reports it. Self-asserted, informational only.\n *\n * @generated from protobuf field: optional string os_info = 4\n */\n osInfo?: string;\n /**\n * User-given label of a new device.\n *\n * @generated from protobuf field: optional string display_name = 5\n */\n displayName?: string;\n}\n/**\n * The challenge a ceremony's proofs answer.\n *\n * @generated from protobuf message sid.v1.attestation.DeviceEnrollmentChallenge\n */\nexport interface DeviceEnrollmentChallenge {\n /**\n * The ceremony, named by the finishing call.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The device the ceremony binds a key to: the one allocated for a new\n * device or the requested one. The proofs name it in their `dev` claim.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 2\n */\n deviceId?: DeviceId;\n /**\n * Fresh random challenge (32 bytes) the proofs carry in their `chl`\n * claim. Single-use, bound to this ceremony only.\n *\n * @generated from protobuf field: bytes challenge = 3\n */\n challenge: Uint8Array;\n /**\n * When the ceremony expires; a later finish completes nothing.\n *\n * @generated from protobuf field: google.protobuf.Timestamp expires_at = 4\n */\n expiresAt?: Timestamp;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.FinishDeviceEnrollmentRequest\n */\nexport interface FinishDeviceEnrollmentRequest {\n /**\n * The ceremony StartDeviceEnrollment issued, of purpose ENROLL.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The proposed key's proof of possession, purpose \"enroll\"; its `jwk`\n * header is the key bound to the device.\n *\n * @generated from protobuf field: string proof = 2\n */\n proof: string;\n /**\n * Attestation format of the optional attestation below.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 3\n */\n format: AttestationFormat;\n /**\n * Key storage the device reports; recorded as reported, raising no\n * assurance without verified attestation.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 4\n */\n keyStorage: KeyStorageType;\n /**\n * Raw attestation blob in its platform format.\n *\n * @generated from protobuf field: optional bytes attestation_object = 5\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the attestation chain.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 6\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn).\n *\n * @generated from protobuf field: optional string aaguid = 7\n */\n aaguid?: string;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.GetDeviceAttestationRequest\n */\nexport interface GetDeviceAttestationRequest {\n /**\n * Device to fetch the attestation of.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 1\n */\n deviceId?: DeviceId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.RotateDeviceKeyRequest\n */\nexport interface RotateDeviceKeyRequest {\n /**\n * The ceremony StartDeviceEnrollment issued, of purpose ROTATE.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceEnrollmentId enrollment_id = 1\n */\n enrollmentId?: DeviceEnrollmentId;\n /**\n * The proposed key's proof of possession, purpose \"rotate-new\".\n *\n * @generated from protobuf field: string new_key_proof = 2\n */\n newKeyProof: string;\n /**\n * The current key's approval of this replacement, purpose\n * \"rotate-current\", naming the proposed key in its `key` claim.\n *\n * @generated from protobuf field: string current_key_proof = 3\n */\n currentKeyProof: string;\n /**\n * Attestation format of the new key's optional attestation below.\n *\n * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 4\n */\n format: AttestationFormat;\n /**\n * Key storage the device reports for the new key; recorded as reported,\n * raising no assurance without verified attestation.\n *\n * @generated from protobuf field: sid.v1.attestation.KeyStorageType key_storage = 5\n */\n keyStorage: KeyStorageType;\n /**\n * Attestation of the new key, in its platform format.\n *\n * @generated from protobuf field: optional bytes attestation_object = 6\n */\n attestationObject?: Uint8Array;\n /**\n * Leaf certificate of the new key's attestation chain.\n *\n * @generated from protobuf field: optional bytes attestation_certificate = 7\n */\n attestationCertificate?: Uint8Array;\n /**\n * Authenticator Attestation GUID (WebAuthn) of the new key.\n *\n * @generated from protobuf field: optional string aaguid = 8\n */\n aaguid?: string;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.RevokeDeviceKeyRequest\n */\nexport interface RevokeDeviceKeyRequest {\n /**\n * Device whose key is revoked.\n *\n * @generated from protobuf field: sid.v1.ids.DeviceId device_id = 1\n */\n deviceId?: DeviceId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.ListDeviceAttestationsRequest\n */\nexport interface ListDeviceAttestationsRequest {\n /**\n * Profile whose device keys are listed.\n *\n * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1\n */\n profileId?: ProfileId;\n}\n/**\n * @generated from protobuf message sid.v1.attestation.ListDeviceAttestationsResponse\n */\nexport interface ListDeviceAttestationsResponse {\n /**\n * The Profile's device key attestations, live and revoked.\n *\n * @generated from protobuf field: repeated sid.v1.attestation.DeviceAttestation attestations = 1\n */\n attestations: DeviceAttestation[];\n}\n/**\n * Attestation format reported by the device.\n *\n * @generated from protobuf enum sid.v1.attestation.AttestationFormat\n */\nexport enum AttestationFormat {\n /**\n * @generated from protobuf enum value: ATTESTATION_FORMAT_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * No attestation provided\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_NONE = 1;\n */\n NONE = 1,\n /**\n * FIDO2 packed attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_PACKED = 2;\n */\n PACKED = 2,\n /**\n * TPM 2.0 attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_TPM = 3;\n */\n TPM = 3,\n /**\n * Android Keystore attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_ANDROID_KEY = 4;\n */\n ANDROID_KEY = 4,\n /**\n * Apple App Attest / Secure Enclave\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_APPLE = 5;\n */\n APPLE = 5,\n /**\n * FIDO U2F attestation\n *\n * @generated from protobuf enum value: ATTESTATION_FORMAT_FIDO_U2F = 6;\n */\n FIDO_U2F = 6\n}\n/**\n * Type of hardware key storage the device reports. Self-asserted: it raises\n * no assurance unless verified attestation establishes it.\n *\n * @generated from protobuf enum sid.v1.attestation.KeyStorageType\n */\nexport enum KeyStorageType {\n /**\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Software-only key (no hardware backing)\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_SOFTWARE = 1;\n */\n SOFTWARE = 1,\n /**\n * Trusted Platform Module\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_TPM = 2;\n */\n TPM = 2,\n /**\n * Apple Secure Enclave\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_SECURE_ENCLAVE = 3;\n */\n SECURE_ENCLAVE = 3,\n /**\n * Android StrongBox\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_STRONGBOX = 4;\n */\n STRONGBOX = 4,\n /**\n * ARM TrustZone or similar TEE\n *\n * @generated from protobuf enum value: KEY_STORAGE_TYPE_TEE = 5;\n */\n TEE = 5\n}\n/**\n * Attestation verification status.\n *\n * @generated from protobuf enum sid.v1.attestation.AttestationStatus\n */\nexport enum AttestationStatus {\n /**\n * @generated from protobuf enum value: ATTESTATION_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Received, not yet verified\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_PENDING = 1;\n */\n PENDING = 1,\n /**\n * Attestation chain verified\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_VERIFIED = 2;\n */\n VERIFIED = 2,\n /**\n * Stored; the server does not verify chains\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_UNVERIFIED = 3;\n */\n UNVERIFIED = 3,\n /**\n * Verification failed\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_REJECTED = 4;\n */\n REJECTED = 4,\n /**\n * Key has been revoked\n *\n * @generated from protobuf enum value: ATTESTATION_STATUS_REVOKED = 5;\n */\n REVOKED = 5\n}\n/**\n * What a device-key enrollment ceremony does. A proof made for one purpose\n * is refused for the other.\n *\n * @generated from protobuf enum sid.v1.attestation.DeviceEnrollmentPurpose\n */\nexport enum DeviceEnrollmentPurpose {\n /**\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Bind the first key of a new device, or of a device that has metadata\n * and no live key.\n *\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_ENROLL = 1;\n */\n ENROLL = 1,\n /**\n * Replace the live key of an enrolled device with a new one.\n *\n * @generated from protobuf enum value: DEVICE_ENROLLMENT_PURPOSE_ROTATE = 2;\n */\n ROTATE = 2\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeviceAttestation$Type extends MessageType<DeviceAttestation> {\n constructor() {\n super(\"sid.v1.attestation.DeviceAttestation\", [\n { no: 1, name: \"id\", kind: \"message\", T: () => DeviceAttestationId },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"profile_id\", kind: \"message\", T: () => ProfileId },\n { no: 4, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 5, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 6, name: \"status\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationStatus\", AttestationStatus, \"ATTESTATION_STATUS_\"] },\n { no: 7, name: \"public_jwk\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 8, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 9, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 10, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 11, name: \"created_at\", kind: \"message\", T: () => Timestamp },\n { no: 12, name: \"updated_at\", kind: \"message\", T: () => Timestamp },\n { no: 13, name: \"revoked_at\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<DeviceAttestation>): DeviceAttestation {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.format = 0;\n message.keyStorage = 0;\n message.status = 0;\n message.publicJwk = \"\";\n if (value !== undefined)\n reflectionMergePartial<DeviceAttestation>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceAttestation): DeviceAttestation {\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.DeviceAttestationId id */ 1:\n message.id = DeviceAttestationId.internalBinaryRead(reader, reader.uint32(), options, message.id);\n break;\n case /* sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* sid.v1.ids.ProfileId profile_id */ 3:\n message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 4:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 5:\n message.keyStorage = reader.int32();\n break;\n case /* sid.v1.attestation.AttestationStatus status */ 6:\n message.status = reader.int32();\n break;\n case /* string public_jwk */ 7:\n message.publicJwk = reader.string();\n break;\n case /* optional bytes attestation_object */ 8:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 9:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 10:\n message.aaguid = reader.string();\n break;\n case /* google.protobuf.Timestamp created_at */ 11:\n message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);\n break;\n case /* google.protobuf.Timestamp updated_at */ 12:\n message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);\n break;\n case /* optional google.protobuf.Timestamp revoked_at */ 13:\n message.revokedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.revokedAt);\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: DeviceAttestation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceAttestationId id = 1; */\n if (message.id)\n DeviceAttestationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.ProfileId profile_id = 3; */\n if (message.profileId)\n ProfileId.internalBinaryWrite(message.profileId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.attestation.AttestationFormat format = 4; */\n if (message.format !== 0)\n writer.tag(4, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 5; */\n if (message.keyStorage !== 0)\n writer.tag(5, WireType.Varint).int32(message.keyStorage);\n /* sid.v1.attestation.AttestationStatus status = 6; */\n if (message.status !== 0)\n writer.tag(6, WireType.Varint).int32(message.status);\n /* string public_jwk = 7; */\n if (message.publicJwk !== \"\")\n writer.tag(7, WireType.LengthDelimited).string(message.publicJwk);\n /* optional bytes attestation_object = 8; */\n if (message.attestationObject !== undefined)\n writer.tag(8, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 9; */\n if (message.attestationCertificate !== undefined)\n writer.tag(9, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 10; */\n if (message.aaguid !== undefined)\n writer.tag(10, WireType.LengthDelimited).string(message.aaguid);\n /* google.protobuf.Timestamp created_at = 11; */\n if (message.createdAt)\n Timestamp.internalBinaryWrite(message.createdAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();\n /* google.protobuf.Timestamp updated_at = 12; */\n if (message.updatedAt)\n Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(12, WireType.LengthDelimited).fork(), options).join();\n /* optional google.protobuf.Timestamp revoked_at = 13; */\n if (message.revokedAt)\n Timestamp.internalBinaryWrite(message.revokedAt, writer.tag(13, 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.attestation.DeviceAttestation\n */\nexport const DeviceAttestation = new DeviceAttestation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StartDeviceEnrollmentRequest$Type extends MessageType<StartDeviceEnrollmentRequest> {\n constructor() {\n super(\"sid.v1.attestation.StartDeviceEnrollmentRequest\", [\n { no: 1, name: \"purpose\", kind: \"enum\", T: () => [\"sid.v1.attestation.DeviceEnrollmentPurpose\", DeviceEnrollmentPurpose, \"DEVICE_ENROLLMENT_PURPOSE_\"] },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"device_type\", kind: \"enum\", T: () => [\"sid.v1.identity.DeviceType\", DeviceType, \"DEVICE_TYPE_\"] },\n { no: 4, name: \"os_info\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"display_name\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StartDeviceEnrollmentRequest>): StartDeviceEnrollmentRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.purpose = 0;\n message.deviceType = 0;\n if (value !== undefined)\n reflectionMergePartial<StartDeviceEnrollmentRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartDeviceEnrollmentRequest): StartDeviceEnrollmentRequest {\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.attestation.DeviceEnrollmentPurpose purpose */ 1:\n message.purpose = reader.int32();\n break;\n case /* optional sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* sid.v1.identity.DeviceType device_type */ 3:\n message.deviceType = reader.int32();\n break;\n case /* optional string os_info */ 4:\n message.osInfo = reader.string();\n break;\n case /* optional string display_name */ 5:\n message.displayName = 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: StartDeviceEnrollmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.attestation.DeviceEnrollmentPurpose purpose = 1; */\n if (message.purpose !== 0)\n writer.tag(1, WireType.Varint).int32(message.purpose);\n /* optional sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.identity.DeviceType device_type = 3; */\n if (message.deviceType !== 0)\n writer.tag(3, WireType.Varint).int32(message.deviceType);\n /* optional string os_info = 4; */\n if (message.osInfo !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.osInfo);\n /* optional string display_name = 5; */\n if (message.displayName !== undefined)\n writer.tag(5, WireType.LengthDelimited).string(message.displayName);\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.attestation.StartDeviceEnrollmentRequest\n */\nexport const StartDeviceEnrollmentRequest = new StartDeviceEnrollmentRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeviceEnrollmentChallenge$Type extends MessageType<DeviceEnrollmentChallenge> {\n constructor() {\n super(\"sid.v1.attestation.DeviceEnrollmentChallenge\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"device_id\", kind: \"message\", T: () => DeviceId },\n { no: 3, name: \"challenge\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 4, name: \"expires_at\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<DeviceEnrollmentChallenge>): DeviceEnrollmentChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challenge = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<DeviceEnrollmentChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceEnrollmentChallenge): DeviceEnrollmentChallenge {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* sid.v1.ids.DeviceId device_id */ 2:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\n break;\n case /* bytes challenge */ 3:\n message.challenge = reader.bytes();\n break;\n case /* google.protobuf.Timestamp expires_at */ 4:\n message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);\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: DeviceEnrollmentChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* sid.v1.ids.DeviceId device_id = 2; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* bytes challenge = 3; */\n if (message.challenge.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.challenge);\n /* google.protobuf.Timestamp expires_at = 4; */\n if (message.expiresAt)\n Timestamp.internalBinaryWrite(message.expiresAt, 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.attestation.DeviceEnrollmentChallenge\n */\nexport const DeviceEnrollmentChallenge = new DeviceEnrollmentChallenge$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FinishDeviceEnrollmentRequest$Type extends MessageType<FinishDeviceEnrollmentRequest> {\n constructor() {\n super(\"sid.v1.attestation.FinishDeviceEnrollmentRequest\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 4, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 5, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 6, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 7, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FinishDeviceEnrollmentRequest>): FinishDeviceEnrollmentRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.proof = \"\";\n message.format = 0;\n message.keyStorage = 0;\n if (value !== undefined)\n reflectionMergePartial<FinishDeviceEnrollmentRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FinishDeviceEnrollmentRequest): FinishDeviceEnrollmentRequest {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* string proof */ 2:\n message.proof = reader.string();\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 3:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 4:\n message.keyStorage = reader.int32();\n break;\n case /* optional bytes attestation_object */ 5:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 6:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 7:\n message.aaguid = 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: FinishDeviceEnrollmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string proof = 2; */\n if (message.proof !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.proof);\n /* sid.v1.attestation.AttestationFormat format = 3; */\n if (message.format !== 0)\n writer.tag(3, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 4; */\n if (message.keyStorage !== 0)\n writer.tag(4, WireType.Varint).int32(message.keyStorage);\n /* optional bytes attestation_object = 5; */\n if (message.attestationObject !== undefined)\n writer.tag(5, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 6; */\n if (message.attestationCertificate !== undefined)\n writer.tag(6, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 7; */\n if (message.aaguid !== undefined)\n writer.tag(7, WireType.LengthDelimited).string(message.aaguid);\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.attestation.FinishDeviceEnrollmentRequest\n */\nexport const FinishDeviceEnrollmentRequest = new FinishDeviceEnrollmentRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetDeviceAttestationRequest$Type extends MessageType<GetDeviceAttestationRequest> {\n constructor() {\n super(\"sid.v1.attestation.GetDeviceAttestationRequest\", [\n { no: 1, name: \"device_id\", kind: \"message\", T: () => DeviceId }\n ]);\n }\n create(value?: PartialMessage<GetDeviceAttestationRequest>): GetDeviceAttestationRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetDeviceAttestationRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDeviceAttestationRequest): GetDeviceAttestationRequest {\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.DeviceId device_id */ 1:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\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: GetDeviceAttestationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceId device_id = 1; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, 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.attestation.GetDeviceAttestationRequest\n */\nexport const GetDeviceAttestationRequest = new GetDeviceAttestationRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RotateDeviceKeyRequest$Type extends MessageType<RotateDeviceKeyRequest> {\n constructor() {\n super(\"sid.v1.attestation.RotateDeviceKeyRequest\", [\n { no: 1, name: \"enrollment_id\", kind: \"message\", T: () => DeviceEnrollmentId },\n { no: 2, name: \"new_key_proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"current_key_proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"format\", kind: \"enum\", T: () => [\"sid.v1.attestation.AttestationFormat\", AttestationFormat, \"ATTESTATION_FORMAT_\"] },\n { no: 5, name: \"key_storage\", kind: \"enum\", T: () => [\"sid.v1.attestation.KeyStorageType\", KeyStorageType, \"KEY_STORAGE_TYPE_\"] },\n { no: 6, name: \"attestation_object\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 7, name: \"attestation_certificate\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 8, name: \"aaguid\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<RotateDeviceKeyRequest>): RotateDeviceKeyRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.newKeyProof = \"\";\n message.currentKeyProof = \"\";\n message.format = 0;\n message.keyStorage = 0;\n if (value !== undefined)\n reflectionMergePartial<RotateDeviceKeyRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RotateDeviceKeyRequest): RotateDeviceKeyRequest {\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.DeviceEnrollmentId enrollment_id */ 1:\n message.enrollmentId = DeviceEnrollmentId.internalBinaryRead(reader, reader.uint32(), options, message.enrollmentId);\n break;\n case /* string new_key_proof */ 2:\n message.newKeyProof = reader.string();\n break;\n case /* string current_key_proof */ 3:\n message.currentKeyProof = reader.string();\n break;\n case /* sid.v1.attestation.AttestationFormat format */ 4:\n message.format = reader.int32();\n break;\n case /* sid.v1.attestation.KeyStorageType key_storage */ 5:\n message.keyStorage = reader.int32();\n break;\n case /* optional bytes attestation_object */ 6:\n message.attestationObject = reader.bytes();\n break;\n case /* optional bytes attestation_certificate */ 7:\n message.attestationCertificate = reader.bytes();\n break;\n case /* optional string aaguid */ 8:\n message.aaguid = 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: RotateDeviceKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceEnrollmentId enrollment_id = 1; */\n if (message.enrollmentId)\n DeviceEnrollmentId.internalBinaryWrite(message.enrollmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string new_key_proof = 2; */\n if (message.newKeyProof !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.newKeyProof);\n /* string current_key_proof = 3; */\n if (message.currentKeyProof !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.currentKeyProof);\n /* sid.v1.attestation.AttestationFormat format = 4; */\n if (message.format !== 0)\n writer.tag(4, WireType.Varint).int32(message.format);\n /* sid.v1.attestation.KeyStorageType key_storage = 5; */\n if (message.keyStorage !== 0)\n writer.tag(5, WireType.Varint).int32(message.keyStorage);\n /* optional bytes attestation_object = 6; */\n if (message.attestationObject !== undefined)\n writer.tag(6, WireType.LengthDelimited).bytes(message.attestationObject);\n /* optional bytes attestation_certificate = 7; */\n if (message.attestationCertificate !== undefined)\n writer.tag(7, WireType.LengthDelimited).bytes(message.attestationCertificate);\n /* optional string aaguid = 8; */\n if (message.aaguid !== undefined)\n writer.tag(8, WireType.LengthDelimited).string(message.aaguid);\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.attestation.RotateDeviceKeyRequest\n */\nexport const RotateDeviceKeyRequest = new RotateDeviceKeyRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RevokeDeviceKeyRequest$Type extends MessageType<RevokeDeviceKeyRequest> {\n constructor() {\n super(\"sid.v1.attestation.RevokeDeviceKeyRequest\", [\n { no: 1, name: \"device_id\", kind: \"message\", T: () => DeviceId }\n ]);\n }\n create(value?: PartialMessage<RevokeDeviceKeyRequest>): RevokeDeviceKeyRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<RevokeDeviceKeyRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeDeviceKeyRequest): RevokeDeviceKeyRequest {\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.DeviceId device_id */ 1:\n message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);\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: RevokeDeviceKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.DeviceId device_id = 1; */\n if (message.deviceId)\n DeviceId.internalBinaryWrite(message.deviceId, 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.attestation.RevokeDeviceKeyRequest\n */\nexport const RevokeDeviceKeyRequest = new RevokeDeviceKeyRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListDeviceAttestationsRequest$Type extends MessageType<ListDeviceAttestationsRequest> {\n constructor() {\n super(\"sid.v1.attestation.ListDeviceAttestationsRequest\", [\n { no: 1, name: \"profile_id\", kind: \"message\", T: () => ProfileId }\n ]);\n }\n create(value?: PartialMessage<ListDeviceAttestationsRequest>): ListDeviceAttestationsRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<ListDeviceAttestationsRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDeviceAttestationsRequest): ListDeviceAttestationsRequest {\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.ProfileId profile_id */ 1:\n message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);\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: ListDeviceAttestationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.ProfileId profile_id = 1; */\n if (message.profileId)\n ProfileId.internalBinaryWrite(message.profileId, 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.attestation.ListDeviceAttestationsRequest\n */\nexport const ListDeviceAttestationsRequest = new ListDeviceAttestationsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListDeviceAttestationsResponse$Type extends MessageType<ListDeviceAttestationsResponse> {\n constructor() {\n super(\"sid.v1.attestation.ListDeviceAttestationsResponse\", [\n { no: 1, name: \"attestations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceAttestation }\n ]);\n }\n create(value?: PartialMessage<ListDeviceAttestationsResponse>): ListDeviceAttestationsResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.attestations = [];\n if (value !== undefined)\n reflectionMergePartial<ListDeviceAttestationsResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDeviceAttestationsResponse): ListDeviceAttestationsResponse {\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.attestation.DeviceAttestation attestations */ 1:\n message.attestations.push(DeviceAttestation.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: ListDeviceAttestationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.attestation.DeviceAttestation attestations = 1; */\n for (let i = 0; i < message.attestations.length; i++)\n DeviceAttestation.internalBinaryWrite(message.attestations[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.attestation.ListDeviceAttestationsResponse\n */\nexport const ListDeviceAttestationsResponse = new ListDeviceAttestationsResponse$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.attestation.AttestationService\n */\nexport const AttestationService = new ServiceType(\"sid.v1.attestation.AttestationService\", [\n { name: \"StartDeviceEnrollment\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments\", body: \"*\" }, \"sid.v1.common.retry\": { ceremony: \"each start opens its own pending ceremony with its own single-use challenge; nothing is enrolled before its finish\" } }, I: StartDeviceEnrollmentRequest, O: DeviceEnrollmentChallenge },\n { name: \"FinishDeviceEnrollment\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments/{enrollment_id.value}/finish\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: FinishDeviceEnrollmentRequest, O: DeviceAttestation },\n { name: \"GetDeviceAttestation\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/attestation/devices/{device_id.value}\" } }, I: GetDeviceAttestationRequest, O: DeviceAttestation },\n { name: \"RotateDeviceKey\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/enrollments/{enrollment_id.value}/rotate\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: RotateDeviceKeyRequest, O: DeviceAttestation },\n { name: \"RevokeDeviceKey\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/attestation/devices/{device_id.value}/revoke\", body: \"*\" }, \"sid.v1.common.retry\": { keyed: true } }, I: RevokeDeviceKeyRequest, O: Empty },\n { name: \"ListDeviceAttestations\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/v1/attestation/profiles/{profile_id.value}/devices\" } }, I: ListDeviceAttestationsRequest, O: ListDeviceAttestationsResponse }\n]);\n"]}
|
|
@@ -5,6 +5,7 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { StepUpMethod } from "../authn/auth.js";
|
|
8
9
|
import { SessionId } from "../ids/ids.js";
|
|
9
10
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
10
11
|
import { UpstreamProviderId } from "../ids/ids.js";
|
|
@@ -388,14 +389,15 @@ export interface HandleUpstreamCallbackResponse {
|
|
|
388
389
|
*/
|
|
389
390
|
export interface UpstreamAuthSuccess {
|
|
390
391
|
/**
|
|
391
|
-
* The session the brokered sign-in opened
|
|
392
|
+
* The session the brokered sign-in opened, or its pending context when
|
|
393
|
+
* `second_factors` or `enrollable_factors` is set.
|
|
392
394
|
*
|
|
393
395
|
* @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
|
|
394
396
|
*/
|
|
395
397
|
sessionId?: SessionId;
|
|
396
398
|
/**
|
|
397
399
|
* Seconds until the delivered credential expires. The session's credential
|
|
398
|
-
* is delivered as for sid.v1.OpaqueLoginFinishResponse, never in this
|
|
400
|
+
* is delivered as for sid.v1.authn.OpaqueLoginFinishResponse, never in this
|
|
399
401
|
* message.
|
|
400
402
|
*
|
|
401
403
|
* @generated from protobuf field: int64 expires_in = 2
|
|
@@ -405,6 +407,35 @@ export interface UpstreamAuthSuccess {
|
|
|
405
407
|
* @generated from protobuf field: bool new_profile_created = 3
|
|
406
408
|
*/
|
|
407
409
|
newProfileCreated: boolean;
|
|
410
|
+
/**
|
|
411
|
+
* Set by the server when the login requirements or the account's enabled
|
|
412
|
+
* protection need a second factor beyond the provider's sign-in and the
|
|
413
|
+
* account has one of these enrolled. The delivered credential is then a
|
|
414
|
+
* pending context that authorizes only completing the sign-in with one of
|
|
415
|
+
* these methods (VerifyTotp for STEP_UP_METHOD_TOTP), as after a password.
|
|
416
|
+
* Empty when the session is complete.
|
|
417
|
+
*
|
|
418
|
+
* @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 4
|
|
419
|
+
*/
|
|
420
|
+
secondFactors: StepUpMethod[];
|
|
421
|
+
/**
|
|
422
|
+
* The CSRF token a browser sends in `X-CSRF-Token` when it completes the
|
|
423
|
+
* pending context with its cookie; set only with `second_factors` or
|
|
424
|
+
* `enrollable_factors` on a browser delivery, in this response to the
|
|
425
|
+
* configured sign-in page's origin. It authenticates nothing by itself.
|
|
426
|
+
*
|
|
427
|
+
* @generated from protobuf field: optional string browser_csrf = 5
|
|
428
|
+
*/
|
|
429
|
+
browserCsrf?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Set when this sign-in owes a second factor, the account has never
|
|
432
|
+
* enrolled one and it may enroll one of these first: the pending context
|
|
433
|
+
* then authorizes only that enrollment and completing the sign-in with
|
|
434
|
+
* the new factor. Empty on an account with established protection.
|
|
435
|
+
*
|
|
436
|
+
* @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 6
|
|
437
|
+
*/
|
|
438
|
+
enrollableFactors: StepUpMethod[];
|
|
408
439
|
}
|
|
409
440
|
/**
|
|
410
441
|
* @generated from protobuf message sid.v1.federation.UpstreamLinkingRequired
|
|
@@ -7,6 +7,7 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
8
8
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { StepUpMethod } from "../authn/auth.js";
|
|
10
11
|
import { SessionId } from "../ids/ids.js";
|
|
11
12
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
12
13
|
import { UpstreamProviderId } from "../ids/ids.js";
|
|
@@ -1195,13 +1196,18 @@ class UpstreamAuthSuccess$Type extends MessageType {
|
|
|
1195
1196
|
super("sid.v1.federation.UpstreamAuthSuccess", [
|
|
1196
1197
|
{ no: 1, name: "session_id", kind: "message", T: () => SessionId },
|
|
1197
1198
|
{ no: 2, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1198
|
-
{ no: 3, name: "new_profile_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1199
|
+
{ no: 3, name: "new_profile_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1200
|
+
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
1201
|
+
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1202
|
+
{ no: 6, name: "enrollable_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] }
|
|
1199
1203
|
]);
|
|
1200
1204
|
}
|
|
1201
1205
|
create(value) {
|
|
1202
1206
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1203
1207
|
message.expiresIn = 0n;
|
|
1204
1208
|
message.newProfileCreated = false;
|
|
1209
|
+
message.secondFactors = [];
|
|
1210
|
+
message.enrollableFactors = [];
|
|
1205
1211
|
if (value !== undefined)
|
|
1206
1212
|
reflectionMergePartial(this, message, value);
|
|
1207
1213
|
return message;
|
|
@@ -1220,6 +1226,23 @@ class UpstreamAuthSuccess$Type extends MessageType {
|
|
|
1220
1226
|
case /* bool new_profile_created */ 3:
|
|
1221
1227
|
message.newProfileCreated = reader.bool();
|
|
1222
1228
|
break;
|
|
1229
|
+
case /* repeated sid.v1.authn.StepUpMethod second_factors */ 4:
|
|
1230
|
+
if (wireType === WireType.LengthDelimited)
|
|
1231
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1232
|
+
message.secondFactors.push(reader.int32());
|
|
1233
|
+
else
|
|
1234
|
+
message.secondFactors.push(reader.int32());
|
|
1235
|
+
break;
|
|
1236
|
+
case /* optional string browser_csrf */ 5:
|
|
1237
|
+
message.browserCsrf = reader.string();
|
|
1238
|
+
break;
|
|
1239
|
+
case /* repeated sid.v1.authn.StepUpMethod enrollable_factors */ 6:
|
|
1240
|
+
if (wireType === WireType.LengthDelimited)
|
|
1241
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1242
|
+
message.enrollableFactors.push(reader.int32());
|
|
1243
|
+
else
|
|
1244
|
+
message.enrollableFactors.push(reader.int32());
|
|
1245
|
+
break;
|
|
1223
1246
|
default:
|
|
1224
1247
|
let u = options.readUnknownField;
|
|
1225
1248
|
if (u === "throw")
|
|
@@ -1241,6 +1264,23 @@ class UpstreamAuthSuccess$Type extends MessageType {
|
|
|
1241
1264
|
/* bool new_profile_created = 3; */
|
|
1242
1265
|
if (message.newProfileCreated !== false)
|
|
1243
1266
|
writer.tag(3, WireType.Varint).bool(message.newProfileCreated);
|
|
1267
|
+
/* repeated sid.v1.authn.StepUpMethod second_factors = 4; */
|
|
1268
|
+
if (message.secondFactors.length) {
|
|
1269
|
+
writer.tag(4, WireType.LengthDelimited).fork();
|
|
1270
|
+
for (let i = 0; i < message.secondFactors.length; i++)
|
|
1271
|
+
writer.int32(message.secondFactors[i]);
|
|
1272
|
+
writer.join();
|
|
1273
|
+
}
|
|
1274
|
+
/* optional string browser_csrf = 5; */
|
|
1275
|
+
if (message.browserCsrf !== undefined)
|
|
1276
|
+
writer.tag(5, WireType.LengthDelimited).string(message.browserCsrf);
|
|
1277
|
+
/* repeated sid.v1.authn.StepUpMethod enrollable_factors = 6; */
|
|
1278
|
+
if (message.enrollableFactors.length) {
|
|
1279
|
+
writer.tag(6, WireType.LengthDelimited).fork();
|
|
1280
|
+
for (let i = 0; i < message.enrollableFactors.length; i++)
|
|
1281
|
+
writer.int32(message.enrollableFactors[i]);
|
|
1282
|
+
writer.join();
|
|
1283
|
+
}
|
|
1244
1284
|
let u = options.writeUnknownFields;
|
|
1245
1285
|
if (u !== false)
|
|
1246
1286
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|