@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,3261 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/account/account.proto" (package "sid.v1.account", 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 { ProfileEmail } from "../identity/identity";
|
|
16
|
-
import { EmailLabel } from "../identity/identity";
|
|
17
|
-
import { ProfilePhone } from "../identity/identity";
|
|
18
|
-
import { PhoneLabel } from "../identity/identity";
|
|
19
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
20
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
21
|
-
// Consent management — claim-level consent control
|
|
22
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* ConsentInfo summarizes an active consent grant to an application.
|
|
26
|
-
*
|
|
27
|
-
* @generated from protobuf message sid.v1.account.ConsentInfo
|
|
28
|
-
*/
|
|
29
|
-
export interface ConsentInfo {
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf field: string site_id = 1
|
|
32
|
-
*/
|
|
33
|
-
siteId: string;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf field: string site_name = 2
|
|
36
|
-
*/
|
|
37
|
-
siteName: string;
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf field: optional string site_favicon = 3
|
|
40
|
-
*/
|
|
41
|
-
siteFavicon?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf field: sid.v1.account.ConsentStatus status = 4
|
|
44
|
-
*/
|
|
45
|
-
status: ConsentStatus;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf field: google.protobuf.Timestamp connected_at = 5
|
|
48
|
-
*/
|
|
49
|
-
connectedAt?: Timestamp;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: int32 claims_mandatory = 6
|
|
52
|
-
*/
|
|
53
|
-
claimsMandatory: number;
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf field: int32 claims_optional = 7
|
|
56
|
-
*/
|
|
57
|
-
claimsOptional: number;
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp last_sync = 8
|
|
60
|
-
*/
|
|
61
|
-
lastSync?: Timestamp;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* ClaimConsent describes the consent state for a single claim.
|
|
65
|
-
*
|
|
66
|
-
* @generated from protobuf message sid.v1.account.ClaimConsent
|
|
67
|
-
*/
|
|
68
|
-
export interface ClaimConsent {
|
|
69
|
-
/**
|
|
70
|
-
* @generated from protobuf field: string claim_name = 1
|
|
71
|
-
*/
|
|
72
|
-
claimName: string;
|
|
73
|
-
/**
|
|
74
|
-
* @generated from protobuf field: sid.v1.account.ClaimType claim_type = 2
|
|
75
|
-
*/
|
|
76
|
-
claimType: ClaimType;
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf field: sid.v1.account.ClaimConsentStatus current_status = 3
|
|
79
|
-
*/
|
|
80
|
-
currentStatus: ClaimConsentStatus;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from protobuf field: string value_preview = 4
|
|
83
|
-
*/
|
|
84
|
-
valuePreview: string; // Masked (e.g., "j***@example.com")
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp last_propagated = 5
|
|
87
|
-
*/
|
|
88
|
-
lastPropagated?: Timestamp;
|
|
89
|
-
}
|
|
90
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
91
|
-
// Activity history — security event log
|
|
92
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @generated from protobuf message sid.v1.account.ActivityEvent
|
|
96
|
-
*/
|
|
97
|
-
export interface ActivityEvent {
|
|
98
|
-
/**
|
|
99
|
-
* @generated from protobuf field: string id = 1
|
|
100
|
-
*/
|
|
101
|
-
id: string;
|
|
102
|
-
/**
|
|
103
|
-
* @generated from protobuf field: google.protobuf.Timestamp timestamp = 2
|
|
104
|
-
*/
|
|
105
|
-
timestamp?: Timestamp;
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf field: string event_type = 3
|
|
108
|
-
*/
|
|
109
|
-
eventType: string; // sign_in, sign_out, password_change, mfa_added, etc.
|
|
110
|
-
/**
|
|
111
|
-
* @generated from protobuf field: sid.v1.account.ActivityEventStatus status = 4
|
|
112
|
-
*/
|
|
113
|
-
status: ActivityEventStatus;
|
|
114
|
-
/**
|
|
115
|
-
* Application context (for sign-in/sign-out events).
|
|
116
|
-
*
|
|
117
|
-
* @generated from protobuf field: optional string application_name = 5
|
|
118
|
-
*/
|
|
119
|
-
applicationName?: string;
|
|
120
|
-
/**
|
|
121
|
-
* @generated from protobuf field: optional string application_favicon = 6
|
|
122
|
-
*/
|
|
123
|
-
applicationFavicon?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Device info.
|
|
126
|
-
*
|
|
127
|
-
* @generated from protobuf field: optional string device_browser = 7
|
|
128
|
-
*/
|
|
129
|
-
deviceBrowser?: string;
|
|
130
|
-
/**
|
|
131
|
-
* @generated from protobuf field: optional string device_os = 8
|
|
132
|
-
*/
|
|
133
|
-
deviceOs?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Location (city + country only — IP never exposed to UI).
|
|
136
|
-
*
|
|
137
|
-
* @generated from protobuf field: optional string location_city = 9
|
|
138
|
-
*/
|
|
139
|
-
locationCity?: string;
|
|
140
|
-
/**
|
|
141
|
-
* @generated from protobuf field: optional string location_country = 10
|
|
142
|
-
*/
|
|
143
|
-
locationCountry?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Authentication methods used (amr values).
|
|
146
|
-
*
|
|
147
|
-
* @generated from protobuf field: repeated string auth_methods = 11
|
|
148
|
-
*/
|
|
149
|
-
authMethods: string[];
|
|
150
|
-
/**
|
|
151
|
-
* Whether user marked this event as disputed ("This wasn't me").
|
|
152
|
-
*
|
|
153
|
-
* @generated from protobuf field: bool disputed = 12
|
|
154
|
-
*/
|
|
155
|
-
disputed: boolean;
|
|
156
|
-
}
|
|
157
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
158
|
-
// Linked accounts — bindings to upstream identity providers
|
|
159
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* LinkedAccount represents a binding between the current profile and an
|
|
163
|
-
* upstream identity provider (Google, GitHub, corporate SAML, etc.).
|
|
164
|
-
*
|
|
165
|
-
* @generated from protobuf message sid.v1.account.LinkedAccount
|
|
166
|
-
*/
|
|
167
|
-
export interface LinkedAccount {
|
|
168
|
-
/**
|
|
169
|
-
* @generated from protobuf field: string id = 1
|
|
170
|
-
*/
|
|
171
|
-
id: string;
|
|
172
|
-
/**
|
|
173
|
-
* @generated from protobuf field: string provider_id = 2
|
|
174
|
-
*/
|
|
175
|
-
providerId: string;
|
|
176
|
-
/**
|
|
177
|
-
* @generated from protobuf field: string provider_name = 3
|
|
178
|
-
*/
|
|
179
|
-
providerName: string;
|
|
180
|
-
/**
|
|
181
|
-
* @generated from protobuf field: optional string provider_logo_url = 4
|
|
182
|
-
*/
|
|
183
|
-
providerLogoUrl?: string;
|
|
184
|
-
/**
|
|
185
|
-
* @generated from protobuf field: sid.v1.account.LinkedAccountTrustCategory trust_category = 5
|
|
186
|
-
*/
|
|
187
|
-
trustCategory: LinkedAccountTrustCategory;
|
|
188
|
-
/**
|
|
189
|
-
* @generated from protobuf field: string external_id_masked = 6
|
|
190
|
-
*/
|
|
191
|
-
externalIdMasked: string; // Masked external identifier
|
|
192
|
-
/**
|
|
193
|
-
* @generated from protobuf field: sid.v1.account.LinkedAccountStatus status = 7
|
|
194
|
-
*/
|
|
195
|
-
status: LinkedAccountStatus;
|
|
196
|
-
/**
|
|
197
|
-
* @generated from protobuf field: google.protobuf.Timestamp linked_at = 8
|
|
198
|
-
*/
|
|
199
|
-
linkedAt?: Timestamp;
|
|
200
|
-
/**
|
|
201
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp last_login_at = 9
|
|
202
|
-
*/
|
|
203
|
-
lastLoginAt?: Timestamp;
|
|
204
|
-
}
|
|
205
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
206
|
-
// Request/Response messages
|
|
207
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
208
|
-
|
|
209
|
-
// ── Consent messages ──
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @generated from protobuf message sid.v1.account.ListConsentsRequest
|
|
213
|
-
*/
|
|
214
|
-
export interface ListConsentsRequest {
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* @generated from protobuf message sid.v1.account.ListConsentsResponse
|
|
218
|
-
*/
|
|
219
|
-
export interface ListConsentsResponse {
|
|
220
|
-
/**
|
|
221
|
-
* @generated from protobuf field: repeated sid.v1.account.ConsentInfo consents = 1
|
|
222
|
-
*/
|
|
223
|
-
consents: ConsentInfo[];
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @generated from protobuf message sid.v1.account.GetConsentDetailRequest
|
|
227
|
-
*/
|
|
228
|
-
export interface GetConsentDetailRequest {
|
|
229
|
-
/**
|
|
230
|
-
* @generated from protobuf field: string site_id = 1
|
|
231
|
-
*/
|
|
232
|
-
siteId: string;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @generated from protobuf message sid.v1.account.GetConsentDetailResponse
|
|
236
|
-
*/
|
|
237
|
-
export interface GetConsentDetailResponse {
|
|
238
|
-
/**
|
|
239
|
-
* @generated from protobuf field: sid.v1.account.ConsentInfo site_info = 1
|
|
240
|
-
*/
|
|
241
|
-
siteInfo?: ConsentInfo;
|
|
242
|
-
/**
|
|
243
|
-
* @generated from protobuf field: repeated sid.v1.account.ClaimConsent claims = 2
|
|
244
|
-
*/
|
|
245
|
-
claims: ClaimConsent[];
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* @generated from protobuf message sid.v1.account.UpdateClaimConsentRequest
|
|
249
|
-
*/
|
|
250
|
-
export interface UpdateClaimConsentRequest {
|
|
251
|
-
/**
|
|
252
|
-
* @generated from protobuf field: string site_id = 1
|
|
253
|
-
*/
|
|
254
|
-
siteId: string;
|
|
255
|
-
/**
|
|
256
|
-
* @generated from protobuf field: string claim_name = 2
|
|
257
|
-
*/
|
|
258
|
-
claimName: string;
|
|
259
|
-
/**
|
|
260
|
-
* @generated from protobuf field: bool grant = 3
|
|
261
|
-
*/
|
|
262
|
-
grant: boolean; // true = grant, false = deny
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* @generated from protobuf message sid.v1.account.DisconnectSiteRequest
|
|
266
|
-
*/
|
|
267
|
-
export interface DisconnectSiteRequest {
|
|
268
|
-
/**
|
|
269
|
-
* @generated from protobuf field: string site_id = 1
|
|
270
|
-
*/
|
|
271
|
-
siteId: string;
|
|
272
|
-
}
|
|
273
|
-
// ── Activity messages ──
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @generated from protobuf message sid.v1.account.ListActivityEventsRequest
|
|
277
|
-
*/
|
|
278
|
-
export interface ListActivityEventsRequest {
|
|
279
|
-
/**
|
|
280
|
-
* Filters (all optional).
|
|
281
|
-
*
|
|
282
|
-
* @generated from protobuf field: repeated string event_types = 1
|
|
283
|
-
*/
|
|
284
|
-
eventTypes: string[];
|
|
285
|
-
/**
|
|
286
|
-
* @generated from protobuf field: optional string application_id = 2
|
|
287
|
-
*/
|
|
288
|
-
applicationId?: string;
|
|
289
|
-
/**
|
|
290
|
-
* @generated from protobuf field: optional sid.v1.account.ActivityEventStatus status_filter = 3
|
|
291
|
-
*/
|
|
292
|
-
statusFilter?: ActivityEventStatus;
|
|
293
|
-
/**
|
|
294
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp date_from = 4
|
|
295
|
-
*/
|
|
296
|
-
dateFrom?: Timestamp;
|
|
297
|
-
/**
|
|
298
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp date_to = 5
|
|
299
|
-
*/
|
|
300
|
-
dateTo?: Timestamp;
|
|
301
|
-
/**
|
|
302
|
-
* @generated from protobuf field: optional string search = 6
|
|
303
|
-
*/
|
|
304
|
-
search?: string;
|
|
305
|
-
/**
|
|
306
|
-
* Pagination.
|
|
307
|
-
*
|
|
308
|
-
* @generated from protobuf field: int32 page_size = 10
|
|
309
|
-
*/
|
|
310
|
-
pageSize: number;
|
|
311
|
-
/**
|
|
312
|
-
* @generated from protobuf field: string page_token = 11
|
|
313
|
-
*/
|
|
314
|
-
pageToken: string;
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @generated from protobuf message sid.v1.account.ListActivityEventsResponse
|
|
318
|
-
*/
|
|
319
|
-
export interface ListActivityEventsResponse {
|
|
320
|
-
/**
|
|
321
|
-
* @generated from protobuf field: repeated sid.v1.account.ActivityEvent events = 1
|
|
322
|
-
*/
|
|
323
|
-
events: ActivityEvent[];
|
|
324
|
-
/**
|
|
325
|
-
* @generated from protobuf field: string next_page_token = 2
|
|
326
|
-
*/
|
|
327
|
-
nextPageToken: string;
|
|
328
|
-
/**
|
|
329
|
-
* @generated from protobuf field: int32 total_count = 3
|
|
330
|
-
*/
|
|
331
|
-
totalCount: number;
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* @generated from protobuf message sid.v1.account.GetActivityEventDetailRequest
|
|
335
|
-
*/
|
|
336
|
-
export interface GetActivityEventDetailRequest {
|
|
337
|
-
/**
|
|
338
|
-
* @generated from protobuf field: string event_id = 1
|
|
339
|
-
*/
|
|
340
|
-
eventId: string;
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* @generated from protobuf message sid.v1.account.ReportSuspiciousEventRequest
|
|
344
|
-
*/
|
|
345
|
-
export interface ReportSuspiciousEventRequest {
|
|
346
|
-
/**
|
|
347
|
-
* @generated from protobuf field: string event_id = 1
|
|
348
|
-
*/
|
|
349
|
-
eventId: string;
|
|
350
|
-
/**
|
|
351
|
-
* @generated from protobuf field: optional string description = 2
|
|
352
|
-
*/
|
|
353
|
-
description?: string;
|
|
354
|
-
}
|
|
355
|
-
// ── Linked account messages ──
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* @generated from protobuf message sid.v1.account.ListLinkedAccountsResponse
|
|
359
|
-
*/
|
|
360
|
-
export interface ListLinkedAccountsResponse {
|
|
361
|
-
/**
|
|
362
|
-
* @generated from protobuf field: repeated sid.v1.account.LinkedAccount accounts = 1
|
|
363
|
-
*/
|
|
364
|
-
accounts: LinkedAccount[];
|
|
365
|
-
/**
|
|
366
|
-
* Whether the user has other login methods (password/passkey).
|
|
367
|
-
* If false, unlinking the last account is blocked.
|
|
368
|
-
*
|
|
369
|
-
* @generated from protobuf field: bool has_other_credentials = 2
|
|
370
|
-
*/
|
|
371
|
-
hasOtherCredentials: boolean;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* @generated from protobuf message sid.v1.account.LinkAccountRequest
|
|
375
|
-
*/
|
|
376
|
-
export interface LinkAccountRequest {
|
|
377
|
-
/**
|
|
378
|
-
* @generated from protobuf field: string provider_id = 1
|
|
379
|
-
*/
|
|
380
|
-
providerId: string;
|
|
381
|
-
/**
|
|
382
|
-
* @generated from protobuf field: string redirect_uri = 2
|
|
383
|
-
*/
|
|
384
|
-
redirectUri: string; // Where to redirect after IdP flow
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* @generated from protobuf message sid.v1.account.LinkAccountResponse
|
|
388
|
-
*/
|
|
389
|
-
export interface LinkAccountResponse {
|
|
390
|
-
/**
|
|
391
|
-
* @generated from protobuf field: string redirect_url = 1
|
|
392
|
-
*/
|
|
393
|
-
redirectUrl: string; // URL to redirect user to for IdP auth
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf message sid.v1.account.UnlinkAccountRequest
|
|
397
|
-
*/
|
|
398
|
-
export interface UnlinkAccountRequest {
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf field: string linked_account_id = 1
|
|
401
|
-
*/
|
|
402
|
-
linkedAccountId: string;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* @generated from protobuf message sid.v1.account.ReauthenticateLinkRequest
|
|
406
|
-
*/
|
|
407
|
-
export interface ReauthenticateLinkRequest {
|
|
408
|
-
/**
|
|
409
|
-
* @generated from protobuf field: string linked_account_id = 1
|
|
410
|
-
*/
|
|
411
|
-
linkedAccountId: string;
|
|
412
|
-
/**
|
|
413
|
-
* @generated from protobuf field: string redirect_uri = 2
|
|
414
|
-
*/
|
|
415
|
-
redirectUri: string;
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* @generated from protobuf message sid.v1.account.ReauthenticateLinkResponse
|
|
419
|
-
*/
|
|
420
|
-
export interface ReauthenticateLinkResponse {
|
|
421
|
-
/**
|
|
422
|
-
* @generated from protobuf field: string redirect_url = 1
|
|
423
|
-
*/
|
|
424
|
-
redirectUrl: string;
|
|
425
|
-
}
|
|
426
|
-
// ── App launcher messages ──
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* @generated from protobuf message sid.v1.account.AvailableApp
|
|
430
|
-
*/
|
|
431
|
-
export interface AvailableApp {
|
|
432
|
-
/**
|
|
433
|
-
* @generated from protobuf field: string id = 1
|
|
434
|
-
*/
|
|
435
|
-
id: string;
|
|
436
|
-
/**
|
|
437
|
-
* @generated from protobuf field: string name = 2
|
|
438
|
-
*/
|
|
439
|
-
name: string;
|
|
440
|
-
/**
|
|
441
|
-
* @generated from protobuf field: optional string description = 3
|
|
442
|
-
*/
|
|
443
|
-
description?: string;
|
|
444
|
-
/**
|
|
445
|
-
* @generated from protobuf field: optional string favicon_url = 4
|
|
446
|
-
*/
|
|
447
|
-
faviconUrl?: string;
|
|
448
|
-
/**
|
|
449
|
-
* @generated from protobuf field: string domain = 5
|
|
450
|
-
*/
|
|
451
|
-
domain: string; // e.g., "app.example.com"
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp last_used = 6
|
|
454
|
-
*/
|
|
455
|
-
lastUsed?: Timestamp;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* @generated from protobuf message sid.v1.account.ListAvailableAppsResponse
|
|
459
|
-
*/
|
|
460
|
-
export interface ListAvailableAppsResponse {
|
|
461
|
-
/**
|
|
462
|
-
* @generated from protobuf field: repeated sid.v1.account.AvailableApp apps = 1
|
|
463
|
-
*/
|
|
464
|
-
apps: AvailableApp[];
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* @generated from protobuf message sid.v1.account.LaunchAppRequest
|
|
468
|
-
*/
|
|
469
|
-
export interface LaunchAppRequest {
|
|
470
|
-
/**
|
|
471
|
-
* @generated from protobuf field: string app_id = 1
|
|
472
|
-
*/
|
|
473
|
-
appId: string;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* @generated from protobuf message sid.v1.account.LaunchAppResponse
|
|
477
|
-
*/
|
|
478
|
-
export interface LaunchAppResponse {
|
|
479
|
-
/**
|
|
480
|
-
* @generated from protobuf field: string redirect_url = 1
|
|
481
|
-
*/
|
|
482
|
-
redirectUrl: string; // SSO redirect URL
|
|
483
|
-
}
|
|
484
|
-
// ── Passwordless messages ──
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Current passwordless status and whether requirements are met.
|
|
488
|
-
*
|
|
489
|
-
* @generated from protobuf message sid.v1.account.PasswordlessStatus
|
|
490
|
-
*/
|
|
491
|
-
export interface PasswordlessStatus {
|
|
492
|
-
/**
|
|
493
|
-
* @generated from protobuf field: bool enabled = 1
|
|
494
|
-
*/
|
|
495
|
-
enabled: boolean; // Whether passwordless mode is active
|
|
496
|
-
/**
|
|
497
|
-
* @generated from protobuf field: bool has_passkey_or_security_key = 2
|
|
498
|
-
*/
|
|
499
|
-
hasPasskeyOrSecurityKey: boolean; // ≥1 WebAuthn credential enrolled
|
|
500
|
-
/**
|
|
501
|
-
* @generated from protobuf field: bool has_recovery_method = 3
|
|
502
|
-
*/
|
|
503
|
-
hasRecoveryMethod: boolean; // ≥1 recovery method configured
|
|
504
|
-
/**
|
|
505
|
-
* @generated from protobuf field: bool can_enable = 4
|
|
506
|
-
*/
|
|
507
|
-
canEnable: boolean; // All requirements met (computed server-side)
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Response for DisablePasswordless — returns redirect to password enrollment.
|
|
511
|
-
*
|
|
512
|
-
* @generated from protobuf message sid.v1.account.DisablePasswordlessResponse
|
|
513
|
-
*/
|
|
514
|
-
export interface DisablePasswordlessResponse {
|
|
515
|
-
/**
|
|
516
|
-
* @generated from protobuf field: string enrollment_url = 1
|
|
517
|
-
*/
|
|
518
|
-
enrollmentUrl: string; // Redirect URL for OPAQUE password enrollment
|
|
519
|
-
}
|
|
520
|
-
// ── Notification preference messages ──
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* @generated from protobuf message sid.v1.account.NotificationPreferences
|
|
524
|
-
*/
|
|
525
|
-
export interface NotificationPreferences {
|
|
526
|
-
/**
|
|
527
|
-
* @generated from protobuf field: repeated sid.v1.account.NotificationCategoryPreference categories = 1
|
|
528
|
-
*/
|
|
529
|
-
categories: NotificationCategoryPreference[];
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
* @generated from protobuf message sid.v1.account.NotificationCategoryPreference
|
|
533
|
-
*/
|
|
534
|
-
export interface NotificationCategoryPreference {
|
|
535
|
-
/**
|
|
536
|
-
* @generated from protobuf field: string category = 1
|
|
537
|
-
*/
|
|
538
|
-
category: string; // "security_alerts", "login_notifications", etc.
|
|
539
|
-
/**
|
|
540
|
-
* @generated from protobuf field: bool enabled = 2
|
|
541
|
-
*/
|
|
542
|
-
enabled: boolean; // Whether this category is active (ignored for mandatory)
|
|
543
|
-
/**
|
|
544
|
-
* @generated from protobuf field: repeated string channels = 3
|
|
545
|
-
*/
|
|
546
|
-
channels: string[]; // "email", "sms", "web_push", "app_push"
|
|
547
|
-
/**
|
|
548
|
-
* @generated from protobuf field: bool mandatory = 4
|
|
549
|
-
*/
|
|
550
|
-
mandatory: boolean; // Server-set: true for security_alerts (read-only for client)
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* @generated from protobuf message sid.v1.account.UpdateNotificationPreferencesRequest
|
|
554
|
-
*/
|
|
555
|
-
export interface UpdateNotificationPreferencesRequest {
|
|
556
|
-
/**
|
|
557
|
-
* @generated from protobuf field: repeated sid.v1.account.NotificationCategoryPreference categories = 1
|
|
558
|
-
*/
|
|
559
|
-
categories: NotificationCategoryPreference[];
|
|
560
|
-
}
|
|
561
|
-
// ── Phone management messages ──
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* @generated from protobuf message sid.v1.account.AddPhoneRequest
|
|
565
|
-
*/
|
|
566
|
-
export interface AddPhoneRequest {
|
|
567
|
-
/**
|
|
568
|
-
* @generated from protobuf field: uint64 e164 = 1
|
|
569
|
-
*/
|
|
570
|
-
e164: bigint; // E.164 digits only (no +)
|
|
571
|
-
/**
|
|
572
|
-
* @generated from protobuf field: optional uint32 extension = 2
|
|
573
|
-
*/
|
|
574
|
-
extension?: number; // RFC 3966 ;ext=N
|
|
575
|
-
/**
|
|
576
|
-
* @generated from protobuf field: sid.v1.identity.PhoneLabel label = 3
|
|
577
|
-
*/
|
|
578
|
-
label: PhoneLabel;
|
|
579
|
-
/**
|
|
580
|
-
* @generated from protobuf field: optional string custom_label = 4
|
|
581
|
-
*/
|
|
582
|
-
customLabel?: string;
|
|
583
|
-
/**
|
|
584
|
-
* @generated from protobuf field: bool is_primary = 5
|
|
585
|
-
*/
|
|
586
|
-
isPrimary: boolean;
|
|
587
|
-
/**
|
|
588
|
-
* @generated from protobuf field: bool can_receive_sms = 6
|
|
589
|
-
*/
|
|
590
|
-
canReceiveSms: boolean;
|
|
591
|
-
/**
|
|
592
|
-
* @generated from protobuf field: bool can_receive_fax = 7
|
|
593
|
-
*/
|
|
594
|
-
canReceiveFax: boolean;
|
|
595
|
-
/**
|
|
596
|
-
* @generated from protobuf field: bool can_receive_voice = 8
|
|
597
|
-
*/
|
|
598
|
-
canReceiveVoice: boolean;
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @generated from protobuf message sid.v1.account.RemovePhoneRequest
|
|
602
|
-
*/
|
|
603
|
-
export interface RemovePhoneRequest {
|
|
604
|
-
/**
|
|
605
|
-
* @generated from protobuf field: string phone_id = 1
|
|
606
|
-
*/
|
|
607
|
-
phoneId: string;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* @generated from protobuf message sid.v1.account.UpdatePhoneRequest
|
|
611
|
-
*/
|
|
612
|
-
export interface UpdatePhoneRequest {
|
|
613
|
-
/**
|
|
614
|
-
* @generated from protobuf field: string phone_id = 1
|
|
615
|
-
*/
|
|
616
|
-
phoneId: string;
|
|
617
|
-
/**
|
|
618
|
-
* @generated from protobuf field: optional sid.v1.identity.PhoneLabel label = 2
|
|
619
|
-
*/
|
|
620
|
-
label?: PhoneLabel;
|
|
621
|
-
/**
|
|
622
|
-
* @generated from protobuf field: optional string custom_label = 3
|
|
623
|
-
*/
|
|
624
|
-
customLabel?: string;
|
|
625
|
-
/**
|
|
626
|
-
* @generated from protobuf field: optional bool can_receive_sms = 4
|
|
627
|
-
*/
|
|
628
|
-
canReceiveSms?: boolean;
|
|
629
|
-
/**
|
|
630
|
-
* @generated from protobuf field: optional bool can_receive_fax = 5
|
|
631
|
-
*/
|
|
632
|
-
canReceiveFax?: boolean;
|
|
633
|
-
/**
|
|
634
|
-
* @generated from protobuf field: optional bool can_receive_voice = 6
|
|
635
|
-
*/
|
|
636
|
-
canReceiveVoice?: boolean;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* @generated from protobuf message sid.v1.account.SetPrimaryPhoneRequest
|
|
640
|
-
*/
|
|
641
|
-
export interface SetPrimaryPhoneRequest {
|
|
642
|
-
/**
|
|
643
|
-
* @generated from protobuf field: string phone_id = 1
|
|
644
|
-
*/
|
|
645
|
-
phoneId: string;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @generated from protobuf message sid.v1.account.ListPhonesResponse
|
|
649
|
-
*/
|
|
650
|
-
export interface ListPhonesResponse {
|
|
651
|
-
/**
|
|
652
|
-
* @generated from protobuf field: repeated sid.v1.identity.ProfilePhone phones = 1
|
|
653
|
-
*/
|
|
654
|
-
phones: ProfilePhone[];
|
|
655
|
-
}
|
|
656
|
-
// ── Email management messages ──
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* @generated from protobuf message sid.v1.account.AddEmailRequest
|
|
660
|
-
*/
|
|
661
|
-
export interface AddEmailRequest {
|
|
662
|
-
/**
|
|
663
|
-
* @generated from protobuf field: string email = 1
|
|
664
|
-
*/
|
|
665
|
-
email: string; // Normalized by server
|
|
666
|
-
/**
|
|
667
|
-
* @generated from protobuf field: sid.v1.identity.EmailLabel label = 2
|
|
668
|
-
*/
|
|
669
|
-
label: EmailLabel;
|
|
670
|
-
/**
|
|
671
|
-
* @generated from protobuf field: optional string custom_label = 3
|
|
672
|
-
*/
|
|
673
|
-
customLabel?: string;
|
|
674
|
-
/**
|
|
675
|
-
* @generated from protobuf field: bool is_primary = 4
|
|
676
|
-
*/
|
|
677
|
-
isPrimary: boolean;
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* @generated from protobuf message sid.v1.account.RemoveEmailRequest
|
|
681
|
-
*/
|
|
682
|
-
export interface RemoveEmailRequest {
|
|
683
|
-
/**
|
|
684
|
-
* @generated from protobuf field: string email_id = 1
|
|
685
|
-
*/
|
|
686
|
-
emailId: string;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* @generated from protobuf message sid.v1.account.UpdateEmailRequest
|
|
690
|
-
*/
|
|
691
|
-
export interface UpdateEmailRequest {
|
|
692
|
-
/**
|
|
693
|
-
* @generated from protobuf field: string email_id = 1
|
|
694
|
-
*/
|
|
695
|
-
emailId: string;
|
|
696
|
-
/**
|
|
697
|
-
* @generated from protobuf field: optional sid.v1.identity.EmailLabel label = 2
|
|
698
|
-
*/
|
|
699
|
-
label?: EmailLabel;
|
|
700
|
-
/**
|
|
701
|
-
* @generated from protobuf field: optional string custom_label = 3
|
|
702
|
-
*/
|
|
703
|
-
customLabel?: string;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* @generated from protobuf message sid.v1.account.SetPrimaryEmailRequest
|
|
707
|
-
*/
|
|
708
|
-
export interface SetPrimaryEmailRequest {
|
|
709
|
-
/**
|
|
710
|
-
* @generated from protobuf field: string email_id = 1
|
|
711
|
-
*/
|
|
712
|
-
emailId: string;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* @generated from protobuf message sid.v1.account.ListEmailsResponse
|
|
716
|
-
*/
|
|
717
|
-
export interface ListEmailsResponse {
|
|
718
|
-
/**
|
|
719
|
-
* @generated from protobuf field: repeated sid.v1.identity.ProfileEmail emails = 1
|
|
720
|
-
*/
|
|
721
|
-
emails: ProfileEmail[];
|
|
722
|
-
}
|
|
723
|
-
/**
|
|
724
|
-
* @generated from protobuf enum sid.v1.account.ConsentStatus
|
|
725
|
-
*/
|
|
726
|
-
export enum ConsentStatus {
|
|
727
|
-
/**
|
|
728
|
-
* @generated from protobuf enum value: CONSENT_STATUS_UNSPECIFIED = 0;
|
|
729
|
-
*/
|
|
730
|
-
UNSPECIFIED = 0,
|
|
731
|
-
/**
|
|
732
|
-
* @generated from protobuf enum value: CONSENT_STATUS_ACTIVE = 1;
|
|
733
|
-
*/
|
|
734
|
-
ACTIVE = 1,
|
|
735
|
-
/**
|
|
736
|
-
* @generated from protobuf enum value: CONSENT_STATUS_INACTIVE = 2;
|
|
737
|
-
*/
|
|
738
|
-
INACTIVE = 2
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* @generated from protobuf enum sid.v1.account.ClaimType
|
|
742
|
-
*/
|
|
743
|
-
export enum ClaimType {
|
|
744
|
-
/**
|
|
745
|
-
* @generated from protobuf enum value: CLAIM_TYPE_UNSPECIFIED = 0;
|
|
746
|
-
*/
|
|
747
|
-
UNSPECIFIED = 0,
|
|
748
|
-
/**
|
|
749
|
-
* @generated from protobuf enum value: CLAIM_TYPE_MANDATORY = 1;
|
|
750
|
-
*/
|
|
751
|
-
MANDATORY = 1,
|
|
752
|
-
/**
|
|
753
|
-
* @generated from protobuf enum value: CLAIM_TYPE_OPTIONAL = 2;
|
|
754
|
-
*/
|
|
755
|
-
OPTIONAL = 2
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* @generated from protobuf enum sid.v1.account.ClaimConsentStatus
|
|
759
|
-
*/
|
|
760
|
-
export enum ClaimConsentStatus {
|
|
761
|
-
/**
|
|
762
|
-
* @generated from protobuf enum value: CLAIM_CONSENT_STATUS_UNSPECIFIED = 0;
|
|
763
|
-
*/
|
|
764
|
-
UNSPECIFIED = 0,
|
|
765
|
-
/**
|
|
766
|
-
* @generated from protobuf enum value: CLAIM_CONSENT_STATUS_GRANTED = 1;
|
|
767
|
-
*/
|
|
768
|
-
GRANTED = 1,
|
|
769
|
-
/**
|
|
770
|
-
* @generated from protobuf enum value: CLAIM_CONSENT_STATUS_DENIED = 2;
|
|
771
|
-
*/
|
|
772
|
-
DENIED = 2
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* @generated from protobuf enum sid.v1.account.ActivityEventStatus
|
|
776
|
-
*/
|
|
777
|
-
export enum ActivityEventStatus {
|
|
778
|
-
/**
|
|
779
|
-
* @generated from protobuf enum value: ACTIVITY_EVENT_STATUS_UNSPECIFIED = 0;
|
|
780
|
-
*/
|
|
781
|
-
UNSPECIFIED = 0,
|
|
782
|
-
/**
|
|
783
|
-
* @generated from protobuf enum value: ACTIVITY_EVENT_STATUS_SUCCESS = 1;
|
|
784
|
-
*/
|
|
785
|
-
SUCCESS = 1,
|
|
786
|
-
/**
|
|
787
|
-
* @generated from protobuf enum value: ACTIVITY_EVENT_STATUS_FAILED = 2;
|
|
788
|
-
*/
|
|
789
|
-
FAILED = 2,
|
|
790
|
-
/**
|
|
791
|
-
* @generated from protobuf enum value: ACTIVITY_EVENT_STATUS_BLOCKED = 3;
|
|
792
|
-
*/
|
|
793
|
-
BLOCKED = 3
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* @generated from protobuf enum sid.v1.account.LinkedAccountTrustCategory
|
|
797
|
-
*/
|
|
798
|
-
export enum LinkedAccountTrustCategory {
|
|
799
|
-
/**
|
|
800
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_TRUST_CATEGORY_UNSPECIFIED = 0;
|
|
801
|
-
*/
|
|
802
|
-
UNSPECIFIED = 0,
|
|
803
|
-
/**
|
|
804
|
-
* Google, GitHub, Apple
|
|
805
|
-
*
|
|
806
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_TRUST_CATEGORY_SOCIAL = 1;
|
|
807
|
-
*/
|
|
808
|
-
SOCIAL = 1,
|
|
809
|
-
/**
|
|
810
|
-
* Azure AD, Okta
|
|
811
|
-
*
|
|
812
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_TRUST_CATEGORY_CORPORATE = 2;
|
|
813
|
-
*/
|
|
814
|
-
CORPORATE = 2,
|
|
815
|
-
/**
|
|
816
|
-
* eID, DigiD
|
|
817
|
-
*
|
|
818
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_TRUST_CATEGORY_GOVERNMENT = 3;
|
|
819
|
-
*/
|
|
820
|
-
GOVERNMENT = 3,
|
|
821
|
-
/**
|
|
822
|
-
* Bank-issued identity
|
|
823
|
-
*
|
|
824
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_TRUST_CATEGORY_FINANCIAL = 4;
|
|
825
|
-
*/
|
|
826
|
-
FINANCIAL = 4
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* @generated from protobuf enum sid.v1.account.LinkedAccountStatus
|
|
830
|
-
*/
|
|
831
|
-
export enum LinkedAccountStatus {
|
|
832
|
-
/**
|
|
833
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_STATUS_UNSPECIFIED = 0;
|
|
834
|
-
*/
|
|
835
|
-
UNSPECIFIED = 0,
|
|
836
|
-
/**
|
|
837
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_STATUS_ACTIVE = 1;
|
|
838
|
-
*/
|
|
839
|
-
ACTIVE = 1,
|
|
840
|
-
/**
|
|
841
|
-
* Token expired and refresh failed
|
|
842
|
-
*
|
|
843
|
-
* @generated from protobuf enum value: LINKED_ACCOUNT_STATUS_EXPIRED = 2;
|
|
844
|
-
*/
|
|
845
|
-
EXPIRED = 2
|
|
846
|
-
}
|
|
847
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
848
|
-
class ConsentInfo$Type extends MessageType<ConsentInfo> {
|
|
849
|
-
constructor() {
|
|
850
|
-
super("sid.v1.account.ConsentInfo", [
|
|
851
|
-
{ no: 1, name: "site_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
852
|
-
{ no: 2, name: "site_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
853
|
-
{ no: 3, name: "site_favicon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
854
|
-
{ no: 4, name: "status", kind: "enum", T: () => ["sid.v1.account.ConsentStatus", ConsentStatus, "CONSENT_STATUS_"] },
|
|
855
|
-
{ no: 5, name: "connected_at", kind: "message", T: () => Timestamp },
|
|
856
|
-
{ no: 6, name: "claims_mandatory", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
857
|
-
{ no: 7, name: "claims_optional", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
858
|
-
{ no: 8, name: "last_sync", kind: "message", T: () => Timestamp }
|
|
859
|
-
]);
|
|
860
|
-
}
|
|
861
|
-
create(value?: PartialMessage<ConsentInfo>): ConsentInfo {
|
|
862
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
863
|
-
message.siteId = "";
|
|
864
|
-
message.siteName = "";
|
|
865
|
-
message.status = 0;
|
|
866
|
-
message.claimsMandatory = 0;
|
|
867
|
-
message.claimsOptional = 0;
|
|
868
|
-
if (value !== undefined)
|
|
869
|
-
reflectionMergePartial<ConsentInfo>(this, message, value);
|
|
870
|
-
return message;
|
|
871
|
-
}
|
|
872
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConsentInfo): ConsentInfo {
|
|
873
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
874
|
-
while (reader.pos < end) {
|
|
875
|
-
let [fieldNo, wireType] = reader.tag();
|
|
876
|
-
switch (fieldNo) {
|
|
877
|
-
case /* string site_id */ 1:
|
|
878
|
-
message.siteId = reader.string();
|
|
879
|
-
break;
|
|
880
|
-
case /* string site_name */ 2:
|
|
881
|
-
message.siteName = reader.string();
|
|
882
|
-
break;
|
|
883
|
-
case /* optional string site_favicon */ 3:
|
|
884
|
-
message.siteFavicon = reader.string();
|
|
885
|
-
break;
|
|
886
|
-
case /* sid.v1.account.ConsentStatus status */ 4:
|
|
887
|
-
message.status = reader.int32();
|
|
888
|
-
break;
|
|
889
|
-
case /* google.protobuf.Timestamp connected_at */ 5:
|
|
890
|
-
message.connectedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.connectedAt);
|
|
891
|
-
break;
|
|
892
|
-
case /* int32 claims_mandatory */ 6:
|
|
893
|
-
message.claimsMandatory = reader.int32();
|
|
894
|
-
break;
|
|
895
|
-
case /* int32 claims_optional */ 7:
|
|
896
|
-
message.claimsOptional = reader.int32();
|
|
897
|
-
break;
|
|
898
|
-
case /* optional google.protobuf.Timestamp last_sync */ 8:
|
|
899
|
-
message.lastSync = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSync);
|
|
900
|
-
break;
|
|
901
|
-
default:
|
|
902
|
-
let u = options.readUnknownField;
|
|
903
|
-
if (u === "throw")
|
|
904
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
905
|
-
let d = reader.skip(wireType);
|
|
906
|
-
if (u !== false)
|
|
907
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
return message;
|
|
911
|
-
}
|
|
912
|
-
internalBinaryWrite(message: ConsentInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
913
|
-
/* string site_id = 1; */
|
|
914
|
-
if (message.siteId !== "")
|
|
915
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteId);
|
|
916
|
-
/* string site_name = 2; */
|
|
917
|
-
if (message.siteName !== "")
|
|
918
|
-
writer.tag(2, WireType.LengthDelimited).string(message.siteName);
|
|
919
|
-
/* optional string site_favicon = 3; */
|
|
920
|
-
if (message.siteFavicon !== undefined)
|
|
921
|
-
writer.tag(3, WireType.LengthDelimited).string(message.siteFavicon);
|
|
922
|
-
/* sid.v1.account.ConsentStatus status = 4; */
|
|
923
|
-
if (message.status !== 0)
|
|
924
|
-
writer.tag(4, WireType.Varint).int32(message.status);
|
|
925
|
-
/* google.protobuf.Timestamp connected_at = 5; */
|
|
926
|
-
if (message.connectedAt)
|
|
927
|
-
Timestamp.internalBinaryWrite(message.connectedAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
928
|
-
/* int32 claims_mandatory = 6; */
|
|
929
|
-
if (message.claimsMandatory !== 0)
|
|
930
|
-
writer.tag(6, WireType.Varint).int32(message.claimsMandatory);
|
|
931
|
-
/* int32 claims_optional = 7; */
|
|
932
|
-
if (message.claimsOptional !== 0)
|
|
933
|
-
writer.tag(7, WireType.Varint).int32(message.claimsOptional);
|
|
934
|
-
/* optional google.protobuf.Timestamp last_sync = 8; */
|
|
935
|
-
if (message.lastSync)
|
|
936
|
-
Timestamp.internalBinaryWrite(message.lastSync, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
937
|
-
let u = options.writeUnknownFields;
|
|
938
|
-
if (u !== false)
|
|
939
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
940
|
-
return writer;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
/**
|
|
944
|
-
* @generated MessageType for protobuf message sid.v1.account.ConsentInfo
|
|
945
|
-
*/
|
|
946
|
-
export const ConsentInfo = new ConsentInfo$Type();
|
|
947
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
948
|
-
class ClaimConsent$Type extends MessageType<ClaimConsent> {
|
|
949
|
-
constructor() {
|
|
950
|
-
super("sid.v1.account.ClaimConsent", [
|
|
951
|
-
{ no: 1, name: "claim_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
952
|
-
{ no: 2, name: "claim_type", kind: "enum", T: () => ["sid.v1.account.ClaimType", ClaimType, "CLAIM_TYPE_"] },
|
|
953
|
-
{ no: 3, name: "current_status", kind: "enum", T: () => ["sid.v1.account.ClaimConsentStatus", ClaimConsentStatus, "CLAIM_CONSENT_STATUS_"] },
|
|
954
|
-
{ no: 4, name: "value_preview", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
955
|
-
{ no: 5, name: "last_propagated", kind: "message", T: () => Timestamp }
|
|
956
|
-
]);
|
|
957
|
-
}
|
|
958
|
-
create(value?: PartialMessage<ClaimConsent>): ClaimConsent {
|
|
959
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
960
|
-
message.claimName = "";
|
|
961
|
-
message.claimType = 0;
|
|
962
|
-
message.currentStatus = 0;
|
|
963
|
-
message.valuePreview = "";
|
|
964
|
-
if (value !== undefined)
|
|
965
|
-
reflectionMergePartial<ClaimConsent>(this, message, value);
|
|
966
|
-
return message;
|
|
967
|
-
}
|
|
968
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimConsent): ClaimConsent {
|
|
969
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
970
|
-
while (reader.pos < end) {
|
|
971
|
-
let [fieldNo, wireType] = reader.tag();
|
|
972
|
-
switch (fieldNo) {
|
|
973
|
-
case /* string claim_name */ 1:
|
|
974
|
-
message.claimName = reader.string();
|
|
975
|
-
break;
|
|
976
|
-
case /* sid.v1.account.ClaimType claim_type */ 2:
|
|
977
|
-
message.claimType = reader.int32();
|
|
978
|
-
break;
|
|
979
|
-
case /* sid.v1.account.ClaimConsentStatus current_status */ 3:
|
|
980
|
-
message.currentStatus = reader.int32();
|
|
981
|
-
break;
|
|
982
|
-
case /* string value_preview */ 4:
|
|
983
|
-
message.valuePreview = reader.string();
|
|
984
|
-
break;
|
|
985
|
-
case /* optional google.protobuf.Timestamp last_propagated */ 5:
|
|
986
|
-
message.lastPropagated = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastPropagated);
|
|
987
|
-
break;
|
|
988
|
-
default:
|
|
989
|
-
let u = options.readUnknownField;
|
|
990
|
-
if (u === "throw")
|
|
991
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
992
|
-
let d = reader.skip(wireType);
|
|
993
|
-
if (u !== false)
|
|
994
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
return message;
|
|
998
|
-
}
|
|
999
|
-
internalBinaryWrite(message: ClaimConsent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1000
|
-
/* string claim_name = 1; */
|
|
1001
|
-
if (message.claimName !== "")
|
|
1002
|
-
writer.tag(1, WireType.LengthDelimited).string(message.claimName);
|
|
1003
|
-
/* sid.v1.account.ClaimType claim_type = 2; */
|
|
1004
|
-
if (message.claimType !== 0)
|
|
1005
|
-
writer.tag(2, WireType.Varint).int32(message.claimType);
|
|
1006
|
-
/* sid.v1.account.ClaimConsentStatus current_status = 3; */
|
|
1007
|
-
if (message.currentStatus !== 0)
|
|
1008
|
-
writer.tag(3, WireType.Varint).int32(message.currentStatus);
|
|
1009
|
-
/* string value_preview = 4; */
|
|
1010
|
-
if (message.valuePreview !== "")
|
|
1011
|
-
writer.tag(4, WireType.LengthDelimited).string(message.valuePreview);
|
|
1012
|
-
/* optional google.protobuf.Timestamp last_propagated = 5; */
|
|
1013
|
-
if (message.lastPropagated)
|
|
1014
|
-
Timestamp.internalBinaryWrite(message.lastPropagated, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1015
|
-
let u = options.writeUnknownFields;
|
|
1016
|
-
if (u !== false)
|
|
1017
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1018
|
-
return writer;
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
/**
|
|
1022
|
-
* @generated MessageType for protobuf message sid.v1.account.ClaimConsent
|
|
1023
|
-
*/
|
|
1024
|
-
export const ClaimConsent = new ClaimConsent$Type();
|
|
1025
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1026
|
-
class ActivityEvent$Type extends MessageType<ActivityEvent> {
|
|
1027
|
-
constructor() {
|
|
1028
|
-
super("sid.v1.account.ActivityEvent", [
|
|
1029
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1030
|
-
{ no: 2, name: "timestamp", kind: "message", T: () => Timestamp },
|
|
1031
|
-
{ no: 3, name: "event_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1032
|
-
{ no: 4, name: "status", kind: "enum", T: () => ["sid.v1.account.ActivityEventStatus", ActivityEventStatus, "ACTIVITY_EVENT_STATUS_"] },
|
|
1033
|
-
{ no: 5, name: "application_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1034
|
-
{ no: 6, name: "application_favicon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1035
|
-
{ no: 7, name: "device_browser", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1036
|
-
{ no: 8, name: "device_os", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1037
|
-
{ no: 9, name: "location_city", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1038
|
-
{ no: 10, name: "location_country", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1039
|
-
{ no: 11, name: "auth_methods", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1040
|
-
{ no: 12, name: "disputed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1041
|
-
]);
|
|
1042
|
-
}
|
|
1043
|
-
create(value?: PartialMessage<ActivityEvent>): ActivityEvent {
|
|
1044
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1045
|
-
message.id = "";
|
|
1046
|
-
message.eventType = "";
|
|
1047
|
-
message.status = 0;
|
|
1048
|
-
message.authMethods = [];
|
|
1049
|
-
message.disputed = false;
|
|
1050
|
-
if (value !== undefined)
|
|
1051
|
-
reflectionMergePartial<ActivityEvent>(this, message, value);
|
|
1052
|
-
return message;
|
|
1053
|
-
}
|
|
1054
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActivityEvent): ActivityEvent {
|
|
1055
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1056
|
-
while (reader.pos < end) {
|
|
1057
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1058
|
-
switch (fieldNo) {
|
|
1059
|
-
case /* string id */ 1:
|
|
1060
|
-
message.id = reader.string();
|
|
1061
|
-
break;
|
|
1062
|
-
case /* google.protobuf.Timestamp timestamp */ 2:
|
|
1063
|
-
message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
|
|
1064
|
-
break;
|
|
1065
|
-
case /* string event_type */ 3:
|
|
1066
|
-
message.eventType = reader.string();
|
|
1067
|
-
break;
|
|
1068
|
-
case /* sid.v1.account.ActivityEventStatus status */ 4:
|
|
1069
|
-
message.status = reader.int32();
|
|
1070
|
-
break;
|
|
1071
|
-
case /* optional string application_name */ 5:
|
|
1072
|
-
message.applicationName = reader.string();
|
|
1073
|
-
break;
|
|
1074
|
-
case /* optional string application_favicon */ 6:
|
|
1075
|
-
message.applicationFavicon = reader.string();
|
|
1076
|
-
break;
|
|
1077
|
-
case /* optional string device_browser */ 7:
|
|
1078
|
-
message.deviceBrowser = reader.string();
|
|
1079
|
-
break;
|
|
1080
|
-
case /* optional string device_os */ 8:
|
|
1081
|
-
message.deviceOs = reader.string();
|
|
1082
|
-
break;
|
|
1083
|
-
case /* optional string location_city */ 9:
|
|
1084
|
-
message.locationCity = reader.string();
|
|
1085
|
-
break;
|
|
1086
|
-
case /* optional string location_country */ 10:
|
|
1087
|
-
message.locationCountry = reader.string();
|
|
1088
|
-
break;
|
|
1089
|
-
case /* repeated string auth_methods */ 11:
|
|
1090
|
-
message.authMethods.push(reader.string());
|
|
1091
|
-
break;
|
|
1092
|
-
case /* bool disputed */ 12:
|
|
1093
|
-
message.disputed = reader.bool();
|
|
1094
|
-
break;
|
|
1095
|
-
default:
|
|
1096
|
-
let u = options.readUnknownField;
|
|
1097
|
-
if (u === "throw")
|
|
1098
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1099
|
-
let d = reader.skip(wireType);
|
|
1100
|
-
if (u !== false)
|
|
1101
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
return message;
|
|
1105
|
-
}
|
|
1106
|
-
internalBinaryWrite(message: ActivityEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1107
|
-
/* string id = 1; */
|
|
1108
|
-
if (message.id !== "")
|
|
1109
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1110
|
-
/* google.protobuf.Timestamp timestamp = 2; */
|
|
1111
|
-
if (message.timestamp)
|
|
1112
|
-
Timestamp.internalBinaryWrite(message.timestamp, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1113
|
-
/* string event_type = 3; */
|
|
1114
|
-
if (message.eventType !== "")
|
|
1115
|
-
writer.tag(3, WireType.LengthDelimited).string(message.eventType);
|
|
1116
|
-
/* sid.v1.account.ActivityEventStatus status = 4; */
|
|
1117
|
-
if (message.status !== 0)
|
|
1118
|
-
writer.tag(4, WireType.Varint).int32(message.status);
|
|
1119
|
-
/* optional string application_name = 5; */
|
|
1120
|
-
if (message.applicationName !== undefined)
|
|
1121
|
-
writer.tag(5, WireType.LengthDelimited).string(message.applicationName);
|
|
1122
|
-
/* optional string application_favicon = 6; */
|
|
1123
|
-
if (message.applicationFavicon !== undefined)
|
|
1124
|
-
writer.tag(6, WireType.LengthDelimited).string(message.applicationFavicon);
|
|
1125
|
-
/* optional string device_browser = 7; */
|
|
1126
|
-
if (message.deviceBrowser !== undefined)
|
|
1127
|
-
writer.tag(7, WireType.LengthDelimited).string(message.deviceBrowser);
|
|
1128
|
-
/* optional string device_os = 8; */
|
|
1129
|
-
if (message.deviceOs !== undefined)
|
|
1130
|
-
writer.tag(8, WireType.LengthDelimited).string(message.deviceOs);
|
|
1131
|
-
/* optional string location_city = 9; */
|
|
1132
|
-
if (message.locationCity !== undefined)
|
|
1133
|
-
writer.tag(9, WireType.LengthDelimited).string(message.locationCity);
|
|
1134
|
-
/* optional string location_country = 10; */
|
|
1135
|
-
if (message.locationCountry !== undefined)
|
|
1136
|
-
writer.tag(10, WireType.LengthDelimited).string(message.locationCountry);
|
|
1137
|
-
/* repeated string auth_methods = 11; */
|
|
1138
|
-
for (let i = 0; i < message.authMethods.length; i++)
|
|
1139
|
-
writer.tag(11, WireType.LengthDelimited).string(message.authMethods[i]);
|
|
1140
|
-
/* bool disputed = 12; */
|
|
1141
|
-
if (message.disputed !== false)
|
|
1142
|
-
writer.tag(12, WireType.Varint).bool(message.disputed);
|
|
1143
|
-
let u = options.writeUnknownFields;
|
|
1144
|
-
if (u !== false)
|
|
1145
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1146
|
-
return writer;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* @generated MessageType for protobuf message sid.v1.account.ActivityEvent
|
|
1151
|
-
*/
|
|
1152
|
-
export const ActivityEvent = new ActivityEvent$Type();
|
|
1153
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1154
|
-
class LinkedAccount$Type extends MessageType<LinkedAccount> {
|
|
1155
|
-
constructor() {
|
|
1156
|
-
super("sid.v1.account.LinkedAccount", [
|
|
1157
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1158
|
-
{ no: 2, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1159
|
-
{ no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1160
|
-
{ no: 4, name: "provider_logo_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1161
|
-
{ no: 5, name: "trust_category", kind: "enum", T: () => ["sid.v1.account.LinkedAccountTrustCategory", LinkedAccountTrustCategory, "LINKED_ACCOUNT_TRUST_CATEGORY_"] },
|
|
1162
|
-
{ no: 6, name: "external_id_masked", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1163
|
-
{ no: 7, name: "status", kind: "enum", T: () => ["sid.v1.account.LinkedAccountStatus", LinkedAccountStatus, "LINKED_ACCOUNT_STATUS_"] },
|
|
1164
|
-
{ no: 8, name: "linked_at", kind: "message", T: () => Timestamp },
|
|
1165
|
-
{ no: 9, name: "last_login_at", kind: "message", T: () => Timestamp }
|
|
1166
|
-
]);
|
|
1167
|
-
}
|
|
1168
|
-
create(value?: PartialMessage<LinkedAccount>): LinkedAccount {
|
|
1169
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1170
|
-
message.id = "";
|
|
1171
|
-
message.providerId = "";
|
|
1172
|
-
message.providerName = "";
|
|
1173
|
-
message.trustCategory = 0;
|
|
1174
|
-
message.externalIdMasked = "";
|
|
1175
|
-
message.status = 0;
|
|
1176
|
-
if (value !== undefined)
|
|
1177
|
-
reflectionMergePartial<LinkedAccount>(this, message, value);
|
|
1178
|
-
return message;
|
|
1179
|
-
}
|
|
1180
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LinkedAccount): LinkedAccount {
|
|
1181
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1182
|
-
while (reader.pos < end) {
|
|
1183
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1184
|
-
switch (fieldNo) {
|
|
1185
|
-
case /* string id */ 1:
|
|
1186
|
-
message.id = reader.string();
|
|
1187
|
-
break;
|
|
1188
|
-
case /* string provider_id */ 2:
|
|
1189
|
-
message.providerId = reader.string();
|
|
1190
|
-
break;
|
|
1191
|
-
case /* string provider_name */ 3:
|
|
1192
|
-
message.providerName = reader.string();
|
|
1193
|
-
break;
|
|
1194
|
-
case /* optional string provider_logo_url */ 4:
|
|
1195
|
-
message.providerLogoUrl = reader.string();
|
|
1196
|
-
break;
|
|
1197
|
-
case /* sid.v1.account.LinkedAccountTrustCategory trust_category */ 5:
|
|
1198
|
-
message.trustCategory = reader.int32();
|
|
1199
|
-
break;
|
|
1200
|
-
case /* string external_id_masked */ 6:
|
|
1201
|
-
message.externalIdMasked = reader.string();
|
|
1202
|
-
break;
|
|
1203
|
-
case /* sid.v1.account.LinkedAccountStatus status */ 7:
|
|
1204
|
-
message.status = reader.int32();
|
|
1205
|
-
break;
|
|
1206
|
-
case /* google.protobuf.Timestamp linked_at */ 8:
|
|
1207
|
-
message.linkedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.linkedAt);
|
|
1208
|
-
break;
|
|
1209
|
-
case /* optional google.protobuf.Timestamp last_login_at */ 9:
|
|
1210
|
-
message.lastLoginAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastLoginAt);
|
|
1211
|
-
break;
|
|
1212
|
-
default:
|
|
1213
|
-
let u = options.readUnknownField;
|
|
1214
|
-
if (u === "throw")
|
|
1215
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1216
|
-
let d = reader.skip(wireType);
|
|
1217
|
-
if (u !== false)
|
|
1218
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
return message;
|
|
1222
|
-
}
|
|
1223
|
-
internalBinaryWrite(message: LinkedAccount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1224
|
-
/* string id = 1; */
|
|
1225
|
-
if (message.id !== "")
|
|
1226
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1227
|
-
/* string provider_id = 2; */
|
|
1228
|
-
if (message.providerId !== "")
|
|
1229
|
-
writer.tag(2, WireType.LengthDelimited).string(message.providerId);
|
|
1230
|
-
/* string provider_name = 3; */
|
|
1231
|
-
if (message.providerName !== "")
|
|
1232
|
-
writer.tag(3, WireType.LengthDelimited).string(message.providerName);
|
|
1233
|
-
/* optional string provider_logo_url = 4; */
|
|
1234
|
-
if (message.providerLogoUrl !== undefined)
|
|
1235
|
-
writer.tag(4, WireType.LengthDelimited).string(message.providerLogoUrl);
|
|
1236
|
-
/* sid.v1.account.LinkedAccountTrustCategory trust_category = 5; */
|
|
1237
|
-
if (message.trustCategory !== 0)
|
|
1238
|
-
writer.tag(5, WireType.Varint).int32(message.trustCategory);
|
|
1239
|
-
/* string external_id_masked = 6; */
|
|
1240
|
-
if (message.externalIdMasked !== "")
|
|
1241
|
-
writer.tag(6, WireType.LengthDelimited).string(message.externalIdMasked);
|
|
1242
|
-
/* sid.v1.account.LinkedAccountStatus status = 7; */
|
|
1243
|
-
if (message.status !== 0)
|
|
1244
|
-
writer.tag(7, WireType.Varint).int32(message.status);
|
|
1245
|
-
/* google.protobuf.Timestamp linked_at = 8; */
|
|
1246
|
-
if (message.linkedAt)
|
|
1247
|
-
Timestamp.internalBinaryWrite(message.linkedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1248
|
-
/* optional google.protobuf.Timestamp last_login_at = 9; */
|
|
1249
|
-
if (message.lastLoginAt)
|
|
1250
|
-
Timestamp.internalBinaryWrite(message.lastLoginAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1251
|
-
let u = options.writeUnknownFields;
|
|
1252
|
-
if (u !== false)
|
|
1253
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1254
|
-
return writer;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* @generated MessageType for protobuf message sid.v1.account.LinkedAccount
|
|
1259
|
-
*/
|
|
1260
|
-
export const LinkedAccount = new LinkedAccount$Type();
|
|
1261
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1262
|
-
class ListConsentsRequest$Type extends MessageType<ListConsentsRequest> {
|
|
1263
|
-
constructor() {
|
|
1264
|
-
super("sid.v1.account.ListConsentsRequest", []);
|
|
1265
|
-
}
|
|
1266
|
-
create(value?: PartialMessage<ListConsentsRequest>): ListConsentsRequest {
|
|
1267
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1268
|
-
if (value !== undefined)
|
|
1269
|
-
reflectionMergePartial<ListConsentsRequest>(this, message, value);
|
|
1270
|
-
return message;
|
|
1271
|
-
}
|
|
1272
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConsentsRequest): ListConsentsRequest {
|
|
1273
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1274
|
-
while (reader.pos < end) {
|
|
1275
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1276
|
-
switch (fieldNo) {
|
|
1277
|
-
default:
|
|
1278
|
-
let u = options.readUnknownField;
|
|
1279
|
-
if (u === "throw")
|
|
1280
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1281
|
-
let d = reader.skip(wireType);
|
|
1282
|
-
if (u !== false)
|
|
1283
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
return message;
|
|
1287
|
-
}
|
|
1288
|
-
internalBinaryWrite(message: ListConsentsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1289
|
-
let u = options.writeUnknownFields;
|
|
1290
|
-
if (u !== false)
|
|
1291
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1292
|
-
return writer;
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* @generated MessageType for protobuf message sid.v1.account.ListConsentsRequest
|
|
1297
|
-
*/
|
|
1298
|
-
export const ListConsentsRequest = new ListConsentsRequest$Type();
|
|
1299
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1300
|
-
class ListConsentsResponse$Type extends MessageType<ListConsentsResponse> {
|
|
1301
|
-
constructor() {
|
|
1302
|
-
super("sid.v1.account.ListConsentsResponse", [
|
|
1303
|
-
{ no: 1, name: "consents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConsentInfo }
|
|
1304
|
-
]);
|
|
1305
|
-
}
|
|
1306
|
-
create(value?: PartialMessage<ListConsentsResponse>): ListConsentsResponse {
|
|
1307
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1308
|
-
message.consents = [];
|
|
1309
|
-
if (value !== undefined)
|
|
1310
|
-
reflectionMergePartial<ListConsentsResponse>(this, message, value);
|
|
1311
|
-
return message;
|
|
1312
|
-
}
|
|
1313
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConsentsResponse): ListConsentsResponse {
|
|
1314
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1315
|
-
while (reader.pos < end) {
|
|
1316
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1317
|
-
switch (fieldNo) {
|
|
1318
|
-
case /* repeated sid.v1.account.ConsentInfo consents */ 1:
|
|
1319
|
-
message.consents.push(ConsentInfo.internalBinaryRead(reader, reader.uint32(), options));
|
|
1320
|
-
break;
|
|
1321
|
-
default:
|
|
1322
|
-
let u = options.readUnknownField;
|
|
1323
|
-
if (u === "throw")
|
|
1324
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1325
|
-
let d = reader.skip(wireType);
|
|
1326
|
-
if (u !== false)
|
|
1327
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
return message;
|
|
1331
|
-
}
|
|
1332
|
-
internalBinaryWrite(message: ListConsentsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1333
|
-
/* repeated sid.v1.account.ConsentInfo consents = 1; */
|
|
1334
|
-
for (let i = 0; i < message.consents.length; i++)
|
|
1335
|
-
ConsentInfo.internalBinaryWrite(message.consents[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1336
|
-
let u = options.writeUnknownFields;
|
|
1337
|
-
if (u !== false)
|
|
1338
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1339
|
-
return writer;
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
/**
|
|
1343
|
-
* @generated MessageType for protobuf message sid.v1.account.ListConsentsResponse
|
|
1344
|
-
*/
|
|
1345
|
-
export const ListConsentsResponse = new ListConsentsResponse$Type();
|
|
1346
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1347
|
-
class GetConsentDetailRequest$Type extends MessageType<GetConsentDetailRequest> {
|
|
1348
|
-
constructor() {
|
|
1349
|
-
super("sid.v1.account.GetConsentDetailRequest", [
|
|
1350
|
-
{ no: 1, name: "site_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1351
|
-
]);
|
|
1352
|
-
}
|
|
1353
|
-
create(value?: PartialMessage<GetConsentDetailRequest>): GetConsentDetailRequest {
|
|
1354
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1355
|
-
message.siteId = "";
|
|
1356
|
-
if (value !== undefined)
|
|
1357
|
-
reflectionMergePartial<GetConsentDetailRequest>(this, message, value);
|
|
1358
|
-
return message;
|
|
1359
|
-
}
|
|
1360
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConsentDetailRequest): GetConsentDetailRequest {
|
|
1361
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1362
|
-
while (reader.pos < end) {
|
|
1363
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1364
|
-
switch (fieldNo) {
|
|
1365
|
-
case /* string site_id */ 1:
|
|
1366
|
-
message.siteId = reader.string();
|
|
1367
|
-
break;
|
|
1368
|
-
default:
|
|
1369
|
-
let u = options.readUnknownField;
|
|
1370
|
-
if (u === "throw")
|
|
1371
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1372
|
-
let d = reader.skip(wireType);
|
|
1373
|
-
if (u !== false)
|
|
1374
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
return message;
|
|
1378
|
-
}
|
|
1379
|
-
internalBinaryWrite(message: GetConsentDetailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1380
|
-
/* string site_id = 1; */
|
|
1381
|
-
if (message.siteId !== "")
|
|
1382
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteId);
|
|
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.account.GetConsentDetailRequest
|
|
1391
|
-
*/
|
|
1392
|
-
export const GetConsentDetailRequest = new GetConsentDetailRequest$Type();
|
|
1393
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1394
|
-
class GetConsentDetailResponse$Type extends MessageType<GetConsentDetailResponse> {
|
|
1395
|
-
constructor() {
|
|
1396
|
-
super("sid.v1.account.GetConsentDetailResponse", [
|
|
1397
|
-
{ no: 1, name: "site_info", kind: "message", T: () => ConsentInfo },
|
|
1398
|
-
{ no: 2, name: "claims", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimConsent }
|
|
1399
|
-
]);
|
|
1400
|
-
}
|
|
1401
|
-
create(value?: PartialMessage<GetConsentDetailResponse>): GetConsentDetailResponse {
|
|
1402
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1403
|
-
message.claims = [];
|
|
1404
|
-
if (value !== undefined)
|
|
1405
|
-
reflectionMergePartial<GetConsentDetailResponse>(this, message, value);
|
|
1406
|
-
return message;
|
|
1407
|
-
}
|
|
1408
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConsentDetailResponse): GetConsentDetailResponse {
|
|
1409
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1410
|
-
while (reader.pos < end) {
|
|
1411
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1412
|
-
switch (fieldNo) {
|
|
1413
|
-
case /* sid.v1.account.ConsentInfo site_info */ 1:
|
|
1414
|
-
message.siteInfo = ConsentInfo.internalBinaryRead(reader, reader.uint32(), options, message.siteInfo);
|
|
1415
|
-
break;
|
|
1416
|
-
case /* repeated sid.v1.account.ClaimConsent claims */ 2:
|
|
1417
|
-
message.claims.push(ClaimConsent.internalBinaryRead(reader, reader.uint32(), options));
|
|
1418
|
-
break;
|
|
1419
|
-
default:
|
|
1420
|
-
let u = options.readUnknownField;
|
|
1421
|
-
if (u === "throw")
|
|
1422
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1423
|
-
let d = reader.skip(wireType);
|
|
1424
|
-
if (u !== false)
|
|
1425
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
return message;
|
|
1429
|
-
}
|
|
1430
|
-
internalBinaryWrite(message: GetConsentDetailResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1431
|
-
/* sid.v1.account.ConsentInfo site_info = 1; */
|
|
1432
|
-
if (message.siteInfo)
|
|
1433
|
-
ConsentInfo.internalBinaryWrite(message.siteInfo, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1434
|
-
/* repeated sid.v1.account.ClaimConsent claims = 2; */
|
|
1435
|
-
for (let i = 0; i < message.claims.length; i++)
|
|
1436
|
-
ClaimConsent.internalBinaryWrite(message.claims[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1437
|
-
let u = options.writeUnknownFields;
|
|
1438
|
-
if (u !== false)
|
|
1439
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1440
|
-
return writer;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
/**
|
|
1444
|
-
* @generated MessageType for protobuf message sid.v1.account.GetConsentDetailResponse
|
|
1445
|
-
*/
|
|
1446
|
-
export const GetConsentDetailResponse = new GetConsentDetailResponse$Type();
|
|
1447
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1448
|
-
class UpdateClaimConsentRequest$Type extends MessageType<UpdateClaimConsentRequest> {
|
|
1449
|
-
constructor() {
|
|
1450
|
-
super("sid.v1.account.UpdateClaimConsentRequest", [
|
|
1451
|
-
{ no: 1, name: "site_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1452
|
-
{ no: 2, name: "claim_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1453
|
-
{ no: 3, name: "grant", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1454
|
-
]);
|
|
1455
|
-
}
|
|
1456
|
-
create(value?: PartialMessage<UpdateClaimConsentRequest>): UpdateClaimConsentRequest {
|
|
1457
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1458
|
-
message.siteId = "";
|
|
1459
|
-
message.claimName = "";
|
|
1460
|
-
message.grant = false;
|
|
1461
|
-
if (value !== undefined)
|
|
1462
|
-
reflectionMergePartial<UpdateClaimConsentRequest>(this, message, value);
|
|
1463
|
-
return message;
|
|
1464
|
-
}
|
|
1465
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateClaimConsentRequest): UpdateClaimConsentRequest {
|
|
1466
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1467
|
-
while (reader.pos < end) {
|
|
1468
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1469
|
-
switch (fieldNo) {
|
|
1470
|
-
case /* string site_id */ 1:
|
|
1471
|
-
message.siteId = reader.string();
|
|
1472
|
-
break;
|
|
1473
|
-
case /* string claim_name */ 2:
|
|
1474
|
-
message.claimName = reader.string();
|
|
1475
|
-
break;
|
|
1476
|
-
case /* bool grant */ 3:
|
|
1477
|
-
message.grant = reader.bool();
|
|
1478
|
-
break;
|
|
1479
|
-
default:
|
|
1480
|
-
let u = options.readUnknownField;
|
|
1481
|
-
if (u === "throw")
|
|
1482
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1483
|
-
let d = reader.skip(wireType);
|
|
1484
|
-
if (u !== false)
|
|
1485
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
return message;
|
|
1489
|
-
}
|
|
1490
|
-
internalBinaryWrite(message: UpdateClaimConsentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1491
|
-
/* string site_id = 1; */
|
|
1492
|
-
if (message.siteId !== "")
|
|
1493
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteId);
|
|
1494
|
-
/* string claim_name = 2; */
|
|
1495
|
-
if (message.claimName !== "")
|
|
1496
|
-
writer.tag(2, WireType.LengthDelimited).string(message.claimName);
|
|
1497
|
-
/* bool grant = 3; */
|
|
1498
|
-
if (message.grant !== false)
|
|
1499
|
-
writer.tag(3, WireType.Varint).bool(message.grant);
|
|
1500
|
-
let u = options.writeUnknownFields;
|
|
1501
|
-
if (u !== false)
|
|
1502
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1503
|
-
return writer;
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
/**
|
|
1507
|
-
* @generated MessageType for protobuf message sid.v1.account.UpdateClaimConsentRequest
|
|
1508
|
-
*/
|
|
1509
|
-
export const UpdateClaimConsentRequest = new UpdateClaimConsentRequest$Type();
|
|
1510
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1511
|
-
class DisconnectSiteRequest$Type extends MessageType<DisconnectSiteRequest> {
|
|
1512
|
-
constructor() {
|
|
1513
|
-
super("sid.v1.account.DisconnectSiteRequest", [
|
|
1514
|
-
{ no: 1, name: "site_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1515
|
-
]);
|
|
1516
|
-
}
|
|
1517
|
-
create(value?: PartialMessage<DisconnectSiteRequest>): DisconnectSiteRequest {
|
|
1518
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1519
|
-
message.siteId = "";
|
|
1520
|
-
if (value !== undefined)
|
|
1521
|
-
reflectionMergePartial<DisconnectSiteRequest>(this, message, value);
|
|
1522
|
-
return message;
|
|
1523
|
-
}
|
|
1524
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisconnectSiteRequest): DisconnectSiteRequest {
|
|
1525
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1526
|
-
while (reader.pos < end) {
|
|
1527
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1528
|
-
switch (fieldNo) {
|
|
1529
|
-
case /* string site_id */ 1:
|
|
1530
|
-
message.siteId = reader.string();
|
|
1531
|
-
break;
|
|
1532
|
-
default:
|
|
1533
|
-
let u = options.readUnknownField;
|
|
1534
|
-
if (u === "throw")
|
|
1535
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1536
|
-
let d = reader.skip(wireType);
|
|
1537
|
-
if (u !== false)
|
|
1538
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
return message;
|
|
1542
|
-
}
|
|
1543
|
-
internalBinaryWrite(message: DisconnectSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1544
|
-
/* string site_id = 1; */
|
|
1545
|
-
if (message.siteId !== "")
|
|
1546
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteId);
|
|
1547
|
-
let u = options.writeUnknownFields;
|
|
1548
|
-
if (u !== false)
|
|
1549
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1550
|
-
return writer;
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
/**
|
|
1554
|
-
* @generated MessageType for protobuf message sid.v1.account.DisconnectSiteRequest
|
|
1555
|
-
*/
|
|
1556
|
-
export const DisconnectSiteRequest = new DisconnectSiteRequest$Type();
|
|
1557
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1558
|
-
class ListActivityEventsRequest$Type extends MessageType<ListActivityEventsRequest> {
|
|
1559
|
-
constructor() {
|
|
1560
|
-
super("sid.v1.account.ListActivityEventsRequest", [
|
|
1561
|
-
{ no: 1, name: "event_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1562
|
-
{ no: 2, name: "application_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1563
|
-
{ no: 3, name: "status_filter", kind: "enum", opt: true, T: () => ["sid.v1.account.ActivityEventStatus", ActivityEventStatus, "ACTIVITY_EVENT_STATUS_"] },
|
|
1564
|
-
{ no: 4, name: "date_from", kind: "message", T: () => Timestamp },
|
|
1565
|
-
{ no: 5, name: "date_to", kind: "message", T: () => Timestamp },
|
|
1566
|
-
{ no: 6, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1567
|
-
{ no: 10, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1568
|
-
{ no: 11, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1569
|
-
]);
|
|
1570
|
-
}
|
|
1571
|
-
create(value?: PartialMessage<ListActivityEventsRequest>): ListActivityEventsRequest {
|
|
1572
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1573
|
-
message.eventTypes = [];
|
|
1574
|
-
message.pageSize = 0;
|
|
1575
|
-
message.pageToken = "";
|
|
1576
|
-
if (value !== undefined)
|
|
1577
|
-
reflectionMergePartial<ListActivityEventsRequest>(this, message, value);
|
|
1578
|
-
return message;
|
|
1579
|
-
}
|
|
1580
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListActivityEventsRequest): ListActivityEventsRequest {
|
|
1581
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1582
|
-
while (reader.pos < end) {
|
|
1583
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1584
|
-
switch (fieldNo) {
|
|
1585
|
-
case /* repeated string event_types */ 1:
|
|
1586
|
-
message.eventTypes.push(reader.string());
|
|
1587
|
-
break;
|
|
1588
|
-
case /* optional string application_id */ 2:
|
|
1589
|
-
message.applicationId = reader.string();
|
|
1590
|
-
break;
|
|
1591
|
-
case /* optional sid.v1.account.ActivityEventStatus status_filter */ 3:
|
|
1592
|
-
message.statusFilter = reader.int32();
|
|
1593
|
-
break;
|
|
1594
|
-
case /* optional google.protobuf.Timestamp date_from */ 4:
|
|
1595
|
-
message.dateFrom = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.dateFrom);
|
|
1596
|
-
break;
|
|
1597
|
-
case /* optional google.protobuf.Timestamp date_to */ 5:
|
|
1598
|
-
message.dateTo = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.dateTo);
|
|
1599
|
-
break;
|
|
1600
|
-
case /* optional string search */ 6:
|
|
1601
|
-
message.search = reader.string();
|
|
1602
|
-
break;
|
|
1603
|
-
case /* int32 page_size */ 10:
|
|
1604
|
-
message.pageSize = reader.int32();
|
|
1605
|
-
break;
|
|
1606
|
-
case /* string page_token */ 11:
|
|
1607
|
-
message.pageToken = reader.string();
|
|
1608
|
-
break;
|
|
1609
|
-
default:
|
|
1610
|
-
let u = options.readUnknownField;
|
|
1611
|
-
if (u === "throw")
|
|
1612
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1613
|
-
let d = reader.skip(wireType);
|
|
1614
|
-
if (u !== false)
|
|
1615
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
return message;
|
|
1619
|
-
}
|
|
1620
|
-
internalBinaryWrite(message: ListActivityEventsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1621
|
-
/* repeated string event_types = 1; */
|
|
1622
|
-
for (let i = 0; i < message.eventTypes.length; i++)
|
|
1623
|
-
writer.tag(1, WireType.LengthDelimited).string(message.eventTypes[i]);
|
|
1624
|
-
/* optional string application_id = 2; */
|
|
1625
|
-
if (message.applicationId !== undefined)
|
|
1626
|
-
writer.tag(2, WireType.LengthDelimited).string(message.applicationId);
|
|
1627
|
-
/* optional sid.v1.account.ActivityEventStatus status_filter = 3; */
|
|
1628
|
-
if (message.statusFilter !== undefined)
|
|
1629
|
-
writer.tag(3, WireType.Varint).int32(message.statusFilter);
|
|
1630
|
-
/* optional google.protobuf.Timestamp date_from = 4; */
|
|
1631
|
-
if (message.dateFrom)
|
|
1632
|
-
Timestamp.internalBinaryWrite(message.dateFrom, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1633
|
-
/* optional google.protobuf.Timestamp date_to = 5; */
|
|
1634
|
-
if (message.dateTo)
|
|
1635
|
-
Timestamp.internalBinaryWrite(message.dateTo, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1636
|
-
/* optional string search = 6; */
|
|
1637
|
-
if (message.search !== undefined)
|
|
1638
|
-
writer.tag(6, WireType.LengthDelimited).string(message.search);
|
|
1639
|
-
/* int32 page_size = 10; */
|
|
1640
|
-
if (message.pageSize !== 0)
|
|
1641
|
-
writer.tag(10, WireType.Varint).int32(message.pageSize);
|
|
1642
|
-
/* string page_token = 11; */
|
|
1643
|
-
if (message.pageToken !== "")
|
|
1644
|
-
writer.tag(11, WireType.LengthDelimited).string(message.pageToken);
|
|
1645
|
-
let u = options.writeUnknownFields;
|
|
1646
|
-
if (u !== false)
|
|
1647
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1648
|
-
return writer;
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
/**
|
|
1652
|
-
* @generated MessageType for protobuf message sid.v1.account.ListActivityEventsRequest
|
|
1653
|
-
*/
|
|
1654
|
-
export const ListActivityEventsRequest = new ListActivityEventsRequest$Type();
|
|
1655
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1656
|
-
class ListActivityEventsResponse$Type extends MessageType<ListActivityEventsResponse> {
|
|
1657
|
-
constructor() {
|
|
1658
|
-
super("sid.v1.account.ListActivityEventsResponse", [
|
|
1659
|
-
{ no: 1, name: "events", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActivityEvent },
|
|
1660
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1661
|
-
{ no: 3, name: "total_count", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1662
|
-
]);
|
|
1663
|
-
}
|
|
1664
|
-
create(value?: PartialMessage<ListActivityEventsResponse>): ListActivityEventsResponse {
|
|
1665
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1666
|
-
message.events = [];
|
|
1667
|
-
message.nextPageToken = "";
|
|
1668
|
-
message.totalCount = 0;
|
|
1669
|
-
if (value !== undefined)
|
|
1670
|
-
reflectionMergePartial<ListActivityEventsResponse>(this, message, value);
|
|
1671
|
-
return message;
|
|
1672
|
-
}
|
|
1673
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListActivityEventsResponse): ListActivityEventsResponse {
|
|
1674
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1675
|
-
while (reader.pos < end) {
|
|
1676
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1677
|
-
switch (fieldNo) {
|
|
1678
|
-
case /* repeated sid.v1.account.ActivityEvent events */ 1:
|
|
1679
|
-
message.events.push(ActivityEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
1680
|
-
break;
|
|
1681
|
-
case /* string next_page_token */ 2:
|
|
1682
|
-
message.nextPageToken = reader.string();
|
|
1683
|
-
break;
|
|
1684
|
-
case /* int32 total_count */ 3:
|
|
1685
|
-
message.totalCount = reader.int32();
|
|
1686
|
-
break;
|
|
1687
|
-
default:
|
|
1688
|
-
let u = options.readUnknownField;
|
|
1689
|
-
if (u === "throw")
|
|
1690
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1691
|
-
let d = reader.skip(wireType);
|
|
1692
|
-
if (u !== false)
|
|
1693
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
return message;
|
|
1697
|
-
}
|
|
1698
|
-
internalBinaryWrite(message: ListActivityEventsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1699
|
-
/* repeated sid.v1.account.ActivityEvent events = 1; */
|
|
1700
|
-
for (let i = 0; i < message.events.length; i++)
|
|
1701
|
-
ActivityEvent.internalBinaryWrite(message.events[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1702
|
-
/* string next_page_token = 2; */
|
|
1703
|
-
if (message.nextPageToken !== "")
|
|
1704
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
1705
|
-
/* int32 total_count = 3; */
|
|
1706
|
-
if (message.totalCount !== 0)
|
|
1707
|
-
writer.tag(3, WireType.Varint).int32(message.totalCount);
|
|
1708
|
-
let u = options.writeUnknownFields;
|
|
1709
|
-
if (u !== false)
|
|
1710
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1711
|
-
return writer;
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
/**
|
|
1715
|
-
* @generated MessageType for protobuf message sid.v1.account.ListActivityEventsResponse
|
|
1716
|
-
*/
|
|
1717
|
-
export const ListActivityEventsResponse = new ListActivityEventsResponse$Type();
|
|
1718
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1719
|
-
class GetActivityEventDetailRequest$Type extends MessageType<GetActivityEventDetailRequest> {
|
|
1720
|
-
constructor() {
|
|
1721
|
-
super("sid.v1.account.GetActivityEventDetailRequest", [
|
|
1722
|
-
{ no: 1, name: "event_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1723
|
-
]);
|
|
1724
|
-
}
|
|
1725
|
-
create(value?: PartialMessage<GetActivityEventDetailRequest>): GetActivityEventDetailRequest {
|
|
1726
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1727
|
-
message.eventId = "";
|
|
1728
|
-
if (value !== undefined)
|
|
1729
|
-
reflectionMergePartial<GetActivityEventDetailRequest>(this, message, value);
|
|
1730
|
-
return message;
|
|
1731
|
-
}
|
|
1732
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetActivityEventDetailRequest): GetActivityEventDetailRequest {
|
|
1733
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1734
|
-
while (reader.pos < end) {
|
|
1735
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1736
|
-
switch (fieldNo) {
|
|
1737
|
-
case /* string event_id */ 1:
|
|
1738
|
-
message.eventId = reader.string();
|
|
1739
|
-
break;
|
|
1740
|
-
default:
|
|
1741
|
-
let u = options.readUnknownField;
|
|
1742
|
-
if (u === "throw")
|
|
1743
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1744
|
-
let d = reader.skip(wireType);
|
|
1745
|
-
if (u !== false)
|
|
1746
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
return message;
|
|
1750
|
-
}
|
|
1751
|
-
internalBinaryWrite(message: GetActivityEventDetailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1752
|
-
/* string event_id = 1; */
|
|
1753
|
-
if (message.eventId !== "")
|
|
1754
|
-
writer.tag(1, WireType.LengthDelimited).string(message.eventId);
|
|
1755
|
-
let u = options.writeUnknownFields;
|
|
1756
|
-
if (u !== false)
|
|
1757
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1758
|
-
return writer;
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* @generated MessageType for protobuf message sid.v1.account.GetActivityEventDetailRequest
|
|
1763
|
-
*/
|
|
1764
|
-
export const GetActivityEventDetailRequest = new GetActivityEventDetailRequest$Type();
|
|
1765
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1766
|
-
class ReportSuspiciousEventRequest$Type extends MessageType<ReportSuspiciousEventRequest> {
|
|
1767
|
-
constructor() {
|
|
1768
|
-
super("sid.v1.account.ReportSuspiciousEventRequest", [
|
|
1769
|
-
{ no: 1, name: "event_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1770
|
-
{ no: 2, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1771
|
-
]);
|
|
1772
|
-
}
|
|
1773
|
-
create(value?: PartialMessage<ReportSuspiciousEventRequest>): ReportSuspiciousEventRequest {
|
|
1774
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1775
|
-
message.eventId = "";
|
|
1776
|
-
if (value !== undefined)
|
|
1777
|
-
reflectionMergePartial<ReportSuspiciousEventRequest>(this, message, value);
|
|
1778
|
-
return message;
|
|
1779
|
-
}
|
|
1780
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReportSuspiciousEventRequest): ReportSuspiciousEventRequest {
|
|
1781
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1782
|
-
while (reader.pos < end) {
|
|
1783
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1784
|
-
switch (fieldNo) {
|
|
1785
|
-
case /* string event_id */ 1:
|
|
1786
|
-
message.eventId = reader.string();
|
|
1787
|
-
break;
|
|
1788
|
-
case /* optional string description */ 2:
|
|
1789
|
-
message.description = reader.string();
|
|
1790
|
-
break;
|
|
1791
|
-
default:
|
|
1792
|
-
let u = options.readUnknownField;
|
|
1793
|
-
if (u === "throw")
|
|
1794
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1795
|
-
let d = reader.skip(wireType);
|
|
1796
|
-
if (u !== false)
|
|
1797
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
return message;
|
|
1801
|
-
}
|
|
1802
|
-
internalBinaryWrite(message: ReportSuspiciousEventRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1803
|
-
/* string event_id = 1; */
|
|
1804
|
-
if (message.eventId !== "")
|
|
1805
|
-
writer.tag(1, WireType.LengthDelimited).string(message.eventId);
|
|
1806
|
-
/* optional string description = 2; */
|
|
1807
|
-
if (message.description !== undefined)
|
|
1808
|
-
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
1809
|
-
let u = options.writeUnknownFields;
|
|
1810
|
-
if (u !== false)
|
|
1811
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1812
|
-
return writer;
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
/**
|
|
1816
|
-
* @generated MessageType for protobuf message sid.v1.account.ReportSuspiciousEventRequest
|
|
1817
|
-
*/
|
|
1818
|
-
export const ReportSuspiciousEventRequest = new ReportSuspiciousEventRequest$Type();
|
|
1819
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1820
|
-
class ListLinkedAccountsResponse$Type extends MessageType<ListLinkedAccountsResponse> {
|
|
1821
|
-
constructor() {
|
|
1822
|
-
super("sid.v1.account.ListLinkedAccountsResponse", [
|
|
1823
|
-
{ no: 1, name: "accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LinkedAccount },
|
|
1824
|
-
{ no: 2, name: "has_other_credentials", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1825
|
-
]);
|
|
1826
|
-
}
|
|
1827
|
-
create(value?: PartialMessage<ListLinkedAccountsResponse>): ListLinkedAccountsResponse {
|
|
1828
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1829
|
-
message.accounts = [];
|
|
1830
|
-
message.hasOtherCredentials = false;
|
|
1831
|
-
if (value !== undefined)
|
|
1832
|
-
reflectionMergePartial<ListLinkedAccountsResponse>(this, message, value);
|
|
1833
|
-
return message;
|
|
1834
|
-
}
|
|
1835
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListLinkedAccountsResponse): ListLinkedAccountsResponse {
|
|
1836
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1837
|
-
while (reader.pos < end) {
|
|
1838
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1839
|
-
switch (fieldNo) {
|
|
1840
|
-
case /* repeated sid.v1.account.LinkedAccount accounts */ 1:
|
|
1841
|
-
message.accounts.push(LinkedAccount.internalBinaryRead(reader, reader.uint32(), options));
|
|
1842
|
-
break;
|
|
1843
|
-
case /* bool has_other_credentials */ 2:
|
|
1844
|
-
message.hasOtherCredentials = reader.bool();
|
|
1845
|
-
break;
|
|
1846
|
-
default:
|
|
1847
|
-
let u = options.readUnknownField;
|
|
1848
|
-
if (u === "throw")
|
|
1849
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1850
|
-
let d = reader.skip(wireType);
|
|
1851
|
-
if (u !== false)
|
|
1852
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
return message;
|
|
1856
|
-
}
|
|
1857
|
-
internalBinaryWrite(message: ListLinkedAccountsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1858
|
-
/* repeated sid.v1.account.LinkedAccount accounts = 1; */
|
|
1859
|
-
for (let i = 0; i < message.accounts.length; i++)
|
|
1860
|
-
LinkedAccount.internalBinaryWrite(message.accounts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1861
|
-
/* bool has_other_credentials = 2; */
|
|
1862
|
-
if (message.hasOtherCredentials !== false)
|
|
1863
|
-
writer.tag(2, WireType.Varint).bool(message.hasOtherCredentials);
|
|
1864
|
-
let u = options.writeUnknownFields;
|
|
1865
|
-
if (u !== false)
|
|
1866
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1867
|
-
return writer;
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
/**
|
|
1871
|
-
* @generated MessageType for protobuf message sid.v1.account.ListLinkedAccountsResponse
|
|
1872
|
-
*/
|
|
1873
|
-
export const ListLinkedAccountsResponse = new ListLinkedAccountsResponse$Type();
|
|
1874
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1875
|
-
class LinkAccountRequest$Type extends MessageType<LinkAccountRequest> {
|
|
1876
|
-
constructor() {
|
|
1877
|
-
super("sid.v1.account.LinkAccountRequest", [
|
|
1878
|
-
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1879
|
-
{ no: 2, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1880
|
-
]);
|
|
1881
|
-
}
|
|
1882
|
-
create(value?: PartialMessage<LinkAccountRequest>): LinkAccountRequest {
|
|
1883
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1884
|
-
message.providerId = "";
|
|
1885
|
-
message.redirectUri = "";
|
|
1886
|
-
if (value !== undefined)
|
|
1887
|
-
reflectionMergePartial<LinkAccountRequest>(this, message, value);
|
|
1888
|
-
return message;
|
|
1889
|
-
}
|
|
1890
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LinkAccountRequest): LinkAccountRequest {
|
|
1891
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1892
|
-
while (reader.pos < end) {
|
|
1893
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1894
|
-
switch (fieldNo) {
|
|
1895
|
-
case /* string provider_id */ 1:
|
|
1896
|
-
message.providerId = reader.string();
|
|
1897
|
-
break;
|
|
1898
|
-
case /* string redirect_uri */ 2:
|
|
1899
|
-
message.redirectUri = reader.string();
|
|
1900
|
-
break;
|
|
1901
|
-
default:
|
|
1902
|
-
let u = options.readUnknownField;
|
|
1903
|
-
if (u === "throw")
|
|
1904
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1905
|
-
let d = reader.skip(wireType);
|
|
1906
|
-
if (u !== false)
|
|
1907
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
return message;
|
|
1911
|
-
}
|
|
1912
|
-
internalBinaryWrite(message: LinkAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1913
|
-
/* string provider_id = 1; */
|
|
1914
|
-
if (message.providerId !== "")
|
|
1915
|
-
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
1916
|
-
/* string redirect_uri = 2; */
|
|
1917
|
-
if (message.redirectUri !== "")
|
|
1918
|
-
writer.tag(2, WireType.LengthDelimited).string(message.redirectUri);
|
|
1919
|
-
let u = options.writeUnknownFields;
|
|
1920
|
-
if (u !== false)
|
|
1921
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1922
|
-
return writer;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
/**
|
|
1926
|
-
* @generated MessageType for protobuf message sid.v1.account.LinkAccountRequest
|
|
1927
|
-
*/
|
|
1928
|
-
export const LinkAccountRequest = new LinkAccountRequest$Type();
|
|
1929
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1930
|
-
class LinkAccountResponse$Type extends MessageType<LinkAccountResponse> {
|
|
1931
|
-
constructor() {
|
|
1932
|
-
super("sid.v1.account.LinkAccountResponse", [
|
|
1933
|
-
{ no: 1, name: "redirect_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1934
|
-
]);
|
|
1935
|
-
}
|
|
1936
|
-
create(value?: PartialMessage<LinkAccountResponse>): LinkAccountResponse {
|
|
1937
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1938
|
-
message.redirectUrl = "";
|
|
1939
|
-
if (value !== undefined)
|
|
1940
|
-
reflectionMergePartial<LinkAccountResponse>(this, message, value);
|
|
1941
|
-
return message;
|
|
1942
|
-
}
|
|
1943
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LinkAccountResponse): LinkAccountResponse {
|
|
1944
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1945
|
-
while (reader.pos < end) {
|
|
1946
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1947
|
-
switch (fieldNo) {
|
|
1948
|
-
case /* string redirect_url */ 1:
|
|
1949
|
-
message.redirectUrl = reader.string();
|
|
1950
|
-
break;
|
|
1951
|
-
default:
|
|
1952
|
-
let u = options.readUnknownField;
|
|
1953
|
-
if (u === "throw")
|
|
1954
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1955
|
-
let d = reader.skip(wireType);
|
|
1956
|
-
if (u !== false)
|
|
1957
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
return message;
|
|
1961
|
-
}
|
|
1962
|
-
internalBinaryWrite(message: LinkAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1963
|
-
/* string redirect_url = 1; */
|
|
1964
|
-
if (message.redirectUrl !== "")
|
|
1965
|
-
writer.tag(1, WireType.LengthDelimited).string(message.redirectUrl);
|
|
1966
|
-
let u = options.writeUnknownFields;
|
|
1967
|
-
if (u !== false)
|
|
1968
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1969
|
-
return writer;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
/**
|
|
1973
|
-
* @generated MessageType for protobuf message sid.v1.account.LinkAccountResponse
|
|
1974
|
-
*/
|
|
1975
|
-
export const LinkAccountResponse = new LinkAccountResponse$Type();
|
|
1976
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1977
|
-
class UnlinkAccountRequest$Type extends MessageType<UnlinkAccountRequest> {
|
|
1978
|
-
constructor() {
|
|
1979
|
-
super("sid.v1.account.UnlinkAccountRequest", [
|
|
1980
|
-
{ no: 1, name: "linked_account_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1981
|
-
]);
|
|
1982
|
-
}
|
|
1983
|
-
create(value?: PartialMessage<UnlinkAccountRequest>): UnlinkAccountRequest {
|
|
1984
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1985
|
-
message.linkedAccountId = "";
|
|
1986
|
-
if (value !== undefined)
|
|
1987
|
-
reflectionMergePartial<UnlinkAccountRequest>(this, message, value);
|
|
1988
|
-
return message;
|
|
1989
|
-
}
|
|
1990
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnlinkAccountRequest): UnlinkAccountRequest {
|
|
1991
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1992
|
-
while (reader.pos < end) {
|
|
1993
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1994
|
-
switch (fieldNo) {
|
|
1995
|
-
case /* string linked_account_id */ 1:
|
|
1996
|
-
message.linkedAccountId = reader.string();
|
|
1997
|
-
break;
|
|
1998
|
-
default:
|
|
1999
|
-
let u = options.readUnknownField;
|
|
2000
|
-
if (u === "throw")
|
|
2001
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2002
|
-
let d = reader.skip(wireType);
|
|
2003
|
-
if (u !== false)
|
|
2004
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
return message;
|
|
2008
|
-
}
|
|
2009
|
-
internalBinaryWrite(message: UnlinkAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2010
|
-
/* string linked_account_id = 1; */
|
|
2011
|
-
if (message.linkedAccountId !== "")
|
|
2012
|
-
writer.tag(1, WireType.LengthDelimited).string(message.linkedAccountId);
|
|
2013
|
-
let u = options.writeUnknownFields;
|
|
2014
|
-
if (u !== false)
|
|
2015
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2016
|
-
return writer;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
/**
|
|
2020
|
-
* @generated MessageType for protobuf message sid.v1.account.UnlinkAccountRequest
|
|
2021
|
-
*/
|
|
2022
|
-
export const UnlinkAccountRequest = new UnlinkAccountRequest$Type();
|
|
2023
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2024
|
-
class ReauthenticateLinkRequest$Type extends MessageType<ReauthenticateLinkRequest> {
|
|
2025
|
-
constructor() {
|
|
2026
|
-
super("sid.v1.account.ReauthenticateLinkRequest", [
|
|
2027
|
-
{ no: 1, name: "linked_account_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2028
|
-
{ no: 2, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2029
|
-
]);
|
|
2030
|
-
}
|
|
2031
|
-
create(value?: PartialMessage<ReauthenticateLinkRequest>): ReauthenticateLinkRequest {
|
|
2032
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2033
|
-
message.linkedAccountId = "";
|
|
2034
|
-
message.redirectUri = "";
|
|
2035
|
-
if (value !== undefined)
|
|
2036
|
-
reflectionMergePartial<ReauthenticateLinkRequest>(this, message, value);
|
|
2037
|
-
return message;
|
|
2038
|
-
}
|
|
2039
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReauthenticateLinkRequest): ReauthenticateLinkRequest {
|
|
2040
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2041
|
-
while (reader.pos < end) {
|
|
2042
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2043
|
-
switch (fieldNo) {
|
|
2044
|
-
case /* string linked_account_id */ 1:
|
|
2045
|
-
message.linkedAccountId = reader.string();
|
|
2046
|
-
break;
|
|
2047
|
-
case /* string redirect_uri */ 2:
|
|
2048
|
-
message.redirectUri = reader.string();
|
|
2049
|
-
break;
|
|
2050
|
-
default:
|
|
2051
|
-
let u = options.readUnknownField;
|
|
2052
|
-
if (u === "throw")
|
|
2053
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2054
|
-
let d = reader.skip(wireType);
|
|
2055
|
-
if (u !== false)
|
|
2056
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
return message;
|
|
2060
|
-
}
|
|
2061
|
-
internalBinaryWrite(message: ReauthenticateLinkRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2062
|
-
/* string linked_account_id = 1; */
|
|
2063
|
-
if (message.linkedAccountId !== "")
|
|
2064
|
-
writer.tag(1, WireType.LengthDelimited).string(message.linkedAccountId);
|
|
2065
|
-
/* string redirect_uri = 2; */
|
|
2066
|
-
if (message.redirectUri !== "")
|
|
2067
|
-
writer.tag(2, WireType.LengthDelimited).string(message.redirectUri);
|
|
2068
|
-
let u = options.writeUnknownFields;
|
|
2069
|
-
if (u !== false)
|
|
2070
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2071
|
-
return writer;
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
/**
|
|
2075
|
-
* @generated MessageType for protobuf message sid.v1.account.ReauthenticateLinkRequest
|
|
2076
|
-
*/
|
|
2077
|
-
export const ReauthenticateLinkRequest = new ReauthenticateLinkRequest$Type();
|
|
2078
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2079
|
-
class ReauthenticateLinkResponse$Type extends MessageType<ReauthenticateLinkResponse> {
|
|
2080
|
-
constructor() {
|
|
2081
|
-
super("sid.v1.account.ReauthenticateLinkResponse", [
|
|
2082
|
-
{ no: 1, name: "redirect_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2083
|
-
]);
|
|
2084
|
-
}
|
|
2085
|
-
create(value?: PartialMessage<ReauthenticateLinkResponse>): ReauthenticateLinkResponse {
|
|
2086
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2087
|
-
message.redirectUrl = "";
|
|
2088
|
-
if (value !== undefined)
|
|
2089
|
-
reflectionMergePartial<ReauthenticateLinkResponse>(this, message, value);
|
|
2090
|
-
return message;
|
|
2091
|
-
}
|
|
2092
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReauthenticateLinkResponse): ReauthenticateLinkResponse {
|
|
2093
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2094
|
-
while (reader.pos < end) {
|
|
2095
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2096
|
-
switch (fieldNo) {
|
|
2097
|
-
case /* string redirect_url */ 1:
|
|
2098
|
-
message.redirectUrl = reader.string();
|
|
2099
|
-
break;
|
|
2100
|
-
default:
|
|
2101
|
-
let u = options.readUnknownField;
|
|
2102
|
-
if (u === "throw")
|
|
2103
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2104
|
-
let d = reader.skip(wireType);
|
|
2105
|
-
if (u !== false)
|
|
2106
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
return message;
|
|
2110
|
-
}
|
|
2111
|
-
internalBinaryWrite(message: ReauthenticateLinkResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2112
|
-
/* string redirect_url = 1; */
|
|
2113
|
-
if (message.redirectUrl !== "")
|
|
2114
|
-
writer.tag(1, WireType.LengthDelimited).string(message.redirectUrl);
|
|
2115
|
-
let u = options.writeUnknownFields;
|
|
2116
|
-
if (u !== false)
|
|
2117
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2118
|
-
return writer;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
/**
|
|
2122
|
-
* @generated MessageType for protobuf message sid.v1.account.ReauthenticateLinkResponse
|
|
2123
|
-
*/
|
|
2124
|
-
export const ReauthenticateLinkResponse = new ReauthenticateLinkResponse$Type();
|
|
2125
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2126
|
-
class AvailableApp$Type extends MessageType<AvailableApp> {
|
|
2127
|
-
constructor() {
|
|
2128
|
-
super("sid.v1.account.AvailableApp", [
|
|
2129
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2130
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2131
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2132
|
-
{ no: 4, name: "favicon_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2133
|
-
{ no: 5, name: "domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2134
|
-
{ no: 6, name: "last_used", kind: "message", T: () => Timestamp }
|
|
2135
|
-
]);
|
|
2136
|
-
}
|
|
2137
|
-
create(value?: PartialMessage<AvailableApp>): AvailableApp {
|
|
2138
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2139
|
-
message.id = "";
|
|
2140
|
-
message.name = "";
|
|
2141
|
-
message.domain = "";
|
|
2142
|
-
if (value !== undefined)
|
|
2143
|
-
reflectionMergePartial<AvailableApp>(this, message, value);
|
|
2144
|
-
return message;
|
|
2145
|
-
}
|
|
2146
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AvailableApp): AvailableApp {
|
|
2147
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2148
|
-
while (reader.pos < end) {
|
|
2149
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2150
|
-
switch (fieldNo) {
|
|
2151
|
-
case /* string id */ 1:
|
|
2152
|
-
message.id = reader.string();
|
|
2153
|
-
break;
|
|
2154
|
-
case /* string name */ 2:
|
|
2155
|
-
message.name = reader.string();
|
|
2156
|
-
break;
|
|
2157
|
-
case /* optional string description */ 3:
|
|
2158
|
-
message.description = reader.string();
|
|
2159
|
-
break;
|
|
2160
|
-
case /* optional string favicon_url */ 4:
|
|
2161
|
-
message.faviconUrl = reader.string();
|
|
2162
|
-
break;
|
|
2163
|
-
case /* string domain */ 5:
|
|
2164
|
-
message.domain = reader.string();
|
|
2165
|
-
break;
|
|
2166
|
-
case /* optional google.protobuf.Timestamp last_used */ 6:
|
|
2167
|
-
message.lastUsed = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastUsed);
|
|
2168
|
-
break;
|
|
2169
|
-
default:
|
|
2170
|
-
let u = options.readUnknownField;
|
|
2171
|
-
if (u === "throw")
|
|
2172
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2173
|
-
let d = reader.skip(wireType);
|
|
2174
|
-
if (u !== false)
|
|
2175
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
return message;
|
|
2179
|
-
}
|
|
2180
|
-
internalBinaryWrite(message: AvailableApp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2181
|
-
/* string id = 1; */
|
|
2182
|
-
if (message.id !== "")
|
|
2183
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2184
|
-
/* string name = 2; */
|
|
2185
|
-
if (message.name !== "")
|
|
2186
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2187
|
-
/* optional string description = 3; */
|
|
2188
|
-
if (message.description !== undefined)
|
|
2189
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
2190
|
-
/* optional string favicon_url = 4; */
|
|
2191
|
-
if (message.faviconUrl !== undefined)
|
|
2192
|
-
writer.tag(4, WireType.LengthDelimited).string(message.faviconUrl);
|
|
2193
|
-
/* string domain = 5; */
|
|
2194
|
-
if (message.domain !== "")
|
|
2195
|
-
writer.tag(5, WireType.LengthDelimited).string(message.domain);
|
|
2196
|
-
/* optional google.protobuf.Timestamp last_used = 6; */
|
|
2197
|
-
if (message.lastUsed)
|
|
2198
|
-
Timestamp.internalBinaryWrite(message.lastUsed, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
2199
|
-
let u = options.writeUnknownFields;
|
|
2200
|
-
if (u !== false)
|
|
2201
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2202
|
-
return writer;
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
/**
|
|
2206
|
-
* @generated MessageType for protobuf message sid.v1.account.AvailableApp
|
|
2207
|
-
*/
|
|
2208
|
-
export const AvailableApp = new AvailableApp$Type();
|
|
2209
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2210
|
-
class ListAvailableAppsResponse$Type extends MessageType<ListAvailableAppsResponse> {
|
|
2211
|
-
constructor() {
|
|
2212
|
-
super("sid.v1.account.ListAvailableAppsResponse", [
|
|
2213
|
-
{ no: 1, name: "apps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AvailableApp }
|
|
2214
|
-
]);
|
|
2215
|
-
}
|
|
2216
|
-
create(value?: PartialMessage<ListAvailableAppsResponse>): ListAvailableAppsResponse {
|
|
2217
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2218
|
-
message.apps = [];
|
|
2219
|
-
if (value !== undefined)
|
|
2220
|
-
reflectionMergePartial<ListAvailableAppsResponse>(this, message, value);
|
|
2221
|
-
return message;
|
|
2222
|
-
}
|
|
2223
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAvailableAppsResponse): ListAvailableAppsResponse {
|
|
2224
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2225
|
-
while (reader.pos < end) {
|
|
2226
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2227
|
-
switch (fieldNo) {
|
|
2228
|
-
case /* repeated sid.v1.account.AvailableApp apps */ 1:
|
|
2229
|
-
message.apps.push(AvailableApp.internalBinaryRead(reader, reader.uint32(), options));
|
|
2230
|
-
break;
|
|
2231
|
-
default:
|
|
2232
|
-
let u = options.readUnknownField;
|
|
2233
|
-
if (u === "throw")
|
|
2234
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2235
|
-
let d = reader.skip(wireType);
|
|
2236
|
-
if (u !== false)
|
|
2237
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
return message;
|
|
2241
|
-
}
|
|
2242
|
-
internalBinaryWrite(message: ListAvailableAppsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2243
|
-
/* repeated sid.v1.account.AvailableApp apps = 1; */
|
|
2244
|
-
for (let i = 0; i < message.apps.length; i++)
|
|
2245
|
-
AvailableApp.internalBinaryWrite(message.apps[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2246
|
-
let u = options.writeUnknownFields;
|
|
2247
|
-
if (u !== false)
|
|
2248
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2249
|
-
return writer;
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
/**
|
|
2253
|
-
* @generated MessageType for protobuf message sid.v1.account.ListAvailableAppsResponse
|
|
2254
|
-
*/
|
|
2255
|
-
export const ListAvailableAppsResponse = new ListAvailableAppsResponse$Type();
|
|
2256
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2257
|
-
class LaunchAppRequest$Type extends MessageType<LaunchAppRequest> {
|
|
2258
|
-
constructor() {
|
|
2259
|
-
super("sid.v1.account.LaunchAppRequest", [
|
|
2260
|
-
{ no: 1, name: "app_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2261
|
-
]);
|
|
2262
|
-
}
|
|
2263
|
-
create(value?: PartialMessage<LaunchAppRequest>): LaunchAppRequest {
|
|
2264
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2265
|
-
message.appId = "";
|
|
2266
|
-
if (value !== undefined)
|
|
2267
|
-
reflectionMergePartial<LaunchAppRequest>(this, message, value);
|
|
2268
|
-
return message;
|
|
2269
|
-
}
|
|
2270
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LaunchAppRequest): LaunchAppRequest {
|
|
2271
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2272
|
-
while (reader.pos < end) {
|
|
2273
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2274
|
-
switch (fieldNo) {
|
|
2275
|
-
case /* string app_id */ 1:
|
|
2276
|
-
message.appId = reader.string();
|
|
2277
|
-
break;
|
|
2278
|
-
default:
|
|
2279
|
-
let u = options.readUnknownField;
|
|
2280
|
-
if (u === "throw")
|
|
2281
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2282
|
-
let d = reader.skip(wireType);
|
|
2283
|
-
if (u !== false)
|
|
2284
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
return message;
|
|
2288
|
-
}
|
|
2289
|
-
internalBinaryWrite(message: LaunchAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2290
|
-
/* string app_id = 1; */
|
|
2291
|
-
if (message.appId !== "")
|
|
2292
|
-
writer.tag(1, WireType.LengthDelimited).string(message.appId);
|
|
2293
|
-
let u = options.writeUnknownFields;
|
|
2294
|
-
if (u !== false)
|
|
2295
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2296
|
-
return writer;
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
/**
|
|
2300
|
-
* @generated MessageType for protobuf message sid.v1.account.LaunchAppRequest
|
|
2301
|
-
*/
|
|
2302
|
-
export const LaunchAppRequest = new LaunchAppRequest$Type();
|
|
2303
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2304
|
-
class LaunchAppResponse$Type extends MessageType<LaunchAppResponse> {
|
|
2305
|
-
constructor() {
|
|
2306
|
-
super("sid.v1.account.LaunchAppResponse", [
|
|
2307
|
-
{ no: 1, name: "redirect_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2308
|
-
]);
|
|
2309
|
-
}
|
|
2310
|
-
create(value?: PartialMessage<LaunchAppResponse>): LaunchAppResponse {
|
|
2311
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2312
|
-
message.redirectUrl = "";
|
|
2313
|
-
if (value !== undefined)
|
|
2314
|
-
reflectionMergePartial<LaunchAppResponse>(this, message, value);
|
|
2315
|
-
return message;
|
|
2316
|
-
}
|
|
2317
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LaunchAppResponse): LaunchAppResponse {
|
|
2318
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2319
|
-
while (reader.pos < end) {
|
|
2320
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2321
|
-
switch (fieldNo) {
|
|
2322
|
-
case /* string redirect_url */ 1:
|
|
2323
|
-
message.redirectUrl = reader.string();
|
|
2324
|
-
break;
|
|
2325
|
-
default:
|
|
2326
|
-
let u = options.readUnknownField;
|
|
2327
|
-
if (u === "throw")
|
|
2328
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2329
|
-
let d = reader.skip(wireType);
|
|
2330
|
-
if (u !== false)
|
|
2331
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
return message;
|
|
2335
|
-
}
|
|
2336
|
-
internalBinaryWrite(message: LaunchAppResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2337
|
-
/* string redirect_url = 1; */
|
|
2338
|
-
if (message.redirectUrl !== "")
|
|
2339
|
-
writer.tag(1, WireType.LengthDelimited).string(message.redirectUrl);
|
|
2340
|
-
let u = options.writeUnknownFields;
|
|
2341
|
-
if (u !== false)
|
|
2342
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2343
|
-
return writer;
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
/**
|
|
2347
|
-
* @generated MessageType for protobuf message sid.v1.account.LaunchAppResponse
|
|
2348
|
-
*/
|
|
2349
|
-
export const LaunchAppResponse = new LaunchAppResponse$Type();
|
|
2350
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2351
|
-
class PasswordlessStatus$Type extends MessageType<PasswordlessStatus> {
|
|
2352
|
-
constructor() {
|
|
2353
|
-
super("sid.v1.account.PasswordlessStatus", [
|
|
2354
|
-
{ no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2355
|
-
{ no: 2, name: "has_passkey_or_security_key", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2356
|
-
{ no: 3, name: "has_recovery_method", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2357
|
-
{ no: 4, name: "can_enable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2358
|
-
]);
|
|
2359
|
-
}
|
|
2360
|
-
create(value?: PartialMessage<PasswordlessStatus>): PasswordlessStatus {
|
|
2361
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2362
|
-
message.enabled = false;
|
|
2363
|
-
message.hasPasskeyOrSecurityKey = false;
|
|
2364
|
-
message.hasRecoveryMethod = false;
|
|
2365
|
-
message.canEnable = false;
|
|
2366
|
-
if (value !== undefined)
|
|
2367
|
-
reflectionMergePartial<PasswordlessStatus>(this, message, value);
|
|
2368
|
-
return message;
|
|
2369
|
-
}
|
|
2370
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordlessStatus): PasswordlessStatus {
|
|
2371
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2372
|
-
while (reader.pos < end) {
|
|
2373
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2374
|
-
switch (fieldNo) {
|
|
2375
|
-
case /* bool enabled */ 1:
|
|
2376
|
-
message.enabled = reader.bool();
|
|
2377
|
-
break;
|
|
2378
|
-
case /* bool has_passkey_or_security_key */ 2:
|
|
2379
|
-
message.hasPasskeyOrSecurityKey = reader.bool();
|
|
2380
|
-
break;
|
|
2381
|
-
case /* bool has_recovery_method */ 3:
|
|
2382
|
-
message.hasRecoveryMethod = reader.bool();
|
|
2383
|
-
break;
|
|
2384
|
-
case /* bool can_enable */ 4:
|
|
2385
|
-
message.canEnable = reader.bool();
|
|
2386
|
-
break;
|
|
2387
|
-
default:
|
|
2388
|
-
let u = options.readUnknownField;
|
|
2389
|
-
if (u === "throw")
|
|
2390
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2391
|
-
let d = reader.skip(wireType);
|
|
2392
|
-
if (u !== false)
|
|
2393
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
return message;
|
|
2397
|
-
}
|
|
2398
|
-
internalBinaryWrite(message: PasswordlessStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2399
|
-
/* bool enabled = 1; */
|
|
2400
|
-
if (message.enabled !== false)
|
|
2401
|
-
writer.tag(1, WireType.Varint).bool(message.enabled);
|
|
2402
|
-
/* bool has_passkey_or_security_key = 2; */
|
|
2403
|
-
if (message.hasPasskeyOrSecurityKey !== false)
|
|
2404
|
-
writer.tag(2, WireType.Varint).bool(message.hasPasskeyOrSecurityKey);
|
|
2405
|
-
/* bool has_recovery_method = 3; */
|
|
2406
|
-
if (message.hasRecoveryMethod !== false)
|
|
2407
|
-
writer.tag(3, WireType.Varint).bool(message.hasRecoveryMethod);
|
|
2408
|
-
/* bool can_enable = 4; */
|
|
2409
|
-
if (message.canEnable !== false)
|
|
2410
|
-
writer.tag(4, WireType.Varint).bool(message.canEnable);
|
|
2411
|
-
let u = options.writeUnknownFields;
|
|
2412
|
-
if (u !== false)
|
|
2413
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2414
|
-
return writer;
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
/**
|
|
2418
|
-
* @generated MessageType for protobuf message sid.v1.account.PasswordlessStatus
|
|
2419
|
-
*/
|
|
2420
|
-
export const PasswordlessStatus = new PasswordlessStatus$Type();
|
|
2421
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2422
|
-
class DisablePasswordlessResponse$Type extends MessageType<DisablePasswordlessResponse> {
|
|
2423
|
-
constructor() {
|
|
2424
|
-
super("sid.v1.account.DisablePasswordlessResponse", [
|
|
2425
|
-
{ no: 1, name: "enrollment_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2426
|
-
]);
|
|
2427
|
-
}
|
|
2428
|
-
create(value?: PartialMessage<DisablePasswordlessResponse>): DisablePasswordlessResponse {
|
|
2429
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2430
|
-
message.enrollmentUrl = "";
|
|
2431
|
-
if (value !== undefined)
|
|
2432
|
-
reflectionMergePartial<DisablePasswordlessResponse>(this, message, value);
|
|
2433
|
-
return message;
|
|
2434
|
-
}
|
|
2435
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisablePasswordlessResponse): DisablePasswordlessResponse {
|
|
2436
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2437
|
-
while (reader.pos < end) {
|
|
2438
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2439
|
-
switch (fieldNo) {
|
|
2440
|
-
case /* string enrollment_url */ 1:
|
|
2441
|
-
message.enrollmentUrl = reader.string();
|
|
2442
|
-
break;
|
|
2443
|
-
default:
|
|
2444
|
-
let u = options.readUnknownField;
|
|
2445
|
-
if (u === "throw")
|
|
2446
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2447
|
-
let d = reader.skip(wireType);
|
|
2448
|
-
if (u !== false)
|
|
2449
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2450
|
-
}
|
|
2451
|
-
}
|
|
2452
|
-
return message;
|
|
2453
|
-
}
|
|
2454
|
-
internalBinaryWrite(message: DisablePasswordlessResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2455
|
-
/* string enrollment_url = 1; */
|
|
2456
|
-
if (message.enrollmentUrl !== "")
|
|
2457
|
-
writer.tag(1, WireType.LengthDelimited).string(message.enrollmentUrl);
|
|
2458
|
-
let u = options.writeUnknownFields;
|
|
2459
|
-
if (u !== false)
|
|
2460
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2461
|
-
return writer;
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
/**
|
|
2465
|
-
* @generated MessageType for protobuf message sid.v1.account.DisablePasswordlessResponse
|
|
2466
|
-
*/
|
|
2467
|
-
export const DisablePasswordlessResponse = new DisablePasswordlessResponse$Type();
|
|
2468
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2469
|
-
class NotificationPreferences$Type extends MessageType<NotificationPreferences> {
|
|
2470
|
-
constructor() {
|
|
2471
|
-
super("sid.v1.account.NotificationPreferences", [
|
|
2472
|
-
{ no: 1, name: "categories", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NotificationCategoryPreference }
|
|
2473
|
-
]);
|
|
2474
|
-
}
|
|
2475
|
-
create(value?: PartialMessage<NotificationPreferences>): NotificationPreferences {
|
|
2476
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2477
|
-
message.categories = [];
|
|
2478
|
-
if (value !== undefined)
|
|
2479
|
-
reflectionMergePartial<NotificationPreferences>(this, message, value);
|
|
2480
|
-
return message;
|
|
2481
|
-
}
|
|
2482
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotificationPreferences): NotificationPreferences {
|
|
2483
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2484
|
-
while (reader.pos < end) {
|
|
2485
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2486
|
-
switch (fieldNo) {
|
|
2487
|
-
case /* repeated sid.v1.account.NotificationCategoryPreference categories */ 1:
|
|
2488
|
-
message.categories.push(NotificationCategoryPreference.internalBinaryRead(reader, reader.uint32(), options));
|
|
2489
|
-
break;
|
|
2490
|
-
default:
|
|
2491
|
-
let u = options.readUnknownField;
|
|
2492
|
-
if (u === "throw")
|
|
2493
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2494
|
-
let d = reader.skip(wireType);
|
|
2495
|
-
if (u !== false)
|
|
2496
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
return message;
|
|
2500
|
-
}
|
|
2501
|
-
internalBinaryWrite(message: NotificationPreferences, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2502
|
-
/* repeated sid.v1.account.NotificationCategoryPreference categories = 1; */
|
|
2503
|
-
for (let i = 0; i < message.categories.length; i++)
|
|
2504
|
-
NotificationCategoryPreference.internalBinaryWrite(message.categories[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2505
|
-
let u = options.writeUnknownFields;
|
|
2506
|
-
if (u !== false)
|
|
2507
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2508
|
-
return writer;
|
|
2509
|
-
}
|
|
2510
|
-
}
|
|
2511
|
-
/**
|
|
2512
|
-
* @generated MessageType for protobuf message sid.v1.account.NotificationPreferences
|
|
2513
|
-
*/
|
|
2514
|
-
export const NotificationPreferences = new NotificationPreferences$Type();
|
|
2515
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2516
|
-
class NotificationCategoryPreference$Type extends MessageType<NotificationCategoryPreference> {
|
|
2517
|
-
constructor() {
|
|
2518
|
-
super("sid.v1.account.NotificationCategoryPreference", [
|
|
2519
|
-
{ no: 1, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2520
|
-
{ no: 2, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2521
|
-
{ no: 3, name: "channels", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2522
|
-
{ no: 4, name: "mandatory", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2523
|
-
]);
|
|
2524
|
-
}
|
|
2525
|
-
create(value?: PartialMessage<NotificationCategoryPreference>): NotificationCategoryPreference {
|
|
2526
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2527
|
-
message.category = "";
|
|
2528
|
-
message.enabled = false;
|
|
2529
|
-
message.channels = [];
|
|
2530
|
-
message.mandatory = false;
|
|
2531
|
-
if (value !== undefined)
|
|
2532
|
-
reflectionMergePartial<NotificationCategoryPreference>(this, message, value);
|
|
2533
|
-
return message;
|
|
2534
|
-
}
|
|
2535
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotificationCategoryPreference): NotificationCategoryPreference {
|
|
2536
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2537
|
-
while (reader.pos < end) {
|
|
2538
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2539
|
-
switch (fieldNo) {
|
|
2540
|
-
case /* string category */ 1:
|
|
2541
|
-
message.category = reader.string();
|
|
2542
|
-
break;
|
|
2543
|
-
case /* bool enabled */ 2:
|
|
2544
|
-
message.enabled = reader.bool();
|
|
2545
|
-
break;
|
|
2546
|
-
case /* repeated string channels */ 3:
|
|
2547
|
-
message.channels.push(reader.string());
|
|
2548
|
-
break;
|
|
2549
|
-
case /* bool mandatory */ 4:
|
|
2550
|
-
message.mandatory = reader.bool();
|
|
2551
|
-
break;
|
|
2552
|
-
default:
|
|
2553
|
-
let u = options.readUnknownField;
|
|
2554
|
-
if (u === "throw")
|
|
2555
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2556
|
-
let d = reader.skip(wireType);
|
|
2557
|
-
if (u !== false)
|
|
2558
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
return message;
|
|
2562
|
-
}
|
|
2563
|
-
internalBinaryWrite(message: NotificationCategoryPreference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2564
|
-
/* string category = 1; */
|
|
2565
|
-
if (message.category !== "")
|
|
2566
|
-
writer.tag(1, WireType.LengthDelimited).string(message.category);
|
|
2567
|
-
/* bool enabled = 2; */
|
|
2568
|
-
if (message.enabled !== false)
|
|
2569
|
-
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
2570
|
-
/* repeated string channels = 3; */
|
|
2571
|
-
for (let i = 0; i < message.channels.length; i++)
|
|
2572
|
-
writer.tag(3, WireType.LengthDelimited).string(message.channels[i]);
|
|
2573
|
-
/* bool mandatory = 4; */
|
|
2574
|
-
if (message.mandatory !== false)
|
|
2575
|
-
writer.tag(4, WireType.Varint).bool(message.mandatory);
|
|
2576
|
-
let u = options.writeUnknownFields;
|
|
2577
|
-
if (u !== false)
|
|
2578
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2579
|
-
return writer;
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
/**
|
|
2583
|
-
* @generated MessageType for protobuf message sid.v1.account.NotificationCategoryPreference
|
|
2584
|
-
*/
|
|
2585
|
-
export const NotificationCategoryPreference = new NotificationCategoryPreference$Type();
|
|
2586
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2587
|
-
class UpdateNotificationPreferencesRequest$Type extends MessageType<UpdateNotificationPreferencesRequest> {
|
|
2588
|
-
constructor() {
|
|
2589
|
-
super("sid.v1.account.UpdateNotificationPreferencesRequest", [
|
|
2590
|
-
{ no: 1, name: "categories", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NotificationCategoryPreference }
|
|
2591
|
-
]);
|
|
2592
|
-
}
|
|
2593
|
-
create(value?: PartialMessage<UpdateNotificationPreferencesRequest>): UpdateNotificationPreferencesRequest {
|
|
2594
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2595
|
-
message.categories = [];
|
|
2596
|
-
if (value !== undefined)
|
|
2597
|
-
reflectionMergePartial<UpdateNotificationPreferencesRequest>(this, message, value);
|
|
2598
|
-
return message;
|
|
2599
|
-
}
|
|
2600
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateNotificationPreferencesRequest): UpdateNotificationPreferencesRequest {
|
|
2601
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2602
|
-
while (reader.pos < end) {
|
|
2603
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2604
|
-
switch (fieldNo) {
|
|
2605
|
-
case /* repeated sid.v1.account.NotificationCategoryPreference categories */ 1:
|
|
2606
|
-
message.categories.push(NotificationCategoryPreference.internalBinaryRead(reader, reader.uint32(), options));
|
|
2607
|
-
break;
|
|
2608
|
-
default:
|
|
2609
|
-
let u = options.readUnknownField;
|
|
2610
|
-
if (u === "throw")
|
|
2611
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2612
|
-
let d = reader.skip(wireType);
|
|
2613
|
-
if (u !== false)
|
|
2614
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
|
-
return message;
|
|
2618
|
-
}
|
|
2619
|
-
internalBinaryWrite(message: UpdateNotificationPreferencesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2620
|
-
/* repeated sid.v1.account.NotificationCategoryPreference categories = 1; */
|
|
2621
|
-
for (let i = 0; i < message.categories.length; i++)
|
|
2622
|
-
NotificationCategoryPreference.internalBinaryWrite(message.categories[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2623
|
-
let u = options.writeUnknownFields;
|
|
2624
|
-
if (u !== false)
|
|
2625
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2626
|
-
return writer;
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
/**
|
|
2630
|
-
* @generated MessageType for protobuf message sid.v1.account.UpdateNotificationPreferencesRequest
|
|
2631
|
-
*/
|
|
2632
|
-
export const UpdateNotificationPreferencesRequest = new UpdateNotificationPreferencesRequest$Type();
|
|
2633
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2634
|
-
class AddPhoneRequest$Type extends MessageType<AddPhoneRequest> {
|
|
2635
|
-
constructor() {
|
|
2636
|
-
super("sid.v1.account.AddPhoneRequest", [
|
|
2637
|
-
{ no: 1, name: "e164", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2638
|
-
{ no: 2, name: "extension", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2639
|
-
{ no: 3, name: "label", kind: "enum", T: () => ["sid.v1.identity.PhoneLabel", PhoneLabel, "PHONE_LABEL_"] },
|
|
2640
|
-
{ no: 4, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2641
|
-
{ no: 5, name: "is_primary", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2642
|
-
{ no: 6, name: "can_receive_sms", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2643
|
-
{ no: 7, name: "can_receive_fax", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2644
|
-
{ no: 8, name: "can_receive_voice", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2645
|
-
]);
|
|
2646
|
-
}
|
|
2647
|
-
create(value?: PartialMessage<AddPhoneRequest>): AddPhoneRequest {
|
|
2648
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2649
|
-
message.e164 = 0n;
|
|
2650
|
-
message.label = 0;
|
|
2651
|
-
message.isPrimary = false;
|
|
2652
|
-
message.canReceiveSms = false;
|
|
2653
|
-
message.canReceiveFax = false;
|
|
2654
|
-
message.canReceiveVoice = false;
|
|
2655
|
-
if (value !== undefined)
|
|
2656
|
-
reflectionMergePartial<AddPhoneRequest>(this, message, value);
|
|
2657
|
-
return message;
|
|
2658
|
-
}
|
|
2659
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddPhoneRequest): AddPhoneRequest {
|
|
2660
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2661
|
-
while (reader.pos < end) {
|
|
2662
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2663
|
-
switch (fieldNo) {
|
|
2664
|
-
case /* uint64 e164 */ 1:
|
|
2665
|
-
message.e164 = reader.uint64().toBigInt();
|
|
2666
|
-
break;
|
|
2667
|
-
case /* optional uint32 extension */ 2:
|
|
2668
|
-
message.extension = reader.uint32();
|
|
2669
|
-
break;
|
|
2670
|
-
case /* sid.v1.identity.PhoneLabel label */ 3:
|
|
2671
|
-
message.label = reader.int32();
|
|
2672
|
-
break;
|
|
2673
|
-
case /* optional string custom_label */ 4:
|
|
2674
|
-
message.customLabel = reader.string();
|
|
2675
|
-
break;
|
|
2676
|
-
case /* bool is_primary */ 5:
|
|
2677
|
-
message.isPrimary = reader.bool();
|
|
2678
|
-
break;
|
|
2679
|
-
case /* bool can_receive_sms */ 6:
|
|
2680
|
-
message.canReceiveSms = reader.bool();
|
|
2681
|
-
break;
|
|
2682
|
-
case /* bool can_receive_fax */ 7:
|
|
2683
|
-
message.canReceiveFax = reader.bool();
|
|
2684
|
-
break;
|
|
2685
|
-
case /* bool can_receive_voice */ 8:
|
|
2686
|
-
message.canReceiveVoice = reader.bool();
|
|
2687
|
-
break;
|
|
2688
|
-
default:
|
|
2689
|
-
let u = options.readUnknownField;
|
|
2690
|
-
if (u === "throw")
|
|
2691
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2692
|
-
let d = reader.skip(wireType);
|
|
2693
|
-
if (u !== false)
|
|
2694
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2695
|
-
}
|
|
2696
|
-
}
|
|
2697
|
-
return message;
|
|
2698
|
-
}
|
|
2699
|
-
internalBinaryWrite(message: AddPhoneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2700
|
-
/* uint64 e164 = 1; */
|
|
2701
|
-
if (message.e164 !== 0n)
|
|
2702
|
-
writer.tag(1, WireType.Varint).uint64(message.e164);
|
|
2703
|
-
/* optional uint32 extension = 2; */
|
|
2704
|
-
if (message.extension !== undefined)
|
|
2705
|
-
writer.tag(2, WireType.Varint).uint32(message.extension);
|
|
2706
|
-
/* sid.v1.identity.PhoneLabel label = 3; */
|
|
2707
|
-
if (message.label !== 0)
|
|
2708
|
-
writer.tag(3, WireType.Varint).int32(message.label);
|
|
2709
|
-
/* optional string custom_label = 4; */
|
|
2710
|
-
if (message.customLabel !== undefined)
|
|
2711
|
-
writer.tag(4, WireType.LengthDelimited).string(message.customLabel);
|
|
2712
|
-
/* bool is_primary = 5; */
|
|
2713
|
-
if (message.isPrimary !== false)
|
|
2714
|
-
writer.tag(5, WireType.Varint).bool(message.isPrimary);
|
|
2715
|
-
/* bool can_receive_sms = 6; */
|
|
2716
|
-
if (message.canReceiveSms !== false)
|
|
2717
|
-
writer.tag(6, WireType.Varint).bool(message.canReceiveSms);
|
|
2718
|
-
/* bool can_receive_fax = 7; */
|
|
2719
|
-
if (message.canReceiveFax !== false)
|
|
2720
|
-
writer.tag(7, WireType.Varint).bool(message.canReceiveFax);
|
|
2721
|
-
/* bool can_receive_voice = 8; */
|
|
2722
|
-
if (message.canReceiveVoice !== false)
|
|
2723
|
-
writer.tag(8, WireType.Varint).bool(message.canReceiveVoice);
|
|
2724
|
-
let u = options.writeUnknownFields;
|
|
2725
|
-
if (u !== false)
|
|
2726
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2727
|
-
return writer;
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
/**
|
|
2731
|
-
* @generated MessageType for protobuf message sid.v1.account.AddPhoneRequest
|
|
2732
|
-
*/
|
|
2733
|
-
export const AddPhoneRequest = new AddPhoneRequest$Type();
|
|
2734
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2735
|
-
class RemovePhoneRequest$Type extends MessageType<RemovePhoneRequest> {
|
|
2736
|
-
constructor() {
|
|
2737
|
-
super("sid.v1.account.RemovePhoneRequest", [
|
|
2738
|
-
{ no: 1, name: "phone_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2739
|
-
]);
|
|
2740
|
-
}
|
|
2741
|
-
create(value?: PartialMessage<RemovePhoneRequest>): RemovePhoneRequest {
|
|
2742
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2743
|
-
message.phoneId = "";
|
|
2744
|
-
if (value !== undefined)
|
|
2745
|
-
reflectionMergePartial<RemovePhoneRequest>(this, message, value);
|
|
2746
|
-
return message;
|
|
2747
|
-
}
|
|
2748
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemovePhoneRequest): RemovePhoneRequest {
|
|
2749
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2750
|
-
while (reader.pos < end) {
|
|
2751
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2752
|
-
switch (fieldNo) {
|
|
2753
|
-
case /* string phone_id */ 1:
|
|
2754
|
-
message.phoneId = reader.string();
|
|
2755
|
-
break;
|
|
2756
|
-
default:
|
|
2757
|
-
let u = options.readUnknownField;
|
|
2758
|
-
if (u === "throw")
|
|
2759
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2760
|
-
let d = reader.skip(wireType);
|
|
2761
|
-
if (u !== false)
|
|
2762
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
return message;
|
|
2766
|
-
}
|
|
2767
|
-
internalBinaryWrite(message: RemovePhoneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2768
|
-
/* string phone_id = 1; */
|
|
2769
|
-
if (message.phoneId !== "")
|
|
2770
|
-
writer.tag(1, WireType.LengthDelimited).string(message.phoneId);
|
|
2771
|
-
let u = options.writeUnknownFields;
|
|
2772
|
-
if (u !== false)
|
|
2773
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2774
|
-
return writer;
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
/**
|
|
2778
|
-
* @generated MessageType for protobuf message sid.v1.account.RemovePhoneRequest
|
|
2779
|
-
*/
|
|
2780
|
-
export const RemovePhoneRequest = new RemovePhoneRequest$Type();
|
|
2781
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2782
|
-
class UpdatePhoneRequest$Type extends MessageType<UpdatePhoneRequest> {
|
|
2783
|
-
constructor() {
|
|
2784
|
-
super("sid.v1.account.UpdatePhoneRequest", [
|
|
2785
|
-
{ no: 1, name: "phone_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2786
|
-
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.PhoneLabel", PhoneLabel, "PHONE_LABEL_"] },
|
|
2787
|
-
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2788
|
-
{ no: 4, name: "can_receive_sms", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2789
|
-
{ no: 5, name: "can_receive_fax", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2790
|
-
{ no: 6, name: "can_receive_voice", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2791
|
-
]);
|
|
2792
|
-
}
|
|
2793
|
-
create(value?: PartialMessage<UpdatePhoneRequest>): UpdatePhoneRequest {
|
|
2794
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2795
|
-
message.phoneId = "";
|
|
2796
|
-
if (value !== undefined)
|
|
2797
|
-
reflectionMergePartial<UpdatePhoneRequest>(this, message, value);
|
|
2798
|
-
return message;
|
|
2799
|
-
}
|
|
2800
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePhoneRequest): UpdatePhoneRequest {
|
|
2801
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2802
|
-
while (reader.pos < end) {
|
|
2803
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2804
|
-
switch (fieldNo) {
|
|
2805
|
-
case /* string phone_id */ 1:
|
|
2806
|
-
message.phoneId = reader.string();
|
|
2807
|
-
break;
|
|
2808
|
-
case /* optional sid.v1.identity.PhoneLabel label */ 2:
|
|
2809
|
-
message.label = reader.int32();
|
|
2810
|
-
break;
|
|
2811
|
-
case /* optional string custom_label */ 3:
|
|
2812
|
-
message.customLabel = reader.string();
|
|
2813
|
-
break;
|
|
2814
|
-
case /* optional bool can_receive_sms */ 4:
|
|
2815
|
-
message.canReceiveSms = reader.bool();
|
|
2816
|
-
break;
|
|
2817
|
-
case /* optional bool can_receive_fax */ 5:
|
|
2818
|
-
message.canReceiveFax = reader.bool();
|
|
2819
|
-
break;
|
|
2820
|
-
case /* optional bool can_receive_voice */ 6:
|
|
2821
|
-
message.canReceiveVoice = reader.bool();
|
|
2822
|
-
break;
|
|
2823
|
-
default:
|
|
2824
|
-
let u = options.readUnknownField;
|
|
2825
|
-
if (u === "throw")
|
|
2826
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2827
|
-
let d = reader.skip(wireType);
|
|
2828
|
-
if (u !== false)
|
|
2829
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
return message;
|
|
2833
|
-
}
|
|
2834
|
-
internalBinaryWrite(message: UpdatePhoneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2835
|
-
/* string phone_id = 1; */
|
|
2836
|
-
if (message.phoneId !== "")
|
|
2837
|
-
writer.tag(1, WireType.LengthDelimited).string(message.phoneId);
|
|
2838
|
-
/* optional sid.v1.identity.PhoneLabel label = 2; */
|
|
2839
|
-
if (message.label !== undefined)
|
|
2840
|
-
writer.tag(2, WireType.Varint).int32(message.label);
|
|
2841
|
-
/* optional string custom_label = 3; */
|
|
2842
|
-
if (message.customLabel !== undefined)
|
|
2843
|
-
writer.tag(3, WireType.LengthDelimited).string(message.customLabel);
|
|
2844
|
-
/* optional bool can_receive_sms = 4; */
|
|
2845
|
-
if (message.canReceiveSms !== undefined)
|
|
2846
|
-
writer.tag(4, WireType.Varint).bool(message.canReceiveSms);
|
|
2847
|
-
/* optional bool can_receive_fax = 5; */
|
|
2848
|
-
if (message.canReceiveFax !== undefined)
|
|
2849
|
-
writer.tag(5, WireType.Varint).bool(message.canReceiveFax);
|
|
2850
|
-
/* optional bool can_receive_voice = 6; */
|
|
2851
|
-
if (message.canReceiveVoice !== undefined)
|
|
2852
|
-
writer.tag(6, WireType.Varint).bool(message.canReceiveVoice);
|
|
2853
|
-
let u = options.writeUnknownFields;
|
|
2854
|
-
if (u !== false)
|
|
2855
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2856
|
-
return writer;
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
/**
|
|
2860
|
-
* @generated MessageType for protobuf message sid.v1.account.UpdatePhoneRequest
|
|
2861
|
-
*/
|
|
2862
|
-
export const UpdatePhoneRequest = new UpdatePhoneRequest$Type();
|
|
2863
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2864
|
-
class SetPrimaryPhoneRequest$Type extends MessageType<SetPrimaryPhoneRequest> {
|
|
2865
|
-
constructor() {
|
|
2866
|
-
super("sid.v1.account.SetPrimaryPhoneRequest", [
|
|
2867
|
-
{ no: 1, name: "phone_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2868
|
-
]);
|
|
2869
|
-
}
|
|
2870
|
-
create(value?: PartialMessage<SetPrimaryPhoneRequest>): SetPrimaryPhoneRequest {
|
|
2871
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2872
|
-
message.phoneId = "";
|
|
2873
|
-
if (value !== undefined)
|
|
2874
|
-
reflectionMergePartial<SetPrimaryPhoneRequest>(this, message, value);
|
|
2875
|
-
return message;
|
|
2876
|
-
}
|
|
2877
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetPrimaryPhoneRequest): SetPrimaryPhoneRequest {
|
|
2878
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2879
|
-
while (reader.pos < end) {
|
|
2880
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2881
|
-
switch (fieldNo) {
|
|
2882
|
-
case /* string phone_id */ 1:
|
|
2883
|
-
message.phoneId = reader.string();
|
|
2884
|
-
break;
|
|
2885
|
-
default:
|
|
2886
|
-
let u = options.readUnknownField;
|
|
2887
|
-
if (u === "throw")
|
|
2888
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2889
|
-
let d = reader.skip(wireType);
|
|
2890
|
-
if (u !== false)
|
|
2891
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
return message;
|
|
2895
|
-
}
|
|
2896
|
-
internalBinaryWrite(message: SetPrimaryPhoneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2897
|
-
/* string phone_id = 1; */
|
|
2898
|
-
if (message.phoneId !== "")
|
|
2899
|
-
writer.tag(1, WireType.LengthDelimited).string(message.phoneId);
|
|
2900
|
-
let u = options.writeUnknownFields;
|
|
2901
|
-
if (u !== false)
|
|
2902
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2903
|
-
return writer;
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
/**
|
|
2907
|
-
* @generated MessageType for protobuf message sid.v1.account.SetPrimaryPhoneRequest
|
|
2908
|
-
*/
|
|
2909
|
-
export const SetPrimaryPhoneRequest = new SetPrimaryPhoneRequest$Type();
|
|
2910
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2911
|
-
class ListPhonesResponse$Type extends MessageType<ListPhonesResponse> {
|
|
2912
|
-
constructor() {
|
|
2913
|
-
super("sid.v1.account.ListPhonesResponse", [
|
|
2914
|
-
{ no: 1, name: "phones", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProfilePhone }
|
|
2915
|
-
]);
|
|
2916
|
-
}
|
|
2917
|
-
create(value?: PartialMessage<ListPhonesResponse>): ListPhonesResponse {
|
|
2918
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2919
|
-
message.phones = [];
|
|
2920
|
-
if (value !== undefined)
|
|
2921
|
-
reflectionMergePartial<ListPhonesResponse>(this, message, value);
|
|
2922
|
-
return message;
|
|
2923
|
-
}
|
|
2924
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPhonesResponse): ListPhonesResponse {
|
|
2925
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2926
|
-
while (reader.pos < end) {
|
|
2927
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2928
|
-
switch (fieldNo) {
|
|
2929
|
-
case /* repeated sid.v1.identity.ProfilePhone phones */ 1:
|
|
2930
|
-
message.phones.push(ProfilePhone.internalBinaryRead(reader, reader.uint32(), options));
|
|
2931
|
-
break;
|
|
2932
|
-
default:
|
|
2933
|
-
let u = options.readUnknownField;
|
|
2934
|
-
if (u === "throw")
|
|
2935
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2936
|
-
let d = reader.skip(wireType);
|
|
2937
|
-
if (u !== false)
|
|
2938
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
return message;
|
|
2942
|
-
}
|
|
2943
|
-
internalBinaryWrite(message: ListPhonesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2944
|
-
/* repeated sid.v1.identity.ProfilePhone phones = 1; */
|
|
2945
|
-
for (let i = 0; i < message.phones.length; i++)
|
|
2946
|
-
ProfilePhone.internalBinaryWrite(message.phones[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2947
|
-
let u = options.writeUnknownFields;
|
|
2948
|
-
if (u !== false)
|
|
2949
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2950
|
-
return writer;
|
|
2951
|
-
}
|
|
2952
|
-
}
|
|
2953
|
-
/**
|
|
2954
|
-
* @generated MessageType for protobuf message sid.v1.account.ListPhonesResponse
|
|
2955
|
-
*/
|
|
2956
|
-
export const ListPhonesResponse = new ListPhonesResponse$Type();
|
|
2957
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2958
|
-
class AddEmailRequest$Type extends MessageType<AddEmailRequest> {
|
|
2959
|
-
constructor() {
|
|
2960
|
-
super("sid.v1.account.AddEmailRequest", [
|
|
2961
|
-
{ no: 1, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2962
|
-
{ no: 2, name: "label", kind: "enum", T: () => ["sid.v1.identity.EmailLabel", EmailLabel, "EMAIL_LABEL_"] },
|
|
2963
|
-
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2964
|
-
{ no: 4, name: "is_primary", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2965
|
-
]);
|
|
2966
|
-
}
|
|
2967
|
-
create(value?: PartialMessage<AddEmailRequest>): AddEmailRequest {
|
|
2968
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2969
|
-
message.email = "";
|
|
2970
|
-
message.label = 0;
|
|
2971
|
-
message.isPrimary = false;
|
|
2972
|
-
if (value !== undefined)
|
|
2973
|
-
reflectionMergePartial<AddEmailRequest>(this, message, value);
|
|
2974
|
-
return message;
|
|
2975
|
-
}
|
|
2976
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddEmailRequest): AddEmailRequest {
|
|
2977
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2978
|
-
while (reader.pos < end) {
|
|
2979
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2980
|
-
switch (fieldNo) {
|
|
2981
|
-
case /* string email */ 1:
|
|
2982
|
-
message.email = reader.string();
|
|
2983
|
-
break;
|
|
2984
|
-
case /* sid.v1.identity.EmailLabel label */ 2:
|
|
2985
|
-
message.label = reader.int32();
|
|
2986
|
-
break;
|
|
2987
|
-
case /* optional string custom_label */ 3:
|
|
2988
|
-
message.customLabel = reader.string();
|
|
2989
|
-
break;
|
|
2990
|
-
case /* bool is_primary */ 4:
|
|
2991
|
-
message.isPrimary = reader.bool();
|
|
2992
|
-
break;
|
|
2993
|
-
default:
|
|
2994
|
-
let u = options.readUnknownField;
|
|
2995
|
-
if (u === "throw")
|
|
2996
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2997
|
-
let d = reader.skip(wireType);
|
|
2998
|
-
if (u !== false)
|
|
2999
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
return message;
|
|
3003
|
-
}
|
|
3004
|
-
internalBinaryWrite(message: AddEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3005
|
-
/* string email = 1; */
|
|
3006
|
-
if (message.email !== "")
|
|
3007
|
-
writer.tag(1, WireType.LengthDelimited).string(message.email);
|
|
3008
|
-
/* sid.v1.identity.EmailLabel label = 2; */
|
|
3009
|
-
if (message.label !== 0)
|
|
3010
|
-
writer.tag(2, WireType.Varint).int32(message.label);
|
|
3011
|
-
/* optional string custom_label = 3; */
|
|
3012
|
-
if (message.customLabel !== undefined)
|
|
3013
|
-
writer.tag(3, WireType.LengthDelimited).string(message.customLabel);
|
|
3014
|
-
/* bool is_primary = 4; */
|
|
3015
|
-
if (message.isPrimary !== false)
|
|
3016
|
-
writer.tag(4, WireType.Varint).bool(message.isPrimary);
|
|
3017
|
-
let u = options.writeUnknownFields;
|
|
3018
|
-
if (u !== false)
|
|
3019
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3020
|
-
return writer;
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
/**
|
|
3024
|
-
* @generated MessageType for protobuf message sid.v1.account.AddEmailRequest
|
|
3025
|
-
*/
|
|
3026
|
-
export const AddEmailRequest = new AddEmailRequest$Type();
|
|
3027
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3028
|
-
class RemoveEmailRequest$Type extends MessageType<RemoveEmailRequest> {
|
|
3029
|
-
constructor() {
|
|
3030
|
-
super("sid.v1.account.RemoveEmailRequest", [
|
|
3031
|
-
{ no: 1, name: "email_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3032
|
-
]);
|
|
3033
|
-
}
|
|
3034
|
-
create(value?: PartialMessage<RemoveEmailRequest>): RemoveEmailRequest {
|
|
3035
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3036
|
-
message.emailId = "";
|
|
3037
|
-
if (value !== undefined)
|
|
3038
|
-
reflectionMergePartial<RemoveEmailRequest>(this, message, value);
|
|
3039
|
-
return message;
|
|
3040
|
-
}
|
|
3041
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveEmailRequest): RemoveEmailRequest {
|
|
3042
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3043
|
-
while (reader.pos < end) {
|
|
3044
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3045
|
-
switch (fieldNo) {
|
|
3046
|
-
case /* string email_id */ 1:
|
|
3047
|
-
message.emailId = reader.string();
|
|
3048
|
-
break;
|
|
3049
|
-
default:
|
|
3050
|
-
let u = options.readUnknownField;
|
|
3051
|
-
if (u === "throw")
|
|
3052
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3053
|
-
let d = reader.skip(wireType);
|
|
3054
|
-
if (u !== false)
|
|
3055
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
return message;
|
|
3059
|
-
}
|
|
3060
|
-
internalBinaryWrite(message: RemoveEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3061
|
-
/* string email_id = 1; */
|
|
3062
|
-
if (message.emailId !== "")
|
|
3063
|
-
writer.tag(1, WireType.LengthDelimited).string(message.emailId);
|
|
3064
|
-
let u = options.writeUnknownFields;
|
|
3065
|
-
if (u !== false)
|
|
3066
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3067
|
-
return writer;
|
|
3068
|
-
}
|
|
3069
|
-
}
|
|
3070
|
-
/**
|
|
3071
|
-
* @generated MessageType for protobuf message sid.v1.account.RemoveEmailRequest
|
|
3072
|
-
*/
|
|
3073
|
-
export const RemoveEmailRequest = new RemoveEmailRequest$Type();
|
|
3074
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3075
|
-
class UpdateEmailRequest$Type extends MessageType<UpdateEmailRequest> {
|
|
3076
|
-
constructor() {
|
|
3077
|
-
super("sid.v1.account.UpdateEmailRequest", [
|
|
3078
|
-
{ no: 1, name: "email_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3079
|
-
{ no: 2, name: "label", kind: "enum", opt: true, T: () => ["sid.v1.identity.EmailLabel", EmailLabel, "EMAIL_LABEL_"] },
|
|
3080
|
-
{ no: 3, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
3081
|
-
]);
|
|
3082
|
-
}
|
|
3083
|
-
create(value?: PartialMessage<UpdateEmailRequest>): UpdateEmailRequest {
|
|
3084
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3085
|
-
message.emailId = "";
|
|
3086
|
-
if (value !== undefined)
|
|
3087
|
-
reflectionMergePartial<UpdateEmailRequest>(this, message, value);
|
|
3088
|
-
return message;
|
|
3089
|
-
}
|
|
3090
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateEmailRequest): UpdateEmailRequest {
|
|
3091
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3092
|
-
while (reader.pos < end) {
|
|
3093
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3094
|
-
switch (fieldNo) {
|
|
3095
|
-
case /* string email_id */ 1:
|
|
3096
|
-
message.emailId = reader.string();
|
|
3097
|
-
break;
|
|
3098
|
-
case /* optional sid.v1.identity.EmailLabel label */ 2:
|
|
3099
|
-
message.label = reader.int32();
|
|
3100
|
-
break;
|
|
3101
|
-
case /* optional string custom_label */ 3:
|
|
3102
|
-
message.customLabel = reader.string();
|
|
3103
|
-
break;
|
|
3104
|
-
default:
|
|
3105
|
-
let u = options.readUnknownField;
|
|
3106
|
-
if (u === "throw")
|
|
3107
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3108
|
-
let d = reader.skip(wireType);
|
|
3109
|
-
if (u !== false)
|
|
3110
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3111
|
-
}
|
|
3112
|
-
}
|
|
3113
|
-
return message;
|
|
3114
|
-
}
|
|
3115
|
-
internalBinaryWrite(message: UpdateEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3116
|
-
/* string email_id = 1; */
|
|
3117
|
-
if (message.emailId !== "")
|
|
3118
|
-
writer.tag(1, WireType.LengthDelimited).string(message.emailId);
|
|
3119
|
-
/* optional sid.v1.identity.EmailLabel label = 2; */
|
|
3120
|
-
if (message.label !== undefined)
|
|
3121
|
-
writer.tag(2, WireType.Varint).int32(message.label);
|
|
3122
|
-
/* optional string custom_label = 3; */
|
|
3123
|
-
if (message.customLabel !== undefined)
|
|
3124
|
-
writer.tag(3, WireType.LengthDelimited).string(message.customLabel);
|
|
3125
|
-
let u = options.writeUnknownFields;
|
|
3126
|
-
if (u !== false)
|
|
3127
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3128
|
-
return writer;
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
/**
|
|
3132
|
-
* @generated MessageType for protobuf message sid.v1.account.UpdateEmailRequest
|
|
3133
|
-
*/
|
|
3134
|
-
export const UpdateEmailRequest = new UpdateEmailRequest$Type();
|
|
3135
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3136
|
-
class SetPrimaryEmailRequest$Type extends MessageType<SetPrimaryEmailRequest> {
|
|
3137
|
-
constructor() {
|
|
3138
|
-
super("sid.v1.account.SetPrimaryEmailRequest", [
|
|
3139
|
-
{ no: 1, name: "email_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3140
|
-
]);
|
|
3141
|
-
}
|
|
3142
|
-
create(value?: PartialMessage<SetPrimaryEmailRequest>): SetPrimaryEmailRequest {
|
|
3143
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3144
|
-
message.emailId = "";
|
|
3145
|
-
if (value !== undefined)
|
|
3146
|
-
reflectionMergePartial<SetPrimaryEmailRequest>(this, message, value);
|
|
3147
|
-
return message;
|
|
3148
|
-
}
|
|
3149
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetPrimaryEmailRequest): SetPrimaryEmailRequest {
|
|
3150
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3151
|
-
while (reader.pos < end) {
|
|
3152
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3153
|
-
switch (fieldNo) {
|
|
3154
|
-
case /* string email_id */ 1:
|
|
3155
|
-
message.emailId = reader.string();
|
|
3156
|
-
break;
|
|
3157
|
-
default:
|
|
3158
|
-
let u = options.readUnknownField;
|
|
3159
|
-
if (u === "throw")
|
|
3160
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3161
|
-
let d = reader.skip(wireType);
|
|
3162
|
-
if (u !== false)
|
|
3163
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
return message;
|
|
3167
|
-
}
|
|
3168
|
-
internalBinaryWrite(message: SetPrimaryEmailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3169
|
-
/* string email_id = 1; */
|
|
3170
|
-
if (message.emailId !== "")
|
|
3171
|
-
writer.tag(1, WireType.LengthDelimited).string(message.emailId);
|
|
3172
|
-
let u = options.writeUnknownFields;
|
|
3173
|
-
if (u !== false)
|
|
3174
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3175
|
-
return writer;
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
/**
|
|
3179
|
-
* @generated MessageType for protobuf message sid.v1.account.SetPrimaryEmailRequest
|
|
3180
|
-
*/
|
|
3181
|
-
export const SetPrimaryEmailRequest = new SetPrimaryEmailRequest$Type();
|
|
3182
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3183
|
-
class ListEmailsResponse$Type extends MessageType<ListEmailsResponse> {
|
|
3184
|
-
constructor() {
|
|
3185
|
-
super("sid.v1.account.ListEmailsResponse", [
|
|
3186
|
-
{ no: 1, name: "emails", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProfileEmail }
|
|
3187
|
-
]);
|
|
3188
|
-
}
|
|
3189
|
-
create(value?: PartialMessage<ListEmailsResponse>): ListEmailsResponse {
|
|
3190
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3191
|
-
message.emails = [];
|
|
3192
|
-
if (value !== undefined)
|
|
3193
|
-
reflectionMergePartial<ListEmailsResponse>(this, message, value);
|
|
3194
|
-
return message;
|
|
3195
|
-
}
|
|
3196
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEmailsResponse): ListEmailsResponse {
|
|
3197
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3198
|
-
while (reader.pos < end) {
|
|
3199
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3200
|
-
switch (fieldNo) {
|
|
3201
|
-
case /* repeated sid.v1.identity.ProfileEmail emails */ 1:
|
|
3202
|
-
message.emails.push(ProfileEmail.internalBinaryRead(reader, reader.uint32(), options));
|
|
3203
|
-
break;
|
|
3204
|
-
default:
|
|
3205
|
-
let u = options.readUnknownField;
|
|
3206
|
-
if (u === "throw")
|
|
3207
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3208
|
-
let d = reader.skip(wireType);
|
|
3209
|
-
if (u !== false)
|
|
3210
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
return message;
|
|
3214
|
-
}
|
|
3215
|
-
internalBinaryWrite(message: ListEmailsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3216
|
-
/* repeated sid.v1.identity.ProfileEmail emails = 1; */
|
|
3217
|
-
for (let i = 0; i < message.emails.length; i++)
|
|
3218
|
-
ProfileEmail.internalBinaryWrite(message.emails[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3219
|
-
let u = options.writeUnknownFields;
|
|
3220
|
-
if (u !== false)
|
|
3221
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3222
|
-
return writer;
|
|
3223
|
-
}
|
|
3224
|
-
}
|
|
3225
|
-
/**
|
|
3226
|
-
* @generated MessageType for protobuf message sid.v1.account.ListEmailsResponse
|
|
3227
|
-
*/
|
|
3228
|
-
export const ListEmailsResponse = new ListEmailsResponse$Type();
|
|
3229
|
-
/**
|
|
3230
|
-
* @generated ServiceType for protobuf service sid.v1.account.AccountService
|
|
3231
|
-
*/
|
|
3232
|
-
export const AccountService = new ServiceType("sid.v1.account.AccountService", [
|
|
3233
|
-
{ name: "ListConsents", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/consents" } }, I: ListConsentsRequest, O: ListConsentsResponse },
|
|
3234
|
-
{ name: "GetConsentDetail", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/consents/{site_id}" } }, I: GetConsentDetailRequest, O: GetConsentDetailResponse },
|
|
3235
|
-
{ name: "UpdateClaimConsent", options: { "google.api.http": { patch: "/v1/account/consents/{site_id}/claims/{claim_name}", body: "*" } }, I: UpdateClaimConsentRequest, O: Empty },
|
|
3236
|
-
{ name: "DisconnectSite", options: { "google.api.http": { delete: "/v1/account/consents/{site_id}" } }, I: DisconnectSiteRequest, O: Empty },
|
|
3237
|
-
{ name: "ListActivityEvents", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/activity" } }, I: ListActivityEventsRequest, O: ListActivityEventsResponse },
|
|
3238
|
-
{ name: "GetActivityEventDetail", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/activity/{event_id}" } }, I: GetActivityEventDetailRequest, O: ActivityEvent },
|
|
3239
|
-
{ name: "ReportSuspiciousEvent", options: { "google.api.http": { post: "/v1/account/activity/{event_id}/report", body: "*" } }, I: ReportSuspiciousEventRequest, O: Empty },
|
|
3240
|
-
{ name: "ListLinkedAccounts", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/linked-accounts" } }, I: Empty, O: ListLinkedAccountsResponse },
|
|
3241
|
-
{ name: "LinkAccount", options: { "google.api.http": { post: "/v1/account/linked-accounts", body: "*" } }, I: LinkAccountRequest, O: LinkAccountResponse },
|
|
3242
|
-
{ name: "UnlinkAccount", options: { "google.api.http": { delete: "/v1/account/linked-accounts/{linked_account_id}" } }, I: UnlinkAccountRequest, O: Empty },
|
|
3243
|
-
{ name: "ReauthenticateLink", options: { "google.api.http": { post: "/v1/account/linked-accounts/{linked_account_id}/reauth", body: "*" } }, I: ReauthenticateLinkRequest, O: ReauthenticateLinkResponse },
|
|
3244
|
-
{ name: "ListAvailableApps", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/apps" } }, I: Empty, O: ListAvailableAppsResponse },
|
|
3245
|
-
{ name: "LaunchApp", options: { "google.api.http": { post: "/v1/account/apps/{app_id}/launch", body: "*" } }, I: LaunchAppRequest, O: LaunchAppResponse },
|
|
3246
|
-
{ name: "GetNotificationPreferences", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/notification-preferences" } }, I: Empty, O: NotificationPreferences },
|
|
3247
|
-
{ name: "UpdateNotificationPreferences", options: { "google.api.http": { put: "/v1/account/notification-preferences", body: "*" } }, I: UpdateNotificationPreferencesRequest, O: NotificationPreferences },
|
|
3248
|
-
{ name: "GetPasswordlessStatus", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/passwordless" } }, I: Empty, O: PasswordlessStatus },
|
|
3249
|
-
{ name: "EnablePasswordless", options: { "google.api.http": { post: "/v1/account/passwordless/enable", body: "*" } }, I: Empty, O: Empty },
|
|
3250
|
-
{ name: "DisablePasswordless", options: { "google.api.http": { post: "/v1/account/passwordless/disable", body: "*" } }, I: Empty, O: DisablePasswordlessResponse },
|
|
3251
|
-
{ name: "AddPhone", options: { "google.api.http": { post: "/v1/account/phones", body: "*" } }, I: AddPhoneRequest, O: ProfilePhone },
|
|
3252
|
-
{ name: "RemovePhone", options: { "google.api.http": { delete: "/v1/account/phones/{phone_id}" } }, I: RemovePhoneRequest, O: Empty },
|
|
3253
|
-
{ name: "UpdatePhone", options: { "google.api.http": { patch: "/v1/account/phones/{phone_id}", body: "*" } }, I: UpdatePhoneRequest, O: ProfilePhone },
|
|
3254
|
-
{ name: "SetPrimaryPhone", options: { "google.api.http": { post: "/v1/account/phones/{phone_id}/primary", body: "*" } }, I: SetPrimaryPhoneRequest, O: ProfilePhone },
|
|
3255
|
-
{ name: "ListPhones", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/phones" } }, I: Empty, O: ListPhonesResponse },
|
|
3256
|
-
{ name: "AddEmail", options: { "google.api.http": { post: "/v1/account/emails", body: "*" } }, I: AddEmailRequest, O: ProfileEmail },
|
|
3257
|
-
{ name: "RemoveEmail", options: { "google.api.http": { delete: "/v1/account/emails/{email_id}" } }, I: RemoveEmailRequest, O: Empty },
|
|
3258
|
-
{ name: "UpdateEmail", options: { "google.api.http": { patch: "/v1/account/emails/{email_id}", body: "*" } }, I: UpdateEmailRequest, O: ProfileEmail },
|
|
3259
|
-
{ name: "SetPrimaryEmail", options: { "google.api.http": { post: "/v1/account/emails/{email_id}/primary", body: "*" } }, I: SetPrimaryEmailRequest, O: ProfileEmail },
|
|
3260
|
-
{ name: "ListEmails", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/account/emails" } }, I: Empty, O: ListEmailsResponse }
|
|
3261
|
-
]);
|