@structured-id/proto 0.4.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.
- package/CHANGELOG.md +7 -0
- package/dist/generated/sid/v1/account/account.client.d.ts +34 -16
- package/dist/generated/sid/v1/account/account.client.js +17 -8
- package/dist/generated/sid/v1/account/account.client.js.map +1 -1
- package/dist/generated/sid/v1/account/account.js +8 -8
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin.js +2 -2
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.client.d.ts +2 -0
- package/dist/generated/sid/v1/admin/branding.client.js +1 -0
- package/dist/generated/sid/v1/admin/branding.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.js +2 -2
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.client.d.ts +29 -0
- package/dist/generated/sid/v1/admin/enrollment.client.js +22 -3
- package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +128 -2
- package/dist/generated/sid/v1/admin/enrollment.js +238 -1
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.client.d.ts +12 -6
- package/dist/generated/sid/v1/admin/flow.client.js +6 -3
- package/dist/generated/sid/v1/admin/flow.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.js +7 -7
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/notifications.js +2 -2
- package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.js +4 -4
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.client.d.ts +4 -2
- package/dist/generated/sid/v1/admin/security.client.js +2 -1
- package/dist/generated/sid/v1/admin/security.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.js +2 -2
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.client.d.ts +4 -2
- package/dist/generated/sid/v1/attestation/attestation.client.js +2 -1
- package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.js +4 -4
- package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +10 -2
- package/dist/generated/sid/v1/authn/auth.client.js +5 -1
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +0 -12
- package/dist/generated/sid/v1/authn/auth.js +2 -18
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.client.d.ts +10 -4
- package/dist/generated/sid/v1/authn/issuer.client.js +5 -2
- package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.js +11 -11
- package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
- package/dist/generated/sid/v1/authn/system_integration.js +1 -1
- package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.client.d.ts +0 -28
- package/dist/generated/sid/v1/authz/authz.client.js +25 -43
- package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +0 -96
- package/dist/generated/sid/v1/authz/authz.js +0 -230
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
- package/dist/generated/sid/v1/events/event_stream.js +2 -2
- package/dist/generated/sid/v1/events/event_stream.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.client.d.ts +10 -4
- package/dist/generated/sid/v1/projects/projects.client.js +5 -2
- package/dist/generated/sid/v1/projects/projects.client.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.js +2 -2
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/dist/generated/sid/v1/scim/scim.client.d.ts +4 -2
- package/dist/generated/sid/v1/scim/scim.client.js +2 -1
- package/dist/generated/sid/v1/scim/scim.client.js.map +1 -1
- package/dist/generated/sid/v1/scim/scim.js +4 -4
- package/dist/generated/sid/v1/scim/scim.js.map +1 -1
- package/dist/generated/sid/v1/test/test.js +10 -10
- package/dist/generated/sid/v1/test/test.js.map +1 -1
- package/dist/generated/sid/v1/ui/public_settings.client.d.ts +66 -0
- package/dist/generated/sid/v1/ui/public_settings.client.js +42 -0
- package/dist/generated/sid/v1/ui/public_settings.client.js.map +1 -0
- package/dist/generated/sid/v1/ui/public_settings.d.ts +61 -0
- package/dist/generated/sid/v1/ui/public_settings.js +106 -0
- package/dist/generated/sid/v1/ui/public_settings.js.map +1 -0
- package/package.json +6 -6
|
@@ -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";
|
|
@@ -61,6 +64,19 @@ export interface IEnrollmentServiceClient {
|
|
|
61
64
|
* @generated from protobuf rpc: ListInvites
|
|
62
65
|
*/
|
|
63
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>;
|
|
64
80
|
/**
|
|
65
81
|
* Revoke an invite code (deactivate, cannot be used anymore).
|
|
66
82
|
*
|
|
@@ -133,6 +149,19 @@ export declare class EnrollmentServiceClient implements IEnrollmentServiceClient
|
|
|
133
149
|
* @generated from protobuf rpc: ListInvites
|
|
134
150
|
*/
|
|
135
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>;
|
|
136
165
|
/**
|
|
137
166
|
* Revoke an invite code (deactivate, cannot be used anymore).
|
|
138
167
|
*
|
|
@@ -69,13 +69,32 @@ export class EnrollmentServiceClient {
|
|
|
69
69
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
70
70
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
71
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
|
+
}
|
|
72
91
|
/**
|
|
73
92
|
* Revoke an invite code (deactivate, cannot be used anymore).
|
|
74
93
|
*
|
|
75
94
|
* @generated from protobuf rpc: RevokeInvite
|
|
76
95
|
*/
|
|
77
96
|
revokeInvite(input, options) {
|
|
78
|
-
const method = this.methods[
|
|
97
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
79
98
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
80
99
|
}
|
|
81
100
|
/**
|
|
@@ -84,7 +103,7 @@ export class EnrollmentServiceClient {
|
|
|
84
103
|
* @generated from protobuf rpc: BulkCreateInvites
|
|
85
104
|
*/
|
|
86
105
|
bulkCreateInvites(input, options) {
|
|
87
|
-
const method = this.methods[
|
|
106
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
88
107
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
89
108
|
}
|
|
90
109
|
// ── Registration Analytics ──
|
|
@@ -94,7 +113,7 @@ export class EnrollmentServiceClient {
|
|
|
94
113
|
* @generated from protobuf rpc: GetRegistrationStats
|
|
95
114
|
*/
|
|
96
115
|
getRegistrationStats(input, options) {
|
|
97
|
-
const method = this.methods[
|
|
116
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
98
117
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
99
118
|
}
|
|
100
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrollment.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/admin/enrollment.client.ts"],"names":[],"mappings":"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","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 * 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 * 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 * 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":"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","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"]}
|
|
@@ -101,13 +101,15 @@ export interface Invite {
|
|
|
101
101
|
*/
|
|
102
102
|
code: string;
|
|
103
103
|
/**
|
|
104
|
-
* 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).
|
|
105
106
|
*
|
|
106
107
|
* @generated from protobuf field: string created_by = 3
|
|
107
108
|
*/
|
|
108
109
|
createdBy: string;
|
|
109
110
|
/**
|
|
110
|
-
* 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.
|
|
111
113
|
*
|
|
112
114
|
* @generated from protobuf field: string created_by_name = 4
|
|
113
115
|
*/
|
|
@@ -156,6 +158,41 @@ export interface Invite {
|
|
|
156
158
|
* @generated from protobuf field: google.protobuf.Timestamp created_at = 11
|
|
157
159
|
*/
|
|
158
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;
|
|
159
196
|
}
|
|
160
197
|
/**
|
|
161
198
|
* How a profile was created. Stored as metadata on the profile.
|
|
@@ -409,6 +446,55 @@ export interface RevokeInviteRequest {
|
|
|
409
446
|
*/
|
|
410
447
|
inviteId: string;
|
|
411
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
|
+
}
|
|
412
498
|
/**
|
|
413
499
|
* @generated from protobuf message sid.v1.admin.BulkCreateInvitesRequest
|
|
414
500
|
*/
|
|
@@ -668,6 +754,16 @@ declare class Invite$Type extends MessageType<Invite> {
|
|
|
668
754
|
* @generated MessageType for protobuf message sid.v1.admin.Invite
|
|
669
755
|
*/
|
|
670
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;
|
|
671
767
|
declare class RegistrationSource$Type extends MessageType<RegistrationSource> {
|
|
672
768
|
constructor();
|
|
673
769
|
create(value?: PartialMessage<RegistrationSource>): RegistrationSource;
|
|
@@ -769,6 +865,36 @@ declare class RevokeInviteRequest$Type extends MessageType<RevokeInviteRequest>
|
|
|
769
865
|
* @generated MessageType for protobuf message sid.v1.admin.RevokeInviteRequest
|
|
770
866
|
*/
|
|
771
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;
|
|
772
898
|
declare class BulkCreateInvitesRequest$Type extends MessageType<BulkCreateInvitesRequest> {
|
|
773
899
|
constructor();
|
|
774
900
|
create(value?: PartialMessage<BulkCreateInvitesRequest>): BulkCreateInvitesRequest;
|
|
@@ -362,7 +362,8 @@ class Invite$Type extends MessageType {
|
|
|
362
362
|
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
363
363
|
{ no: 9, name: "active", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
364
364
|
{ no: 10, name: "status", kind: "enum", T: () => ["sid.v1.admin.InviteStatus", InviteStatus, "INVITE_STATUS_"] },
|
|
365
|
-
{ no: 11, name: "created_at", kind: "message", T: () => Timestamp }
|
|
365
|
+
{ no: 11, name: "created_at", kind: "message", T: () => Timestamp },
|
|
366
|
+
{ no: 12, name: "created_by_machine_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
366
367
|
]);
|
|
367
368
|
}
|
|
368
369
|
create(value) {
|
|
@@ -376,6 +377,7 @@ class Invite$Type extends MessageType {
|
|
|
376
377
|
message.useCount = 0;
|
|
377
378
|
message.active = false;
|
|
378
379
|
message.status = 0;
|
|
380
|
+
message.createdByMachineUserId = "";
|
|
379
381
|
if (value !== undefined)
|
|
380
382
|
reflectionMergePartial(this, message, value);
|
|
381
383
|
return message;
|
|
@@ -418,6 +420,9 @@ class Invite$Type extends MessageType {
|
|
|
418
420
|
case /* google.protobuf.Timestamp created_at */ 11:
|
|
419
421
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
420
422
|
break;
|
|
423
|
+
case /* string created_by_machine_user_id */ 12:
|
|
424
|
+
message.createdByMachineUserId = reader.string();
|
|
425
|
+
break;
|
|
421
426
|
default:
|
|
422
427
|
let u = options.readUnknownField;
|
|
423
428
|
if (u === "throw")
|
|
@@ -479,6 +484,9 @@ class Invite$Type extends MessageType {
|
|
|
479
484
|
/* google.protobuf.Timestamp created_at = 11; */
|
|
480
485
|
if (message.createdAt)
|
|
481
486
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
487
|
+
/* string created_by_machine_user_id = 12; */
|
|
488
|
+
if (message.createdByMachineUserId !== "")
|
|
489
|
+
writer.tag(12, WireType.LengthDelimited).string(message.createdByMachineUserId);
|
|
482
490
|
let u = options.writeUnknownFields;
|
|
483
491
|
if (u !== false)
|
|
484
492
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -490,6 +498,68 @@ class Invite$Type extends MessageType {
|
|
|
490
498
|
*/
|
|
491
499
|
export const Invite = new Invite$Type();
|
|
492
500
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
501
|
+
class InviteRedemption$Type extends MessageType {
|
|
502
|
+
constructor() {
|
|
503
|
+
super("sid.v1.admin.InviteRedemption", [
|
|
504
|
+
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
505
|
+
{ no: 2, name: "redeemed_at", kind: "message", T: () => Timestamp },
|
|
506
|
+
{ no: 3, name: "credential_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
507
|
+
]);
|
|
508
|
+
}
|
|
509
|
+
create(value) {
|
|
510
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
511
|
+
message.profileId = "";
|
|
512
|
+
message.credentialId = "";
|
|
513
|
+
if (value !== undefined)
|
|
514
|
+
reflectionMergePartial(this, message, value);
|
|
515
|
+
return message;
|
|
516
|
+
}
|
|
517
|
+
internalBinaryRead(reader, length, options, target) {
|
|
518
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
519
|
+
while (reader.pos < end) {
|
|
520
|
+
let [fieldNo, wireType] = reader.tag();
|
|
521
|
+
switch (fieldNo) {
|
|
522
|
+
case /* string profile_id */ 1:
|
|
523
|
+
message.profileId = reader.string();
|
|
524
|
+
break;
|
|
525
|
+
case /* google.protobuf.Timestamp redeemed_at */ 2:
|
|
526
|
+
message.redeemedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.redeemedAt);
|
|
527
|
+
break;
|
|
528
|
+
case /* string credential_id */ 3:
|
|
529
|
+
message.credentialId = reader.string();
|
|
530
|
+
break;
|
|
531
|
+
default:
|
|
532
|
+
let u = options.readUnknownField;
|
|
533
|
+
if (u === "throw")
|
|
534
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
535
|
+
let d = reader.skip(wireType);
|
|
536
|
+
if (u !== false)
|
|
537
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return message;
|
|
541
|
+
}
|
|
542
|
+
internalBinaryWrite(message, writer, options) {
|
|
543
|
+
/* string profile_id = 1; */
|
|
544
|
+
if (message.profileId !== "")
|
|
545
|
+
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
546
|
+
/* google.protobuf.Timestamp redeemed_at = 2; */
|
|
547
|
+
if (message.redeemedAt)
|
|
548
|
+
Timestamp.internalBinaryWrite(message.redeemedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
549
|
+
/* string credential_id = 3; */
|
|
550
|
+
if (message.credentialId !== "")
|
|
551
|
+
writer.tag(3, WireType.LengthDelimited).string(message.credentialId);
|
|
552
|
+
let u = options.writeUnknownFields;
|
|
553
|
+
if (u !== false)
|
|
554
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
555
|
+
return writer;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @generated MessageType for protobuf message sid.v1.admin.InviteRedemption
|
|
560
|
+
*/
|
|
561
|
+
export const InviteRedemption = new InviteRedemption$Type();
|
|
562
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
493
563
|
class RegistrationSource$Type extends MessageType {
|
|
494
564
|
constructor() {
|
|
495
565
|
super("sid.v1.admin.RegistrationSource", [
|
|
@@ -1178,6 +1248,171 @@ class RevokeInviteRequest$Type extends MessageType {
|
|
|
1178
1248
|
*/
|
|
1179
1249
|
export const RevokeInviteRequest = new RevokeInviteRequest$Type();
|
|
1180
1250
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1251
|
+
class GetInviteRequest$Type extends MessageType {
|
|
1252
|
+
constructor() {
|
|
1253
|
+
super("sid.v1.admin.GetInviteRequest", [
|
|
1254
|
+
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1255
|
+
]);
|
|
1256
|
+
}
|
|
1257
|
+
create(value) {
|
|
1258
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1259
|
+
message.inviteId = "";
|
|
1260
|
+
if (value !== undefined)
|
|
1261
|
+
reflectionMergePartial(this, message, value);
|
|
1262
|
+
return message;
|
|
1263
|
+
}
|
|
1264
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1265
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1266
|
+
while (reader.pos < end) {
|
|
1267
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1268
|
+
switch (fieldNo) {
|
|
1269
|
+
case /* string invite_id */ 1:
|
|
1270
|
+
message.inviteId = reader.string();
|
|
1271
|
+
break;
|
|
1272
|
+
default:
|
|
1273
|
+
let u = options.readUnknownField;
|
|
1274
|
+
if (u === "throw")
|
|
1275
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1276
|
+
let d = reader.skip(wireType);
|
|
1277
|
+
if (u !== false)
|
|
1278
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
return message;
|
|
1282
|
+
}
|
|
1283
|
+
internalBinaryWrite(message, writer, options) {
|
|
1284
|
+
/* string invite_id = 1; */
|
|
1285
|
+
if (message.inviteId !== "")
|
|
1286
|
+
writer.tag(1, WireType.LengthDelimited).string(message.inviteId);
|
|
1287
|
+
let u = options.writeUnknownFields;
|
|
1288
|
+
if (u !== false)
|
|
1289
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1290
|
+
return writer;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* @generated MessageType for protobuf message sid.v1.admin.GetInviteRequest
|
|
1295
|
+
*/
|
|
1296
|
+
export const GetInviteRequest = new GetInviteRequest$Type();
|
|
1297
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1298
|
+
class ListInviteRedemptionsRequest$Type extends MessageType {
|
|
1299
|
+
constructor() {
|
|
1300
|
+
super("sid.v1.admin.ListInviteRedemptionsRequest", [
|
|
1301
|
+
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1302
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1303
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1304
|
+
]);
|
|
1305
|
+
}
|
|
1306
|
+
create(value) {
|
|
1307
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1308
|
+
message.inviteId = "";
|
|
1309
|
+
message.pageSize = 0;
|
|
1310
|
+
message.pageToken = "";
|
|
1311
|
+
if (value !== undefined)
|
|
1312
|
+
reflectionMergePartial(this, message, value);
|
|
1313
|
+
return message;
|
|
1314
|
+
}
|
|
1315
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1316
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1317
|
+
while (reader.pos < end) {
|
|
1318
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1319
|
+
switch (fieldNo) {
|
|
1320
|
+
case /* string invite_id */ 1:
|
|
1321
|
+
message.inviteId = reader.string();
|
|
1322
|
+
break;
|
|
1323
|
+
case /* uint32 page_size */ 2:
|
|
1324
|
+
message.pageSize = reader.uint32();
|
|
1325
|
+
break;
|
|
1326
|
+
case /* string page_token */ 3:
|
|
1327
|
+
message.pageToken = reader.string();
|
|
1328
|
+
break;
|
|
1329
|
+
default:
|
|
1330
|
+
let u = options.readUnknownField;
|
|
1331
|
+
if (u === "throw")
|
|
1332
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1333
|
+
let d = reader.skip(wireType);
|
|
1334
|
+
if (u !== false)
|
|
1335
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
return message;
|
|
1339
|
+
}
|
|
1340
|
+
internalBinaryWrite(message, writer, options) {
|
|
1341
|
+
/* string invite_id = 1; */
|
|
1342
|
+
if (message.inviteId !== "")
|
|
1343
|
+
writer.tag(1, WireType.LengthDelimited).string(message.inviteId);
|
|
1344
|
+
/* uint32 page_size = 2; */
|
|
1345
|
+
if (message.pageSize !== 0)
|
|
1346
|
+
writer.tag(2, WireType.Varint).uint32(message.pageSize);
|
|
1347
|
+
/* string page_token = 3; */
|
|
1348
|
+
if (message.pageToken !== "")
|
|
1349
|
+
writer.tag(3, WireType.LengthDelimited).string(message.pageToken);
|
|
1350
|
+
let u = options.writeUnknownFields;
|
|
1351
|
+
if (u !== false)
|
|
1352
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1353
|
+
return writer;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* @generated MessageType for protobuf message sid.v1.admin.ListInviteRedemptionsRequest
|
|
1358
|
+
*/
|
|
1359
|
+
export const ListInviteRedemptionsRequest = new ListInviteRedemptionsRequest$Type();
|
|
1360
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1361
|
+
class ListInviteRedemptionsResponse$Type extends MessageType {
|
|
1362
|
+
constructor() {
|
|
1363
|
+
super("sid.v1.admin.ListInviteRedemptionsResponse", [
|
|
1364
|
+
{ no: 1, name: "redemptions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => InviteRedemption },
|
|
1365
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1366
|
+
]);
|
|
1367
|
+
}
|
|
1368
|
+
create(value) {
|
|
1369
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1370
|
+
message.redemptions = [];
|
|
1371
|
+
message.nextPageToken = "";
|
|
1372
|
+
if (value !== undefined)
|
|
1373
|
+
reflectionMergePartial(this, message, value);
|
|
1374
|
+
return message;
|
|
1375
|
+
}
|
|
1376
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1377
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1378
|
+
while (reader.pos < end) {
|
|
1379
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1380
|
+
switch (fieldNo) {
|
|
1381
|
+
case /* repeated sid.v1.admin.InviteRedemption redemptions */ 1:
|
|
1382
|
+
message.redemptions.push(InviteRedemption.internalBinaryRead(reader, reader.uint32(), options));
|
|
1383
|
+
break;
|
|
1384
|
+
case /* string next_page_token */ 2:
|
|
1385
|
+
message.nextPageToken = reader.string();
|
|
1386
|
+
break;
|
|
1387
|
+
default:
|
|
1388
|
+
let u = options.readUnknownField;
|
|
1389
|
+
if (u === "throw")
|
|
1390
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1391
|
+
let d = reader.skip(wireType);
|
|
1392
|
+
if (u !== false)
|
|
1393
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return message;
|
|
1397
|
+
}
|
|
1398
|
+
internalBinaryWrite(message, writer, options) {
|
|
1399
|
+
/* repeated sid.v1.admin.InviteRedemption redemptions = 1; */
|
|
1400
|
+
for (let i = 0; i < message.redemptions.length; i++)
|
|
1401
|
+
InviteRedemption.internalBinaryWrite(message.redemptions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1402
|
+
/* string next_page_token = 2; */
|
|
1403
|
+
if (message.nextPageToken !== "")
|
|
1404
|
+
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
1405
|
+
let u = options.writeUnknownFields;
|
|
1406
|
+
if (u !== false)
|
|
1407
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1408
|
+
return writer;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* @generated MessageType for protobuf message sid.v1.admin.ListInviteRedemptionsResponse
|
|
1413
|
+
*/
|
|
1414
|
+
export const ListInviteRedemptionsResponse = new ListInviteRedemptionsResponse$Type();
|
|
1415
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1181
1416
|
class BulkCreateInvitesRequest$Type extends MessageType {
|
|
1182
1417
|
constructor() {
|
|
1183
1418
|
super("sid.v1.admin.BulkCreateInvitesRequest", [
|
|
@@ -1382,6 +1617,8 @@ export const EnrollmentService = new ServiceType("sid.v1.admin.EnrollmentService
|
|
|
1382
1617
|
{ name: "UpdateEnrollmentPolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/admin/enrollment/policy", body: "*" } }, I: UpdateEnrollmentPolicyRequest, O: EnrollmentPolicy },
|
|
1383
1618
|
{ name: "CreateInvite", options: { "google.api.http": { post: "/v1/admin/enrollment/invites", body: "*" } }, I: CreateInviteRequest, O: Invite },
|
|
1384
1619
|
{ name: "ListInvites", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/invites" } }, I: ListInvitesRequest, O: ListInvitesResponse },
|
|
1620
|
+
{ name: "GetInvite", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/invites/{invite_id}" } }, I: GetInviteRequest, O: Invite },
|
|
1621
|
+
{ name: "ListInviteRedemptions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/invites/{invite_id}/redemptions" } }, I: ListInviteRedemptionsRequest, O: ListInviteRedemptionsResponse },
|
|
1385
1622
|
{ name: "RevokeInvite", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/admin/enrollment/invites/{invite_id}/revoke", body: "*" } }, I: RevokeInviteRequest, O: Empty },
|
|
1386
1623
|
{ name: "BulkCreateInvites", options: { "google.api.http": { post: "/v1/admin/enrollment/invites/bulk", body: "*" } }, I: BulkCreateInvitesRequest, O: BulkCreateInvitesResponse },
|
|
1387
1624
|
{ name: "GetRegistrationStats", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/stats" } }, I: GetRegistrationStatsRequest, O: RegistrationStats }
|