@structured-id/proto 0.16.0 → 0.17.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.17.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.16.0...typescript-proto-v0.17.0) (2026-11-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * **ids:** device enrollment and device attestation ids ([#96](https://github.com/structured-id/sdk/issues/96)) ([6470fe2](https://github.com/structured-id/sdk/commit/6470fe2de95f127c41fd4953b74906870910dd4b)), closes [#95](https://github.com/structured-id/sdk/issues/95)
9
+
3
10
  ## [0.16.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.15.0...typescript-proto-v0.16.0) (2026-11-06)
4
11
 
5
12
 
@@ -7,7 +7,9 @@ import type { RevokeDeviceKeyRequest } from "./attestation.js";
7
7
  import type { RotateDeviceKeyRequest } from "./attestation.js";
8
8
  import type { GetDeviceAttestationRequest } from "./attestation.js";
9
9
  import type { DeviceAttestation } from "./attestation.js";
10
- import type { RegisterDeviceKeyRequest } from "./attestation.js";
10
+ import type { FinishDeviceEnrollmentRequest } from "./attestation.js";
11
+ import type { DeviceEnrollmentChallenge } from "./attestation.js";
12
+ import type { StartDeviceEnrollmentRequest } from "./attestation.js";
11
13
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
12
14
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
13
15
  /**
@@ -15,15 +17,26 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
15
17
  */
16
18
  export interface IAttestationServiceClient {
17
19
  /**
18
- * Register a device key with platform attestation: stores the attestation
19
- * data and marks the device as hardware_attested; a server that verifies
20
- * attestation also checks the chain and the AAGUID policy. A device that
21
- * already has a live attestation is refused (ATTESTATION_ALREADY_EXISTS);
22
- * a retry answers with the attestation the first call registered.
20
+ * Start a device-key ceremony: enrollment of a new device or of an
21
+ * existing device without a live key, or rotation of an enrolled device's
22
+ * key. Requires authorized bootstrap or sufficient current authentication
23
+ * of the device's owner. For a new device SID allocates its DeviceId in
24
+ * the pending ceremony; nothing is enrolled, trusted or authorized until
25
+ * the ceremony finishes. Each call issues a new single-use challenge.
23
26
  *
24
- * @generated from protobuf rpc: RegisterDeviceKey
27
+ * @generated from protobuf rpc: StartDeviceEnrollment
25
28
  */
26
- registerDeviceKey(input: RegisterDeviceKeyRequest, options?: RpcOptions): UnaryCall<RegisterDeviceKeyRequest, DeviceAttestation>;
29
+ startDeviceEnrollment(input: StartDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<StartDeviceEnrollmentRequest, DeviceEnrollmentChallenge>;
30
+ /**
31
+ * Finish an enrollment ceremony: the proposed key proves possession, and
32
+ * the device, its key binding, the consumed ceremony, the audit record and
33
+ * the outcome commit together. A retry of the same operation answers with
34
+ * the recorded outcome; a ceremony that expired, was finished or whose
35
+ * device was removed meanwhile completes nothing.
36
+ *
37
+ * @generated from protobuf rpc: FinishDeviceEnrollment
38
+ */
39
+ finishDeviceEnrollment(input: FinishDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishDeviceEnrollmentRequest, DeviceAttestation>;
27
40
  /**
28
41
  * Get attestation details for a device.
29
42
  *
@@ -31,7 +44,12 @@ export interface IAttestationServiceClient {
31
44
  */
32
45
  getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation>;
33
46
  /**
34
- * Rotate a device key (triggered by OS update or manual re-attestation).
47
+ * Finish a rotation ceremony: the proposed key proves possession, the
48
+ * current key approves that exact replacement, and the old binding is
49
+ * retired and the new one committed together with the consumed ceremony,
50
+ * the audit record and the outcome. A lost key is not rotated: it is
51
+ * replaced through sufficient authentication or recovery and a new
52
+ * enrollment.
35
53
  *
36
54
  * @generated from protobuf rpc: RotateDeviceKey
37
55
  */
@@ -61,15 +79,26 @@ export declare class AttestationServiceClient implements IAttestationServiceClie
61
79
  };
62
80
  constructor(_transport: RpcTransport);
63
81
  /**
64
- * Register a device key with platform attestation: stores the attestation
65
- * data and marks the device as hardware_attested; a server that verifies
66
- * attestation also checks the chain and the AAGUID policy. A device that
67
- * already has a live attestation is refused (ATTESTATION_ALREADY_EXISTS);
68
- * a retry answers with the attestation the first call registered.
82
+ * Start a device-key ceremony: enrollment of a new device or of an
83
+ * existing device without a live key, or rotation of an enrolled device's
84
+ * key. Requires authorized bootstrap or sufficient current authentication
85
+ * of the device's owner. For a new device SID allocates its DeviceId in
86
+ * the pending ceremony; nothing is enrolled, trusted or authorized until
87
+ * the ceremony finishes. Each call issues a new single-use challenge.
88
+ *
89
+ * @generated from protobuf rpc: StartDeviceEnrollment
90
+ */
91
+ startDeviceEnrollment(input: StartDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<StartDeviceEnrollmentRequest, DeviceEnrollmentChallenge>;
92
+ /**
93
+ * Finish an enrollment ceremony: the proposed key proves possession, and
94
+ * the device, its key binding, the consumed ceremony, the audit record and
95
+ * the outcome commit together. A retry of the same operation answers with
96
+ * the recorded outcome; a ceremony that expired, was finished or whose
97
+ * device was removed meanwhile completes nothing.
69
98
  *
70
- * @generated from protobuf rpc: RegisterDeviceKey
99
+ * @generated from protobuf rpc: FinishDeviceEnrollment
71
100
  */
72
- registerDeviceKey(input: RegisterDeviceKeyRequest, options?: RpcOptions): UnaryCall<RegisterDeviceKeyRequest, DeviceAttestation>;
101
+ finishDeviceEnrollment(input: FinishDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishDeviceEnrollmentRequest, DeviceAttestation>;
73
102
  /**
74
103
  * Get attestation details for a device.
75
104
  *
@@ -77,7 +106,12 @@ export declare class AttestationServiceClient implements IAttestationServiceClie
77
106
  */
78
107
  getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation>;
79
108
  /**
80
- * Rotate a device key (triggered by OS update or manual re-attestation).
109
+ * Finish a rotation ceremony: the proposed key proves possession, the
110
+ * current key approves that exact replacement, and the old binding is
111
+ * retired and the new one committed together with the consumed ceremony,
112
+ * the audit record and the outcome. A lost key is not rotated: it is
113
+ * replaced through sufficient authentication or recovery and a new
114
+ * enrollment.
81
115
  *
82
116
  * @generated from protobuf rpc: RotateDeviceKey
83
117
  */
@@ -1,6 +1,25 @@
1
1
  import { AttestationService } from "./attestation.js";
2
2
  import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
3
  // ── Attestation Service RPCs ──
4
+ //
5
+ // Device-key proofs. Every proof is a compact JWS (RFC 7515) signed by the
6
+ // key it speaks for, with the protected header `typ` "sid-device-key+jwt",
7
+ // an asymmetric `alg` (ES256, ES384, PS256, PS384, PS512, RS256, RS384,
8
+ // RS512 or EdDSA) and `jwk`, the signer's public key (public members only).
9
+ // Its claims bind the proof to one ceremony and one effect:
10
+ //
11
+ // chl the ceremony's challenge, base64url without padding
12
+ // purpose "enroll", "rotate-new" or "rotate-current"
13
+ // iss the issuer URL the ceremony was started at
14
+ // dev the device, its DeviceId as a hyphenated UUID
15
+ // key the RFC 7638 SHA-256 thumbprint (base64url) of the proposed key
16
+ //
17
+ // An enrollment carries one proof by the proposed key ("enroll"). A
18
+ // rotation carries two: one by the proposed key ("rotate-new") and one by
19
+ // the device's current key ("rotate-current"), whose `key` claim names the
20
+ // proposed key, so the current key approves that exact replacement. The
21
+ // proofs are verified against the ceremony the server keeps, never against
22
+ // values the request repeats.
4
23
  /**
5
24
  * @generated from protobuf service sid.v1.attestation.AttestationService
6
25
  */
@@ -13,34 +32,53 @@ export class AttestationServiceClient {
13
32
  this._transport = _transport;
14
33
  }
15
34
  /**
16
- * Register a device key with platform attestation: stores the attestation
17
- * data and marks the device as hardware_attested; a server that verifies
18
- * attestation also checks the chain and the AAGUID policy. A device that
19
- * already has a live attestation is refused (ATTESTATION_ALREADY_EXISTS);
20
- * a retry answers with the attestation the first call registered.
35
+ * Start a device-key ceremony: enrollment of a new device or of an
36
+ * existing device without a live key, or rotation of an enrolled device's
37
+ * key. Requires authorized bootstrap or sufficient current authentication
38
+ * of the device's owner. For a new device SID allocates its DeviceId in
39
+ * the pending ceremony; nothing is enrolled, trusted or authorized until
40
+ * the ceremony finishes. Each call issues a new single-use challenge.
21
41
  *
22
- * @generated from protobuf rpc: RegisterDeviceKey
42
+ * @generated from protobuf rpc: StartDeviceEnrollment
23
43
  */
24
- registerDeviceKey(input, options) {
44
+ startDeviceEnrollment(input, options) {
25
45
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
26
46
  return stackIntercept("unary", this._transport, method, opt, input);
27
47
  }
48
+ /**
49
+ * Finish an enrollment ceremony: the proposed key proves possession, and
50
+ * the device, its key binding, the consumed ceremony, the audit record and
51
+ * the outcome commit together. A retry of the same operation answers with
52
+ * the recorded outcome; a ceremony that expired, was finished or whose
53
+ * device was removed meanwhile completes nothing.
54
+ *
55
+ * @generated from protobuf rpc: FinishDeviceEnrollment
56
+ */
57
+ finishDeviceEnrollment(input, options) {
58
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
59
+ return stackIntercept("unary", this._transport, method, opt, input);
60
+ }
28
61
  /**
29
62
  * Get attestation details for a device.
30
63
  *
31
64
  * @generated from protobuf rpc: GetDeviceAttestation
32
65
  */
33
66
  getDeviceAttestation(input, options) {
34
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
67
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
35
68
  return stackIntercept("unary", this._transport, method, opt, input);
36
69
  }
37
70
  /**
38
- * Rotate a device key (triggered by OS update or manual re-attestation).
71
+ * Finish a rotation ceremony: the proposed key proves possession, the
72
+ * current key approves that exact replacement, and the old binding is
73
+ * retired and the new one committed together with the consumed ceremony,
74
+ * the audit record and the outcome. A lost key is not rotated: it is
75
+ * replaced through sufficient authentication or recovery and a new
76
+ * enrollment.
39
77
  *
40
78
  * @generated from protobuf rpc: RotateDeviceKey
41
79
  */
42
80
  rotateDeviceKey(input, options) {
43
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
81
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
44
82
  return stackIntercept("unary", this._transport, method, opt, input);
45
83
  }
46
84
  /**
@@ -49,7 +87,7 @@ export class AttestationServiceClient {
49
87
  * @generated from protobuf rpc: RevokeDeviceKey
50
88
  */
51
89
  revokeDeviceKey(input, options) {
52
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
90
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
53
91
  return stackIntercept("unary", this._transport, method, opt, input);
54
92
  }
55
93
  /**
@@ -58,7 +96,7 @@ export class AttestationServiceClient {
58
96
  * @generated from protobuf rpc: ListDeviceAttestations
59
97
  */
60
98
  listDeviceAttestations(input, options) {
61
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
99
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
62
100
  return stackIntercept("unary", this._transport, method, opt, input);
63
101
  }
64
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"attestation.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/attestation/attestation.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA8C1D,iCAAiC;AAEjC;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAIJ;IAH7B,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;IACvC,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC;IACrC,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC;IACrC,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;OAQG;IACH,iBAAiB,CAAC,KAA+B,EAAE,OAAoB;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAA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CAAC,CAAC;QAC5E,OAAO,cAAc,CAAgE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACvI,CAAC;CACJ","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 type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { AttestationService } from \"./attestation.js\";\nimport type { ListDeviceAttestationsResponse } from \"./attestation.js\";\nimport type { ListDeviceAttestationsRequest } from \"./attestation.js\";\nimport type { Empty } from \"../../../google/protobuf/empty.js\";\nimport type { RevokeDeviceKeyRequest } from \"./attestation.js\";\nimport type { RotateDeviceKeyRequest } from \"./attestation.js\";\nimport type { GetDeviceAttestationRequest } from \"./attestation.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DeviceAttestation } from \"./attestation.js\";\nimport type { RegisterDeviceKeyRequest } from \"./attestation.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n// ── Attestation Service RPCs ──\n\n/**\n * @generated from protobuf service sid.v1.attestation.AttestationService\n */\nexport interface IAttestationServiceClient {\n /**\n * Register a device key with platform attestation: stores the attestation\n * data and marks the device as hardware_attested; a server that verifies\n * attestation also checks the chain and the AAGUID policy. A device that\n * already has a live attestation is refused (ATTESTATION_ALREADY_EXISTS);\n * a retry answers with the attestation the first call registered.\n *\n * @generated from protobuf rpc: RegisterDeviceKey\n */\n registerDeviceKey(input: RegisterDeviceKeyRequest, options?: RpcOptions): UnaryCall<RegisterDeviceKeyRequest, DeviceAttestation>;\n /**\n * Get attestation details for a device.\n *\n * @generated from protobuf rpc: GetDeviceAttestation\n */\n getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation>;\n /**\n * Rotate a device key (triggered by OS update or manual re-attestation).\n *\n * @generated from protobuf rpc: RotateDeviceKey\n */\n rotateDeviceKey(input: RotateDeviceKeyRequest, options?: RpcOptions): UnaryCall<RotateDeviceKeyRequest, DeviceAttestation>;\n /**\n * Revoke a device key (device removed or compromised).\n *\n * @generated from protobuf rpc: RevokeDeviceKey\n */\n revokeDeviceKey(input: RevokeDeviceKeyRequest, options?: RpcOptions): UnaryCall<RevokeDeviceKeyRequest, Empty>;\n /**\n * List all attestations for a profile.\n *\n * @generated from protobuf rpc: ListDeviceAttestations\n */\n listDeviceAttestations(input: ListDeviceAttestationsRequest, options?: RpcOptions): UnaryCall<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse>;\n}\n// ── Attestation Service RPCs ──\n\n/**\n * @generated from protobuf service sid.v1.attestation.AttestationService\n */\nexport class AttestationServiceClient implements IAttestationServiceClient, ServiceInfo {\n typeName = AttestationService.typeName;\n methods = AttestationService.methods;\n options = AttestationService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Register a device key with platform attestation: stores the attestation\n * data and marks the device as hardware_attested; a server that verifies\n * attestation also checks the chain and the AAGUID policy. A device that\n * already has a live attestation is refused (ATTESTATION_ALREADY_EXISTS);\n * a retry answers with the attestation the first call registered.\n *\n * @generated from protobuf rpc: RegisterDeviceKey\n */\n registerDeviceKey(input: RegisterDeviceKeyRequest, options?: RpcOptions): UnaryCall<RegisterDeviceKeyRequest, DeviceAttestation> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegisterDeviceKeyRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Get attestation details for a device.\n *\n * @generated from protobuf rpc: GetDeviceAttestation\n */\n getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetDeviceAttestationRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Rotate a device key (triggered by OS update or manual re-attestation).\n *\n * @generated from protobuf rpc: RotateDeviceKey\n */\n rotateDeviceKey(input: RotateDeviceKeyRequest, options?: RpcOptions): UnaryCall<RotateDeviceKeyRequest, DeviceAttestation> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<RotateDeviceKeyRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Revoke a device key (device removed or compromised).\n *\n * @generated from protobuf rpc: RevokeDeviceKey\n */\n revokeDeviceKey(input: RevokeDeviceKeyRequest, options?: RpcOptions): UnaryCall<RevokeDeviceKeyRequest, Empty> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<RevokeDeviceKeyRequest, Empty>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * List all attestations for a profile.\n *\n * @generated from protobuf rpc: ListDeviceAttestations\n */\n listDeviceAttestations(input: ListDeviceAttestationsRequest, options?: RpcOptions): UnaryCall<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
1
+ {"version":3,"file":"attestation.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/attestation/attestation.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAStD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAiF1D,iCAAiC;AACjC,GAAG;AACH,2EAA2E;AAC3E,2EAA2E;AAC3E,wEAAwE;AACxE,4EAA4E;AAC5E,4DAA4D;AAC5D,GAAG;AACH,iEAAiE;AACjE,wDAAwD;AACxD,wDAAwD;AACxD,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AAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxH,CAAC;IACD;;;;;;;;;OASG;IACH,eAAe,CAAC,KAA6B,EAAE,OAAoB;QAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA4C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACnH,CAAC;IACD;;;;OAIG;IACH,eAAe,CAAC,KAA6B,EAAE,OAAoB;QAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAgC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACvG,CAAC;IACD;;;;OAIG;IACH,sBAAsB,CAAC,KAAoC,EAAE,OAAoB;QAC7E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAgE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACvI,CAAC;CACJ","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 type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { AttestationService } from \"./attestation.js\";\nimport type { ListDeviceAttestationsResponse } from \"./attestation.js\";\nimport type { ListDeviceAttestationsRequest } from \"./attestation.js\";\nimport type { Empty } from \"../../../google/protobuf/empty.js\";\nimport type { RevokeDeviceKeyRequest } from \"./attestation.js\";\nimport type { RotateDeviceKeyRequest } from \"./attestation.js\";\nimport type { GetDeviceAttestationRequest } from \"./attestation.js\";\nimport type { DeviceAttestation } from \"./attestation.js\";\nimport type { FinishDeviceEnrollmentRequest } from \"./attestation.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DeviceEnrollmentChallenge } from \"./attestation.js\";\nimport type { StartDeviceEnrollmentRequest } from \"./attestation.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n// ── Attestation Service RPCs ──\n// \n// Device-key proofs. Every proof is a compact JWS (RFC 7515) signed by the\n// key it speaks for, with the protected header `typ` \"sid-device-key+jwt\",\n// an asymmetric `alg` (ES256, ES384, PS256, PS384, PS512, RS256, RS384,\n// RS512 or EdDSA) and `jwk`, the signer's public key (public members only).\n// Its claims bind the proof to one ceremony and one effect:\n// \n// chl the ceremony's challenge, base64url without padding\n// purpose \"enroll\", \"rotate-new\" or \"rotate-current\"\n// iss the issuer URL the ceremony was started at\n// dev the device, its DeviceId as a hyphenated UUID\n// key the RFC 7638 SHA-256 thumbprint (base64url) of the proposed key\n// \n// An enrollment carries one proof by the proposed key (\"enroll\"). A\n// rotation carries two: one by the proposed key (\"rotate-new\") and one by\n// the device's current key (\"rotate-current\"), whose `key` claim names the\n// proposed key, so the current key approves that exact replacement. The\n// proofs are verified against the ceremony the server keeps, never against\n// values the request repeats.\n\n/**\n * @generated from protobuf service sid.v1.attestation.AttestationService\n */\nexport interface IAttestationServiceClient {\n /**\n * Start a device-key ceremony: enrollment of a new device or of an\n * existing device without a live key, or rotation of an enrolled device's\n * key. Requires authorized bootstrap or sufficient current authentication\n * of the device's owner. For a new device SID allocates its DeviceId in\n * the pending ceremony; nothing is enrolled, trusted or authorized until\n * the ceremony finishes. Each call issues a new single-use challenge.\n *\n * @generated from protobuf rpc: StartDeviceEnrollment\n */\n startDeviceEnrollment(input: StartDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<StartDeviceEnrollmentRequest, DeviceEnrollmentChallenge>;\n /**\n * Finish an enrollment ceremony: the proposed key proves possession, and\n * the device, its key binding, the consumed ceremony, the audit record and\n * the outcome commit together. A retry of the same operation answers with\n * the recorded outcome; a ceremony that expired, was finished or whose\n * device was removed meanwhile completes nothing.\n *\n * @generated from protobuf rpc: FinishDeviceEnrollment\n */\n finishDeviceEnrollment(input: FinishDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishDeviceEnrollmentRequest, DeviceAttestation>;\n /**\n * Get attestation details for a device.\n *\n * @generated from protobuf rpc: GetDeviceAttestation\n */\n getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation>;\n /**\n * Finish a rotation ceremony: the proposed key proves possession, the\n * current key approves that exact replacement, and the old binding is\n * retired and the new one committed together with the consumed ceremony,\n * the audit record and the outcome. A lost key is not rotated: it is\n * replaced through sufficient authentication or recovery and a new\n * enrollment.\n *\n * @generated from protobuf rpc: RotateDeviceKey\n */\n rotateDeviceKey(input: RotateDeviceKeyRequest, options?: RpcOptions): UnaryCall<RotateDeviceKeyRequest, DeviceAttestation>;\n /**\n * Revoke a device key (device removed or compromised).\n *\n * @generated from protobuf rpc: RevokeDeviceKey\n */\n revokeDeviceKey(input: RevokeDeviceKeyRequest, options?: RpcOptions): UnaryCall<RevokeDeviceKeyRequest, Empty>;\n /**\n * List all attestations for a profile.\n *\n * @generated from protobuf rpc: ListDeviceAttestations\n */\n listDeviceAttestations(input: ListDeviceAttestationsRequest, options?: RpcOptions): UnaryCall<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse>;\n}\n// ── Attestation Service RPCs ──\n// \n// Device-key proofs. Every proof is a compact JWS (RFC 7515) signed by the\n// key it speaks for, with the protected header `typ` \"sid-device-key+jwt\",\n// an asymmetric `alg` (ES256, ES384, PS256, PS384, PS512, RS256, RS384,\n// RS512 or EdDSA) and `jwk`, the signer's public key (public members only).\n// Its claims bind the proof to one ceremony and one effect:\n// \n// chl the ceremony's challenge, base64url without padding\n// purpose \"enroll\", \"rotate-new\" or \"rotate-current\"\n// iss the issuer URL the ceremony was started at\n// dev the device, its DeviceId as a hyphenated UUID\n// key the RFC 7638 SHA-256 thumbprint (base64url) of the proposed key\n// \n// An enrollment carries one proof by the proposed key (\"enroll\"). A\n// rotation carries two: one by the proposed key (\"rotate-new\") and one by\n// the device's current key (\"rotate-current\"), whose `key` claim names the\n// proposed key, so the current key approves that exact replacement. The\n// proofs are verified against the ceremony the server keeps, never against\n// values the request repeats.\n\n/**\n * @generated from protobuf service sid.v1.attestation.AttestationService\n */\nexport class AttestationServiceClient implements IAttestationServiceClient, ServiceInfo {\n typeName = AttestationService.typeName;\n methods = AttestationService.methods;\n options = AttestationService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Start a device-key ceremony: enrollment of a new device or of an\n * existing device without a live key, or rotation of an enrolled device's\n * key. Requires authorized bootstrap or sufficient current authentication\n * of the device's owner. For a new device SID allocates its DeviceId in\n * the pending ceremony; nothing is enrolled, trusted or authorized until\n * the ceremony finishes. Each call issues a new single-use challenge.\n *\n * @generated from protobuf rpc: StartDeviceEnrollment\n */\n startDeviceEnrollment(input: StartDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<StartDeviceEnrollmentRequest, DeviceEnrollmentChallenge> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StartDeviceEnrollmentRequest, DeviceEnrollmentChallenge>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Finish an enrollment ceremony: the proposed key proves possession, and\n * the device, its key binding, the consumed ceremony, the audit record and\n * the outcome commit together. A retry of the same operation answers with\n * the recorded outcome; a ceremony that expired, was finished or whose\n * device was removed meanwhile completes nothing.\n *\n * @generated from protobuf rpc: FinishDeviceEnrollment\n */\n finishDeviceEnrollment(input: FinishDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishDeviceEnrollmentRequest, DeviceAttestation> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<FinishDeviceEnrollmentRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Get attestation details for a device.\n *\n * @generated from protobuf rpc: GetDeviceAttestation\n */\n getDeviceAttestation(input: GetDeviceAttestationRequest, options?: RpcOptions): UnaryCall<GetDeviceAttestationRequest, DeviceAttestation> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetDeviceAttestationRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Finish a rotation ceremony: the proposed key proves possession, the\n * current key approves that exact replacement, and the old binding is\n * retired and the new one committed together with the consumed ceremony,\n * the audit record and the outcome. A lost key is not rotated: it is\n * replaced through sufficient authentication or recovery and a new\n * enrollment.\n *\n * @generated from protobuf rpc: RotateDeviceKey\n */\n rotateDeviceKey(input: RotateDeviceKeyRequest, options?: RpcOptions): UnaryCall<RotateDeviceKeyRequest, DeviceAttestation> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<RotateDeviceKeyRequest, DeviceAttestation>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Revoke a device key (device removed or compromised).\n *\n * @generated from protobuf rpc: RevokeDeviceKey\n */\n revokeDeviceKey(input: RevokeDeviceKeyRequest, options?: RpcOptions): UnaryCall<RevokeDeviceKeyRequest, Empty> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<RevokeDeviceKeyRequest, Empty>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * List all attestations for a profile.\n *\n * @generated from protobuf rpc: ListDeviceAttestations\n */\n listDeviceAttestations(input: ListDeviceAttestationsRequest, options?: RpcOptions): UnaryCall<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<ListDeviceAttestationsRequest, ListDeviceAttestationsResponse>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}