@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,710 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/common/errors.proto" (package "sid.v1.common", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
//
|
|
5
|
-
// StructuredID gRPC Error Model.
|
|
6
|
-
//
|
|
7
|
-
// Machine-readable error reason codes for programmatic handling.
|
|
8
|
-
// Used with google.rpc.ErrorInfo as status detail.
|
|
9
|
-
//
|
|
10
|
-
// Domain: "structured.id", the same for every installation whatever host
|
|
11
|
-
// serves it. A reason is stable within its domain (AIP-193); reasons defined
|
|
12
|
-
// elsewhere carry their own domain.
|
|
13
|
-
//
|
|
14
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
15
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
16
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
17
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
18
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
19
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
20
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
21
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
22
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
23
|
-
/**
|
|
24
|
-
* The challenge of a CAPTCHA_REQUIRED refusal, packed as an additional status
|
|
25
|
-
* detail beside ErrorInfo: no canonical google.rpc detail carries it.
|
|
26
|
-
*
|
|
27
|
-
* @generated from protobuf message sid.v1.common.CaptchaChallenge
|
|
28
|
-
*/
|
|
29
|
-
export interface CaptchaChallenge {
|
|
30
|
-
/**
|
|
31
|
-
* Server-issued identifier of this challenge; the client sends it back with
|
|
32
|
-
* the solution. Valid only for the sign-in it was issued for.
|
|
33
|
-
*
|
|
34
|
-
* @generated from protobuf field: string challenge_id = 1
|
|
35
|
-
*/
|
|
36
|
-
challengeId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Which solver the client runs.
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf field: sid.v1.common.CaptchaKind kind = 2
|
|
41
|
-
*/
|
|
42
|
-
kind: CaptchaKind;
|
|
43
|
-
/**
|
|
44
|
-
* Public site key of a third-party widget; empty for the SID proof of work.
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf field: string site_key = 3
|
|
47
|
-
*/
|
|
48
|
-
siteKey: string;
|
|
49
|
-
/**
|
|
50
|
-
* Required leading zero bits of the SID proof of work; 0 for a widget.
|
|
51
|
-
*
|
|
52
|
-
* @generated from protobuf field: uint32 difficulty = 4
|
|
53
|
-
*/
|
|
54
|
-
difficulty: number;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Machine-readable error reason codes.
|
|
58
|
-
*
|
|
59
|
-
* Each code maps to a specific gRPC status code (see comments).
|
|
60
|
-
* Clients switch on `reason` field of google.rpc.ErrorInfo for
|
|
61
|
-
* programmatic error handling.
|
|
62
|
-
*
|
|
63
|
-
* @generated from protobuf enum sid.v1.common.ErrorReason
|
|
64
|
-
*/
|
|
65
|
-
export enum ErrorReason {
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf enum value: ERROR_REASON_UNSPECIFIED = 0;
|
|
68
|
-
*/
|
|
69
|
-
ERROR_REASON_UNSPECIFIED = 0,
|
|
70
|
-
/**
|
|
71
|
-
* Profile does not exist.
|
|
72
|
-
*
|
|
73
|
-
* @generated from protobuf enum value: PROFILE_NOT_FOUND = 1;
|
|
74
|
-
*/
|
|
75
|
-
PROFILE_NOT_FOUND = 1,
|
|
76
|
-
/**
|
|
77
|
-
* OAuth2 application/client not found.
|
|
78
|
-
*
|
|
79
|
-
* @generated from protobuf enum value: APPLICATION_NOT_FOUND = 2;
|
|
80
|
-
*/
|
|
81
|
-
APPLICATION_NOT_FOUND = 2,
|
|
82
|
-
/**
|
|
83
|
-
* Session not found or expired.
|
|
84
|
-
*
|
|
85
|
-
* @generated from protobuf enum value: SESSION_NOT_FOUND = 3;
|
|
86
|
-
*/
|
|
87
|
-
SESSION_NOT_FOUND = 3,
|
|
88
|
-
/**
|
|
89
|
-
* Credential not found.
|
|
90
|
-
*
|
|
91
|
-
* @generated from protobuf enum value: CREDENTIAL_NOT_FOUND = 4;
|
|
92
|
-
*/
|
|
93
|
-
CREDENTIAL_NOT_FOUND = 4,
|
|
94
|
-
/**
|
|
95
|
-
* Role not found.
|
|
96
|
-
*
|
|
97
|
-
* @generated from protobuf enum value: ROLE_NOT_FOUND = 5;
|
|
98
|
-
*/
|
|
99
|
-
ROLE_NOT_FOUND = 5,
|
|
100
|
-
/**
|
|
101
|
-
* Project not found.
|
|
102
|
-
*
|
|
103
|
-
* @generated from protobuf enum value: PROJECT_NOT_FOUND = 6;
|
|
104
|
-
*/
|
|
105
|
-
PROJECT_NOT_FOUND = 6,
|
|
106
|
-
/**
|
|
107
|
-
* No OIDC issuer has this handle. The request is refused before any
|
|
108
|
-
* authentication or key lookup; it never falls back to another issuer.
|
|
109
|
-
*
|
|
110
|
-
* @generated from protobuf enum value: OIDC_ISSUER_NOT_FOUND = 7;
|
|
111
|
-
*/
|
|
112
|
-
OIDC_ISSUER_NOT_FOUND = 7,
|
|
113
|
-
/**
|
|
114
|
-
* Protected resource not found.
|
|
115
|
-
*
|
|
116
|
-
* @generated from protobuf enum value: RESOURCE_NOT_FOUND = 8;
|
|
117
|
-
*/
|
|
118
|
-
RESOURCE_NOT_FOUND = 8,
|
|
119
|
-
/**
|
|
120
|
-
* The forward-auth route configuration has no protected application of
|
|
121
|
-
* this name; the reverse proxy's address names an application it does not
|
|
122
|
-
* protect.
|
|
123
|
-
*
|
|
124
|
-
* @generated from protobuf enum value: FORWARD_AUTH_APPLICATION_NOT_FOUND = 9;
|
|
125
|
-
*/
|
|
126
|
-
FORWARD_AUTH_APPLICATION_NOT_FOUND = 9,
|
|
127
|
-
/**
|
|
128
|
-
* No initial access token has this identifier.
|
|
129
|
-
*
|
|
130
|
-
* @generated from protobuf enum value: INITIAL_ACCESS_TOKEN_NOT_FOUND = 13;
|
|
131
|
-
*/
|
|
132
|
-
INITIAL_ACCESS_TOKEN_NOT_FOUND = 13,
|
|
133
|
-
/**
|
|
134
|
-
* No upstream identity provider has this identifier.
|
|
135
|
-
*
|
|
136
|
-
* @generated from protobuf enum value: UPSTREAM_PROVIDER_NOT_FOUND = 14;
|
|
137
|
-
*/
|
|
138
|
-
UPSTREAM_PROVIDER_NOT_FOUND = 14,
|
|
139
|
-
/**
|
|
140
|
-
* No machine user (service account, bot, agent) has this identifier.
|
|
141
|
-
*
|
|
142
|
-
* @generated from protobuf enum value: MACHINE_USER_NOT_FOUND = 15;
|
|
143
|
-
*/
|
|
144
|
-
MACHINE_USER_NOT_FOUND = 15,
|
|
145
|
-
/**
|
|
146
|
-
* The caller has no consent record for this site (OAuth2 client).
|
|
147
|
-
*
|
|
148
|
-
* @generated from protobuf enum value: CONSENT_NOT_FOUND = 16;
|
|
149
|
-
*/
|
|
150
|
-
CONSENT_NOT_FOUND = 16,
|
|
151
|
-
/**
|
|
152
|
-
* The caller's profile has no phone with this identifier.
|
|
153
|
-
*
|
|
154
|
-
* @generated from protobuf enum value: PHONE_NOT_FOUND = 17;
|
|
155
|
-
*/
|
|
156
|
-
PHONE_NOT_FOUND = 17,
|
|
157
|
-
/**
|
|
158
|
-
* The caller's profile has no email with this identifier.
|
|
159
|
-
*
|
|
160
|
-
* @generated from protobuf enum value: EMAIL_NOT_FOUND = 18;
|
|
161
|
-
*/
|
|
162
|
-
EMAIL_NOT_FOUND = 18,
|
|
163
|
-
/**
|
|
164
|
-
* The caller has no device with this identifier (another profile's device
|
|
165
|
-
* is not found either).
|
|
166
|
-
*
|
|
167
|
-
* @generated from protobuf enum value: DEVICE_NOT_FOUND = 19;
|
|
168
|
-
*/
|
|
169
|
-
DEVICE_NOT_FOUND = 19,
|
|
170
|
-
/**
|
|
171
|
-
* Invalid credentials (password, WebAuthn assertion, etc.).
|
|
172
|
-
* Security: status.message MUST be generic ("authentication failed").
|
|
173
|
-
*
|
|
174
|
-
* @generated from protobuf enum value: AUTHENTICATION_FAILED = 10;
|
|
175
|
-
*/
|
|
176
|
-
AUTHENTICATION_FAILED = 10,
|
|
177
|
-
/**
|
|
178
|
-
* Access token expired.
|
|
179
|
-
*
|
|
180
|
-
* @generated from protobuf enum value: TOKEN_EXPIRED = 11;
|
|
181
|
-
*/
|
|
182
|
-
TOKEN_EXPIRED = 11,
|
|
183
|
-
/**
|
|
184
|
-
* Token malformed, invalid signature, or wrong issuer.
|
|
185
|
-
*
|
|
186
|
-
* @generated from protobuf enum value: TOKEN_INVALID = 12;
|
|
187
|
-
*/
|
|
188
|
-
TOKEN_INVALID = 12,
|
|
189
|
-
/**
|
|
190
|
-
* Caller lacks required permissions (the authorization decision denied it).
|
|
191
|
-
*
|
|
192
|
-
* @generated from protobuf enum value: INSUFFICIENT_PERMISSIONS = 20;
|
|
193
|
-
*/
|
|
194
|
-
INSUFFICIENT_PERMISSIONS = 20,
|
|
195
|
-
/**
|
|
196
|
-
* OAuth2 scope not granted for this operation.
|
|
197
|
-
*
|
|
198
|
-
* @generated from protobuf enum value: SCOPE_NOT_GRANTED = 21;
|
|
199
|
-
*/
|
|
200
|
-
SCOPE_NOT_GRANTED = 21,
|
|
201
|
-
/**
|
|
202
|
-
* A sign-in policy refuses this sign-in outright (a blocked address or
|
|
203
|
-
* country, a method the policy never accepts). The refusal names no rule;
|
|
204
|
-
* retrying the same sign-in does not help.
|
|
205
|
-
*
|
|
206
|
-
* @generated from protobuf enum value: SIGN_IN_REFUSED = 22;
|
|
207
|
-
*/
|
|
208
|
-
SIGN_IN_REFUSED = 22,
|
|
209
|
-
/**
|
|
210
|
-
* Self-registration is restricted on this installation. ErrorInfo metadata
|
|
211
|
-
* `requirement` names what is missing: `instance_claim` (the first
|
|
212
|
-
* administrator's claim token), `admin_only` (only administrators create
|
|
213
|
-
* accounts), `invite` (an invite code), `email` (an email address) or
|
|
214
|
-
* `email_domain` (an address in an allowed domain).
|
|
215
|
-
*
|
|
216
|
-
* @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;
|
|
217
|
-
*/
|
|
218
|
-
REGISTRATION_RESTRICTED = 23,
|
|
219
|
-
/**
|
|
220
|
-
* Profile with this identifier already exists.
|
|
221
|
-
*
|
|
222
|
-
* @generated from protobuf enum value: PROFILE_ALREADY_EXISTS = 30;
|
|
223
|
-
*/
|
|
224
|
-
PROFILE_ALREADY_EXISTS = 30,
|
|
225
|
-
/**
|
|
226
|
-
* Email address already registered.
|
|
227
|
-
*
|
|
228
|
-
* @generated from protobuf enum value: EMAIL_ALREADY_REGISTERED = 31;
|
|
229
|
-
*/
|
|
230
|
-
EMAIL_ALREADY_REGISTERED = 31,
|
|
231
|
-
/**
|
|
232
|
-
* Username already taken.
|
|
233
|
-
*
|
|
234
|
-
* @generated from protobuf enum value: USERNAME_ALREADY_TAKEN = 32;
|
|
235
|
-
*/
|
|
236
|
-
USERNAME_ALREADY_TAKEN = 32,
|
|
237
|
-
/**
|
|
238
|
-
* The operation key already names a command with a different method or
|
|
239
|
-
* inputs; a new command needs a new key.
|
|
240
|
-
*
|
|
241
|
-
* @generated from protobuf enum value: OPERATION_KEY_CONFLICT = 33;
|
|
242
|
-
*/
|
|
243
|
-
OPERATION_KEY_CONFLICT = 33,
|
|
244
|
-
/**
|
|
245
|
-
* The application already has a role of this kind (one client role and one
|
|
246
|
-
* resource role per application).
|
|
247
|
-
*
|
|
248
|
-
* @generated from protobuf enum value: APPLICATION_ROLE_EXISTS = 34;
|
|
249
|
-
*/
|
|
250
|
-
APPLICATION_ROLE_EXISTS = 34,
|
|
251
|
-
/**
|
|
252
|
-
* The issuer already has, or had, a protected resource with this resource
|
|
253
|
-
* indicator; an indicator is never given to another resource.
|
|
254
|
-
*
|
|
255
|
-
* @generated from protobuf enum value: RESOURCE_INDICATOR_TAKEN = 35;
|
|
256
|
-
*/
|
|
257
|
-
RESOURCE_INDICATOR_TAKEN = 35,
|
|
258
|
-
/**
|
|
259
|
-
* Phone number already registered to another account.
|
|
260
|
-
*
|
|
261
|
-
* @generated from protobuf enum value: PHONE_ALREADY_REGISTERED = 36;
|
|
262
|
-
*/
|
|
263
|
-
PHONE_ALREADY_REGISTERED = 36,
|
|
264
|
-
/**
|
|
265
|
-
* The project already has a role with this key or display name.
|
|
266
|
-
*
|
|
267
|
-
* @generated from protobuf enum value: ROLE_ALREADY_EXISTS = 37;
|
|
268
|
-
*/
|
|
269
|
-
ROLE_ALREADY_EXISTS = 37,
|
|
270
|
-
/**
|
|
271
|
-
* An upstream identity provider with this name already exists.
|
|
272
|
-
*
|
|
273
|
-
* @generated from protobuf enum value: UPSTREAM_PROVIDER_ALREADY_EXISTS = 38;
|
|
274
|
-
*/
|
|
275
|
-
UPSTREAM_PROVIDER_ALREADY_EXISTS = 38,
|
|
276
|
-
/**
|
|
277
|
-
* A device login handle (an NFC tag, a face embedding) is held by another
|
|
278
|
-
* account; such a handle identifies one account only. A username has its
|
|
279
|
-
* own USERNAME_ALREADY_TAKEN.
|
|
280
|
-
*
|
|
281
|
-
* @generated from protobuf enum value: PRINCIPAL_ALREADY_HELD = 39;
|
|
282
|
-
*/
|
|
283
|
-
PRINCIPAL_ALREADY_HELD = 39,
|
|
284
|
-
/**
|
|
285
|
-
* Field value does not pass validation.
|
|
286
|
-
*
|
|
287
|
-
* @generated from protobuf enum value: INVALID_FIELD_VALUE = 40;
|
|
288
|
-
*/
|
|
289
|
-
INVALID_FIELD_VALUE = 40,
|
|
290
|
-
/**
|
|
291
|
-
* Required field is missing.
|
|
292
|
-
*
|
|
293
|
-
* @generated from protobuf enum value: REQUIRED_FIELD_MISSING = 41;
|
|
294
|
-
*/
|
|
295
|
-
REQUIRED_FIELD_MISSING = 41,
|
|
296
|
-
/**
|
|
297
|
-
* The password installation's proof does not verify for its operation and
|
|
298
|
-
* request. A new operation with a fresh proof is needed; retrying the same
|
|
299
|
-
* proof cannot succeed.
|
|
300
|
-
*
|
|
301
|
-
* @generated from protobuf enum value: PASSWORD_PROOF_INVALID = 42;
|
|
302
|
-
*/
|
|
303
|
-
PASSWORD_PROOF_INVALID = 42,
|
|
304
|
-
/**
|
|
305
|
-
* MFA enrollment required before proceeding.
|
|
306
|
-
*
|
|
307
|
-
* @generated from protobuf enum value: MFA_REQUIRED = 50;
|
|
308
|
-
*/
|
|
309
|
-
MFA_REQUIRED = 50,
|
|
310
|
-
/**
|
|
311
|
-
* Account suspended by administrator.
|
|
312
|
-
*
|
|
313
|
-
* @generated from protobuf enum value: ACCOUNT_SUSPENDED = 51;
|
|
314
|
-
*/
|
|
315
|
-
ACCOUNT_SUSPENDED = 51,
|
|
316
|
-
/**
|
|
317
|
-
* Account locked due to brute-force protection.
|
|
318
|
-
*
|
|
319
|
-
* @generated from protobuf enum value: ACCOUNT_LOCKED = 52;
|
|
320
|
-
*/
|
|
321
|
-
ACCOUNT_LOCKED = 52,
|
|
322
|
-
/**
|
|
323
|
-
* User consent required before granting access.
|
|
324
|
-
*
|
|
325
|
-
* @generated from protobuf enum value: CONSENT_REQUIRED = 53;
|
|
326
|
-
*/
|
|
327
|
-
CONSENT_REQUIRED = 53,
|
|
328
|
-
/**
|
|
329
|
-
* Credential has been revoked.
|
|
330
|
-
*
|
|
331
|
-
* @generated from protobuf enum value: CREDENTIAL_REVOKED = 54;
|
|
332
|
-
*/
|
|
333
|
-
CREDENTIAL_REVOKED = 54,
|
|
334
|
-
/**
|
|
335
|
-
* Account is in closure/quarantine state.
|
|
336
|
-
*
|
|
337
|
-
* @generated from protobuf enum value: ACCOUNT_CLOSED = 55;
|
|
338
|
-
*/
|
|
339
|
-
ACCOUNT_CLOSED = 55,
|
|
340
|
-
/**
|
|
341
|
-
* The operation completed, but its result is no longer kept; it is not
|
|
342
|
-
* executed again.
|
|
343
|
-
*
|
|
344
|
-
* @generated from protobuf enum value: OPERATION_RESULT_UNAVAILABLE = 56;
|
|
345
|
-
*/
|
|
346
|
-
OPERATION_RESULT_UNAVAILABLE = 56,
|
|
347
|
-
/**
|
|
348
|
-
* The operation is outside the window in which a retry is admitted.
|
|
349
|
-
*
|
|
350
|
-
* @generated from protobuf enum value: OPERATION_EXPIRED = 57;
|
|
351
|
-
*/
|
|
352
|
-
OPERATION_EXPIRED = 57,
|
|
353
|
-
/**
|
|
354
|
-
* The protected resource is retired with its application: it takes no
|
|
355
|
-
* changes and no access.
|
|
356
|
-
*
|
|
357
|
-
* @generated from protobuf enum value: RESOURCE_RETIRED = 58;
|
|
358
|
-
*/
|
|
359
|
-
RESOURCE_RETIRED = 58,
|
|
360
|
-
/**
|
|
361
|
-
* The client and the resource belong to different issuers; access is
|
|
362
|
-
* granted only within one issuer.
|
|
363
|
-
*
|
|
364
|
-
* @generated from protobuf enum value: ISSUER_MISMATCH = 59;
|
|
365
|
-
*/
|
|
366
|
-
ISSUER_MISMATCH = 59,
|
|
367
|
-
/**
|
|
368
|
-
* The installation's own integration is not provisioned or an
|
|
369
|
-
* administrator disabled it; its backend cannot serve until it is enabled.
|
|
370
|
-
*
|
|
371
|
-
* @generated from protobuf enum value: SYSTEM_INTEGRATION_UNAVAILABLE = 61;
|
|
372
|
-
*/
|
|
373
|
-
SYSTEM_INTEGRATION_UNAVAILABLE = 61,
|
|
374
|
-
/**
|
|
375
|
-
* The resource is one SID provisions and keeps (the installation's own
|
|
376
|
-
* integration or the system project): it is disabled, not deleted, and its
|
|
377
|
-
* settings are not edited by hand.
|
|
378
|
-
*
|
|
379
|
-
* @generated from protobuf enum value: SYSTEM_MANAGED = 62;
|
|
380
|
-
*/
|
|
381
|
-
SYSTEM_MANAGED = 62,
|
|
382
|
-
/**
|
|
383
|
-
* The new password matches one the owner's retained history holds. Which
|
|
384
|
-
* entry matched is never disclosed.
|
|
385
|
-
*
|
|
386
|
-
* @generated from protobuf enum value: PASSWORD_REUSED = 63;
|
|
387
|
-
*/
|
|
388
|
-
PASSWORD_REUSED = 63,
|
|
389
|
-
/**
|
|
390
|
-
* A stronger authentication is required first. PreconditionFailure
|
|
391
|
-
* violations name it: type "acr" with the required acr value as subject,
|
|
392
|
-
* or type "amr" with each acceptable method.
|
|
393
|
-
*
|
|
394
|
-
* @generated from protobuf enum value: STEP_UP_REQUIRED = 64;
|
|
395
|
-
*/
|
|
396
|
-
STEP_UP_REQUIRED = 64,
|
|
397
|
-
/**
|
|
398
|
-
* A CAPTCHA must be solved first; the status carries a CaptchaChallenge
|
|
399
|
-
* detail, and the solution goes back with the same request.
|
|
400
|
-
*
|
|
401
|
-
* @generated from protobuf enum value: CAPTCHA_REQUIRED = 65;
|
|
402
|
-
*/
|
|
403
|
-
CAPTCHA_REQUIRED = 65,
|
|
404
|
-
/**
|
|
405
|
-
* The account's password is stored in a legacy form and must be migrated
|
|
406
|
-
* through the migration flow before this call.
|
|
407
|
-
*
|
|
408
|
-
* @generated from protobuf enum value: LEGACY_MIGRATION_REQUIRED = 66;
|
|
409
|
-
*/
|
|
410
|
-
LEGACY_MIGRATION_REQUIRED = 66,
|
|
411
|
-
/**
|
|
412
|
-
* The resource is not in a state that allows the call (a deleted machine
|
|
413
|
-
* user, a consumed reset session, a decided access request).
|
|
414
|
-
* PreconditionFailure type names the state, subject the resource.
|
|
415
|
-
*
|
|
416
|
-
* @generated from protobuf enum value: INVALID_STATE = 67;
|
|
417
|
-
*/
|
|
418
|
-
INVALID_STATE = 67,
|
|
419
|
-
/**
|
|
420
|
-
* The provider or capability the call needs is not configured in this
|
|
421
|
-
* deployment; an administrator can enable it.
|
|
422
|
-
*
|
|
423
|
-
* @generated from protobuf enum value: FEATURE_NOT_CONFIGURED = 68;
|
|
424
|
-
*/
|
|
425
|
-
FEATURE_NOT_CONFIGURED = 68,
|
|
426
|
-
/**
|
|
427
|
-
* Rate limit exceeded (login attempts, API calls, etc.).
|
|
428
|
-
*
|
|
429
|
-
* @generated from protobuf enum value: RATE_LIMIT_EXCEEDED = 60;
|
|
430
|
-
*/
|
|
431
|
-
RATE_LIMIT_EXCEEDED = 60,
|
|
432
|
-
/**
|
|
433
|
-
* A count limit is reached (for example the active tokens a user may hold);
|
|
434
|
-
* QuotaFailure names the limit. Retrying does not help until something is
|
|
435
|
-
* removed.
|
|
436
|
-
*
|
|
437
|
-
* @generated from protobuf enum value: QUOTA_EXCEEDED = 69;
|
|
438
|
-
*/
|
|
439
|
-
QUOTA_EXCEEDED = 69,
|
|
440
|
-
/**
|
|
441
|
-
* Concurrent modification detected (optimistic locking).
|
|
442
|
-
*
|
|
443
|
-
* @generated from protobuf enum value: CONCURRENT_MODIFICATION = 70;
|
|
444
|
-
*/
|
|
445
|
-
CONCURRENT_MODIFICATION = 70,
|
|
446
|
-
/**
|
|
447
|
-
* The same logical operation is still executing; retry it later with the
|
|
448
|
-
* same key.
|
|
449
|
-
*
|
|
450
|
-
* @generated from protobuf enum value: OPERATION_IN_PROGRESS = 71;
|
|
451
|
-
*/
|
|
452
|
-
OPERATION_IN_PROGRESS = 71,
|
|
453
|
-
/**
|
|
454
|
-
* Password history cannot be checked now (evaluator, history keys or
|
|
455
|
-
* checker capacity). Nothing was installed; retry after the RetryInfo delay.
|
|
456
|
-
* Ordinary sign-in is not affected.
|
|
457
|
-
*
|
|
458
|
-
* @generated from protobuf enum value: PASSWORD_HISTORY_UNAVAILABLE = 100;
|
|
459
|
-
*/
|
|
460
|
-
PASSWORD_HISTORY_UNAVAILABLE = 100,
|
|
461
|
-
/**
|
|
462
|
-
* The service is in maintenance mode; retry after the RetryInfo delay.
|
|
463
|
-
*
|
|
464
|
-
* @generated from protobuf enum value: SERVICE_MAINTENANCE = 101;
|
|
465
|
-
*/
|
|
466
|
-
SERVICE_MAINTENANCE = 101,
|
|
467
|
-
/**
|
|
468
|
-
* A dependency the call needs (storage, cache, revocation state, rate
|
|
469
|
-
* limiter, verification keys) cannot be reached; retry after the RetryInfo
|
|
470
|
-
* delay. Nothing was changed.
|
|
471
|
-
*
|
|
472
|
-
* @generated from protobuf enum value: DEPENDENCY_UNAVAILABLE = 102;
|
|
473
|
-
*/
|
|
474
|
-
DEPENDENCY_UNAVAILABLE = 102,
|
|
475
|
-
/**
|
|
476
|
-
* The caller holds no principal (login handle or contact) with this
|
|
477
|
-
* identifier; one held only by other accounts is not found either, except
|
|
478
|
-
* for an administrator.
|
|
479
|
-
*
|
|
480
|
-
* @generated from protobuf enum value: PRINCIPAL_NOT_FOUND = 110;
|
|
481
|
-
*/
|
|
482
|
-
PRINCIPAL_NOT_FOUND = 110,
|
|
483
|
-
/**
|
|
484
|
-
* The caller's account has no data export to download or acknowledge.
|
|
485
|
-
*
|
|
486
|
-
* @generated from protobuf enum value: EXPORT_NOT_FOUND = 111;
|
|
487
|
-
*/
|
|
488
|
-
EXPORT_NOT_FOUND = 111,
|
|
489
|
-
/**
|
|
490
|
-
* The caller's account has no closure request to cancel.
|
|
491
|
-
*
|
|
492
|
-
* @generated from protobuf enum value: CLOSURE_REQUEST_NOT_FOUND = 112;
|
|
493
|
-
*/
|
|
494
|
-
CLOSURE_REQUEST_NOT_FOUND = 112,
|
|
495
|
-
/**
|
|
496
|
-
* No group has this identifier, or the project has no group of this name.
|
|
497
|
-
*
|
|
498
|
-
* @generated from protobuf enum value: GROUP_NOT_FOUND = 113;
|
|
499
|
-
*/
|
|
500
|
-
GROUP_NOT_FOUND = 113,
|
|
501
|
-
/**
|
|
502
|
-
* No authorization policy has this identifier.
|
|
503
|
-
*
|
|
504
|
-
* @generated from protobuf enum value: POLICY_NOT_FOUND = 114;
|
|
505
|
-
*/
|
|
506
|
-
POLICY_NOT_FOUND = 114,
|
|
507
|
-
/**
|
|
508
|
-
* No access request has this identifier.
|
|
509
|
-
*
|
|
510
|
-
* @generated from protobuf enum value: ACCESS_REQUEST_NOT_FOUND = 115;
|
|
511
|
-
*/
|
|
512
|
-
ACCESS_REQUEST_NOT_FOUND = 115,
|
|
513
|
-
/**
|
|
514
|
-
* No notification template has this identifier, or the template has no
|
|
515
|
-
* content for the requested channel.
|
|
516
|
-
*
|
|
517
|
-
* @generated from protobuf enum value: TEMPLATE_NOT_FOUND = 116;
|
|
518
|
-
*/
|
|
519
|
-
TEMPLATE_NOT_FOUND = 116,
|
|
520
|
-
/**
|
|
521
|
-
* The device has no live key attestation (none was registered, or it was
|
|
522
|
-
* revoked).
|
|
523
|
-
*
|
|
524
|
-
* @generated from protobuf enum value: ATTESTATION_NOT_FOUND = 117;
|
|
525
|
-
*/
|
|
526
|
-
ATTESTATION_NOT_FOUND = 117,
|
|
527
|
-
/**
|
|
528
|
-
* The profile has no metadata entry with this key.
|
|
529
|
-
*
|
|
530
|
-
* @generated from protobuf enum value: PROFILE_METADATA_NOT_FOUND = 118;
|
|
531
|
-
*/
|
|
532
|
-
PROFILE_METADATA_NOT_FOUND = 118,
|
|
533
|
-
/**
|
|
534
|
-
* No branding configuration has this identifier, or the project has no
|
|
535
|
-
* published branding.
|
|
536
|
-
*
|
|
537
|
-
* @generated from protobuf enum value: BRANDING_NOT_FOUND = 119;
|
|
538
|
-
*/
|
|
539
|
-
BRANDING_NOT_FOUND = 119,
|
|
540
|
-
/**
|
|
541
|
-
* The project has no saved configuration for this flow type.
|
|
542
|
-
*
|
|
543
|
-
* @generated from protobuf enum value: FLOW_CONFIG_NOT_FOUND = 130;
|
|
544
|
-
*/
|
|
545
|
-
FLOW_CONFIG_NOT_FOUND = 130,
|
|
546
|
-
/**
|
|
547
|
-
* No flow action has this identifier.
|
|
548
|
-
*
|
|
549
|
-
* @generated from protobuf enum value: FLOW_ACTION_NOT_FOUND = 131;
|
|
550
|
-
*/
|
|
551
|
-
FLOW_ACTION_NOT_FOUND = 131,
|
|
552
|
-
/**
|
|
553
|
-
* No invite has this identifier.
|
|
554
|
-
*
|
|
555
|
-
* @generated from protobuf enum value: INVITE_NOT_FOUND = 132;
|
|
556
|
-
*/
|
|
557
|
-
INVITE_NOT_FOUND = 132,
|
|
558
|
-
/**
|
|
559
|
-
* No organization has this identifier, or the caller is not a member of it
|
|
560
|
-
* (a member-only lookup does not disclose that the organization exists).
|
|
561
|
-
*
|
|
562
|
-
* @generated from protobuf enum value: ORGANIZATION_NOT_FOUND = 133;
|
|
563
|
-
*/
|
|
564
|
-
ORGANIZATION_NOT_FOUND = 133,
|
|
565
|
-
/**
|
|
566
|
-
* The organization has no provisioning connector with this identifier.
|
|
567
|
-
*
|
|
568
|
-
* @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;
|
|
569
|
-
*/
|
|
570
|
-
PROVISIONING_CONNECTOR_NOT_FOUND = 134,
|
|
571
|
-
/**
|
|
572
|
-
* The project already has a group of this name.
|
|
573
|
-
*
|
|
574
|
-
* @generated from protobuf enum value: GROUP_ALREADY_EXISTS = 120;
|
|
575
|
-
*/
|
|
576
|
-
GROUP_ALREADY_EXISTS = 120,
|
|
577
|
-
/**
|
|
578
|
-
* The project already has an authorization policy of this name.
|
|
579
|
-
*
|
|
580
|
-
* @generated from protobuf enum value: POLICY_ALREADY_EXISTS = 121;
|
|
581
|
-
*/
|
|
582
|
-
POLICY_ALREADY_EXISTS = 121,
|
|
583
|
-
/**
|
|
584
|
-
* The device already has a live key attestation; RotateDeviceKey replaces
|
|
585
|
-
* its key.
|
|
586
|
-
*
|
|
587
|
-
* @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;
|
|
588
|
-
*/
|
|
589
|
-
ATTESTATION_ALREADY_EXISTS = 122,
|
|
590
|
-
/**
|
|
591
|
-
* The operation's outcome cannot be established yet; retry it with the
|
|
592
|
-
* same key, never with a new one.
|
|
593
|
-
*
|
|
594
|
-
* @generated from protobuf enum value: OPERATION_OUTCOME_UNKNOWN = 95;
|
|
595
|
-
*/
|
|
596
|
-
OPERATION_OUTCOME_UNKNOWN = 95,
|
|
597
|
-
/**
|
|
598
|
-
* The feature is not part of this server build. Retrying does not help;
|
|
599
|
-
* InstanceInfo.edition names the build.
|
|
600
|
-
*
|
|
601
|
-
* @generated from protobuf enum value: FEATURE_NOT_AVAILABLE = 80;
|
|
602
|
-
*/
|
|
603
|
-
FEATURE_NOT_AVAILABLE = 80,
|
|
604
|
-
/**
|
|
605
|
-
* Unrecoverable internal error.
|
|
606
|
-
*
|
|
607
|
-
* @generated from protobuf enum value: INTERNAL_ERROR = 90;
|
|
608
|
-
*/
|
|
609
|
-
INTERNAL_ERROR = 90
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Solver of a CAPTCHA challenge.
|
|
613
|
-
*
|
|
614
|
-
* @generated from protobuf enum sid.v1.common.CaptchaKind
|
|
615
|
-
*/
|
|
616
|
-
export enum CaptchaKind {
|
|
617
|
-
/**
|
|
618
|
-
* @generated from protobuf enum value: CAPTCHA_KIND_UNSPECIFIED = 0;
|
|
619
|
-
*/
|
|
620
|
-
UNSPECIFIED = 0,
|
|
621
|
-
/**
|
|
622
|
-
* SID's own proof of work, solved without a third party.
|
|
623
|
-
*
|
|
624
|
-
* @generated from protobuf enum value: CAPTCHA_KIND_SID_POW = 1;
|
|
625
|
-
*/
|
|
626
|
-
SID_POW = 1,
|
|
627
|
-
/**
|
|
628
|
-
* hCaptcha widget.
|
|
629
|
-
*
|
|
630
|
-
* @generated from protobuf enum value: CAPTCHA_KIND_HCAPTCHA = 2;
|
|
631
|
-
*/
|
|
632
|
-
HCAPTCHA = 2,
|
|
633
|
-
/**
|
|
634
|
-
* Cloudflare Turnstile widget.
|
|
635
|
-
*
|
|
636
|
-
* @generated from protobuf enum value: CAPTCHA_KIND_TURNSTILE = 3;
|
|
637
|
-
*/
|
|
638
|
-
TURNSTILE = 3
|
|
639
|
-
}
|
|
640
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
641
|
-
class CaptchaChallenge$Type extends MessageType<CaptchaChallenge> {
|
|
642
|
-
constructor() {
|
|
643
|
-
super("sid.v1.common.CaptchaChallenge", [
|
|
644
|
-
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
645
|
-
{ no: 2, name: "kind", kind: "enum", T: () => ["sid.v1.common.CaptchaKind", CaptchaKind, "CAPTCHA_KIND_"] },
|
|
646
|
-
{ no: 3, name: "site_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
647
|
-
{ no: 4, name: "difficulty", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
648
|
-
]);
|
|
649
|
-
}
|
|
650
|
-
create(value?: PartialMessage<CaptchaChallenge>): CaptchaChallenge {
|
|
651
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
652
|
-
message.challengeId = "";
|
|
653
|
-
message.kind = 0;
|
|
654
|
-
message.siteKey = "";
|
|
655
|
-
message.difficulty = 0;
|
|
656
|
-
if (value !== undefined)
|
|
657
|
-
reflectionMergePartial<CaptchaChallenge>(this, message, value);
|
|
658
|
-
return message;
|
|
659
|
-
}
|
|
660
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CaptchaChallenge): CaptchaChallenge {
|
|
661
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
662
|
-
while (reader.pos < end) {
|
|
663
|
-
let [fieldNo, wireType] = reader.tag();
|
|
664
|
-
switch (fieldNo) {
|
|
665
|
-
case /* string challenge_id */ 1:
|
|
666
|
-
message.challengeId = reader.string();
|
|
667
|
-
break;
|
|
668
|
-
case /* sid.v1.common.CaptchaKind kind */ 2:
|
|
669
|
-
message.kind = reader.int32();
|
|
670
|
-
break;
|
|
671
|
-
case /* string site_key */ 3:
|
|
672
|
-
message.siteKey = reader.string();
|
|
673
|
-
break;
|
|
674
|
-
case /* uint32 difficulty */ 4:
|
|
675
|
-
message.difficulty = reader.uint32();
|
|
676
|
-
break;
|
|
677
|
-
default:
|
|
678
|
-
let u = options.readUnknownField;
|
|
679
|
-
if (u === "throw")
|
|
680
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
681
|
-
let d = reader.skip(wireType);
|
|
682
|
-
if (u !== false)
|
|
683
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
return message;
|
|
687
|
-
}
|
|
688
|
-
internalBinaryWrite(message: CaptchaChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
689
|
-
/* string challenge_id = 1; */
|
|
690
|
-
if (message.challengeId !== "")
|
|
691
|
-
writer.tag(1, WireType.LengthDelimited).string(message.challengeId);
|
|
692
|
-
/* sid.v1.common.CaptchaKind kind = 2; */
|
|
693
|
-
if (message.kind !== 0)
|
|
694
|
-
writer.tag(2, WireType.Varint).int32(message.kind);
|
|
695
|
-
/* string site_key = 3; */
|
|
696
|
-
if (message.siteKey !== "")
|
|
697
|
-
writer.tag(3, WireType.LengthDelimited).string(message.siteKey);
|
|
698
|
-
/* uint32 difficulty = 4; */
|
|
699
|
-
if (message.difficulty !== 0)
|
|
700
|
-
writer.tag(4, WireType.Varint).uint32(message.difficulty);
|
|
701
|
-
let u = options.writeUnknownFields;
|
|
702
|
-
if (u !== false)
|
|
703
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
704
|
-
return writer;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
/**
|
|
708
|
-
* @generated MessageType for protobuf message sid.v1.common.CaptchaChallenge
|
|
709
|
-
*/
|
|
710
|
-
export const CaptchaChallenge = new CaptchaChallenge$Type();
|