@structured-id/proto 0.3.0 → 0.4.1

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.
Files changed (103) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/NOTICE +1 -2
  3. package/README.md +7 -37
  4. package/dist/generated/sid/v1/account/account.client.d.ts +34 -16
  5. package/dist/generated/sid/v1/account/account.client.js +17 -8
  6. package/dist/generated/sid/v1/account/account.client.js.map +1 -1
  7. package/dist/generated/sid/v1/account/account.js +8 -8
  8. package/dist/generated/sid/v1/account/account.js.map +1 -1
  9. package/dist/generated/sid/v1/admin/admin.js +2 -2
  10. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/branding.client.d.ts +2 -0
  12. package/dist/generated/sid/v1/admin/branding.client.js +1 -0
  13. package/dist/generated/sid/v1/admin/branding.client.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/branding.js +2 -2
  15. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  16. package/dist/generated/sid/v1/admin/enrollment.client.d.ts +43 -4
  17. package/dist/generated/sid/v1/admin/enrollment.client.js +29 -5
  18. package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
  19. package/dist/generated/sid/v1/admin/enrollment.d.ts +171 -6
  20. package/dist/generated/sid/v1/admin/enrollment.js +281 -4
  21. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  22. package/dist/generated/sid/v1/admin/flow.client.d.ts +12 -6
  23. package/dist/generated/sid/v1/admin/flow.client.js +6 -3
  24. package/dist/generated/sid/v1/admin/flow.client.js.map +1 -1
  25. package/dist/generated/sid/v1/admin/flow.js +7 -7
  26. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  27. package/dist/generated/sid/v1/admin/notifications.js +2 -2
  28. package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
  29. package/dist/generated/sid/v1/admin/provisioning.js +4 -4
  30. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  31. package/dist/generated/sid/v1/admin/security.client.d.ts +4 -2
  32. package/dist/generated/sid/v1/admin/security.client.js +2 -1
  33. package/dist/generated/sid/v1/admin/security.client.js.map +1 -1
  34. package/dist/generated/sid/v1/admin/security.js +2 -2
  35. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  36. package/dist/generated/sid/v1/attestation/attestation.client.d.ts +4 -2
  37. package/dist/generated/sid/v1/attestation/attestation.client.js +2 -1
  38. package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
  39. package/dist/generated/sid/v1/attestation/attestation.js +4 -4
  40. package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
  41. package/dist/generated/sid/v1/authn/auth.client.d.ts +20 -2
  42. package/dist/generated/sid/v1/authn/auth.client.js +10 -1
  43. package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
  44. package/dist/generated/sid/v1/authn/auth.d.ts +53 -68
  45. package/dist/generated/sid/v1/authn/auth.js +18 -83
  46. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  47. package/dist/generated/sid/v1/authn/issuer.client.d.ts +10 -4
  48. package/dist/generated/sid/v1/authn/issuer.client.js +5 -2
  49. package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
  50. package/dist/generated/sid/v1/authn/issuer.js +11 -11
  51. package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
  52. package/dist/generated/sid/v1/authn/system_integration.js +1 -1
  53. package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
  54. package/dist/generated/sid/v1/authz/authz.client.d.ts +0 -28
  55. package/dist/generated/sid/v1/authz/authz.client.js +25 -43
  56. package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
  57. package/dist/generated/sid/v1/authz/authz.d.ts +0 -96
  58. package/dist/generated/sid/v1/authz/authz.js +0 -230
  59. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  60. package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
  61. package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
  62. package/dist/generated/sid/v1/events/event_stream.js +2 -2
  63. package/dist/generated/sid/v1/events/event_stream.js.map +1 -1
  64. package/dist/generated/sid/v1/federation/upstream.d.ts +0 -4
  65. package/dist/generated/sid/v1/federation/upstream.js +0 -8
  66. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  67. package/dist/generated/sid/v1/projects/projects.client.d.ts +10 -4
  68. package/dist/generated/sid/v1/projects/projects.client.js +5 -2
  69. package/dist/generated/sid/v1/projects/projects.client.js.map +1 -1
  70. package/dist/generated/sid/v1/projects/projects.js +2 -2
  71. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  72. package/dist/generated/sid/v1/scim/scim.client.d.ts +4 -2
  73. package/dist/generated/sid/v1/scim/scim.client.js +2 -1
  74. package/dist/generated/sid/v1/scim/scim.client.js.map +1 -1
  75. package/dist/generated/sid/v1/scim/scim.js +4 -4
  76. package/dist/generated/sid/v1/scim/scim.js.map +1 -1
  77. package/dist/generated/sid/v1/test/test.js +10 -10
  78. package/dist/generated/sid/v1/test/test.js.map +1 -1
  79. package/dist/generated/sid/v1/ui/public_settings.client.d.ts +66 -0
  80. package/dist/generated/sid/v1/ui/public_settings.client.js +42 -0
  81. package/dist/generated/sid/v1/ui/public_settings.client.js.map +1 -0
  82. package/dist/generated/sid/v1/ui/public_settings.d.ts +61 -0
  83. package/dist/generated/sid/v1/ui/public_settings.js +106 -0
  84. package/dist/generated/sid/v1/ui/public_settings.js.map +1 -0
  85. package/package.json +10 -16
  86. package/dist/generated/sid/v1/common/transport.d.ts +0 -86
  87. package/dist/generated/sid/v1/common/transport.js +0 -163
  88. package/dist/generated/sid/v1/common/transport.js.map +0 -1
  89. package/dist/transport/adaptive.d.ts +0 -72
  90. package/dist/transport/adaptive.js +0 -223
  91. package/dist/transport/adaptive.js.map +0 -1
  92. package/dist/transport/framing.d.ts +0 -33
  93. package/dist/transport/framing.js +0 -81
  94. package/dist/transport/framing.js.map +0 -1
  95. package/dist/transport/index.d.ts +0 -7
  96. package/dist/transport/index.js +0 -8
  97. package/dist/transport/index.js.map +0 -1
  98. package/dist/transport/transport-failure.d.ts +0 -7
  99. package/dist/transport/transport-failure.js +0 -17
  100. package/dist/transport/transport-failure.js.map +0 -1
  101. package/dist/transport/webtransport.d.ts +0 -56
  102. package/dist/transport/webtransport.js +0 -278
  103. package/dist/transport/webtransport.js.map +0 -1
