@structured-id/proto 0.1.1 → 0.3.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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.2.0...typescript-proto-v0.3.0) (2026-10-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * **proto:** report whether a local administrator claim exists ([#17](https://github.com/structured-id/sdk/issues/17)) ([0b78d08](https://github.com/structured-id/sdk/commit/0b78d08932ab95e72042d6a429762e41c2a3f53a)), closes [#16](https://github.com/structured-id/sdk/issues/16)
9
+
10
+ ## [0.2.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.1.1...typescript-proto-v0.2.0) (2026-10-10)
11
+
12
+
13
+ ### Features
14
+
15
+ * **proto:** password change with the current password ([#10](https://github.com/structured-id/sdk/issues/10)) ([92ca841](https://github.com/structured-id/sdk/commit/92ca841115dc9a164c90693b286022d40366f8f9)), closes [#9](https://github.com/structured-id/sdk/issues/9)
16
+
3
17
  ## 0.1.1 (2026-10-09)
4
18
 
5
19
 
@@ -31,8 +31,9 @@ export interface IEnrollmentServiceClient {
31
31
  */
32
32
  getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy>;
33
33
  /**
34
- * Whether the installation has been claimed by its first administrator.
35
- * Public: while unclaimed, the registration page asks for the claim token.
34
+ * Whether the installation offers a local administrator claim, and whether
35
+ * it was taken. Public: while the claim is open, the registration page asks
36
+ * for the claim token.
36
37
  *
37
38
  * @generated from protobuf rpc: GetInstanceStatus
38
39
  */
@@ -97,8 +98,9 @@ export declare class EnrollmentServiceClient implements IEnrollmentServiceClient
97
98
  */
98
99
  getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy>;
99
100
  /**
100
- * Whether the installation has been claimed by its first administrator.
101
- * Public: while unclaimed, the registration page asks for the claim token.
101
+ * Whether the installation offers a local administrator claim, and whether
102
+ * it was taken. Public: while the claim is open, the registration page asks
103
+ * for the claim token.
102
104
  *
103
105
  * @generated from protobuf rpc: GetInstanceStatus
104
106
  */
@@ -26,8 +26,9 @@ export class EnrollmentServiceClient {
26
26
  return stackIntercept("unary", this._transport, method, opt, input);
27
27
  }
28
28
  /**
29
- * Whether the installation has been claimed by its first administrator.
30
- * Public: while unclaimed, the registration page asks for the claim token.
29
+ * Whether the installation offers a local administrator claim, and whether
30
+ * it was taken. Public: while the claim is open, the registration page asks
31
+ * for the claim token.
31
32
  *
32
33
  * @generated from protobuf rpc: GetInstanceStatus
33
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"enrollment.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/admin/enrollment.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAYpD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAoE1D;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAIH;IAH7B,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;IACtC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACpC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACpC,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;OAIG;IACH,mBAAmB,CAAC,KAAY,EAAE,OAAoB;QAClD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA0B,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACjG,CAAC;IACD;;;;;OAKG;IACH,iBAAiB,CAAC,KAAY,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AoB;QACzD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpG,CAAC;IACD;;;;OAIG;IACH,iBAAiB,CAAC,KAA+B,EAAE,OAAoB;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAsD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7H,CAAC;IACD,+BAA+B;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,KAAkC,EAAE,OAAoB;QACzE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAiD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxH,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/admin/enrollment.proto\" (package \"sid.v1.admin\", 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 { EnrollmentService } from \"./enrollment.js\";\nimport type { RegistrationStats } from \"./enrollment.js\";\nimport type { GetRegistrationStatsRequest } from \"./enrollment.js\";\nimport type { BulkCreateInvitesResponse } from \"./enrollment.js\";\nimport type { BulkCreateInvitesRequest } from \"./enrollment.js\";\nimport type { RevokeInviteRequest } from \"./enrollment.js\";\nimport type { ListInvitesResponse } from \"./enrollment.js\";\nimport type { ListInvitesRequest } from \"./enrollment.js\";\nimport type { Invite } from \"./enrollment.js\";\nimport type { CreateInviteRequest } from \"./enrollment.js\";\nimport type { UpdateEnrollmentPolicyRequest } from \"./enrollment.js\";\nimport type { InstanceStatus } from \"./enrollment.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { EnrollmentPolicy } from \"./enrollment.js\";\nimport type { Empty } from \"../../../google/protobuf/empty.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * EnrollmentService manages registration gating policies, invite codes,\n * and registration source analytics.\n *\n * ── Enrollment Policy ──\n *\n * @generated from protobuf service sid.v1.admin.EnrollmentService\n */\nexport interface IEnrollmentServiceClient {\n /**\n * Get the current enrollment policy.\n *\n * @generated from protobuf rpc: GetEnrollmentPolicy\n */\n getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy>;\n /**\n * Whether the installation has been claimed by its first administrator.\n * Public: while unclaimed, the registration page asks for the claim token.\n *\n * @generated from protobuf rpc: GetInstanceStatus\n */\n getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus>;\n /**\n * Update the enrollment policy (mode, domains, tracking).\n *\n * @generated from protobuf rpc: UpdateEnrollmentPolicy\n */\n updateEnrollmentPolicy(input: UpdateEnrollmentPolicyRequest, options?: RpcOptions): UnaryCall<UpdateEnrollmentPolicyRequest, EnrollmentPolicy>;\n // ── Invite Management ──\n\n /**\n * Create a new invite code.\n *\n * @generated from protobuf rpc: CreateInvite\n */\n createInvite(input: CreateInviteRequest, options?: RpcOptions): UnaryCall<CreateInviteRequest, Invite>;\n /**\n * List invite codes (paginated, filterable by status).\n *\n * @generated from protobuf rpc: ListInvites\n */\n listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse>;\n /**\n * Revoke an invite code (deactivate, cannot be used anymore).\n *\n * @generated from protobuf rpc: RevokeInvite\n */\n revokeInvite(input: RevokeInviteRequest, options?: RpcOptions): UnaryCall<RevokeInviteRequest, Empty>;\n /**\n * Bulk-generate invite codes.\n *\n * @generated from protobuf rpc: BulkCreateInvites\n */\n bulkCreateInvites(input: BulkCreateInvitesRequest, options?: RpcOptions): UnaryCall<BulkCreateInvitesRequest, BulkCreateInvitesResponse>;\n // ── Registration Analytics ──\n\n /**\n * Get registration statistics by source type for a given period.\n *\n * @generated from protobuf rpc: GetRegistrationStats\n */\n getRegistrationStats(input: GetRegistrationStatsRequest, options?: RpcOptions): UnaryCall<GetRegistrationStatsRequest, RegistrationStats>;\n}\n/**\n * EnrollmentService manages registration gating policies, invite codes,\n * and registration source analytics.\n *\n * ── Enrollment Policy ──\n *\n * @generated from protobuf service sid.v1.admin.EnrollmentService\n */\nexport class EnrollmentServiceClient implements IEnrollmentServiceClient, ServiceInfo {\n typeName = EnrollmentService.typeName;\n methods = EnrollmentService.methods;\n options = EnrollmentService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Get the current enrollment policy.\n *\n * @generated from protobuf rpc: GetEnrollmentPolicy\n */\n getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<Empty, EnrollmentPolicy>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Whether the installation has been claimed by its first administrator.\n * Public: while unclaimed, the registration page asks for the claim token.\n *\n * @generated from protobuf rpc: GetInstanceStatus\n */\n getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<Empty, InstanceStatus>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Update the enrollment policy (mode, domains, tracking).\n *\n * @generated from protobuf rpc: UpdateEnrollmentPolicy\n */\n updateEnrollmentPolicy(input: UpdateEnrollmentPolicyRequest, options?: RpcOptions): UnaryCall<UpdateEnrollmentPolicyRequest, EnrollmentPolicy> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<UpdateEnrollmentPolicyRequest, EnrollmentPolicy>(\"unary\", this._transport, method, opt, input);\n }\n // ── Invite Management ──\n\n /**\n * Create a new invite code.\n *\n * @generated from protobuf rpc: CreateInvite\n */\n createInvite(input: CreateInviteRequest, options?: RpcOptions): UnaryCall<CreateInviteRequest, Invite> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<CreateInviteRequest, Invite>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * List invite codes (paginated, filterable by status).\n *\n * @generated from protobuf rpc: ListInvites\n */\n listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<ListInvitesRequest, ListInvitesResponse>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Revoke an invite code (deactivate, cannot be used anymore).\n *\n * @generated from protobuf rpc: RevokeInvite\n */\n revokeInvite(input: RevokeInviteRequest, options?: RpcOptions): UnaryCall<RevokeInviteRequest, Empty> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<RevokeInviteRequest, Empty>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Bulk-generate invite codes.\n *\n * @generated from protobuf rpc: BulkCreateInvites\n */\n bulkCreateInvites(input: BulkCreateInvitesRequest, options?: RpcOptions): UnaryCall<BulkCreateInvitesRequest, BulkCreateInvitesResponse> {\n const method = this.methods[6], opt = this._transport.mergeOptions(options);\n return stackIntercept<BulkCreateInvitesRequest, BulkCreateInvitesResponse>(\"unary\", this._transport, method, opt, input);\n }\n // ── Registration Analytics ──\n\n /**\n * Get registration statistics by source type for a given period.\n *\n * @generated from protobuf rpc: GetRegistrationStats\n */\n getRegistrationStats(input: GetRegistrationStatsRequest, options?: RpcOptions): UnaryCall<GetRegistrationStatsRequest, RegistrationStats> {\n const method = this.methods[7], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetRegistrationStatsRequest, RegistrationStats>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
1
+ {"version":3,"file":"enrollment.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/admin/enrollment.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAYpD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAqE1D;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAIH;IAH7B,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;IACtC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACpC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACpC,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;OAIG;IACH,mBAAmB,CAAC,KAAY,EAAE,OAAoB;QAClD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA0B,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACjG,CAAC;IACD;;;;;;OAMG;IACH,iBAAiB,CAAC,KAAY,EAAE,OAAoB;QAChD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAwB,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AE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpG,CAAC;IACD;;;;OAIG;IACH,iBAAiB,CAAC,KAA+B,EAAE,OAAoB;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAsD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7H,CAAC;IACD,+BAA+B;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,KAAkC,EAAE,OAAoB;QACzE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAiD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxH,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/admin/enrollment.proto\" (package \"sid.v1.admin\", 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 { EnrollmentService } from \"./enrollment.js\";\nimport type { RegistrationStats } from \"./enrollment.js\";\nimport type { GetRegistrationStatsRequest } from \"./enrollment.js\";\nimport type { BulkCreateInvitesResponse } from \"./enrollment.js\";\nimport type { BulkCreateInvitesRequest } from \"./enrollment.js\";\nimport type { RevokeInviteRequest } from \"./enrollment.js\";\nimport type { ListInvitesResponse } from \"./enrollment.js\";\nimport type { ListInvitesRequest } from \"./enrollment.js\";\nimport type { Invite } from \"./enrollment.js\";\nimport type { CreateInviteRequest } from \"./enrollment.js\";\nimport type { UpdateEnrollmentPolicyRequest } from \"./enrollment.js\";\nimport type { InstanceStatus } from \"./enrollment.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { EnrollmentPolicy } from \"./enrollment.js\";\nimport type { Empty } from \"../../../google/protobuf/empty.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * EnrollmentService manages registration gating policies, invite codes,\n * and registration source analytics.\n *\n * ── Enrollment Policy ──\n *\n * @generated from protobuf service sid.v1.admin.EnrollmentService\n */\nexport interface IEnrollmentServiceClient {\n /**\n * Get the current enrollment policy.\n *\n * @generated from protobuf rpc: GetEnrollmentPolicy\n */\n getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy>;\n /**\n * Whether the installation offers a local administrator claim, and whether\n * it was taken. Public: while the claim is open, the registration page asks\n * for the claim token.\n *\n * @generated from protobuf rpc: GetInstanceStatus\n */\n getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus>;\n /**\n * Update the enrollment policy (mode, domains, tracking).\n *\n * @generated from protobuf rpc: UpdateEnrollmentPolicy\n */\n updateEnrollmentPolicy(input: UpdateEnrollmentPolicyRequest, options?: RpcOptions): UnaryCall<UpdateEnrollmentPolicyRequest, EnrollmentPolicy>;\n // ── Invite Management ──\n\n /**\n * Create a new invite code.\n *\n * @generated from protobuf rpc: CreateInvite\n */\n createInvite(input: CreateInviteRequest, options?: RpcOptions): UnaryCall<CreateInviteRequest, Invite>;\n /**\n * List invite codes (paginated, filterable by status).\n *\n * @generated from protobuf rpc: ListInvites\n */\n listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse>;\n /**\n * Revoke an invite code (deactivate, cannot be used anymore).\n *\n * @generated from protobuf rpc: RevokeInvite\n */\n revokeInvite(input: RevokeInviteRequest, options?: RpcOptions): UnaryCall<RevokeInviteRequest, Empty>;\n /**\n * Bulk-generate invite codes.\n *\n * @generated from protobuf rpc: BulkCreateInvites\n */\n bulkCreateInvites(input: BulkCreateInvitesRequest, options?: RpcOptions): UnaryCall<BulkCreateInvitesRequest, BulkCreateInvitesResponse>;\n // ── Registration Analytics ──\n\n /**\n * Get registration statistics by source type for a given period.\n *\n * @generated from protobuf rpc: GetRegistrationStats\n */\n getRegistrationStats(input: GetRegistrationStatsRequest, options?: RpcOptions): UnaryCall<GetRegistrationStatsRequest, RegistrationStats>;\n}\n/**\n * EnrollmentService manages registration gating policies, invite codes,\n * and registration source analytics.\n *\n * ── Enrollment Policy ──\n *\n * @generated from protobuf service sid.v1.admin.EnrollmentService\n */\nexport class EnrollmentServiceClient implements IEnrollmentServiceClient, ServiceInfo {\n typeName = EnrollmentService.typeName;\n methods = EnrollmentService.methods;\n options = EnrollmentService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Get the current enrollment policy.\n *\n * @generated from protobuf rpc: GetEnrollmentPolicy\n */\n getEnrollmentPolicy(input: Empty, options?: RpcOptions): UnaryCall<Empty, EnrollmentPolicy> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<Empty, EnrollmentPolicy>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Whether the installation offers a local administrator claim, and whether\n * it was taken. Public: while the claim is open, the registration page asks\n * for the claim token.\n *\n * @generated from protobuf rpc: GetInstanceStatus\n */\n getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<Empty, InstanceStatus>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Update the enrollment policy (mode, domains, tracking).\n *\n * @generated from protobuf rpc: UpdateEnrollmentPolicy\n */\n updateEnrollmentPolicy(input: UpdateEnrollmentPolicyRequest, options?: RpcOptions): UnaryCall<UpdateEnrollmentPolicyRequest, EnrollmentPolicy> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<UpdateEnrollmentPolicyRequest, EnrollmentPolicy>(\"unary\", this._transport, method, opt, input);\n }\n // ── Invite Management ──\n\n /**\n * Create a new invite code.\n *\n * @generated from protobuf rpc: CreateInvite\n */\n createInvite(input: CreateInviteRequest, options?: RpcOptions): UnaryCall<CreateInviteRequest, Invite> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<CreateInviteRequest, Invite>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * List invite codes (paginated, filterable by status).\n *\n * @generated from protobuf rpc: ListInvites\n */\n listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<ListInvitesRequest, ListInvitesResponse>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Revoke an invite code (deactivate, cannot be used anymore).\n *\n * @generated from protobuf rpc: RevokeInvite\n */\n revokeInvite(input: RevokeInviteRequest, options?: RpcOptions): UnaryCall<RevokeInviteRequest, Empty> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<RevokeInviteRequest, Empty>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Bulk-generate invite codes.\n *\n * @generated from protobuf rpc: BulkCreateInvites\n */\n bulkCreateInvites(input: BulkCreateInvitesRequest, options?: RpcOptions): UnaryCall<BulkCreateInvitesRequest, BulkCreateInvitesResponse> {\n const method = this.methods[6], opt = this._transport.mergeOptions(options);\n return stackIntercept<BulkCreateInvitesRequest, BulkCreateInvitesResponse>(\"unary\", this._transport, method, opt, input);\n }\n // ── Registration Analytics ──\n\n /**\n * Get registration statistics by source type for a given period.\n *\n * @generated from protobuf rpc: GetRegistrationStats\n */\n getRegistrationStats(input: GetRegistrationStatsRequest, options?: RpcOptions): UnaryCall<GetRegistrationStatsRequest, RegistrationStats> {\n const method = this.methods[7], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetRegistrationStatsRequest, RegistrationStats>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
@@ -7,19 +7,18 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
8
  import { Timestamp } from "../../../google/protobuf/timestamp.js";
9
9
  /**
10
- * Whether the installation has its first administrator.
10
+ * The installation's bootstrap status, as the registration page needs it.
11
11
  *
12
12
  * @generated from protobuf message sid.v1.admin.InstanceStatus
13
13
  */
14
14
  export interface InstanceStatus {
15
15
  /**
16
- * False while no administrator exists: self-registration then accepts only a
17
- * registration carrying the claim token from the service log, whatever the
18
- * enrollment mode. The token itself is never returned.
16
+ * The local administrator claim of this installation. The token itself is
17
+ * never returned, nor who holds administration.
19
18
  *
20
- * @generated from protobuf field: bool claimed = 1
19
+ * @generated from protobuf field: sid.v1.admin.AdministratorClaim claim = 2
21
20
  */
22
- claimed: boolean;
21
+ claim: AdministratorClaim;
23
22
  }
24
23
  /**
25
24
  * Enrollment (registration) policy — controls who can create profiles.
@@ -437,6 +436,40 @@ export interface GetRegistrationStatsRequest {
437
436
  */
438
437
  periodDays: number;
439
438
  }
439
+ /**
440
+ * Whether an installation offers a local first-administrator claim.
441
+ *
442
+ * @generated from protobuf enum sid.v1.admin.AdministratorClaim
443
+ */
444
+ export declare enum AdministratorClaim {
445
+ /**
446
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_UNSPECIFIED = 0;
447
+ */
448
+ UNSPECIFIED = 0,
449
+ /**
450
+ * A self-managed installation without its first administrator: while open,
451
+ * self-registration accepts only a registration carrying the claim token
452
+ * from the service log, whatever the enrollment mode.
453
+ *
454
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_OPEN = 1;
455
+ */
456
+ OPEN = 1,
457
+ /**
458
+ * A self-managed installation whose claim was taken: registration follows
459
+ * the enrollment policy, and the token grants nothing.
460
+ *
461
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_CLAIMED = 2;
462
+ */
463
+ CLAIMED = 2,
464
+ /**
465
+ * A centrally managed installation: administration comes through authorized
466
+ * provisioning, never a local claim, so no token is accepted. Registration
467
+ * follows the enrollment policy whether or not a local administrator exists.
468
+ *
469
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_UNAVAILABLE = 3;
470
+ */
471
+ UNAVAILABLE = 3
472
+ }
440
473
  /**
441
474
  * Registration gating mode.
442
475
  *
@@ -9,6 +9,41 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
9
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
10
10
  import { MessageType } from "@protobuf-ts/runtime";
11
11
  import { Timestamp } from "../../../google/protobuf/timestamp.js";
12
+ /**
13
+ * Whether an installation offers a local first-administrator claim.
14
+ *
15
+ * @generated from protobuf enum sid.v1.admin.AdministratorClaim
16
+ */
17
+ export var AdministratorClaim;
18
+ (function (AdministratorClaim) {
19
+ /**
20
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_UNSPECIFIED = 0;
21
+ */
22
+ AdministratorClaim[AdministratorClaim["UNSPECIFIED"] = 0] = "UNSPECIFIED";
23
+ /**
24
+ * A self-managed installation without its first administrator: while open,
25
+ * self-registration accepts only a registration carrying the claim token
26
+ * from the service log, whatever the enrollment mode.
27
+ *
28
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_OPEN = 1;
29
+ */
30
+ AdministratorClaim[AdministratorClaim["OPEN"] = 1] = "OPEN";
31
+ /**
32
+ * A self-managed installation whose claim was taken: registration follows
33
+ * the enrollment policy, and the token grants nothing.
34
+ *
35
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_CLAIMED = 2;
36
+ */
37
+ AdministratorClaim[AdministratorClaim["CLAIMED"] = 2] = "CLAIMED";
38
+ /**
39
+ * A centrally managed installation: administration comes through authorized
40
+ * provisioning, never a local claim, so no token is accepted. Registration
41
+ * follows the enrollment policy whether or not a local administrator exists.
42
+ *
43
+ * @generated from protobuf enum value: ADMINISTRATOR_CLAIM_UNAVAILABLE = 3;
44
+ */
45
+ AdministratorClaim[AdministratorClaim["UNAVAILABLE"] = 3] = "UNAVAILABLE";
46
+ })(AdministratorClaim || (AdministratorClaim = {}));
12
47
  // ══════════════════════════════════════════════════════════════════════════
13
48
  // Enums
14
49
  // ══════════════════════════════════════════════════════════════════════════
@@ -137,12 +172,12 @@ export var InviteStatus;
137
172
  class InstanceStatus$Type extends MessageType {
138
173
  constructor() {
139
174
  super("sid.v1.admin.InstanceStatus", [
140
- { no: 1, name: "claimed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
175
+ { no: 2, name: "claim", kind: "enum", T: () => ["sid.v1.admin.AdministratorClaim", AdministratorClaim, "ADMINISTRATOR_CLAIM_"] }
141
176
  ]);
142
177
  }
143
178
  create(value) {
144
179
  const message = globalThis.Object.create((this.messagePrototype));
145
- message.claimed = false;
180
+ message.claim = 0;
146
181
  if (value !== undefined)
147
182
  reflectionMergePartial(this, message, value);
148
183
  return message;
@@ -152,8 +187,8 @@ class InstanceStatus$Type extends MessageType {
152
187
  while (reader.pos < end) {
153
188
  let [fieldNo, wireType] = reader.tag();
154
189
  switch (fieldNo) {
155
- case /* bool claimed */ 1:
156
- message.claimed = reader.bool();
190
+ case /* sid.v1.admin.AdministratorClaim claim */ 2:
191
+ message.claim = reader.int32();
157
192
  break;
158
193
  default:
159
194
  let u = options.readUnknownField;
@@ -167,9 +202,9 @@ class InstanceStatus$Type extends MessageType {
167
202
  return message;
168
203
  }
169
204
  internalBinaryWrite(message, writer, options) {
170
- /* bool claimed = 1; */
171
- if (message.claimed !== false)
172
- writer.tag(1, WireType.Varint).bool(message.claimed);
205
+ /* sid.v1.admin.AdministratorClaim claim = 2; */
206
+ if (message.claim !== 0)
207
+ writer.tag(2, WireType.Varint).int32(message.claim);
173
208
  let u = options.writeUnknownFields;
174
209
  if (u !== false)
175
210
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);