@structured-id/ui-core 1.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -10
- package/package.json +25 -43
- package/src/components/SidStatusBadge.vue +1 -5
- package/src/composables/useAccountTransport.test.ts +2 -1
- package/src/composables/useGrpc.test.ts +17 -14
- package/src/composables/useGrpc.ts +4 -2
- package/src/index.ts +2 -120
- package/src/profile/components/ConsentManager.vue +5 -1
- package/src/profile/components/ProfileEditor.vue +1 -1
- package/src/profile/components/SecuritySettings.vue +5 -1
- package/src/profile/components/SessionList.vue +2 -1
- package/src/profile/components/SidRegistrationForm.test.ts +173 -1
- package/src/profile/components/SidRegistrationForm.vue +88 -32
- package/src/profile/components/index.ts +1 -4
- package/src/profile/composables/index.ts +1 -0
- package/src/profile/composables/operationPlan.test.ts +155 -0
- package/src/profile/composables/operationPlan.ts +218 -0
- package/src/profile/composables/useAccountApi.ts +4 -4
- package/src/profile/composables/useAuth.test.ts +312 -31
- package/src/profile/composables/useAuth.ts +176 -30
- package/src/profile/composables/useAuthApi.opaque.test.ts +13 -6
- package/src/profile/composables/useAuthApi.ts +40 -18
- package/src/profile/composables/useCurrentPasswordRequirement.test.ts +196 -0
- package/src/profile/composables/useCurrentPasswordRequirement.ts +95 -0
- package/src/profile/composables/useEnrollmentApi.test.ts +7 -3
- package/src/profile/composables/useEnrollmentApi.ts +3 -5
- package/src/profile/composables/useIdentityApi.ts +4 -4
- package/src/profile/composables/useSecurityLevel.test.ts +1 -1
- package/src/profile/composables/useSecurityLevel.ts +1 -1
- package/src/quasar/SidPasswordCeremony.test.ts +253 -0
- package/src/quasar/SidPasswordCeremony.vue +456 -0
- package/src/quasar/index.ts +2 -0
- package/src/utils/rpcRefusal.test.ts +4 -4
- package/src/utils/rpcRefusal.ts +8 -4
- package/dist/browser-vp/index.cjs +0 -349
- package/dist/browser-vp/index.d.cts +0 -276
- package/dist/browser-vp/index.d.ts +0 -276
- package/dist/browser-vp/index.js +0 -349
- package/dist/chunk-C3Q766CY.cjs +0 -125
- package/dist/chunk-J5YXRXB5.js +0 -125
- package/dist/index.cjs +0 -23581
- package/dist/index.d.cts +0 -11539
- package/dist/index.d.ts +0 -11539
- package/dist/index.js +0 -23581
- package/dist/storage-4CB2JTLW.cjs +0 -22
- package/dist/storage-THRWREZP.js +0 -22
- package/src/browser-vp/crypto.ts +0 -253
- package/src/browser-vp/index.test.ts +0 -10
- package/src/browser-vp/index.ts +0 -116
- package/src/browser-vp/prf.ts +0 -179
- package/src/browser-vp/storage.test.ts +0 -9
- package/src/browser-vp/storage.ts +0 -163
- package/src/browser-vp/types.ts +0 -95
- package/src/browser-vp/vp.test.ts +0 -43
- package/src/browser-vp/vp.ts +0 -111
- package/src/generated/google/api/http.ts +0 -687
- package/src/generated/google/api/httpbody.ts +0 -159
- package/src/generated/google/protobuf/any.ts +0 -326
- package/src/generated/google/protobuf/descriptor.ts +0 -4865
- package/src/generated/google/protobuf/duration.ts +0 -230
- package/src/generated/google/protobuf/empty.ts +0 -94
- package/src/generated/google/protobuf/struct.ts +0 -484
- package/src/generated/google/protobuf/timestamp.ts +0 -287
- package/src/generated/google/rpc/error_details.ts +0 -1386
- package/src/generated/google/rpc/status.ts +0 -127
- package/src/generated/sid/v1/account/account.client.ts +0 -527
- package/src/generated/sid/v1/account/account.ts +0 -3261
- package/src/generated/sid/v1/admin/admin.client.ts +0 -139
- package/src/generated/sid/v1/admin/admin.ts +0 -781
- package/src/generated/sid/v1/admin/admin_roles.client.ts +0 -181
- package/src/generated/sid/v1/admin/admin_roles.ts +0 -1606
- package/src/generated/sid/v1/admin/analytics.client.ts +0 -106
- package/src/generated/sid/v1/admin/analytics.ts +0 -1017
- package/src/generated/sid/v1/admin/branding.client.ts +0 -166
- package/src/generated/sid/v1/admin/branding.ts +0 -1906
- package/src/generated/sid/v1/admin/enrollment.client.ts +0 -177
- package/src/generated/sid/v1/admin/enrollment.ts +0 -1766
- package/src/generated/sid/v1/admin/events.client.ts +0 -195
- package/src/generated/sid/v1/admin/events.ts +0 -1900
- package/src/generated/sid/v1/admin/flow.client.ts +0 -183
- package/src/generated/sid/v1/admin/flow.ts +0 -1552
- package/src/generated/sid/v1/admin/keys.client.ts +0 -107
- package/src/generated/sid/v1/admin/keys.ts +0 -931
- package/src/generated/sid/v1/admin/login_experience.client.ts +0 -160
- package/src/generated/sid/v1/admin/login_experience.ts +0 -1061
- package/src/generated/sid/v1/admin/migration.client.ts +0 -127
- package/src/generated/sid/v1/admin/migration.ts +0 -1948
- package/src/generated/sid/v1/admin/notifications.client.ts +0 -134
- package/src/generated/sid/v1/admin/notifications.ts +0 -1273
- package/src/generated/sid/v1/admin/operations.client.ts +0 -241
- package/src/generated/sid/v1/admin/operations.ts +0 -2633
- package/src/generated/sid/v1/admin/organizations.client.ts +0 -57
- package/src/generated/sid/v1/admin/organizations.ts +0 -332
- package/src/generated/sid/v1/admin/provisioning.client.ts +0 -232
- package/src/generated/sid/v1/admin/provisioning.ts +0 -1383
- package/src/generated/sid/v1/admin/scopes.client.ts +0 -171
- package/src/generated/sid/v1/admin/scopes.ts +0 -1324
- package/src/generated/sid/v1/admin/security.client.ts +0 -410
- package/src/generated/sid/v1/admin/security.ts +0 -4077
- package/src/generated/sid/v1/admin/sessions.client.ts +0 -114
- package/src/generated/sid/v1/admin/sessions.ts +0 -923
- package/src/generated/sid/v1/admin/settings.client.ts +0 -351
- package/src/generated/sid/v1/admin/settings.ts +0 -2458
- package/src/generated/sid/v1/admin/user_profile.client.ts +0 -57
- package/src/generated/sid/v1/admin/user_profile.ts +0 -730
- package/src/generated/sid/v1/admin/webhooks.client.ts +0 -269
- package/src/generated/sid/v1/admin/webhooks.ts +0 -2804
- package/src/generated/sid/v1/attestation/attestation.client.ts +0 -115
- package/src/generated/sid/v1/attestation/attestation.ts +0 -813
- package/src/generated/sid/v1/authn/auth.client.ts +0 -943
- package/src/generated/sid/v1/authn/auth.ts +0 -9719
- package/src/generated/sid/v1/authn/flows.client.ts +0 -413
- package/src/generated/sid/v1/authn/flows.ts +0 -3205
- package/src/generated/sid/v1/authn/issuer.client.ts +0 -489
- package/src/generated/sid/v1/authn/issuer.ts +0 -1600
- package/src/generated/sid/v1/authn/password_history.client.ts +0 -57
- package/src/generated/sid/v1/authn/password_history.ts +0 -578
- package/src/generated/sid/v1/authn/system_integration.client.ts +0 -73
- package/src/generated/sid/v1/authn/system_integration.ts +0 -218
- package/src/generated/sid/v1/authz/authz.client.ts +0 -459
- package/src/generated/sid/v1/authz/authz.ts +0 -6524
- package/src/generated/sid/v1/authz/forward_auth.client.ts +0 -97
- package/src/generated/sid/v1/authz/forward_auth.ts +0 -79
- package/src/generated/sid/v1/authz/governance.client.ts +0 -102
- package/src/generated/sid/v1/authz/governance.ts +0 -875
- package/src/generated/sid/v1/common/errors.ts +0 -710
- package/src/generated/sid/v1/common/pagination.ts +0 -152
- package/src/generated/sid/v1/common/transport.ts +0 -227
- package/src/generated/sid/v1/common/types.ts +0 -151
- package/src/generated/sid/v1/events/event_stream.client.ts +0 -67
- package/src/generated/sid/v1/events/event_stream.ts +0 -375
- package/src/generated/sid/v1/federation/upstream.client.ts +0 -142
- package/src/generated/sid/v1/federation/upstream.ts +0 -1736
- package/src/generated/sid/v1/identity/identity.client.ts +0 -467
- package/src/generated/sid/v1/identity/identity.ts +0 -5676
- package/src/generated/sid/v1/ids/ids.ts +0 -395
- package/src/generated/sid/v1/machine/machine_user.client.ts +0 -219
- package/src/generated/sid/v1/machine/machine_user.ts +0 -2364
- package/src/generated/sid/v1/machine/pat.client.ts +0 -130
- package/src/generated/sid/v1/machine/pat.ts +0 -1083
- package/src/generated/sid/v1/projects/projects.client.ts +0 -404
- package/src/generated/sid/v1/projects/projects.ts +0 -4446
- package/src/generated/sid/v1/scim/scim.client.ts +0 -520
- package/src/generated/sid/v1/scim/scim.ts +0 -3182
- package/src/generated/sid/v1/test/test.client.ts +0 -232
- package/src/generated/sid/v1/test/test.ts +0 -1136
- package/src/transport/adaptive.test.ts +0 -728
- package/src/transport/adaptive.ts +0 -308
- package/src/transport/framing.test.ts +0 -227
- package/src/transport/framing.ts +0 -98
- package/src/transport/webtransport.test.ts +0 -728
- package/src/transport/webtransport.ts +0 -323
|
@@ -1,1766 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/enrollment.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
16
|
-
/**
|
|
17
|
-
* Whether the installation has its first administrator.
|
|
18
|
-
*
|
|
19
|
-
* @generated from protobuf message sid.v1.admin.InstanceStatus
|
|
20
|
-
*/
|
|
21
|
-
export interface InstanceStatus {
|
|
22
|
-
/**
|
|
23
|
-
* False while no administrator exists: self-registration then accepts only a
|
|
24
|
-
* registration carrying the claim token from the service log, whatever the
|
|
25
|
-
* enrollment mode. The token itself is never returned.
|
|
26
|
-
*
|
|
27
|
-
* @generated from protobuf field: bool claimed = 1
|
|
28
|
-
*/
|
|
29
|
-
claimed: boolean;
|
|
30
|
-
}
|
|
31
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
32
|
-
// Enrollment Policy
|
|
33
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Enrollment (registration) policy — controls who can create profiles.
|
|
37
|
-
* Sub-policy of SecurityPolicy.
|
|
38
|
-
*
|
|
39
|
-
* @generated from protobuf message sid.v1.admin.EnrollmentPolicy
|
|
40
|
-
*/
|
|
41
|
-
export interface EnrollmentPolicy {
|
|
42
|
-
/**
|
|
43
|
-
* Registration gating mode.
|
|
44
|
-
*
|
|
45
|
-
* @generated from protobuf field: sid.v1.admin.EnrollmentMode mode = 1
|
|
46
|
-
*/
|
|
47
|
-
mode: EnrollmentMode;
|
|
48
|
-
/**
|
|
49
|
-
* Invite configuration (only used when mode = INVITE_ONLY).
|
|
50
|
-
*
|
|
51
|
-
* @generated from protobuf field: sid.v1.admin.InviteConfig invite = 2
|
|
52
|
-
*/
|
|
53
|
-
invite?: InviteConfig;
|
|
54
|
-
/**
|
|
55
|
-
* Allowed email domains (only used when mode = DOMAIN_RESTRICTED).
|
|
56
|
-
* Example: ["acme.corp", "partner.org"]
|
|
57
|
-
*
|
|
58
|
-
* @generated from protobuf field: repeated string allowed_domains = 3
|
|
59
|
-
*/
|
|
60
|
-
allowedDomains: string[];
|
|
61
|
-
/**
|
|
62
|
-
* Whether to track registration source metadata on profiles.
|
|
63
|
-
* Default: true.
|
|
64
|
-
*
|
|
65
|
-
* @generated from protobuf field: bool track_source = 4
|
|
66
|
-
*/
|
|
67
|
-
trackSource: boolean;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Configuration for the invite system.
|
|
71
|
-
*
|
|
72
|
-
* @generated from protobuf message sid.v1.admin.InviteConfig
|
|
73
|
-
*/
|
|
74
|
-
export interface InviteConfig {
|
|
75
|
-
/**
|
|
76
|
-
* Default max uses for new invite codes. 1 = single-use.
|
|
77
|
-
*
|
|
78
|
-
* @generated from protobuf field: uint32 default_max_uses = 1
|
|
79
|
-
*/
|
|
80
|
-
defaultMaxUses: number;
|
|
81
|
-
/**
|
|
82
|
-
* Default expiration duration in hours. 0 = no expiry.
|
|
83
|
-
*
|
|
84
|
-
* @generated from protobuf field: uint32 default_expiry_hours = 2
|
|
85
|
-
*/
|
|
86
|
-
defaultExpiryHours: number;
|
|
87
|
-
}
|
|
88
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
89
|
-
// Invite
|
|
90
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Invite code for gated registration.
|
|
94
|
-
*
|
|
95
|
-
* @generated from protobuf message sid.v1.admin.Invite
|
|
96
|
-
*/
|
|
97
|
-
export interface Invite {
|
|
98
|
-
/**
|
|
99
|
-
* Unique invite ID (UUID).
|
|
100
|
-
*
|
|
101
|
-
* @generated from protobuf field: string id = 1
|
|
102
|
-
*/
|
|
103
|
-
id: string;
|
|
104
|
-
/**
|
|
105
|
-
* The code that the user enters during registration.
|
|
106
|
-
* Cryptographically random, URL-safe, 8-character alphanumeric (case-insensitive).
|
|
107
|
-
*
|
|
108
|
-
* @generated from protobuf field: string code = 2
|
|
109
|
-
*/
|
|
110
|
-
code: string;
|
|
111
|
-
/**
|
|
112
|
-
* Profile ID of the admin who created this invite.
|
|
113
|
-
*
|
|
114
|
-
* @generated from protobuf field: string created_by = 3
|
|
115
|
-
*/
|
|
116
|
-
createdBy: string;
|
|
117
|
-
/**
|
|
118
|
-
* Display name of the creator (for admin-ui).
|
|
119
|
-
*
|
|
120
|
-
* @generated from protobuf field: string created_by_name = 4
|
|
121
|
-
*/
|
|
122
|
-
createdByName: string;
|
|
123
|
-
/**
|
|
124
|
-
* Optional: pre-fill profile fields on registration.
|
|
125
|
-
* Example: department, role, group membership.
|
|
126
|
-
*
|
|
127
|
-
* @generated from protobuf field: map<string, string> metadata = 5
|
|
128
|
-
*/
|
|
129
|
-
metadata: {
|
|
130
|
-
[key: string]: string;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Maximum number of times this code can be used.
|
|
134
|
-
* 1 = single-use (most common). 0 = unlimited.
|
|
135
|
-
*
|
|
136
|
-
* @generated from protobuf field: uint32 max_uses = 6
|
|
137
|
-
*/
|
|
138
|
-
maxUses: number;
|
|
139
|
-
/**
|
|
140
|
-
* How many times this code has been used.
|
|
141
|
-
*
|
|
142
|
-
* @generated from protobuf field: uint32 use_count = 7
|
|
143
|
-
*/
|
|
144
|
-
useCount: number;
|
|
145
|
-
/**
|
|
146
|
-
* Expiration. Not set = no expiry.
|
|
147
|
-
*
|
|
148
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 8
|
|
149
|
-
*/
|
|
150
|
-
expiresAt?: Timestamp;
|
|
151
|
-
/**
|
|
152
|
-
* Whether this invite is active.
|
|
153
|
-
*
|
|
154
|
-
* @generated from protobuf field: bool active = 9
|
|
155
|
-
*/
|
|
156
|
-
active: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Computed status for display purposes.
|
|
159
|
-
*
|
|
160
|
-
* @generated from protobuf field: sid.v1.admin.InviteStatus status = 10
|
|
161
|
-
*/
|
|
162
|
-
status: InviteStatus;
|
|
163
|
-
/**
|
|
164
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 11
|
|
165
|
-
*/
|
|
166
|
-
createdAt?: Timestamp;
|
|
167
|
-
}
|
|
168
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
169
|
-
// Registration Source
|
|
170
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* How a profile was created. Stored as metadata on the profile.
|
|
174
|
-
*
|
|
175
|
-
* @generated from protobuf message sid.v1.admin.RegistrationSource
|
|
176
|
-
*/
|
|
177
|
-
export interface RegistrationSource {
|
|
178
|
-
/**
|
|
179
|
-
* Source type.
|
|
180
|
-
*
|
|
181
|
-
* @generated from protobuf field: sid.v1.admin.RegistrationSourceType source_type = 1
|
|
182
|
-
*/
|
|
183
|
-
sourceType: RegistrationSourceType;
|
|
184
|
-
/**
|
|
185
|
-
* Raw source identifier.
|
|
186
|
-
* invite:{code}, scim:{provider}, admin:{admin_profile_id},
|
|
187
|
-
* federation:{idp_id}, self:{client_id}
|
|
188
|
-
*
|
|
189
|
-
* @generated from protobuf field: string source_id = 2
|
|
190
|
-
*/
|
|
191
|
-
sourceId: string;
|
|
192
|
-
/**
|
|
193
|
-
* Referrer profile ID (if provided during registration).
|
|
194
|
-
*
|
|
195
|
-
* @generated from protobuf field: optional string referrer_id = 3
|
|
196
|
-
*/
|
|
197
|
-
referrerId?: string;
|
|
198
|
-
/**
|
|
199
|
-
* UTM parameters (if captured from registration URL).
|
|
200
|
-
*
|
|
201
|
-
* @generated from protobuf field: sid.v1.admin.UtmParams utm = 4
|
|
202
|
-
*/
|
|
203
|
-
utm?: UtmParams;
|
|
204
|
-
/**
|
|
205
|
-
* Client application through which registration occurred.
|
|
206
|
-
*
|
|
207
|
-
* @generated from protobuf field: optional string client_id = 5
|
|
208
|
-
*/
|
|
209
|
-
clientId?: string;
|
|
210
|
-
/**
|
|
211
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 6
|
|
212
|
-
*/
|
|
213
|
-
createdAt?: Timestamp;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* UTM tracking parameters from registration URL.
|
|
217
|
-
*
|
|
218
|
-
* @generated from protobuf message sid.v1.admin.UtmParams
|
|
219
|
-
*/
|
|
220
|
-
export interface UtmParams {
|
|
221
|
-
/**
|
|
222
|
-
* @generated from protobuf field: string source = 1
|
|
223
|
-
*/
|
|
224
|
-
source: string; // utm_source
|
|
225
|
-
/**
|
|
226
|
-
* @generated from protobuf field: string medium = 2
|
|
227
|
-
*/
|
|
228
|
-
medium: string; // utm_medium
|
|
229
|
-
/**
|
|
230
|
-
* @generated from protobuf field: string campaign = 3
|
|
231
|
-
*/
|
|
232
|
-
campaign: string; // utm_campaign
|
|
233
|
-
/**
|
|
234
|
-
* @generated from protobuf field: string term = 4
|
|
235
|
-
*/
|
|
236
|
-
term: string; // utm_term
|
|
237
|
-
/**
|
|
238
|
-
* @generated from protobuf field: string content = 5
|
|
239
|
-
*/
|
|
240
|
-
content: string; // utm_content
|
|
241
|
-
}
|
|
242
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
243
|
-
// Registration Statistics
|
|
244
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Aggregated registration statistics for admin dashboard.
|
|
248
|
-
*
|
|
249
|
-
* @generated from protobuf message sid.v1.admin.RegistrationStats
|
|
250
|
-
*/
|
|
251
|
-
export interface RegistrationStats {
|
|
252
|
-
/**
|
|
253
|
-
* Total new profiles in the period.
|
|
254
|
-
*
|
|
255
|
-
* @generated from protobuf field: uint32 total = 1
|
|
256
|
-
*/
|
|
257
|
-
total: number;
|
|
258
|
-
/**
|
|
259
|
-
* Breakdown by source type.
|
|
260
|
-
*
|
|
261
|
-
* @generated from protobuf field: repeated sid.v1.admin.SourceBreakdown by_source = 2
|
|
262
|
-
*/
|
|
263
|
-
bySource: SourceBreakdown[];
|
|
264
|
-
/**
|
|
265
|
-
* Top referrers in the period.
|
|
266
|
-
*
|
|
267
|
-
* @generated from protobuf field: repeated sid.v1.admin.ReferrerEntry top_referrers = 3
|
|
268
|
-
*/
|
|
269
|
-
topReferrers: ReferrerEntry[];
|
|
270
|
-
/**
|
|
271
|
-
* Total referrals count.
|
|
272
|
-
*
|
|
273
|
-
* @generated from protobuf field: uint32 total_referrals = 4
|
|
274
|
-
*/
|
|
275
|
-
totalReferrals: number;
|
|
276
|
-
/**
|
|
277
|
-
* Number of unique referrers.
|
|
278
|
-
*
|
|
279
|
-
* @generated from protobuf field: uint32 unique_referrers = 5
|
|
280
|
-
*/
|
|
281
|
-
uniqueReferrers: number;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Registration count for a single source type.
|
|
285
|
-
*
|
|
286
|
-
* @generated from protobuf message sid.v1.admin.SourceBreakdown
|
|
287
|
-
*/
|
|
288
|
-
export interface SourceBreakdown {
|
|
289
|
-
/**
|
|
290
|
-
* @generated from protobuf field: sid.v1.admin.RegistrationSourceType source_type = 1
|
|
291
|
-
*/
|
|
292
|
-
sourceType: RegistrationSourceType;
|
|
293
|
-
/**
|
|
294
|
-
* @generated from protobuf field: uint32 count = 2
|
|
295
|
-
*/
|
|
296
|
-
count: number;
|
|
297
|
-
/**
|
|
298
|
-
* Percentage of total (0-100).
|
|
299
|
-
*
|
|
300
|
-
* @generated from protobuf field: double percentage = 3
|
|
301
|
-
*/
|
|
302
|
-
percentage: number;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* A referrer and their referral count.
|
|
306
|
-
*
|
|
307
|
-
* @generated from protobuf message sid.v1.admin.ReferrerEntry
|
|
308
|
-
*/
|
|
309
|
-
export interface ReferrerEntry {
|
|
310
|
-
/**
|
|
311
|
-
* @generated from protobuf field: string profile_id = 1
|
|
312
|
-
*/
|
|
313
|
-
profileId: string;
|
|
314
|
-
/**
|
|
315
|
-
* @generated from protobuf field: string display_name = 2
|
|
316
|
-
*/
|
|
317
|
-
displayName: string;
|
|
318
|
-
/**
|
|
319
|
-
* @generated from protobuf field: uint32 referral_count = 3
|
|
320
|
-
*/
|
|
321
|
-
referralCount: number;
|
|
322
|
-
}
|
|
323
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
324
|
-
// Requests
|
|
325
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* @generated from protobuf message sid.v1.admin.UpdateEnrollmentPolicyRequest
|
|
329
|
-
*/
|
|
330
|
-
export interface UpdateEnrollmentPolicyRequest {
|
|
331
|
-
/**
|
|
332
|
-
* @generated from protobuf field: sid.v1.admin.EnrollmentPolicy policy = 1
|
|
333
|
-
*/
|
|
334
|
-
policy?: EnrollmentPolicy;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* @generated from protobuf message sid.v1.admin.CreateInviteRequest
|
|
338
|
-
*/
|
|
339
|
-
export interface CreateInviteRequest {
|
|
340
|
-
/**
|
|
341
|
-
* Maximum number of times this code can be used. Default: 1.
|
|
342
|
-
*
|
|
343
|
-
* @generated from protobuf field: uint32 max_uses = 1
|
|
344
|
-
*/
|
|
345
|
-
maxUses: number;
|
|
346
|
-
/**
|
|
347
|
-
* Expiration timestamp. Not set = no expiry.
|
|
348
|
-
*
|
|
349
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 2
|
|
350
|
-
*/
|
|
351
|
-
expiresAt?: Timestamp;
|
|
352
|
-
/**
|
|
353
|
-
* Optional metadata to pre-fill on registration.
|
|
354
|
-
*
|
|
355
|
-
* @generated from protobuf field: map<string, string> metadata = 3
|
|
356
|
-
*/
|
|
357
|
-
metadata: {
|
|
358
|
-
[key: string]: string;
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* @generated from protobuf message sid.v1.admin.ListInvitesRequest
|
|
363
|
-
*/
|
|
364
|
-
export interface ListInvitesRequest {
|
|
365
|
-
/**
|
|
366
|
-
* Pagination.
|
|
367
|
-
*
|
|
368
|
-
* @generated from protobuf field: uint32 page_size = 1
|
|
369
|
-
*/
|
|
370
|
-
pageSize: number;
|
|
371
|
-
/**
|
|
372
|
-
* @generated from protobuf field: string page_token = 2
|
|
373
|
-
*/
|
|
374
|
-
pageToken: string;
|
|
375
|
-
/**
|
|
376
|
-
* Filter by status.
|
|
377
|
-
*
|
|
378
|
-
* @generated from protobuf field: sid.v1.admin.InviteStatus status = 3
|
|
379
|
-
*/
|
|
380
|
-
status: InviteStatus;
|
|
381
|
-
/**
|
|
382
|
-
* Search by code or creator name.
|
|
383
|
-
*
|
|
384
|
-
* @generated from protobuf field: string search = 4
|
|
385
|
-
*/
|
|
386
|
-
search: string;
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* @generated from protobuf message sid.v1.admin.ListInvitesResponse
|
|
390
|
-
*/
|
|
391
|
-
export interface ListInvitesResponse {
|
|
392
|
-
/**
|
|
393
|
-
* @generated from protobuf field: repeated sid.v1.admin.Invite invites = 1
|
|
394
|
-
*/
|
|
395
|
-
invites: Invite[];
|
|
396
|
-
/**
|
|
397
|
-
* @generated from protobuf field: string next_page_token = 2
|
|
398
|
-
*/
|
|
399
|
-
nextPageToken: string;
|
|
400
|
-
/**
|
|
401
|
-
* @generated from protobuf field: uint32 total_count = 3
|
|
402
|
-
*/
|
|
403
|
-
totalCount: number;
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* @generated from protobuf message sid.v1.admin.RevokeInviteRequest
|
|
407
|
-
*/
|
|
408
|
-
export interface RevokeInviteRequest {
|
|
409
|
-
/**
|
|
410
|
-
* @generated from protobuf field: string invite_id = 1
|
|
411
|
-
*/
|
|
412
|
-
inviteId: string;
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* @generated from protobuf message sid.v1.admin.BulkCreateInvitesRequest
|
|
416
|
-
*/
|
|
417
|
-
export interface BulkCreateInvitesRequest {
|
|
418
|
-
/**
|
|
419
|
-
* Number of invite codes to generate.
|
|
420
|
-
*
|
|
421
|
-
* @generated from protobuf field: uint32 count = 1
|
|
422
|
-
*/
|
|
423
|
-
count: number;
|
|
424
|
-
/**
|
|
425
|
-
* Max uses per code. Default: 1.
|
|
426
|
-
*
|
|
427
|
-
* @generated from protobuf field: uint32 max_uses = 2
|
|
428
|
-
*/
|
|
429
|
-
maxUses: number;
|
|
430
|
-
/**
|
|
431
|
-
* Expiration for all generated codes.
|
|
432
|
-
*
|
|
433
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 3
|
|
434
|
-
*/
|
|
435
|
-
expiresAt?: Timestamp;
|
|
436
|
-
/**
|
|
437
|
-
* Metadata applied to all generated codes.
|
|
438
|
-
*
|
|
439
|
-
* @generated from protobuf field: map<string, string> metadata = 4
|
|
440
|
-
*/
|
|
441
|
-
metadata: {
|
|
442
|
-
[key: string]: string;
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* @generated from protobuf message sid.v1.admin.BulkCreateInvitesResponse
|
|
447
|
-
*/
|
|
448
|
-
export interface BulkCreateInvitesResponse {
|
|
449
|
-
/**
|
|
450
|
-
* Generated invite codes.
|
|
451
|
-
*
|
|
452
|
-
* @generated from protobuf field: repeated sid.v1.admin.Invite invites = 1
|
|
453
|
-
*/
|
|
454
|
-
invites: Invite[];
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* @generated from protobuf message sid.v1.admin.GetRegistrationStatsRequest
|
|
458
|
-
*/
|
|
459
|
-
export interface GetRegistrationStatsRequest {
|
|
460
|
-
/**
|
|
461
|
-
* Period in days (7, 30, 90). Default: 30.
|
|
462
|
-
*
|
|
463
|
-
* @generated from protobuf field: uint32 period_days = 1
|
|
464
|
-
*/
|
|
465
|
-
periodDays: number;
|
|
466
|
-
}
|
|
467
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
468
|
-
// Enums
|
|
469
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Registration gating mode.
|
|
473
|
-
*
|
|
474
|
-
* @generated from protobuf enum sid.v1.admin.EnrollmentMode
|
|
475
|
-
*/
|
|
476
|
-
export enum EnrollmentMode {
|
|
477
|
-
/**
|
|
478
|
-
* @generated from protobuf enum value: ENROLLMENT_MODE_UNSPECIFIED = 0;
|
|
479
|
-
*/
|
|
480
|
-
UNSPECIFIED = 0,
|
|
481
|
-
/**
|
|
482
|
-
* Anyone can register. Default for new instances.
|
|
483
|
-
*
|
|
484
|
-
* @generated from protobuf enum value: ENROLLMENT_MODE_OPEN = 1;
|
|
485
|
-
*/
|
|
486
|
-
OPEN = 1,
|
|
487
|
-
/**
|
|
488
|
-
* Registration only with a valid invite code.
|
|
489
|
-
*
|
|
490
|
-
* @generated from protobuf enum value: ENROLLMENT_MODE_INVITE_ONLY = 2;
|
|
491
|
-
*/
|
|
492
|
-
INVITE_ONLY = 2,
|
|
493
|
-
/**
|
|
494
|
-
* Only admin can create profiles (SCIM, admin-ui, API).
|
|
495
|
-
* Self-registration disabled entirely.
|
|
496
|
-
*
|
|
497
|
-
* @generated from protobuf enum value: ENROLLMENT_MODE_ADMIN_ONLY = 3;
|
|
498
|
-
*/
|
|
499
|
-
ADMIN_ONLY = 3,
|
|
500
|
-
/**
|
|
501
|
-
* Only users with email in allowed domains can self-register.
|
|
502
|
-
*
|
|
503
|
-
* @generated from protobuf enum value: ENROLLMENT_MODE_DOMAIN_RESTRICTED = 4;
|
|
504
|
-
*/
|
|
505
|
-
DOMAIN_RESTRICTED = 4
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* How a profile was created.
|
|
509
|
-
*
|
|
510
|
-
* @generated from protobuf enum sid.v1.admin.RegistrationSourceType
|
|
511
|
-
*/
|
|
512
|
-
export enum RegistrationSourceType {
|
|
513
|
-
/**
|
|
514
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_UNSPECIFIED = 0;
|
|
515
|
-
*/
|
|
516
|
-
UNSPECIFIED = 0,
|
|
517
|
-
/**
|
|
518
|
-
* Self-registration (open mode).
|
|
519
|
-
*
|
|
520
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_SELF_SIGNUP = 1;
|
|
521
|
-
*/
|
|
522
|
-
SELF_SIGNUP = 1,
|
|
523
|
-
/**
|
|
524
|
-
* Registration with invite code.
|
|
525
|
-
*
|
|
526
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_INVITE = 2;
|
|
527
|
-
*/
|
|
528
|
-
INVITE = 2,
|
|
529
|
-
/**
|
|
530
|
-
* Admin created profile manually.
|
|
531
|
-
*
|
|
532
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_ADMIN_CREATED = 3;
|
|
533
|
-
*/
|
|
534
|
-
ADMIN_CREATED = 3,
|
|
535
|
-
/**
|
|
536
|
-
* SCIM provisioning.
|
|
537
|
-
*
|
|
538
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_SCIM_PROVISIONED = 4;
|
|
539
|
-
*/
|
|
540
|
-
SCIM_PROVISIONED = 4,
|
|
541
|
-
/**
|
|
542
|
-
* Federation (a user of another organization linked to this org).
|
|
543
|
-
*
|
|
544
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_FEDERATION = 5;
|
|
545
|
-
*/
|
|
546
|
-
FEDERATION = 5,
|
|
547
|
-
/**
|
|
548
|
-
* Identity brokering (upstream IdP).
|
|
549
|
-
*
|
|
550
|
-
* @generated from protobuf enum value: REGISTRATION_SOURCE_TYPE_IDENTITY_BROKERED = 6;
|
|
551
|
-
*/
|
|
552
|
-
IDENTITY_BROKERED = 6
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* Invite status for filtering.
|
|
556
|
-
*
|
|
557
|
-
* @generated from protobuf enum sid.v1.admin.InviteStatus
|
|
558
|
-
*/
|
|
559
|
-
export enum InviteStatus {
|
|
560
|
-
/**
|
|
561
|
-
* @generated from protobuf enum value: INVITE_STATUS_UNSPECIFIED = 0;
|
|
562
|
-
*/
|
|
563
|
-
UNSPECIFIED = 0,
|
|
564
|
-
/**
|
|
565
|
-
* Active and can be used.
|
|
566
|
-
*
|
|
567
|
-
* @generated from protobuf enum value: INVITE_STATUS_ACTIVE = 1;
|
|
568
|
-
*/
|
|
569
|
-
ACTIVE = 1,
|
|
570
|
-
/**
|
|
571
|
-
* All uses consumed (use_count >= max_uses).
|
|
572
|
-
*
|
|
573
|
-
* @generated from protobuf enum value: INVITE_STATUS_CONSUMED = 2;
|
|
574
|
-
*/
|
|
575
|
-
CONSUMED = 2,
|
|
576
|
-
/**
|
|
577
|
-
* Manually revoked by admin.
|
|
578
|
-
*
|
|
579
|
-
* @generated from protobuf enum value: INVITE_STATUS_REVOKED = 3;
|
|
580
|
-
*/
|
|
581
|
-
REVOKED = 3,
|
|
582
|
-
/**
|
|
583
|
-
* Past expiration date.
|
|
584
|
-
*
|
|
585
|
-
* @generated from protobuf enum value: INVITE_STATUS_EXPIRED = 4;
|
|
586
|
-
*/
|
|
587
|
-
EXPIRED = 4
|
|
588
|
-
}
|
|
589
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
590
|
-
class InstanceStatus$Type extends MessageType<InstanceStatus> {
|
|
591
|
-
constructor() {
|
|
592
|
-
super("sid.v1.admin.InstanceStatus", [
|
|
593
|
-
{ no: 1, name: "claimed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
594
|
-
]);
|
|
595
|
-
}
|
|
596
|
-
create(value?: PartialMessage<InstanceStatus>): InstanceStatus {
|
|
597
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
598
|
-
message.claimed = false;
|
|
599
|
-
if (value !== undefined)
|
|
600
|
-
reflectionMergePartial<InstanceStatus>(this, message, value);
|
|
601
|
-
return message;
|
|
602
|
-
}
|
|
603
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstanceStatus): InstanceStatus {
|
|
604
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
605
|
-
while (reader.pos < end) {
|
|
606
|
-
let [fieldNo, wireType] = reader.tag();
|
|
607
|
-
switch (fieldNo) {
|
|
608
|
-
case /* bool claimed */ 1:
|
|
609
|
-
message.claimed = reader.bool();
|
|
610
|
-
break;
|
|
611
|
-
default:
|
|
612
|
-
let u = options.readUnknownField;
|
|
613
|
-
if (u === "throw")
|
|
614
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
615
|
-
let d = reader.skip(wireType);
|
|
616
|
-
if (u !== false)
|
|
617
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
return message;
|
|
621
|
-
}
|
|
622
|
-
internalBinaryWrite(message: InstanceStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
623
|
-
/* bool claimed = 1; */
|
|
624
|
-
if (message.claimed !== false)
|
|
625
|
-
writer.tag(1, WireType.Varint).bool(message.claimed);
|
|
626
|
-
let u = options.writeUnknownFields;
|
|
627
|
-
if (u !== false)
|
|
628
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
629
|
-
return writer;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
/**
|
|
633
|
-
* @generated MessageType for protobuf message sid.v1.admin.InstanceStatus
|
|
634
|
-
*/
|
|
635
|
-
export const InstanceStatus = new InstanceStatus$Type();
|
|
636
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
637
|
-
class EnrollmentPolicy$Type extends MessageType<EnrollmentPolicy> {
|
|
638
|
-
constructor() {
|
|
639
|
-
super("sid.v1.admin.EnrollmentPolicy", [
|
|
640
|
-
{ no: 1, name: "mode", kind: "enum", T: () => ["sid.v1.admin.EnrollmentMode", EnrollmentMode, "ENROLLMENT_MODE_"] },
|
|
641
|
-
{ no: 2, name: "invite", kind: "message", T: () => InviteConfig },
|
|
642
|
-
{ no: 3, name: "allowed_domains", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
643
|
-
{ no: 4, name: "track_source", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
644
|
-
]);
|
|
645
|
-
}
|
|
646
|
-
create(value?: PartialMessage<EnrollmentPolicy>): EnrollmentPolicy {
|
|
647
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
648
|
-
message.mode = 0;
|
|
649
|
-
message.allowedDomains = [];
|
|
650
|
-
message.trackSource = false;
|
|
651
|
-
if (value !== undefined)
|
|
652
|
-
reflectionMergePartial<EnrollmentPolicy>(this, message, value);
|
|
653
|
-
return message;
|
|
654
|
-
}
|
|
655
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnrollmentPolicy): EnrollmentPolicy {
|
|
656
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
657
|
-
while (reader.pos < end) {
|
|
658
|
-
let [fieldNo, wireType] = reader.tag();
|
|
659
|
-
switch (fieldNo) {
|
|
660
|
-
case /* sid.v1.admin.EnrollmentMode mode */ 1:
|
|
661
|
-
message.mode = reader.int32();
|
|
662
|
-
break;
|
|
663
|
-
case /* sid.v1.admin.InviteConfig invite */ 2:
|
|
664
|
-
message.invite = InviteConfig.internalBinaryRead(reader, reader.uint32(), options, message.invite);
|
|
665
|
-
break;
|
|
666
|
-
case /* repeated string allowed_domains */ 3:
|
|
667
|
-
message.allowedDomains.push(reader.string());
|
|
668
|
-
break;
|
|
669
|
-
case /* bool track_source */ 4:
|
|
670
|
-
message.trackSource = reader.bool();
|
|
671
|
-
break;
|
|
672
|
-
default:
|
|
673
|
-
let u = options.readUnknownField;
|
|
674
|
-
if (u === "throw")
|
|
675
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
676
|
-
let d = reader.skip(wireType);
|
|
677
|
-
if (u !== false)
|
|
678
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
return message;
|
|
682
|
-
}
|
|
683
|
-
internalBinaryWrite(message: EnrollmentPolicy, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
684
|
-
/* sid.v1.admin.EnrollmentMode mode = 1; */
|
|
685
|
-
if (message.mode !== 0)
|
|
686
|
-
writer.tag(1, WireType.Varint).int32(message.mode);
|
|
687
|
-
/* sid.v1.admin.InviteConfig invite = 2; */
|
|
688
|
-
if (message.invite)
|
|
689
|
-
InviteConfig.internalBinaryWrite(message.invite, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
690
|
-
/* repeated string allowed_domains = 3; */
|
|
691
|
-
for (let i = 0; i < message.allowedDomains.length; i++)
|
|
692
|
-
writer.tag(3, WireType.LengthDelimited).string(message.allowedDomains[i]);
|
|
693
|
-
/* bool track_source = 4; */
|
|
694
|
-
if (message.trackSource !== false)
|
|
695
|
-
writer.tag(4, WireType.Varint).bool(message.trackSource);
|
|
696
|
-
let u = options.writeUnknownFields;
|
|
697
|
-
if (u !== false)
|
|
698
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
699
|
-
return writer;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* @generated MessageType for protobuf message sid.v1.admin.EnrollmentPolicy
|
|
704
|
-
*/
|
|
705
|
-
export const EnrollmentPolicy = new EnrollmentPolicy$Type();
|
|
706
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
707
|
-
class InviteConfig$Type extends MessageType<InviteConfig> {
|
|
708
|
-
constructor() {
|
|
709
|
-
super("sid.v1.admin.InviteConfig", [
|
|
710
|
-
{ no: 1, name: "default_max_uses", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
711
|
-
{ no: 2, name: "default_expiry_hours", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
712
|
-
]);
|
|
713
|
-
}
|
|
714
|
-
create(value?: PartialMessage<InviteConfig>): InviteConfig {
|
|
715
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
716
|
-
message.defaultMaxUses = 0;
|
|
717
|
-
message.defaultExpiryHours = 0;
|
|
718
|
-
if (value !== undefined)
|
|
719
|
-
reflectionMergePartial<InviteConfig>(this, message, value);
|
|
720
|
-
return message;
|
|
721
|
-
}
|
|
722
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InviteConfig): InviteConfig {
|
|
723
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
724
|
-
while (reader.pos < end) {
|
|
725
|
-
let [fieldNo, wireType] = reader.tag();
|
|
726
|
-
switch (fieldNo) {
|
|
727
|
-
case /* uint32 default_max_uses */ 1:
|
|
728
|
-
message.defaultMaxUses = reader.uint32();
|
|
729
|
-
break;
|
|
730
|
-
case /* uint32 default_expiry_hours */ 2:
|
|
731
|
-
message.defaultExpiryHours = reader.uint32();
|
|
732
|
-
break;
|
|
733
|
-
default:
|
|
734
|
-
let u = options.readUnknownField;
|
|
735
|
-
if (u === "throw")
|
|
736
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
737
|
-
let d = reader.skip(wireType);
|
|
738
|
-
if (u !== false)
|
|
739
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
return message;
|
|
743
|
-
}
|
|
744
|
-
internalBinaryWrite(message: InviteConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
745
|
-
/* uint32 default_max_uses = 1; */
|
|
746
|
-
if (message.defaultMaxUses !== 0)
|
|
747
|
-
writer.tag(1, WireType.Varint).uint32(message.defaultMaxUses);
|
|
748
|
-
/* uint32 default_expiry_hours = 2; */
|
|
749
|
-
if (message.defaultExpiryHours !== 0)
|
|
750
|
-
writer.tag(2, WireType.Varint).uint32(message.defaultExpiryHours);
|
|
751
|
-
let u = options.writeUnknownFields;
|
|
752
|
-
if (u !== false)
|
|
753
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
754
|
-
return writer;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* @generated MessageType for protobuf message sid.v1.admin.InviteConfig
|
|
759
|
-
*/
|
|
760
|
-
export const InviteConfig = new InviteConfig$Type();
|
|
761
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
762
|
-
class Invite$Type extends MessageType<Invite> {
|
|
763
|
-
constructor() {
|
|
764
|
-
super("sid.v1.admin.Invite", [
|
|
765
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
766
|
-
{ no: 2, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
767
|
-
{ no: 3, name: "created_by", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
768
|
-
{ no: 4, name: "created_by_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
769
|
-
{ no: 5, name: "metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
770
|
-
{ no: 6, name: "max_uses", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
771
|
-
{ no: 7, name: "use_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
772
|
-
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
773
|
-
{ no: 9, name: "active", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
774
|
-
{ no: 10, name: "status", kind: "enum", T: () => ["sid.v1.admin.InviteStatus", InviteStatus, "INVITE_STATUS_"] },
|
|
775
|
-
{ no: 11, name: "created_at", kind: "message", T: () => Timestamp }
|
|
776
|
-
]);
|
|
777
|
-
}
|
|
778
|
-
create(value?: PartialMessage<Invite>): Invite {
|
|
779
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
780
|
-
message.id = "";
|
|
781
|
-
message.code = "";
|
|
782
|
-
message.createdBy = "";
|
|
783
|
-
message.createdByName = "";
|
|
784
|
-
message.metadata = {};
|
|
785
|
-
message.maxUses = 0;
|
|
786
|
-
message.useCount = 0;
|
|
787
|
-
message.active = false;
|
|
788
|
-
message.status = 0;
|
|
789
|
-
if (value !== undefined)
|
|
790
|
-
reflectionMergePartial<Invite>(this, message, value);
|
|
791
|
-
return message;
|
|
792
|
-
}
|
|
793
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Invite): Invite {
|
|
794
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
795
|
-
while (reader.pos < end) {
|
|
796
|
-
let [fieldNo, wireType] = reader.tag();
|
|
797
|
-
switch (fieldNo) {
|
|
798
|
-
case /* string id */ 1:
|
|
799
|
-
message.id = reader.string();
|
|
800
|
-
break;
|
|
801
|
-
case /* string code */ 2:
|
|
802
|
-
message.code = reader.string();
|
|
803
|
-
break;
|
|
804
|
-
case /* string created_by */ 3:
|
|
805
|
-
message.createdBy = reader.string();
|
|
806
|
-
break;
|
|
807
|
-
case /* string created_by_name */ 4:
|
|
808
|
-
message.createdByName = reader.string();
|
|
809
|
-
break;
|
|
810
|
-
case /* map<string, string> metadata */ 5:
|
|
811
|
-
this.binaryReadMap5(message.metadata, reader, options);
|
|
812
|
-
break;
|
|
813
|
-
case /* uint32 max_uses */ 6:
|
|
814
|
-
message.maxUses = reader.uint32();
|
|
815
|
-
break;
|
|
816
|
-
case /* uint32 use_count */ 7:
|
|
817
|
-
message.useCount = reader.uint32();
|
|
818
|
-
break;
|
|
819
|
-
case /* optional google.protobuf.Timestamp expires_at */ 8:
|
|
820
|
-
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
821
|
-
break;
|
|
822
|
-
case /* bool active */ 9:
|
|
823
|
-
message.active = reader.bool();
|
|
824
|
-
break;
|
|
825
|
-
case /* sid.v1.admin.InviteStatus status */ 10:
|
|
826
|
-
message.status = reader.int32();
|
|
827
|
-
break;
|
|
828
|
-
case /* google.protobuf.Timestamp created_at */ 11:
|
|
829
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
830
|
-
break;
|
|
831
|
-
default:
|
|
832
|
-
let u = options.readUnknownField;
|
|
833
|
-
if (u === "throw")
|
|
834
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
835
|
-
let d = reader.skip(wireType);
|
|
836
|
-
if (u !== false)
|
|
837
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
return message;
|
|
841
|
-
}
|
|
842
|
-
private binaryReadMap5(map: Invite["metadata"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
843
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof Invite["metadata"] | undefined, val: Invite["metadata"][any] | undefined;
|
|
844
|
-
while (reader.pos < end) {
|
|
845
|
-
let [fieldNo, wireType] = reader.tag();
|
|
846
|
-
switch (fieldNo) {
|
|
847
|
-
case 1:
|
|
848
|
-
key = reader.string();
|
|
849
|
-
break;
|
|
850
|
-
case 2:
|
|
851
|
-
val = reader.string();
|
|
852
|
-
break;
|
|
853
|
-
default: throw new globalThis.Error("unknown map entry field for sid.v1.admin.Invite.metadata");
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
map[key ?? ""] = val ?? "";
|
|
857
|
-
}
|
|
858
|
-
internalBinaryWrite(message: Invite, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
859
|
-
/* string id = 1; */
|
|
860
|
-
if (message.id !== "")
|
|
861
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
862
|
-
/* string code = 2; */
|
|
863
|
-
if (message.code !== "")
|
|
864
|
-
writer.tag(2, WireType.LengthDelimited).string(message.code);
|
|
865
|
-
/* string created_by = 3; */
|
|
866
|
-
if (message.createdBy !== "")
|
|
867
|
-
writer.tag(3, WireType.LengthDelimited).string(message.createdBy);
|
|
868
|
-
/* string created_by_name = 4; */
|
|
869
|
-
if (message.createdByName !== "")
|
|
870
|
-
writer.tag(4, WireType.LengthDelimited).string(message.createdByName);
|
|
871
|
-
/* map<string, string> metadata = 5; */
|
|
872
|
-
for (let k of globalThis.Object.keys(message.metadata))
|
|
873
|
-
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.metadata[k]).join();
|
|
874
|
-
/* uint32 max_uses = 6; */
|
|
875
|
-
if (message.maxUses !== 0)
|
|
876
|
-
writer.tag(6, WireType.Varint).uint32(message.maxUses);
|
|
877
|
-
/* uint32 use_count = 7; */
|
|
878
|
-
if (message.useCount !== 0)
|
|
879
|
-
writer.tag(7, WireType.Varint).uint32(message.useCount);
|
|
880
|
-
/* optional google.protobuf.Timestamp expires_at = 8; */
|
|
881
|
-
if (message.expiresAt)
|
|
882
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
883
|
-
/* bool active = 9; */
|
|
884
|
-
if (message.active !== false)
|
|
885
|
-
writer.tag(9, WireType.Varint).bool(message.active);
|
|
886
|
-
/* sid.v1.admin.InviteStatus status = 10; */
|
|
887
|
-
if (message.status !== 0)
|
|
888
|
-
writer.tag(10, WireType.Varint).int32(message.status);
|
|
889
|
-
/* google.protobuf.Timestamp created_at = 11; */
|
|
890
|
-
if (message.createdAt)
|
|
891
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
892
|
-
let u = options.writeUnknownFields;
|
|
893
|
-
if (u !== false)
|
|
894
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
895
|
-
return writer;
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
/**
|
|
899
|
-
* @generated MessageType for protobuf message sid.v1.admin.Invite
|
|
900
|
-
*/
|
|
901
|
-
export const Invite = new Invite$Type();
|
|
902
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
903
|
-
class RegistrationSource$Type extends MessageType<RegistrationSource> {
|
|
904
|
-
constructor() {
|
|
905
|
-
super("sid.v1.admin.RegistrationSource", [
|
|
906
|
-
{ no: 1, name: "source_type", kind: "enum", T: () => ["sid.v1.admin.RegistrationSourceType", RegistrationSourceType, "REGISTRATION_SOURCE_TYPE_"] },
|
|
907
|
-
{ no: 2, name: "source_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
908
|
-
{ no: 3, name: "referrer_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
909
|
-
{ no: 4, name: "utm", kind: "message", T: () => UtmParams },
|
|
910
|
-
{ no: 5, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
911
|
-
{ no: 6, name: "created_at", kind: "message", T: () => Timestamp }
|
|
912
|
-
]);
|
|
913
|
-
}
|
|
914
|
-
create(value?: PartialMessage<RegistrationSource>): RegistrationSource {
|
|
915
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
916
|
-
message.sourceType = 0;
|
|
917
|
-
message.sourceId = "";
|
|
918
|
-
if (value !== undefined)
|
|
919
|
-
reflectionMergePartial<RegistrationSource>(this, message, value);
|
|
920
|
-
return message;
|
|
921
|
-
}
|
|
922
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegistrationSource): RegistrationSource {
|
|
923
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
924
|
-
while (reader.pos < end) {
|
|
925
|
-
let [fieldNo, wireType] = reader.tag();
|
|
926
|
-
switch (fieldNo) {
|
|
927
|
-
case /* sid.v1.admin.RegistrationSourceType source_type */ 1:
|
|
928
|
-
message.sourceType = reader.int32();
|
|
929
|
-
break;
|
|
930
|
-
case /* string source_id */ 2:
|
|
931
|
-
message.sourceId = reader.string();
|
|
932
|
-
break;
|
|
933
|
-
case /* optional string referrer_id */ 3:
|
|
934
|
-
message.referrerId = reader.string();
|
|
935
|
-
break;
|
|
936
|
-
case /* sid.v1.admin.UtmParams utm */ 4:
|
|
937
|
-
message.utm = UtmParams.internalBinaryRead(reader, reader.uint32(), options, message.utm);
|
|
938
|
-
break;
|
|
939
|
-
case /* optional string client_id */ 5:
|
|
940
|
-
message.clientId = reader.string();
|
|
941
|
-
break;
|
|
942
|
-
case /* google.protobuf.Timestamp created_at */ 6:
|
|
943
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
944
|
-
break;
|
|
945
|
-
default:
|
|
946
|
-
let u = options.readUnknownField;
|
|
947
|
-
if (u === "throw")
|
|
948
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
949
|
-
let d = reader.skip(wireType);
|
|
950
|
-
if (u !== false)
|
|
951
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
return message;
|
|
955
|
-
}
|
|
956
|
-
internalBinaryWrite(message: RegistrationSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
957
|
-
/* sid.v1.admin.RegistrationSourceType source_type = 1; */
|
|
958
|
-
if (message.sourceType !== 0)
|
|
959
|
-
writer.tag(1, WireType.Varint).int32(message.sourceType);
|
|
960
|
-
/* string source_id = 2; */
|
|
961
|
-
if (message.sourceId !== "")
|
|
962
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sourceId);
|
|
963
|
-
/* optional string referrer_id = 3; */
|
|
964
|
-
if (message.referrerId !== undefined)
|
|
965
|
-
writer.tag(3, WireType.LengthDelimited).string(message.referrerId);
|
|
966
|
-
/* sid.v1.admin.UtmParams utm = 4; */
|
|
967
|
-
if (message.utm)
|
|
968
|
-
UtmParams.internalBinaryWrite(message.utm, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
969
|
-
/* optional string client_id = 5; */
|
|
970
|
-
if (message.clientId !== undefined)
|
|
971
|
-
writer.tag(5, WireType.LengthDelimited).string(message.clientId);
|
|
972
|
-
/* google.protobuf.Timestamp created_at = 6; */
|
|
973
|
-
if (message.createdAt)
|
|
974
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
975
|
-
let u = options.writeUnknownFields;
|
|
976
|
-
if (u !== false)
|
|
977
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
978
|
-
return writer;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* @generated MessageType for protobuf message sid.v1.admin.RegistrationSource
|
|
983
|
-
*/
|
|
984
|
-
export const RegistrationSource = new RegistrationSource$Type();
|
|
985
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
986
|
-
class UtmParams$Type extends MessageType<UtmParams> {
|
|
987
|
-
constructor() {
|
|
988
|
-
super("sid.v1.admin.UtmParams", [
|
|
989
|
-
{ no: 1, name: "source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
990
|
-
{ no: 2, name: "medium", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
991
|
-
{ no: 3, name: "campaign", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
992
|
-
{ no: 4, name: "term", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
993
|
-
{ no: 5, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
994
|
-
]);
|
|
995
|
-
}
|
|
996
|
-
create(value?: PartialMessage<UtmParams>): UtmParams {
|
|
997
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
998
|
-
message.source = "";
|
|
999
|
-
message.medium = "";
|
|
1000
|
-
message.campaign = "";
|
|
1001
|
-
message.term = "";
|
|
1002
|
-
message.content = "";
|
|
1003
|
-
if (value !== undefined)
|
|
1004
|
-
reflectionMergePartial<UtmParams>(this, message, value);
|
|
1005
|
-
return message;
|
|
1006
|
-
}
|
|
1007
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UtmParams): UtmParams {
|
|
1008
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1009
|
-
while (reader.pos < end) {
|
|
1010
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1011
|
-
switch (fieldNo) {
|
|
1012
|
-
case /* string source */ 1:
|
|
1013
|
-
message.source = reader.string();
|
|
1014
|
-
break;
|
|
1015
|
-
case /* string medium */ 2:
|
|
1016
|
-
message.medium = reader.string();
|
|
1017
|
-
break;
|
|
1018
|
-
case /* string campaign */ 3:
|
|
1019
|
-
message.campaign = reader.string();
|
|
1020
|
-
break;
|
|
1021
|
-
case /* string term */ 4:
|
|
1022
|
-
message.term = reader.string();
|
|
1023
|
-
break;
|
|
1024
|
-
case /* string content */ 5:
|
|
1025
|
-
message.content = reader.string();
|
|
1026
|
-
break;
|
|
1027
|
-
default:
|
|
1028
|
-
let u = options.readUnknownField;
|
|
1029
|
-
if (u === "throw")
|
|
1030
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1031
|
-
let d = reader.skip(wireType);
|
|
1032
|
-
if (u !== false)
|
|
1033
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
return message;
|
|
1037
|
-
}
|
|
1038
|
-
internalBinaryWrite(message: UtmParams, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1039
|
-
/* string source = 1; */
|
|
1040
|
-
if (message.source !== "")
|
|
1041
|
-
writer.tag(1, WireType.LengthDelimited).string(message.source);
|
|
1042
|
-
/* string medium = 2; */
|
|
1043
|
-
if (message.medium !== "")
|
|
1044
|
-
writer.tag(2, WireType.LengthDelimited).string(message.medium);
|
|
1045
|
-
/* string campaign = 3; */
|
|
1046
|
-
if (message.campaign !== "")
|
|
1047
|
-
writer.tag(3, WireType.LengthDelimited).string(message.campaign);
|
|
1048
|
-
/* string term = 4; */
|
|
1049
|
-
if (message.term !== "")
|
|
1050
|
-
writer.tag(4, WireType.LengthDelimited).string(message.term);
|
|
1051
|
-
/* string content = 5; */
|
|
1052
|
-
if (message.content !== "")
|
|
1053
|
-
writer.tag(5, WireType.LengthDelimited).string(message.content);
|
|
1054
|
-
let u = options.writeUnknownFields;
|
|
1055
|
-
if (u !== false)
|
|
1056
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1057
|
-
return writer;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
/**
|
|
1061
|
-
* @generated MessageType for protobuf message sid.v1.admin.UtmParams
|
|
1062
|
-
*/
|
|
1063
|
-
export const UtmParams = new UtmParams$Type();
|
|
1064
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1065
|
-
class RegistrationStats$Type extends MessageType<RegistrationStats> {
|
|
1066
|
-
constructor() {
|
|
1067
|
-
super("sid.v1.admin.RegistrationStats", [
|
|
1068
|
-
{ no: 1, name: "total", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1069
|
-
{ no: 2, name: "by_source", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SourceBreakdown },
|
|
1070
|
-
{ no: 3, name: "top_referrers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReferrerEntry },
|
|
1071
|
-
{ no: 4, name: "total_referrals", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1072
|
-
{ no: 5, name: "unique_referrers", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1073
|
-
]);
|
|
1074
|
-
}
|
|
1075
|
-
create(value?: PartialMessage<RegistrationStats>): RegistrationStats {
|
|
1076
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1077
|
-
message.total = 0;
|
|
1078
|
-
message.bySource = [];
|
|
1079
|
-
message.topReferrers = [];
|
|
1080
|
-
message.totalReferrals = 0;
|
|
1081
|
-
message.uniqueReferrers = 0;
|
|
1082
|
-
if (value !== undefined)
|
|
1083
|
-
reflectionMergePartial<RegistrationStats>(this, message, value);
|
|
1084
|
-
return message;
|
|
1085
|
-
}
|
|
1086
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegistrationStats): RegistrationStats {
|
|
1087
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1088
|
-
while (reader.pos < end) {
|
|
1089
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1090
|
-
switch (fieldNo) {
|
|
1091
|
-
case /* uint32 total */ 1:
|
|
1092
|
-
message.total = reader.uint32();
|
|
1093
|
-
break;
|
|
1094
|
-
case /* repeated sid.v1.admin.SourceBreakdown by_source */ 2:
|
|
1095
|
-
message.bySource.push(SourceBreakdown.internalBinaryRead(reader, reader.uint32(), options));
|
|
1096
|
-
break;
|
|
1097
|
-
case /* repeated sid.v1.admin.ReferrerEntry top_referrers */ 3:
|
|
1098
|
-
message.topReferrers.push(ReferrerEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
1099
|
-
break;
|
|
1100
|
-
case /* uint32 total_referrals */ 4:
|
|
1101
|
-
message.totalReferrals = reader.uint32();
|
|
1102
|
-
break;
|
|
1103
|
-
case /* uint32 unique_referrers */ 5:
|
|
1104
|
-
message.uniqueReferrers = reader.uint32();
|
|
1105
|
-
break;
|
|
1106
|
-
default:
|
|
1107
|
-
let u = options.readUnknownField;
|
|
1108
|
-
if (u === "throw")
|
|
1109
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1110
|
-
let d = reader.skip(wireType);
|
|
1111
|
-
if (u !== false)
|
|
1112
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
return message;
|
|
1116
|
-
}
|
|
1117
|
-
internalBinaryWrite(message: RegistrationStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1118
|
-
/* uint32 total = 1; */
|
|
1119
|
-
if (message.total !== 0)
|
|
1120
|
-
writer.tag(1, WireType.Varint).uint32(message.total);
|
|
1121
|
-
/* repeated sid.v1.admin.SourceBreakdown by_source = 2; */
|
|
1122
|
-
for (let i = 0; i < message.bySource.length; i++)
|
|
1123
|
-
SourceBreakdown.internalBinaryWrite(message.bySource[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1124
|
-
/* repeated sid.v1.admin.ReferrerEntry top_referrers = 3; */
|
|
1125
|
-
for (let i = 0; i < message.topReferrers.length; i++)
|
|
1126
|
-
ReferrerEntry.internalBinaryWrite(message.topReferrers[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1127
|
-
/* uint32 total_referrals = 4; */
|
|
1128
|
-
if (message.totalReferrals !== 0)
|
|
1129
|
-
writer.tag(4, WireType.Varint).uint32(message.totalReferrals);
|
|
1130
|
-
/* uint32 unique_referrers = 5; */
|
|
1131
|
-
if (message.uniqueReferrers !== 0)
|
|
1132
|
-
writer.tag(5, WireType.Varint).uint32(message.uniqueReferrers);
|
|
1133
|
-
let u = options.writeUnknownFields;
|
|
1134
|
-
if (u !== false)
|
|
1135
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1136
|
-
return writer;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* @generated MessageType for protobuf message sid.v1.admin.RegistrationStats
|
|
1141
|
-
*/
|
|
1142
|
-
export const RegistrationStats = new RegistrationStats$Type();
|
|
1143
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1144
|
-
class SourceBreakdown$Type extends MessageType<SourceBreakdown> {
|
|
1145
|
-
constructor() {
|
|
1146
|
-
super("sid.v1.admin.SourceBreakdown", [
|
|
1147
|
-
{ no: 1, name: "source_type", kind: "enum", T: () => ["sid.v1.admin.RegistrationSourceType", RegistrationSourceType, "REGISTRATION_SOURCE_TYPE_"] },
|
|
1148
|
-
{ no: 2, name: "count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1149
|
-
{ no: 3, name: "percentage", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
1150
|
-
]);
|
|
1151
|
-
}
|
|
1152
|
-
create(value?: PartialMessage<SourceBreakdown>): SourceBreakdown {
|
|
1153
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1154
|
-
message.sourceType = 0;
|
|
1155
|
-
message.count = 0;
|
|
1156
|
-
message.percentage = 0;
|
|
1157
|
-
if (value !== undefined)
|
|
1158
|
-
reflectionMergePartial<SourceBreakdown>(this, message, value);
|
|
1159
|
-
return message;
|
|
1160
|
-
}
|
|
1161
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceBreakdown): SourceBreakdown {
|
|
1162
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1163
|
-
while (reader.pos < end) {
|
|
1164
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1165
|
-
switch (fieldNo) {
|
|
1166
|
-
case /* sid.v1.admin.RegistrationSourceType source_type */ 1:
|
|
1167
|
-
message.sourceType = reader.int32();
|
|
1168
|
-
break;
|
|
1169
|
-
case /* uint32 count */ 2:
|
|
1170
|
-
message.count = reader.uint32();
|
|
1171
|
-
break;
|
|
1172
|
-
case /* double percentage */ 3:
|
|
1173
|
-
message.percentage = reader.double();
|
|
1174
|
-
break;
|
|
1175
|
-
default:
|
|
1176
|
-
let u = options.readUnknownField;
|
|
1177
|
-
if (u === "throw")
|
|
1178
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1179
|
-
let d = reader.skip(wireType);
|
|
1180
|
-
if (u !== false)
|
|
1181
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
return message;
|
|
1185
|
-
}
|
|
1186
|
-
internalBinaryWrite(message: SourceBreakdown, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1187
|
-
/* sid.v1.admin.RegistrationSourceType source_type = 1; */
|
|
1188
|
-
if (message.sourceType !== 0)
|
|
1189
|
-
writer.tag(1, WireType.Varint).int32(message.sourceType);
|
|
1190
|
-
/* uint32 count = 2; */
|
|
1191
|
-
if (message.count !== 0)
|
|
1192
|
-
writer.tag(2, WireType.Varint).uint32(message.count);
|
|
1193
|
-
/* double percentage = 3; */
|
|
1194
|
-
if (message.percentage !== 0)
|
|
1195
|
-
writer.tag(3, WireType.Bit64).double(message.percentage);
|
|
1196
|
-
let u = options.writeUnknownFields;
|
|
1197
|
-
if (u !== false)
|
|
1198
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1199
|
-
return writer;
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
/**
|
|
1203
|
-
* @generated MessageType for protobuf message sid.v1.admin.SourceBreakdown
|
|
1204
|
-
*/
|
|
1205
|
-
export const SourceBreakdown = new SourceBreakdown$Type();
|
|
1206
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1207
|
-
class ReferrerEntry$Type extends MessageType<ReferrerEntry> {
|
|
1208
|
-
constructor() {
|
|
1209
|
-
super("sid.v1.admin.ReferrerEntry", [
|
|
1210
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1211
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1212
|
-
{ no: 3, name: "referral_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1213
|
-
]);
|
|
1214
|
-
}
|
|
1215
|
-
create(value?: PartialMessage<ReferrerEntry>): ReferrerEntry {
|
|
1216
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1217
|
-
message.profileId = "";
|
|
1218
|
-
message.displayName = "";
|
|
1219
|
-
message.referralCount = 0;
|
|
1220
|
-
if (value !== undefined)
|
|
1221
|
-
reflectionMergePartial<ReferrerEntry>(this, message, value);
|
|
1222
|
-
return message;
|
|
1223
|
-
}
|
|
1224
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReferrerEntry): ReferrerEntry {
|
|
1225
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1226
|
-
while (reader.pos < end) {
|
|
1227
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1228
|
-
switch (fieldNo) {
|
|
1229
|
-
case /* string profile_id */ 1:
|
|
1230
|
-
message.profileId = reader.string();
|
|
1231
|
-
break;
|
|
1232
|
-
case /* string display_name */ 2:
|
|
1233
|
-
message.displayName = reader.string();
|
|
1234
|
-
break;
|
|
1235
|
-
case /* uint32 referral_count */ 3:
|
|
1236
|
-
message.referralCount = reader.uint32();
|
|
1237
|
-
break;
|
|
1238
|
-
default:
|
|
1239
|
-
let u = options.readUnknownField;
|
|
1240
|
-
if (u === "throw")
|
|
1241
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1242
|
-
let d = reader.skip(wireType);
|
|
1243
|
-
if (u !== false)
|
|
1244
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
return message;
|
|
1248
|
-
}
|
|
1249
|
-
internalBinaryWrite(message: ReferrerEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1250
|
-
/* string profile_id = 1; */
|
|
1251
|
-
if (message.profileId !== "")
|
|
1252
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
1253
|
-
/* string display_name = 2; */
|
|
1254
|
-
if (message.displayName !== "")
|
|
1255
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
1256
|
-
/* uint32 referral_count = 3; */
|
|
1257
|
-
if (message.referralCount !== 0)
|
|
1258
|
-
writer.tag(3, WireType.Varint).uint32(message.referralCount);
|
|
1259
|
-
let u = options.writeUnknownFields;
|
|
1260
|
-
if (u !== false)
|
|
1261
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1262
|
-
return writer;
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* @generated MessageType for protobuf message sid.v1.admin.ReferrerEntry
|
|
1267
|
-
*/
|
|
1268
|
-
export const ReferrerEntry = new ReferrerEntry$Type();
|
|
1269
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1270
|
-
class UpdateEnrollmentPolicyRequest$Type extends MessageType<UpdateEnrollmentPolicyRequest> {
|
|
1271
|
-
constructor() {
|
|
1272
|
-
super("sid.v1.admin.UpdateEnrollmentPolicyRequest", [
|
|
1273
|
-
{ no: 1, name: "policy", kind: "message", T: () => EnrollmentPolicy }
|
|
1274
|
-
]);
|
|
1275
|
-
}
|
|
1276
|
-
create(value?: PartialMessage<UpdateEnrollmentPolicyRequest>): UpdateEnrollmentPolicyRequest {
|
|
1277
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1278
|
-
if (value !== undefined)
|
|
1279
|
-
reflectionMergePartial<UpdateEnrollmentPolicyRequest>(this, message, value);
|
|
1280
|
-
return message;
|
|
1281
|
-
}
|
|
1282
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateEnrollmentPolicyRequest): UpdateEnrollmentPolicyRequest {
|
|
1283
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1284
|
-
while (reader.pos < end) {
|
|
1285
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1286
|
-
switch (fieldNo) {
|
|
1287
|
-
case /* sid.v1.admin.EnrollmentPolicy policy */ 1:
|
|
1288
|
-
message.policy = EnrollmentPolicy.internalBinaryRead(reader, reader.uint32(), options, message.policy);
|
|
1289
|
-
break;
|
|
1290
|
-
default:
|
|
1291
|
-
let u = options.readUnknownField;
|
|
1292
|
-
if (u === "throw")
|
|
1293
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1294
|
-
let d = reader.skip(wireType);
|
|
1295
|
-
if (u !== false)
|
|
1296
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
return message;
|
|
1300
|
-
}
|
|
1301
|
-
internalBinaryWrite(message: UpdateEnrollmentPolicyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1302
|
-
/* sid.v1.admin.EnrollmentPolicy policy = 1; */
|
|
1303
|
-
if (message.policy)
|
|
1304
|
-
EnrollmentPolicy.internalBinaryWrite(message.policy, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1305
|
-
let u = options.writeUnknownFields;
|
|
1306
|
-
if (u !== false)
|
|
1307
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1308
|
-
return writer;
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* @generated MessageType for protobuf message sid.v1.admin.UpdateEnrollmentPolicyRequest
|
|
1313
|
-
*/
|
|
1314
|
-
export const UpdateEnrollmentPolicyRequest = new UpdateEnrollmentPolicyRequest$Type();
|
|
1315
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1316
|
-
class CreateInviteRequest$Type extends MessageType<CreateInviteRequest> {
|
|
1317
|
-
constructor() {
|
|
1318
|
-
super("sid.v1.admin.CreateInviteRequest", [
|
|
1319
|
-
{ no: 1, name: "max_uses", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1320
|
-
{ no: 2, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1321
|
-
{ no: 3, name: "metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
1322
|
-
]);
|
|
1323
|
-
}
|
|
1324
|
-
create(value?: PartialMessage<CreateInviteRequest>): CreateInviteRequest {
|
|
1325
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1326
|
-
message.maxUses = 0;
|
|
1327
|
-
message.metadata = {};
|
|
1328
|
-
if (value !== undefined)
|
|
1329
|
-
reflectionMergePartial<CreateInviteRequest>(this, message, value);
|
|
1330
|
-
return message;
|
|
1331
|
-
}
|
|
1332
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateInviteRequest): CreateInviteRequest {
|
|
1333
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1334
|
-
while (reader.pos < end) {
|
|
1335
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1336
|
-
switch (fieldNo) {
|
|
1337
|
-
case /* uint32 max_uses */ 1:
|
|
1338
|
-
message.maxUses = reader.uint32();
|
|
1339
|
-
break;
|
|
1340
|
-
case /* optional google.protobuf.Timestamp expires_at */ 2:
|
|
1341
|
-
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
1342
|
-
break;
|
|
1343
|
-
case /* map<string, string> metadata */ 3:
|
|
1344
|
-
this.binaryReadMap3(message.metadata, reader, options);
|
|
1345
|
-
break;
|
|
1346
|
-
default:
|
|
1347
|
-
let u = options.readUnknownField;
|
|
1348
|
-
if (u === "throw")
|
|
1349
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1350
|
-
let d = reader.skip(wireType);
|
|
1351
|
-
if (u !== false)
|
|
1352
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
return message;
|
|
1356
|
-
}
|
|
1357
|
-
private binaryReadMap3(map: CreateInviteRequest["metadata"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
1358
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateInviteRequest["metadata"] | undefined, val: CreateInviteRequest["metadata"][any] | undefined;
|
|
1359
|
-
while (reader.pos < end) {
|
|
1360
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1361
|
-
switch (fieldNo) {
|
|
1362
|
-
case 1:
|
|
1363
|
-
key = reader.string();
|
|
1364
|
-
break;
|
|
1365
|
-
case 2:
|
|
1366
|
-
val = reader.string();
|
|
1367
|
-
break;
|
|
1368
|
-
default: throw new globalThis.Error("unknown map entry field for sid.v1.admin.CreateInviteRequest.metadata");
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
map[key ?? ""] = val ?? "";
|
|
1372
|
-
}
|
|
1373
|
-
internalBinaryWrite(message: CreateInviteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1374
|
-
/* uint32 max_uses = 1; */
|
|
1375
|
-
if (message.maxUses !== 0)
|
|
1376
|
-
writer.tag(1, WireType.Varint).uint32(message.maxUses);
|
|
1377
|
-
/* optional google.protobuf.Timestamp expires_at = 2; */
|
|
1378
|
-
if (message.expiresAt)
|
|
1379
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1380
|
-
/* map<string, string> metadata = 3; */
|
|
1381
|
-
for (let k of globalThis.Object.keys(message.metadata))
|
|
1382
|
-
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.metadata[k]).join();
|
|
1383
|
-
let u = options.writeUnknownFields;
|
|
1384
|
-
if (u !== false)
|
|
1385
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1386
|
-
return writer;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* @generated MessageType for protobuf message sid.v1.admin.CreateInviteRequest
|
|
1391
|
-
*/
|
|
1392
|
-
export const CreateInviteRequest = new CreateInviteRequest$Type();
|
|
1393
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1394
|
-
class ListInvitesRequest$Type extends MessageType<ListInvitesRequest> {
|
|
1395
|
-
constructor() {
|
|
1396
|
-
super("sid.v1.admin.ListInvitesRequest", [
|
|
1397
|
-
{ no: 1, name: "page_size", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1398
|
-
{ no: 2, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1399
|
-
{ no: 3, name: "status", kind: "enum", T: () => ["sid.v1.admin.InviteStatus", InviteStatus, "INVITE_STATUS_"] },
|
|
1400
|
-
{ no: 4, name: "search", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1401
|
-
]);
|
|
1402
|
-
}
|
|
1403
|
-
create(value?: PartialMessage<ListInvitesRequest>): ListInvitesRequest {
|
|
1404
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1405
|
-
message.pageSize = 0;
|
|
1406
|
-
message.pageToken = "";
|
|
1407
|
-
message.status = 0;
|
|
1408
|
-
message.search = "";
|
|
1409
|
-
if (value !== undefined)
|
|
1410
|
-
reflectionMergePartial<ListInvitesRequest>(this, message, value);
|
|
1411
|
-
return message;
|
|
1412
|
-
}
|
|
1413
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInvitesRequest): ListInvitesRequest {
|
|
1414
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1415
|
-
while (reader.pos < end) {
|
|
1416
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1417
|
-
switch (fieldNo) {
|
|
1418
|
-
case /* uint32 page_size */ 1:
|
|
1419
|
-
message.pageSize = reader.uint32();
|
|
1420
|
-
break;
|
|
1421
|
-
case /* string page_token */ 2:
|
|
1422
|
-
message.pageToken = reader.string();
|
|
1423
|
-
break;
|
|
1424
|
-
case /* sid.v1.admin.InviteStatus status */ 3:
|
|
1425
|
-
message.status = reader.int32();
|
|
1426
|
-
break;
|
|
1427
|
-
case /* string search */ 4:
|
|
1428
|
-
message.search = reader.string();
|
|
1429
|
-
break;
|
|
1430
|
-
default:
|
|
1431
|
-
let u = options.readUnknownField;
|
|
1432
|
-
if (u === "throw")
|
|
1433
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1434
|
-
let d = reader.skip(wireType);
|
|
1435
|
-
if (u !== false)
|
|
1436
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
return message;
|
|
1440
|
-
}
|
|
1441
|
-
internalBinaryWrite(message: ListInvitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1442
|
-
/* uint32 page_size = 1; */
|
|
1443
|
-
if (message.pageSize !== 0)
|
|
1444
|
-
writer.tag(1, WireType.Varint).uint32(message.pageSize);
|
|
1445
|
-
/* string page_token = 2; */
|
|
1446
|
-
if (message.pageToken !== "")
|
|
1447
|
-
writer.tag(2, WireType.LengthDelimited).string(message.pageToken);
|
|
1448
|
-
/* sid.v1.admin.InviteStatus status = 3; */
|
|
1449
|
-
if (message.status !== 0)
|
|
1450
|
-
writer.tag(3, WireType.Varint).int32(message.status);
|
|
1451
|
-
/* string search = 4; */
|
|
1452
|
-
if (message.search !== "")
|
|
1453
|
-
writer.tag(4, WireType.LengthDelimited).string(message.search);
|
|
1454
|
-
let u = options.writeUnknownFields;
|
|
1455
|
-
if (u !== false)
|
|
1456
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1457
|
-
return writer;
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
/**
|
|
1461
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListInvitesRequest
|
|
1462
|
-
*/
|
|
1463
|
-
export const ListInvitesRequest = new ListInvitesRequest$Type();
|
|
1464
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1465
|
-
class ListInvitesResponse$Type extends MessageType<ListInvitesResponse> {
|
|
1466
|
-
constructor() {
|
|
1467
|
-
super("sid.v1.admin.ListInvitesResponse", [
|
|
1468
|
-
{ no: 1, name: "invites", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Invite },
|
|
1469
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1470
|
-
{ no: 3, name: "total_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1471
|
-
]);
|
|
1472
|
-
}
|
|
1473
|
-
create(value?: PartialMessage<ListInvitesResponse>): ListInvitesResponse {
|
|
1474
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1475
|
-
message.invites = [];
|
|
1476
|
-
message.nextPageToken = "";
|
|
1477
|
-
message.totalCount = 0;
|
|
1478
|
-
if (value !== undefined)
|
|
1479
|
-
reflectionMergePartial<ListInvitesResponse>(this, message, value);
|
|
1480
|
-
return message;
|
|
1481
|
-
}
|
|
1482
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInvitesResponse): ListInvitesResponse {
|
|
1483
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1484
|
-
while (reader.pos < end) {
|
|
1485
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1486
|
-
switch (fieldNo) {
|
|
1487
|
-
case /* repeated sid.v1.admin.Invite invites */ 1:
|
|
1488
|
-
message.invites.push(Invite.internalBinaryRead(reader, reader.uint32(), options));
|
|
1489
|
-
break;
|
|
1490
|
-
case /* string next_page_token */ 2:
|
|
1491
|
-
message.nextPageToken = reader.string();
|
|
1492
|
-
break;
|
|
1493
|
-
case /* uint32 total_count */ 3:
|
|
1494
|
-
message.totalCount = reader.uint32();
|
|
1495
|
-
break;
|
|
1496
|
-
default:
|
|
1497
|
-
let u = options.readUnknownField;
|
|
1498
|
-
if (u === "throw")
|
|
1499
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1500
|
-
let d = reader.skip(wireType);
|
|
1501
|
-
if (u !== false)
|
|
1502
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
return message;
|
|
1506
|
-
}
|
|
1507
|
-
internalBinaryWrite(message: ListInvitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1508
|
-
/* repeated sid.v1.admin.Invite invites = 1; */
|
|
1509
|
-
for (let i = 0; i < message.invites.length; i++)
|
|
1510
|
-
Invite.internalBinaryWrite(message.invites[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1511
|
-
/* string next_page_token = 2; */
|
|
1512
|
-
if (message.nextPageToken !== "")
|
|
1513
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
1514
|
-
/* uint32 total_count = 3; */
|
|
1515
|
-
if (message.totalCount !== 0)
|
|
1516
|
-
writer.tag(3, WireType.Varint).uint32(message.totalCount);
|
|
1517
|
-
let u = options.writeUnknownFields;
|
|
1518
|
-
if (u !== false)
|
|
1519
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1520
|
-
return writer;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
/**
|
|
1524
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListInvitesResponse
|
|
1525
|
-
*/
|
|
1526
|
-
export const ListInvitesResponse = new ListInvitesResponse$Type();
|
|
1527
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1528
|
-
class RevokeInviteRequest$Type extends MessageType<RevokeInviteRequest> {
|
|
1529
|
-
constructor() {
|
|
1530
|
-
super("sid.v1.admin.RevokeInviteRequest", [
|
|
1531
|
-
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1532
|
-
]);
|
|
1533
|
-
}
|
|
1534
|
-
create(value?: PartialMessage<RevokeInviteRequest>): RevokeInviteRequest {
|
|
1535
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1536
|
-
message.inviteId = "";
|
|
1537
|
-
if (value !== undefined)
|
|
1538
|
-
reflectionMergePartial<RevokeInviteRequest>(this, message, value);
|
|
1539
|
-
return message;
|
|
1540
|
-
}
|
|
1541
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeInviteRequest): RevokeInviteRequest {
|
|
1542
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1543
|
-
while (reader.pos < end) {
|
|
1544
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1545
|
-
switch (fieldNo) {
|
|
1546
|
-
case /* string invite_id */ 1:
|
|
1547
|
-
message.inviteId = reader.string();
|
|
1548
|
-
break;
|
|
1549
|
-
default:
|
|
1550
|
-
let u = options.readUnknownField;
|
|
1551
|
-
if (u === "throw")
|
|
1552
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1553
|
-
let d = reader.skip(wireType);
|
|
1554
|
-
if (u !== false)
|
|
1555
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
return message;
|
|
1559
|
-
}
|
|
1560
|
-
internalBinaryWrite(message: RevokeInviteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1561
|
-
/* string invite_id = 1; */
|
|
1562
|
-
if (message.inviteId !== "")
|
|
1563
|
-
writer.tag(1, WireType.LengthDelimited).string(message.inviteId);
|
|
1564
|
-
let u = options.writeUnknownFields;
|
|
1565
|
-
if (u !== false)
|
|
1566
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1567
|
-
return writer;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
/**
|
|
1571
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeInviteRequest
|
|
1572
|
-
*/
|
|
1573
|
-
export const RevokeInviteRequest = new RevokeInviteRequest$Type();
|
|
1574
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1575
|
-
class BulkCreateInvitesRequest$Type extends MessageType<BulkCreateInvitesRequest> {
|
|
1576
|
-
constructor() {
|
|
1577
|
-
super("sid.v1.admin.BulkCreateInvitesRequest", [
|
|
1578
|
-
{ no: 1, name: "count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1579
|
-
{ no: 2, name: "max_uses", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1580
|
-
{ no: 3, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1581
|
-
{ no: 4, name: "metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
1582
|
-
]);
|
|
1583
|
-
}
|
|
1584
|
-
create(value?: PartialMessage<BulkCreateInvitesRequest>): BulkCreateInvitesRequest {
|
|
1585
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1586
|
-
message.count = 0;
|
|
1587
|
-
message.maxUses = 0;
|
|
1588
|
-
message.metadata = {};
|
|
1589
|
-
if (value !== undefined)
|
|
1590
|
-
reflectionMergePartial<BulkCreateInvitesRequest>(this, message, value);
|
|
1591
|
-
return message;
|
|
1592
|
-
}
|
|
1593
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BulkCreateInvitesRequest): BulkCreateInvitesRequest {
|
|
1594
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1595
|
-
while (reader.pos < end) {
|
|
1596
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1597
|
-
switch (fieldNo) {
|
|
1598
|
-
case /* uint32 count */ 1:
|
|
1599
|
-
message.count = reader.uint32();
|
|
1600
|
-
break;
|
|
1601
|
-
case /* uint32 max_uses */ 2:
|
|
1602
|
-
message.maxUses = reader.uint32();
|
|
1603
|
-
break;
|
|
1604
|
-
case /* optional google.protobuf.Timestamp expires_at */ 3:
|
|
1605
|
-
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
1606
|
-
break;
|
|
1607
|
-
case /* map<string, string> metadata */ 4:
|
|
1608
|
-
this.binaryReadMap4(message.metadata, reader, options);
|
|
1609
|
-
break;
|
|
1610
|
-
default:
|
|
1611
|
-
let u = options.readUnknownField;
|
|
1612
|
-
if (u === "throw")
|
|
1613
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1614
|
-
let d = reader.skip(wireType);
|
|
1615
|
-
if (u !== false)
|
|
1616
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
return message;
|
|
1620
|
-
}
|
|
1621
|
-
private binaryReadMap4(map: BulkCreateInvitesRequest["metadata"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
1622
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof BulkCreateInvitesRequest["metadata"] | undefined, val: BulkCreateInvitesRequest["metadata"][any] | undefined;
|
|
1623
|
-
while (reader.pos < end) {
|
|
1624
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1625
|
-
switch (fieldNo) {
|
|
1626
|
-
case 1:
|
|
1627
|
-
key = reader.string();
|
|
1628
|
-
break;
|
|
1629
|
-
case 2:
|
|
1630
|
-
val = reader.string();
|
|
1631
|
-
break;
|
|
1632
|
-
default: throw new globalThis.Error("unknown map entry field for sid.v1.admin.BulkCreateInvitesRequest.metadata");
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
map[key ?? ""] = val ?? "";
|
|
1636
|
-
}
|
|
1637
|
-
internalBinaryWrite(message: BulkCreateInvitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1638
|
-
/* uint32 count = 1; */
|
|
1639
|
-
if (message.count !== 0)
|
|
1640
|
-
writer.tag(1, WireType.Varint).uint32(message.count);
|
|
1641
|
-
/* uint32 max_uses = 2; */
|
|
1642
|
-
if (message.maxUses !== 0)
|
|
1643
|
-
writer.tag(2, WireType.Varint).uint32(message.maxUses);
|
|
1644
|
-
/* optional google.protobuf.Timestamp expires_at = 3; */
|
|
1645
|
-
if (message.expiresAt)
|
|
1646
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1647
|
-
/* map<string, string> metadata = 4; */
|
|
1648
|
-
for (let k of globalThis.Object.keys(message.metadata))
|
|
1649
|
-
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.metadata[k]).join();
|
|
1650
|
-
let u = options.writeUnknownFields;
|
|
1651
|
-
if (u !== false)
|
|
1652
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1653
|
-
return writer;
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
/**
|
|
1657
|
-
* @generated MessageType for protobuf message sid.v1.admin.BulkCreateInvitesRequest
|
|
1658
|
-
*/
|
|
1659
|
-
export const BulkCreateInvitesRequest = new BulkCreateInvitesRequest$Type();
|
|
1660
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1661
|
-
class BulkCreateInvitesResponse$Type extends MessageType<BulkCreateInvitesResponse> {
|
|
1662
|
-
constructor() {
|
|
1663
|
-
super("sid.v1.admin.BulkCreateInvitesResponse", [
|
|
1664
|
-
{ no: 1, name: "invites", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Invite }
|
|
1665
|
-
]);
|
|
1666
|
-
}
|
|
1667
|
-
create(value?: PartialMessage<BulkCreateInvitesResponse>): BulkCreateInvitesResponse {
|
|
1668
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1669
|
-
message.invites = [];
|
|
1670
|
-
if (value !== undefined)
|
|
1671
|
-
reflectionMergePartial<BulkCreateInvitesResponse>(this, message, value);
|
|
1672
|
-
return message;
|
|
1673
|
-
}
|
|
1674
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BulkCreateInvitesResponse): BulkCreateInvitesResponse {
|
|
1675
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1676
|
-
while (reader.pos < end) {
|
|
1677
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1678
|
-
switch (fieldNo) {
|
|
1679
|
-
case /* repeated sid.v1.admin.Invite invites */ 1:
|
|
1680
|
-
message.invites.push(Invite.internalBinaryRead(reader, reader.uint32(), options));
|
|
1681
|
-
break;
|
|
1682
|
-
default:
|
|
1683
|
-
let u = options.readUnknownField;
|
|
1684
|
-
if (u === "throw")
|
|
1685
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1686
|
-
let d = reader.skip(wireType);
|
|
1687
|
-
if (u !== false)
|
|
1688
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
return message;
|
|
1692
|
-
}
|
|
1693
|
-
internalBinaryWrite(message: BulkCreateInvitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1694
|
-
/* repeated sid.v1.admin.Invite invites = 1; */
|
|
1695
|
-
for (let i = 0; i < message.invites.length; i++)
|
|
1696
|
-
Invite.internalBinaryWrite(message.invites[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1697
|
-
let u = options.writeUnknownFields;
|
|
1698
|
-
if (u !== false)
|
|
1699
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1700
|
-
return writer;
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
/**
|
|
1704
|
-
* @generated MessageType for protobuf message sid.v1.admin.BulkCreateInvitesResponse
|
|
1705
|
-
*/
|
|
1706
|
-
export const BulkCreateInvitesResponse = new BulkCreateInvitesResponse$Type();
|
|
1707
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1708
|
-
class GetRegistrationStatsRequest$Type extends MessageType<GetRegistrationStatsRequest> {
|
|
1709
|
-
constructor() {
|
|
1710
|
-
super("sid.v1.admin.GetRegistrationStatsRequest", [
|
|
1711
|
-
{ no: 1, name: "period_days", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1712
|
-
]);
|
|
1713
|
-
}
|
|
1714
|
-
create(value?: PartialMessage<GetRegistrationStatsRequest>): GetRegistrationStatsRequest {
|
|
1715
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1716
|
-
message.periodDays = 0;
|
|
1717
|
-
if (value !== undefined)
|
|
1718
|
-
reflectionMergePartial<GetRegistrationStatsRequest>(this, message, value);
|
|
1719
|
-
return message;
|
|
1720
|
-
}
|
|
1721
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetRegistrationStatsRequest): GetRegistrationStatsRequest {
|
|
1722
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1723
|
-
while (reader.pos < end) {
|
|
1724
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1725
|
-
switch (fieldNo) {
|
|
1726
|
-
case /* uint32 period_days */ 1:
|
|
1727
|
-
message.periodDays = reader.uint32();
|
|
1728
|
-
break;
|
|
1729
|
-
default:
|
|
1730
|
-
let u = options.readUnknownField;
|
|
1731
|
-
if (u === "throw")
|
|
1732
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1733
|
-
let d = reader.skip(wireType);
|
|
1734
|
-
if (u !== false)
|
|
1735
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
return message;
|
|
1739
|
-
}
|
|
1740
|
-
internalBinaryWrite(message: GetRegistrationStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1741
|
-
/* uint32 period_days = 1; */
|
|
1742
|
-
if (message.periodDays !== 0)
|
|
1743
|
-
writer.tag(1, WireType.Varint).uint32(message.periodDays);
|
|
1744
|
-
let u = options.writeUnknownFields;
|
|
1745
|
-
if (u !== false)
|
|
1746
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1747
|
-
return writer;
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
/**
|
|
1751
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetRegistrationStatsRequest
|
|
1752
|
-
*/
|
|
1753
|
-
export const GetRegistrationStatsRequest = new GetRegistrationStatsRequest$Type();
|
|
1754
|
-
/**
|
|
1755
|
-
* @generated ServiceType for protobuf service sid.v1.admin.EnrollmentService
|
|
1756
|
-
*/
|
|
1757
|
-
export const EnrollmentService = new ServiceType("sid.v1.admin.EnrollmentService", [
|
|
1758
|
-
{ name: "GetEnrollmentPolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/policy" } }, I: Empty, O: EnrollmentPolicy },
|
|
1759
|
-
{ name: "GetInstanceStatus", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/instance-status" } }, I: Empty, O: InstanceStatus },
|
|
1760
|
-
{ name: "UpdateEnrollmentPolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/admin/enrollment/policy", body: "*" } }, I: UpdateEnrollmentPolicyRequest, O: EnrollmentPolicy },
|
|
1761
|
-
{ name: "CreateInvite", options: { "google.api.http": { post: "/v1/admin/enrollment/invites", body: "*" } }, I: CreateInviteRequest, O: Invite },
|
|
1762
|
-
{ name: "ListInvites", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/invites" } }, I: ListInvitesRequest, O: ListInvitesResponse },
|
|
1763
|
-
{ name: "RevokeInvite", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/admin/enrollment/invites/{invite_id}/revoke", body: "*" } }, I: RevokeInviteRequest, O: Empty },
|
|
1764
|
-
{ name: "BulkCreateInvites", options: { "google.api.http": { post: "/v1/admin/enrollment/invites/bulk", body: "*" } }, I: BulkCreateInvitesRequest, O: BulkCreateInvitesResponse },
|
|
1765
|
-
{ name: "GetRegistrationStats", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/enrollment/stats" } }, I: GetRegistrationStatsRequest, O: RegistrationStats }
|
|
1766
|
-
]);
|