@@ -5,6 +5,9 @@ import type { GetRegistrationStatsRequest } from "./enrollment.js";
5
5
  import type { BulkCreateInvitesResponse } from "./enrollment.js";
6
6
  import type { BulkCreateInvitesRequest } from "./enrollment.js";
7
7
  import type { RevokeInviteRequest } from "./enrollment.js";
8
+ import type { ListInviteRedemptionsResponse } from "./enrollment.js";
9
+ import type { ListInviteRedemptionsRequest } from "./enrollment.js";
10
+ import type { GetInviteRequest } from "./enrollment.js";
8
11
  import type { ListInvitesResponse } from "./enrollment.js";
9
12
  import type { ListInvitesRequest } from "./enrollment.js";
10
13
  import type { Invite } from "./enrollment.js";
@@ -25,7 +28,8 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
25
28
  */
26
29
  export interface IEnrollmentServiceClient {
27
30
  /**
28
- * Get the current enrollment policy.
31
+ * The enrollment policy in force: the stored one, else the defaults, with
32
+ * the mode the deployment pins.
29
33
  *
30
34
  * @generated from protobuf rpc: GetEnrollmentPolicy
31
35
  */
@@ -39,7 +43,11 @@ export interface IEnrollmentServiceClient {
39
43
  */
40
44
  getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus>;
41
45
  /**
42
- * Update the enrollment policy (mode, domains, tracking).
46
+ * Replace the stored enrollment policy (mode, domains, invite defaults,
47
+ * tracking); returns the policy in force. Administrators only. Refused with
48
+ * FAILED_PRECONDITION when it changes a mode the deployment pins, and with
49
+ * INVALID_ARGUMENT for a domain-restricted policy without a domain or an
50
+ * allowed domain that is no domain name.
43
51
  *
44
52
  * @generated from protobuf rpc: UpdateEnrollmentPolicy
45
53
  */
@@ -56,6 +64,19 @@ export interface IEnrollmentServiceClient {
56
64
  * @generated from protobuf rpc: ListInvites
57
65
  */
58
66
  listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse>;
67
+ /**
68
+ * One invite. NOT_FOUND for an unknown id.
69
+ *
70
+ * @generated from protobuf rpc: GetInvite
71
+ */
72
+ getInvite(input: GetInviteRequest, options?: RpcOptions): UnaryCall<GetInviteRequest, Invite>;
73
+ /**
74
+ * The registrations that used an invite, oldest first, a page at a time.
75
+ * NOT_FOUND for an unknown invite.
76
+ *
77
+ * @generated from protobuf rpc: ListInviteRedemptions
78
+ */
79
+ listInviteRedemptions(input: ListInviteRedemptionsRequest, options?: RpcOptions): UnaryCall<ListInviteRedemptionsRequest, ListInviteRedemptionsResponse>;
59
80
  /**
60
81
  * Revoke an invite code (deactivate, cannot be used anymore).
61
82
  *
@@ -92,7 +113,8 @@ export declare class EnrollmentServiceClient implements IEnrollmentServiceClient
92
113
  };
93
114
  constructor(_transport: RpcTransport);
94
115
  /**
95
- * Get the current enrollment policy.
116
+ * The enrollment policy in force: the stored one, else the defaults, with
117
+ * the mode the deployment pins.
96
118
  *
97
119
  * @generated from protobuf rpc: GetEnrollmentPolicy
98
120
  */
@@ -106,7 +128,11 @@ export declare class EnrollmentServiceClient implements IEnrollmentServiceClient
106
128
  */
107
129
  getInstanceStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, InstanceStatus>;
108
130
  /**
109
- * Update the enrollment policy (mode, domains, tracking).
131
+ * Replace the stored enrollment policy (mode, domains, invite defaults,
132
+ * tracking); returns the policy in force. Administrators only. Refused with
133
+ * FAILED_PRECONDITION when it changes a mode the deployment pins, and with
134
+ * INVALID_ARGUMENT for a domain-restricted policy without a domain or an
135
+ * allowed domain that is no domain name.
110
136
  *
111
137
  * @generated from protobuf rpc: UpdateEnrollmentPolicy
112
138
  */
@@ -123,6 +149,19 @@ export declare class EnrollmentServiceClient implements IEnrollmentServiceClient
123
149
  * @generated from protobuf rpc: ListInvites
124
150
  */
125
151
  listInvites(input: ListInvitesRequest, options?: RpcOptions): UnaryCall<ListInvitesRequest, ListInvitesResponse>;
152
+ /**
153
+ * One invite. NOT_FOUND for an unknown id.
154
+ *
155
+ * @generated from protobuf rpc: GetInvite
156
+ */
157
+ getInvite(input: GetInviteRequest, options?: RpcOptions): UnaryCall<GetInviteRequest, Invite>;
158
+ /**
159
+ * The registrations that used an invite, oldest first, a page at a time.
160
+ * NOT_FOUND for an unknown invite.
161
+ *
162
+ * @generated from protobuf rpc: ListInviteRedemptions
163
+ */
164
+ listInviteRedemptions(input: ListInviteRedemptionsRequest, options?: RpcOptions): UnaryCall<ListInviteRedemptionsRequest, ListInviteRedemptionsResponse>;
126
165
  /**
127
166
  * Revoke an invite code (deactivate, cannot be used anymore).
128
167
  *
@@ -17,7 +17,8 @@ export class EnrollmentServiceClient {
17
17
  this._transport = _transport;
18
18
  }
19
19
  /**
20
- * Get the current enrollment policy.
20
+ * The enrollment policy in force: the stored one, else the defaults, with
21
+ * the mode the deployment pins.
21
22
  *
22
23
  * @generated from protobuf rpc: GetEnrollmentPolicy
23
24
  */
@@ -37,7 +38,11 @@ export class EnrollmentServiceClient {
37
38
  return stackIntercept("unary", this._transport, method, opt, input);
38
39
  }
39
40
  /**
40
- * Update the enrollment policy (mode, domains, tracking).
41
+ * Replace the stored enrollment policy (mode, domains, invite defaults,
42
+ * tracking); returns the policy in force. Administrators only. Refused with
43
+ * FAILED_PRECONDITION when it changes a mode the deployment pins, and with
44
+ * INVALID_ARGUMENT for a domain-restricted policy without a domain or an
45
+ * allowed domain that is no domain name.
41
46
  *
42
47
  * @generated from protobuf rpc: UpdateEnrollmentPolicy
43
48
  */
@@ -64,13 +69,32 @@ export class EnrollmentServiceClient {
64
69
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
65
70
  return stackIntercept("unary", this._transport, method, opt, input);
66
71
  }
72
+ /**
73
+ * One invite. NOT_FOUND for an unknown id.
74
+ *
75
+ * @generated from protobuf rpc: GetInvite
76
+ */
77
+ getInvite(input, options) {
78
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
79
+ return stackIntercept("unary", this._transport, method, opt, input);
80
+ }
81
+ /**
82
+ * The registrations that used an invite, oldest first, a page at a time.
83
+ * NOT_FOUND for an unknown invite.
84
+ *
85
+ * @generated from protobuf rpc: ListInviteRedemptions
86
+ */
87
+ listInviteRedemptions(input, options) {
88
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
89
+ return stackIntercept("unary", this._transport, method, opt, input);
90
+ }
67
91
  /**
68
92
  * Revoke an invite code (deactivate, cannot be used anymore).
69
93
  *
70
94
  * @generated from protobuf rpc: RevokeInvite
71
95
  */
72
96
  revokeInvite(input, options) {
73
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
97
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
74
98
  return stackIntercept("unary", this._transport, method, opt, input);
75
99
  }
76
100
  /**
@@ -79,7 +103,7 @@ export class EnrollmentServiceClient {
79
103
  * @generated from protobuf rpc: BulkCreateInvites
80
104
  */
81
105
  bulkCreateInvites(input, options) {
82
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
106
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
83
107
  return stackIntercept("unary", this._transport, method, opt, input);
84
108
  }
85
109
  // ── Registration Analytics ──
@@ -89,7 +113,7 @@ export class EnrollmentServiceClient {
89
113
  * @generated from protobuf rpc: GetRegistrationStats
90
114
  */
91
115
  getRegistrationStats(input, options) {
92
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
116
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
93
117
  return stackIntercept("unary", this._transport, method, opt, input);
94
118
  }
95
119
  }
@@ -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,CA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;;;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"]}
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;AAepD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAuF1D;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAIH;IAH7B,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,C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,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 { ListInviteRedemptionsResponse } from \"./enrollment.js\";\nimport type { ListInviteRedemptionsRequest } from \"./enrollment.js\";\nimport type { GetInviteRequest } 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 * The enrollment policy in force: the stored one, else the defaults, with\n * the mode the deployment pins.\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 * Replace the stored enrollment policy (mode, domains, invite defaults,\n * tracking); returns the policy in force. Administrators only. Refused with\n * FAILED_PRECONDITION when it changes a mode the deployment pins, and with\n * INVALID_ARGUMENT for a domain-restricted policy without a domain or an\n * allowed domain that is no domain name.\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 * One invite. NOT_FOUND for an unknown id.\n *\n * @generated from protobuf rpc: GetInvite\n */\n getInvite(input: GetInviteRequest, options?: RpcOptions): UnaryCall<GetInviteRequest, Invite>;\n /**\n * The registrations that used an invite, oldest first, a page at a time.\n * NOT_FOUND for an unknown invite.\n *\n * @generated from protobuf rpc: ListInviteRedemptions\n */\n listInviteRedemptions(input: ListInviteRedemptionsRequest, options?: RpcOptions): UnaryCall<ListInviteRedemptionsRequest, ListInviteRedemptionsResponse>;\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 * The enrollment policy in force: the stored one, else the defaults, with\n * the mode the deployment pins.\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 * Replace the stored enrollment policy (mode, domains, invite defaults,\n * tracking); returns the policy in force. Administrators only. Refused with\n * FAILED_PRECONDITION when it changes a mode the deployment pins, and with\n * INVALID_ARGUMENT for a domain-restricted policy without a domain or an\n * allowed domain that is no domain name.\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 * One invite. NOT_FOUND for an unknown id.\n *\n * @generated from protobuf rpc: GetInvite\n */\n getInvite(input: GetInviteRequest, options?: RpcOptions): UnaryCall<GetInviteRequest, Invite> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetInviteRequest, Invite>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The registrations that used an invite, oldest first, a page at a time.\n * NOT_FOUND for an unknown invite.\n *\n * @generated from protobuf rpc: ListInviteRedemptions\n */\n listInviteRedemptions(input: ListInviteRedemptionsRequest, options?: RpcOptions): UnaryCall<ListInviteRedemptionsRequest, ListInviteRedemptionsResponse> {\n const method = this.methods[6], opt = this._transport.mergeOptions(options);\n return stackIntercept<ListInviteRedemptionsRequest, ListInviteRedemptionsResponse>(\"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[7], 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[8], 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[9], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetRegistrationStatsRequest, RegistrationStats>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
@@ -53,6 +53,14 @@ export interface EnrollmentPolicy {
53
53
  * @generated from protobuf field: bool track_source = 4
54
54
  */
55
55
  trackSource: boolean;
56
+ /**
57
+ * Output only: the deployment pins `mode`, which then applies whatever
58
+ * mode an administrator stored; an update that changes it is refused.
59
+ * Ignored in an update request.
60
+ *
61
+ * @generated from protobuf field: bool mode_pinned = 5
62
+ */
63
+ modePinned: boolean;
56
64
  }
57
65
  /**
58
66
  * Configuration for the invite system.
@@ -93,13 +101,15 @@ export interface Invite {
93
101
  */
94
102
  code: string;
95
103
  /**
96
- * Profile ID of the admin who created this invite.
104
+ * Profile ID of the admin who created this invite; empty when a machine
105
+ * user created it (created_by_machine_user_id).
97
106
  *
98
107
  * @generated from protobuf field: string created_by = 3
99
108
  */
100
109
  createdBy: string;
101
110
  /**
102
- * Display name of the creator (for admin-ui).
111
+ * Display name of the creator (for admin-ui): the Profile's name, or the
112
+ * machine user's.
103
113
  *
104
114
  * @generated from protobuf field: string created_by_name = 4
105
115
  */
@@ -148,6 +158,41 @@ export interface Invite {
148
158
  * @generated from protobuf field: google.protobuf.Timestamp created_at = 11
149
159
  */
150
160
  createdAt?: Timestamp;
161
+ /**
162
+ * Machine user ID of the service that created this invite, holding the
163
+ * invite action on the enrollment API; empty when a Profile created it.
164
+ * Exactly one of created_by and this is set.
165
+ *
166
+ * @generated from protobuf field: string created_by_machine_user_id = 12
167
+ */
168
+ createdByMachineUserId: string;
169
+ }
170
+ /**
171
+ * One registration that used an invite.
172
+ *
173
+ * @generated from protobuf message sid.v1.admin.InviteRedemption
174
+ */
175
+ export interface InviteRedemption {
176
+ /**
177
+ * The Profile the registration created.
178
+ *
179
+ * @generated from protobuf field: string profile_id = 1
180
+ */
181
+ profileId: string;
182
+ /**
183
+ * When the registration committed.
184
+ *
185
+ * @generated from protobuf field: google.protobuf.Timestamp redeemed_at = 2
186
+ */
187
+ redeemedAt?: Timestamp;
188
+ /**
189
+ * The credential the registration installed; empty when it installed none.
190
+ * The client that ran the registration recognizes its own redemption by the
191
+ * credential id its registration finish returned.
192
+ *
193
+ * @generated from protobuf field: string credential_id = 3
194
+ */
195
+ credentialId: string;
151
196
  }
152
197
  /**
153
198
  * How a profile was created. Stored as metadata on the profile.
@@ -310,13 +355,17 @@ export interface UpdateEnrollmentPolicyRequest {
310
355
  */
311
356
  export interface CreateInviteRequest {
312
357
  /**
313
- * Maximum number of times this code can be used. Default: 1.
358
+ * Maximum number of times this code can be used. 0: the enrollment
359
+ * policy's InviteConfig.default_max_uses, unless unlimited_uses asks for
360
+ * no limit.
314
361
  *
315
362
  * @generated from protobuf field: uint32 max_uses = 1
316
363
  */
317
364
  maxUses: number;
318
365
  /**
319
- * Expiration timestamp. Not set = no expiry.
366
+ * Expiration timestamp, in the future. Not set: the enrollment policy's
367
+ * InviteConfig.default_expiry_hours from now (no expiry when that is 0),
368
+ * unless never_expires asks for none.
320
369
  *
321
370
  * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 2
322
371
  */
@@ -329,6 +378,20 @@ export interface CreateInviteRequest {
329
378
  metadata: {
330
379
  [key: string]: string;
331
380
  };
381
+ /**
382
+ * The invite never expires, whatever the policy's default expiry. Refused
383
+ * with INVALID_ARGUMENT together with expires_at.
384
+ *
385
+ * @generated from protobuf field: bool never_expires = 4
386
+ */
387
+ neverExpires: boolean;
388
+ /**
389
+ * The invite has no use limit, whatever the policy's default. Refused with
390
+ * INVALID_ARGUMENT together with a nonzero max_uses.
391
+ *
392
+ * @generated from protobuf field: bool unlimited_uses = 5
393
+ */
394
+ unlimitedUses: boolean;
332
395
  }
333
396
  /**
334
397
  * @generated from protobuf message sid.v1.admin.ListInvitesRequest
@@ -383,6 +446,55 @@ export interface RevokeInviteRequest {
383
446
  */
384
447
  inviteId: string;
385
448
  }
449
+ /**
450
+ * @generated from protobuf message sid.v1.admin.GetInviteRequest
451
+ */
452
+ export interface GetInviteRequest {
453
+ /**
454
+ * The invite's ID (UUID).
455
+ *
456
+ * @generated from protobuf field: string invite_id = 1
457
+ */
458
+ inviteId: string;
459
+ }
460
+ /**
461
+ * @generated from protobuf message sid.v1.admin.ListInviteRedemptionsRequest
462
+ */
463
+ export interface ListInviteRedemptionsRequest {
464
+ /**
465
+ * The invite's ID (UUID).
466
+ *
467
+ * @generated from protobuf field: string invite_id = 1
468
+ */
469
+ inviteId: string;
470
+ /**
471
+ * Redemptions per page: 0 is the default (50), more than 500 is 500.
472
+ *
473
+ * @generated from protobuf field: uint32 page_size = 2
474
+ */
475
+ pageSize: number;
476
+ /**
477
+ * The next_page_token of the previous page; empty for the first.
478
+ *
479
+ * @generated from protobuf field: string page_token = 3
480
+ */
481
+ pageToken: string;
482
+ }
483
+ /**
484
+ * @generated from protobuf message sid.v1.admin.ListInviteRedemptionsResponse
485
+ */
486
+ export interface ListInviteRedemptionsResponse {
487
+ /**
488
+ * @generated from protobuf field: repeated sid.v1.admin.InviteRedemption redemptions = 1
489
+ */
490
+ redemptions: InviteRedemption[];
491
+ /**
492
+ * The token of the next page; empty after the last.
493
+ *
494
+ * @generated from protobuf field: string next_page_token = 2
495
+ */
496
+ nextPageToken: string;
497
+ }
386
498
  /**
387
499
  * @generated from protobuf message sid.v1.admin.BulkCreateInvitesRequest
388
500
  */
@@ -394,13 +506,14 @@ export interface BulkCreateInvitesRequest {
394
506
  */
395
507
  count: number;
396
508
  /**
397
- * Max uses per code. Default: 1.
509
+ * Max uses per code; 0 as in CreateInviteRequest.max_uses.
398
510
  *
399
511
  * @generated from protobuf field: uint32 max_uses = 2
400
512
  */
401
513
  maxUses: number;
402
514
  /**
403
- * Expiration for all generated codes.
515
+ * Expiration for all generated codes; not set as in
516
+ * CreateInviteRequest.expires_at.
404
517
  *
405
518
  * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 3
406
519
  */
@@ -413,6 +526,18 @@ export interface BulkCreateInvitesRequest {
413
526
  metadata: {
414
527
  [key: string]: string;
415
528
  };
529
+ /**
530
+ * The codes never expire; as in CreateInviteRequest.never_expires.
531
+ *
532
+ * @generated from protobuf field: bool never_expires = 5
533
+ */
534
+ neverExpires: boolean;
535
+ /**
536
+ * The codes have no use limit; as in CreateInviteRequest.unlimited_uses.
537
+ *
538
+ * @generated from protobuf field: bool unlimited_uses = 6
539
+ */
540
+ unlimitedUses: boolean;
416
541
  }
417
542
  /**
418
543
  * @generated from protobuf message sid.v1.admin.BulkCreateInvitesResponse
@@ -629,6 +754,16 @@ declare class Invite$Type extends MessageType<Invite> {
629
754
  * @generated MessageType for protobuf message sid.v1.admin.Invite
630
755
  */
631
756
  export declare const Invite: Invite$Type;
757
+ declare class InviteRedemption$Type extends MessageType<InviteRedemption> {
758
+ constructor();
759
+ create(value?: PartialMessage<InviteRedemption>): InviteRedemption;
760
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InviteRedemption): InviteRedemption;
761
+ internalBinaryWrite(message: InviteRedemption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
762
+ }
763
+ /**
764
+ * @generated MessageType for protobuf message sid.v1.admin.InviteRedemption
765
+ */
766
+ export declare const InviteRedemption: InviteRedemption$Type;
632
767
  declare class RegistrationSource$Type extends MessageType<RegistrationSource> {
633
768
  constructor();
634
769
  create(value?: PartialMessage<RegistrationSource>): RegistrationSource;
@@ -730,6 +865,36 @@ declare class RevokeInviteRequest$Type extends MessageType<RevokeInviteRequest>
730
865
  * @generated MessageType for protobuf message sid.v1.admin.RevokeInviteRequest
731
866
  */
732
867
  export declare const RevokeInviteRequest: RevokeInviteRequest$Type;
868
+ declare class GetInviteRequest$Type extends MessageType<GetInviteRequest> {
869
+ constructor();
870
+ create(value?: PartialMessage<GetInviteRequest>): GetInviteRequest;
871
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetInviteRequest): GetInviteRequest;
872
+ internalBinaryWrite(message: GetInviteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
873
+ }
874
+ /**
875
+ * @generated MessageType for protobuf message sid.v1.admin.GetInviteRequest
876
+ */
877
+ export declare const GetInviteRequest: GetInviteRequest$Type;
878
+ declare class ListInviteRedemptionsRequest$Type extends MessageType<ListInviteRedemptionsRequest> {
879
+ constructor();
880
+ create(value?: PartialMessage<ListInviteRedemptionsRequest>): ListInviteRedemptionsRequest;
881
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInviteRedemptionsRequest): ListInviteRedemptionsRequest;
882
+ internalBinaryWrite(message: ListInviteRedemptionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
883
+ }
884
+ /**
885
+ * @generated MessageType for protobuf message sid.v1.admin.ListInviteRedemptionsRequest
886
+ */
887
+ export declare const ListInviteRedemptionsRequest: ListInviteRedemptionsRequest$Type;
888
+ declare class ListInviteRedemptionsResponse$Type extends MessageType<ListInviteRedemptionsResponse> {
889
+ constructor();
890
+ create(value?: PartialMessage<ListInviteRedemptionsResponse>): ListInviteRedemptionsResponse;
891
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInviteRedemptionsResponse): ListInviteRedemptionsResponse;
892
+ internalBinaryWrite(message: ListInviteRedemptionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
893
+ }
894
+ /**
895
+ * @generated MessageType for protobuf message sid.v1.admin.ListInviteRedemptionsResponse
896
+ */
897
+ export declare const ListInviteRedemptionsResponse: ListInviteRedemptionsResponse$Type;
733
898
  declare class BulkCreateInvitesRequest$Type extends MessageType<BulkCreateInvitesRequest> {
734
899
  constructor();
735
900
  create(value?: PartialMessage<BulkCreateInvitesRequest>): BulkCreateInvitesRequest;