@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,781 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/admin.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
16
|
-
import { Value } from "../../../google/protobuf/struct";
|
|
17
|
-
import { ProfileStatus } from "../identity/identity";
|
|
18
|
-
// ── Instance claim ──
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf message sid.v1.admin.ClaimInstanceRequest
|
|
22
|
-
*/
|
|
23
|
-
export interface ClaimInstanceRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Instance claim token (`sidclaim_...`) the operator read from the service log
|
|
26
|
-
* of an installation that has no administrator. Bearer secret: never logged.
|
|
27
|
-
*
|
|
28
|
-
* @generated from protobuf field: string claim_token = 1
|
|
29
|
-
*/
|
|
30
|
-
claimToken: string;
|
|
31
|
-
}
|
|
32
|
-
// ── Admin Update Profile ──
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf message sid.v1.admin.AdminUpdateProfileRequest
|
|
36
|
-
*/
|
|
37
|
-
export interface AdminUpdateProfileRequest {
|
|
38
|
-
/**
|
|
39
|
-
* Target profile UUID. Admin specifies which profile to update.
|
|
40
|
-
*
|
|
41
|
-
* @generated from protobuf field: string profile_id = 1
|
|
42
|
-
*/
|
|
43
|
-
profileId: string;
|
|
44
|
-
/**
|
|
45
|
-
* New profile status. Server validates transition (e.g., ACTIVE→SUSPENDED allowed,
|
|
46
|
-
* CLOSED→ACTIVE not allowed). Zero value = no change.
|
|
47
|
-
*
|
|
48
|
-
* @generated from protobuf field: sid.v1.identity.ProfileStatus profile_status = 2
|
|
49
|
-
*/
|
|
50
|
-
profileStatus: ProfileStatus;
|
|
51
|
-
/**
|
|
52
|
-
* Roles to assign (replaces existing role set).
|
|
53
|
-
*
|
|
54
|
-
* @generated from protobuf field: repeated string roles = 3
|
|
55
|
-
*/
|
|
56
|
-
roles: string[];
|
|
57
|
-
/**
|
|
58
|
-
* Override email verification status.
|
|
59
|
-
*
|
|
60
|
-
* @generated from protobuf field: optional bool email_verified = 4
|
|
61
|
-
*/
|
|
62
|
-
emailVerified?: boolean;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @generated from protobuf message sid.v1.admin.AdminUpdateProfileResponse
|
|
66
|
-
*/
|
|
67
|
-
export interface AdminUpdateProfileResponse {
|
|
68
|
-
/**
|
|
69
|
-
* @generated from protobuf field: string profile_id = 1
|
|
70
|
-
*/
|
|
71
|
-
profileId: string;
|
|
72
|
-
}
|
|
73
|
-
// ── Revoke All Sessions ──
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf message sid.v1.admin.RevokeAllSessionsRequest
|
|
77
|
-
*/
|
|
78
|
-
export interface RevokeAllSessionsRequest {
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf field: string profile_id = 1
|
|
81
|
-
*/
|
|
82
|
-
profileId: string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf message sid.v1.admin.RevokeAllSessionsResponse
|
|
86
|
-
*/
|
|
87
|
-
export interface RevokeAllSessionsResponse {
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf field: uint64 revoked_count = 1
|
|
90
|
-
*/
|
|
91
|
-
revokedCount: bigint;
|
|
92
|
-
}
|
|
93
|
-
// ── Profile Metadata ──
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @generated from protobuf message sid.v1.admin.ProfileMetadataEntry
|
|
97
|
-
*/
|
|
98
|
-
export interface ProfileMetadataEntry {
|
|
99
|
-
/**
|
|
100
|
-
* @generated from protobuf field: string profile_id = 1
|
|
101
|
-
*/
|
|
102
|
-
profileId: string;
|
|
103
|
-
/**
|
|
104
|
-
* @generated from protobuf field: string key = 2
|
|
105
|
-
*/
|
|
106
|
-
key: string;
|
|
107
|
-
/**
|
|
108
|
-
* @generated from protobuf field: google.protobuf.Value value = 3
|
|
109
|
-
*/
|
|
110
|
-
value?: Value;
|
|
111
|
-
/**
|
|
112
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 4
|
|
113
|
-
*/
|
|
114
|
-
updatedAt?: Timestamp;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @generated from protobuf message sid.v1.admin.ListProfileMetadataRequest
|
|
118
|
-
*/
|
|
119
|
-
export interface ListProfileMetadataRequest {
|
|
120
|
-
/**
|
|
121
|
-
* @generated from protobuf field: string profile_id = 1
|
|
122
|
-
*/
|
|
123
|
-
profileId: string;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @generated from protobuf message sid.v1.admin.ListProfileMetadataResponse
|
|
127
|
-
*/
|
|
128
|
-
export interface ListProfileMetadataResponse {
|
|
129
|
-
/**
|
|
130
|
-
* @generated from protobuf field: repeated sid.v1.admin.ProfileMetadataEntry entries = 1
|
|
131
|
-
*/
|
|
132
|
-
entries: ProfileMetadataEntry[];
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* @generated from protobuf message sid.v1.admin.GetProfileMetadataRequest
|
|
136
|
-
*/
|
|
137
|
-
export interface GetProfileMetadataRequest {
|
|
138
|
-
/**
|
|
139
|
-
* @generated from protobuf field: string profile_id = 1
|
|
140
|
-
*/
|
|
141
|
-
profileId: string;
|
|
142
|
-
/**
|
|
143
|
-
* @generated from protobuf field: string key = 2
|
|
144
|
-
*/
|
|
145
|
-
key: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @generated from protobuf message sid.v1.admin.SetProfileMetadataRequest
|
|
149
|
-
*/
|
|
150
|
-
export interface SetProfileMetadataRequest {
|
|
151
|
-
/**
|
|
152
|
-
* @generated from protobuf field: string profile_id = 1
|
|
153
|
-
*/
|
|
154
|
-
profileId: string;
|
|
155
|
-
/**
|
|
156
|
-
* @generated from protobuf field: string key = 2
|
|
157
|
-
*/
|
|
158
|
-
key: string;
|
|
159
|
-
/**
|
|
160
|
-
* @generated from protobuf field: google.protobuf.Value value = 3
|
|
161
|
-
*/
|
|
162
|
-
value?: Value;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @generated from protobuf message sid.v1.admin.DeleteProfileMetadataRequest
|
|
166
|
-
*/
|
|
167
|
-
export interface DeleteProfileMetadataRequest {
|
|
168
|
-
/**
|
|
169
|
-
* @generated from protobuf field: string profile_id = 1
|
|
170
|
-
*/
|
|
171
|
-
profileId: string;
|
|
172
|
-
/**
|
|
173
|
-
* @generated from protobuf field: string key = 2
|
|
174
|
-
*/
|
|
175
|
-
key: string;
|
|
176
|
-
}
|
|
177
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
178
|
-
class ClaimInstanceRequest$Type extends MessageType<ClaimInstanceRequest> {
|
|
179
|
-
constructor() {
|
|
180
|
-
super("sid.v1.admin.ClaimInstanceRequest", [
|
|
181
|
-
{ no: 1, name: "claim_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
182
|
-
]);
|
|
183
|
-
}
|
|
184
|
-
create(value?: PartialMessage<ClaimInstanceRequest>): ClaimInstanceRequest {
|
|
185
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
186
|
-
message.claimToken = "";
|
|
187
|
-
if (value !== undefined)
|
|
188
|
-
reflectionMergePartial<ClaimInstanceRequest>(this, message, value);
|
|
189
|
-
return message;
|
|
190
|
-
}
|
|
191
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimInstanceRequest): ClaimInstanceRequest {
|
|
192
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
193
|
-
while (reader.pos < end) {
|
|
194
|
-
let [fieldNo, wireType] = reader.tag();
|
|
195
|
-
switch (fieldNo) {
|
|
196
|
-
case /* string claim_token */ 1:
|
|
197
|
-
message.claimToken = reader.string();
|
|
198
|
-
break;
|
|
199
|
-
default:
|
|
200
|
-
let u = options.readUnknownField;
|
|
201
|
-
if (u === "throw")
|
|
202
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
203
|
-
let d = reader.skip(wireType);
|
|
204
|
-
if (u !== false)
|
|
205
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return message;
|
|
209
|
-
}
|
|
210
|
-
internalBinaryWrite(message: ClaimInstanceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
211
|
-
/* string claim_token = 1; */
|
|
212
|
-
if (message.claimToken !== "")
|
|
213
|
-
writer.tag(1, WireType.LengthDelimited).string(message.claimToken);
|
|
214
|
-
let u = options.writeUnknownFields;
|
|
215
|
-
if (u !== false)
|
|
216
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
217
|
-
return writer;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* @generated MessageType for protobuf message sid.v1.admin.ClaimInstanceRequest
|
|
222
|
-
*/
|
|
223
|
-
export const ClaimInstanceRequest = new ClaimInstanceRequest$Type();
|
|
224
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
225
|
-
class AdminUpdateProfileRequest$Type extends MessageType<AdminUpdateProfileRequest> {
|
|
226
|
-
constructor() {
|
|
227
|
-
super("sid.v1.admin.AdminUpdateProfileRequest", [
|
|
228
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
229
|
-
{ no: 2, name: "profile_status", kind: "enum", T: () => ["sid.v1.identity.ProfileStatus", ProfileStatus, "PROFILE_STATUS_"] },
|
|
230
|
-
{ no: 3, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
231
|
-
{ no: 4, name: "email_verified", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
232
|
-
]);
|
|
233
|
-
}
|
|
234
|
-
create(value?: PartialMessage<AdminUpdateProfileRequest>): AdminUpdateProfileRequest {
|
|
235
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
236
|
-
message.profileId = "";
|
|
237
|
-
message.profileStatus = 0;
|
|
238
|
-
message.roles = [];
|
|
239
|
-
if (value !== undefined)
|
|
240
|
-
reflectionMergePartial<AdminUpdateProfileRequest>(this, message, value);
|
|
241
|
-
return message;
|
|
242
|
-
}
|
|
243
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminUpdateProfileRequest): AdminUpdateProfileRequest {
|
|
244
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
245
|
-
while (reader.pos < end) {
|
|
246
|
-
let [fieldNo, wireType] = reader.tag();
|
|
247
|
-
switch (fieldNo) {
|
|
248
|
-
case /* string profile_id */ 1:
|
|
249
|
-
message.profileId = reader.string();
|
|
250
|
-
break;
|
|
251
|
-
case /* sid.v1.identity.ProfileStatus profile_status */ 2:
|
|
252
|
-
message.profileStatus = reader.int32();
|
|
253
|
-
break;
|
|
254
|
-
case /* repeated string roles */ 3:
|
|
255
|
-
message.roles.push(reader.string());
|
|
256
|
-
break;
|
|
257
|
-
case /* optional bool email_verified */ 4:
|
|
258
|
-
message.emailVerified = reader.bool();
|
|
259
|
-
break;
|
|
260
|
-
default:
|
|
261
|
-
let u = options.readUnknownField;
|
|
262
|
-
if (u === "throw")
|
|
263
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
264
|
-
let d = reader.skip(wireType);
|
|
265
|
-
if (u !== false)
|
|
266
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return message;
|
|
270
|
-
}
|
|
271
|
-
internalBinaryWrite(message: AdminUpdateProfileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
272
|
-
/* string profile_id = 1; */
|
|
273
|
-
if (message.profileId !== "")
|
|
274
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
275
|
-
/* sid.v1.identity.ProfileStatus profile_status = 2; */
|
|
276
|
-
if (message.profileStatus !== 0)
|
|
277
|
-
writer.tag(2, WireType.Varint).int32(message.profileStatus);
|
|
278
|
-
/* repeated string roles = 3; */
|
|
279
|
-
for (let i = 0; i < message.roles.length; i++)
|
|
280
|
-
writer.tag(3, WireType.LengthDelimited).string(message.roles[i]);
|
|
281
|
-
/* optional bool email_verified = 4; */
|
|
282
|
-
if (message.emailVerified !== undefined)
|
|
283
|
-
writer.tag(4, WireType.Varint).bool(message.emailVerified);
|
|
284
|
-
let u = options.writeUnknownFields;
|
|
285
|
-
if (u !== false)
|
|
286
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
287
|
-
return writer;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminUpdateProfileRequest
|
|
292
|
-
*/
|
|
293
|
-
export const AdminUpdateProfileRequest = new AdminUpdateProfileRequest$Type();
|
|
294
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
295
|
-
class AdminUpdateProfileResponse$Type extends MessageType<AdminUpdateProfileResponse> {
|
|
296
|
-
constructor() {
|
|
297
|
-
super("sid.v1.admin.AdminUpdateProfileResponse", [
|
|
298
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
299
|
-
]);
|
|
300
|
-
}
|
|
301
|
-
create(value?: PartialMessage<AdminUpdateProfileResponse>): AdminUpdateProfileResponse {
|
|
302
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
303
|
-
message.profileId = "";
|
|
304
|
-
if (value !== undefined)
|
|
305
|
-
reflectionMergePartial<AdminUpdateProfileResponse>(this, message, value);
|
|
306
|
-
return message;
|
|
307
|
-
}
|
|
308
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminUpdateProfileResponse): AdminUpdateProfileResponse {
|
|
309
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
310
|
-
while (reader.pos < end) {
|
|
311
|
-
let [fieldNo, wireType] = reader.tag();
|
|
312
|
-
switch (fieldNo) {
|
|
313
|
-
case /* string profile_id */ 1:
|
|
314
|
-
message.profileId = reader.string();
|
|
315
|
-
break;
|
|
316
|
-
default:
|
|
317
|
-
let u = options.readUnknownField;
|
|
318
|
-
if (u === "throw")
|
|
319
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
320
|
-
let d = reader.skip(wireType);
|
|
321
|
-
if (u !== false)
|
|
322
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
return message;
|
|
326
|
-
}
|
|
327
|
-
internalBinaryWrite(message: AdminUpdateProfileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
328
|
-
/* string profile_id = 1; */
|
|
329
|
-
if (message.profileId !== "")
|
|
330
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
331
|
-
let u = options.writeUnknownFields;
|
|
332
|
-
if (u !== false)
|
|
333
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
334
|
-
return writer;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminUpdateProfileResponse
|
|
339
|
-
*/
|
|
340
|
-
export const AdminUpdateProfileResponse = new AdminUpdateProfileResponse$Type();
|
|
341
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
342
|
-
class RevokeAllSessionsRequest$Type extends MessageType<RevokeAllSessionsRequest> {
|
|
343
|
-
constructor() {
|
|
344
|
-
super("sid.v1.admin.RevokeAllSessionsRequest", [
|
|
345
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
346
|
-
]);
|
|
347
|
-
}
|
|
348
|
-
create(value?: PartialMessage<RevokeAllSessionsRequest>): RevokeAllSessionsRequest {
|
|
349
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
350
|
-
message.profileId = "";
|
|
351
|
-
if (value !== undefined)
|
|
352
|
-
reflectionMergePartial<RevokeAllSessionsRequest>(this, message, value);
|
|
353
|
-
return message;
|
|
354
|
-
}
|
|
355
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAllSessionsRequest): RevokeAllSessionsRequest {
|
|
356
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
357
|
-
while (reader.pos < end) {
|
|
358
|
-
let [fieldNo, wireType] = reader.tag();
|
|
359
|
-
switch (fieldNo) {
|
|
360
|
-
case /* string profile_id */ 1:
|
|
361
|
-
message.profileId = reader.string();
|
|
362
|
-
break;
|
|
363
|
-
default:
|
|
364
|
-
let u = options.readUnknownField;
|
|
365
|
-
if (u === "throw")
|
|
366
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
367
|
-
let d = reader.skip(wireType);
|
|
368
|
-
if (u !== false)
|
|
369
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return message;
|
|
373
|
-
}
|
|
374
|
-
internalBinaryWrite(message: RevokeAllSessionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
375
|
-
/* string profile_id = 1; */
|
|
376
|
-
if (message.profileId !== "")
|
|
377
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
378
|
-
let u = options.writeUnknownFields;
|
|
379
|
-
if (u !== false)
|
|
380
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
381
|
-
return writer;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeAllSessionsRequest
|
|
386
|
-
*/
|
|
387
|
-
export const RevokeAllSessionsRequest = new RevokeAllSessionsRequest$Type();
|
|
388
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
389
|
-
class RevokeAllSessionsResponse$Type extends MessageType<RevokeAllSessionsResponse> {
|
|
390
|
-
constructor() {
|
|
391
|
-
super("sid.v1.admin.RevokeAllSessionsResponse", [
|
|
392
|
-
{ no: 1, name: "revoked_count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
393
|
-
]);
|
|
394
|
-
}
|
|
395
|
-
create(value?: PartialMessage<RevokeAllSessionsResponse>): RevokeAllSessionsResponse {
|
|
396
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
397
|
-
message.revokedCount = 0n;
|
|
398
|
-
if (value !== undefined)
|
|
399
|
-
reflectionMergePartial<RevokeAllSessionsResponse>(this, message, value);
|
|
400
|
-
return message;
|
|
401
|
-
}
|
|
402
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAllSessionsResponse): RevokeAllSessionsResponse {
|
|
403
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
404
|
-
while (reader.pos < end) {
|
|
405
|
-
let [fieldNo, wireType] = reader.tag();
|
|
406
|
-
switch (fieldNo) {
|
|
407
|
-
case /* uint64 revoked_count */ 1:
|
|
408
|
-
message.revokedCount = reader.uint64().toBigInt();
|
|
409
|
-
break;
|
|
410
|
-
default:
|
|
411
|
-
let u = options.readUnknownField;
|
|
412
|
-
if (u === "throw")
|
|
413
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
414
|
-
let d = reader.skip(wireType);
|
|
415
|
-
if (u !== false)
|
|
416
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
return message;
|
|
420
|
-
}
|
|
421
|
-
internalBinaryWrite(message: RevokeAllSessionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
422
|
-
/* uint64 revoked_count = 1; */
|
|
423
|
-
if (message.revokedCount !== 0n)
|
|
424
|
-
writer.tag(1, WireType.Varint).uint64(message.revokedCount);
|
|
425
|
-
let u = options.writeUnknownFields;
|
|
426
|
-
if (u !== false)
|
|
427
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
428
|
-
return writer;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeAllSessionsResponse
|
|
433
|
-
*/
|
|
434
|
-
export const RevokeAllSessionsResponse = new RevokeAllSessionsResponse$Type();
|
|
435
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
436
|
-
class ProfileMetadataEntry$Type extends MessageType<ProfileMetadataEntry> {
|
|
437
|
-
constructor() {
|
|
438
|
-
super("sid.v1.admin.ProfileMetadataEntry", [
|
|
439
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
440
|
-
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
441
|
-
{ no: 3, name: "value", kind: "message", T: () => Value },
|
|
442
|
-
{ no: 4, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
443
|
-
]);
|
|
444
|
-
}
|
|
445
|
-
create(value?: PartialMessage<ProfileMetadataEntry>): ProfileMetadataEntry {
|
|
446
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
447
|
-
message.profileId = "";
|
|
448
|
-
message.key = "";
|
|
449
|
-
if (value !== undefined)
|
|
450
|
-
reflectionMergePartial<ProfileMetadataEntry>(this, message, value);
|
|
451
|
-
return message;
|
|
452
|
-
}
|
|
453
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileMetadataEntry): ProfileMetadataEntry {
|
|
454
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
455
|
-
while (reader.pos < end) {
|
|
456
|
-
let [fieldNo, wireType] = reader.tag();
|
|
457
|
-
switch (fieldNo) {
|
|
458
|
-
case /* string profile_id */ 1:
|
|
459
|
-
message.profileId = reader.string();
|
|
460
|
-
break;
|
|
461
|
-
case /* string key */ 2:
|
|
462
|
-
message.key = reader.string();
|
|
463
|
-
break;
|
|
464
|
-
case /* google.protobuf.Value value */ 3:
|
|
465
|
-
message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
|
|
466
|
-
break;
|
|
467
|
-
case /* google.protobuf.Timestamp updated_at */ 4:
|
|
468
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
469
|
-
break;
|
|
470
|
-
default:
|
|
471
|
-
let u = options.readUnknownField;
|
|
472
|
-
if (u === "throw")
|
|
473
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
474
|
-
let d = reader.skip(wireType);
|
|
475
|
-
if (u !== false)
|
|
476
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
return message;
|
|
480
|
-
}
|
|
481
|
-
internalBinaryWrite(message: ProfileMetadataEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
482
|
-
/* string profile_id = 1; */
|
|
483
|
-
if (message.profileId !== "")
|
|
484
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
485
|
-
/* string key = 2; */
|
|
486
|
-
if (message.key !== "")
|
|
487
|
-
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
488
|
-
/* google.protobuf.Value value = 3; */
|
|
489
|
-
if (message.value)
|
|
490
|
-
Value.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
491
|
-
/* google.protobuf.Timestamp updated_at = 4; */
|
|
492
|
-
if (message.updatedAt)
|
|
493
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
494
|
-
let u = options.writeUnknownFields;
|
|
495
|
-
if (u !== false)
|
|
496
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
497
|
-
return writer;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* @generated MessageType for protobuf message sid.v1.admin.ProfileMetadataEntry
|
|
502
|
-
*/
|
|
503
|
-
export const ProfileMetadataEntry = new ProfileMetadataEntry$Type();
|
|
504
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
505
|
-
class ListProfileMetadataRequest$Type extends MessageType<ListProfileMetadataRequest> {
|
|
506
|
-
constructor() {
|
|
507
|
-
super("sid.v1.admin.ListProfileMetadataRequest", [
|
|
508
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
509
|
-
]);
|
|
510
|
-
}
|
|
511
|
-
create(value?: PartialMessage<ListProfileMetadataRequest>): ListProfileMetadataRequest {
|
|
512
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
513
|
-
message.profileId = "";
|
|
514
|
-
if (value !== undefined)
|
|
515
|
-
reflectionMergePartial<ListProfileMetadataRequest>(this, message, value);
|
|
516
|
-
return message;
|
|
517
|
-
}
|
|
518
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProfileMetadataRequest): ListProfileMetadataRequest {
|
|
519
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
520
|
-
while (reader.pos < end) {
|
|
521
|
-
let [fieldNo, wireType] = reader.tag();
|
|
522
|
-
switch (fieldNo) {
|
|
523
|
-
case /* string profile_id */ 1:
|
|
524
|
-
message.profileId = reader.string();
|
|
525
|
-
break;
|
|
526
|
-
default:
|
|
527
|
-
let u = options.readUnknownField;
|
|
528
|
-
if (u === "throw")
|
|
529
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
530
|
-
let d = reader.skip(wireType);
|
|
531
|
-
if (u !== false)
|
|
532
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
return message;
|
|
536
|
-
}
|
|
537
|
-
internalBinaryWrite(message: ListProfileMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
538
|
-
/* string profile_id = 1; */
|
|
539
|
-
if (message.profileId !== "")
|
|
540
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
541
|
-
let u = options.writeUnknownFields;
|
|
542
|
-
if (u !== false)
|
|
543
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
544
|
-
return writer;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListProfileMetadataRequest
|
|
549
|
-
*/
|
|
550
|
-
export const ListProfileMetadataRequest = new ListProfileMetadataRequest$Type();
|
|
551
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
552
|
-
class ListProfileMetadataResponse$Type extends MessageType<ListProfileMetadataResponse> {
|
|
553
|
-
constructor() {
|
|
554
|
-
super("sid.v1.admin.ListProfileMetadataResponse", [
|
|
555
|
-
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProfileMetadataEntry }
|
|
556
|
-
]);
|
|
557
|
-
}
|
|
558
|
-
create(value?: PartialMessage<ListProfileMetadataResponse>): ListProfileMetadataResponse {
|
|
559
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
560
|
-
message.entries = [];
|
|
561
|
-
if (value !== undefined)
|
|
562
|
-
reflectionMergePartial<ListProfileMetadataResponse>(this, message, value);
|
|
563
|
-
return message;
|
|
564
|
-
}
|
|
565
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProfileMetadataResponse): ListProfileMetadataResponse {
|
|
566
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
567
|
-
while (reader.pos < end) {
|
|
568
|
-
let [fieldNo, wireType] = reader.tag();
|
|
569
|
-
switch (fieldNo) {
|
|
570
|
-
case /* repeated sid.v1.admin.ProfileMetadataEntry entries */ 1:
|
|
571
|
-
message.entries.push(ProfileMetadataEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
572
|
-
break;
|
|
573
|
-
default:
|
|
574
|
-
let u = options.readUnknownField;
|
|
575
|
-
if (u === "throw")
|
|
576
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
577
|
-
let d = reader.skip(wireType);
|
|
578
|
-
if (u !== false)
|
|
579
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
return message;
|
|
583
|
-
}
|
|
584
|
-
internalBinaryWrite(message: ListProfileMetadataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
585
|
-
/* repeated sid.v1.admin.ProfileMetadataEntry entries = 1; */
|
|
586
|
-
for (let i = 0; i < message.entries.length; i++)
|
|
587
|
-
ProfileMetadataEntry.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
588
|
-
let u = options.writeUnknownFields;
|
|
589
|
-
if (u !== false)
|
|
590
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
591
|
-
return writer;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListProfileMetadataResponse
|
|
596
|
-
*/
|
|
597
|
-
export const ListProfileMetadataResponse = new ListProfileMetadataResponse$Type();
|
|
598
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
599
|
-
class GetProfileMetadataRequest$Type extends MessageType<GetProfileMetadataRequest> {
|
|
600
|
-
constructor() {
|
|
601
|
-
super("sid.v1.admin.GetProfileMetadataRequest", [
|
|
602
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
603
|
-
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
604
|
-
]);
|
|
605
|
-
}
|
|
606
|
-
create(value?: PartialMessage<GetProfileMetadataRequest>): GetProfileMetadataRequest {
|
|
607
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
608
|
-
message.profileId = "";
|
|
609
|
-
message.key = "";
|
|
610
|
-
if (value !== undefined)
|
|
611
|
-
reflectionMergePartial<GetProfileMetadataRequest>(this, message, value);
|
|
612
|
-
return message;
|
|
613
|
-
}
|
|
614
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProfileMetadataRequest): GetProfileMetadataRequest {
|
|
615
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
616
|
-
while (reader.pos < end) {
|
|
617
|
-
let [fieldNo, wireType] = reader.tag();
|
|
618
|
-
switch (fieldNo) {
|
|
619
|
-
case /* string profile_id */ 1:
|
|
620
|
-
message.profileId = reader.string();
|
|
621
|
-
break;
|
|
622
|
-
case /* string key */ 2:
|
|
623
|
-
message.key = reader.string();
|
|
624
|
-
break;
|
|
625
|
-
default:
|
|
626
|
-
let u = options.readUnknownField;
|
|
627
|
-
if (u === "throw")
|
|
628
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
629
|
-
let d = reader.skip(wireType);
|
|
630
|
-
if (u !== false)
|
|
631
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
return message;
|
|
635
|
-
}
|
|
636
|
-
internalBinaryWrite(message: GetProfileMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
637
|
-
/* string profile_id = 1; */
|
|
638
|
-
if (message.profileId !== "")
|
|
639
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
640
|
-
/* string key = 2; */
|
|
641
|
-
if (message.key !== "")
|
|
642
|
-
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
643
|
-
let u = options.writeUnknownFields;
|
|
644
|
-
if (u !== false)
|
|
645
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
646
|
-
return writer;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetProfileMetadataRequest
|
|
651
|
-
*/
|
|
652
|
-
export const GetProfileMetadataRequest = new GetProfileMetadataRequest$Type();
|
|
653
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
654
|
-
class SetProfileMetadataRequest$Type extends MessageType<SetProfileMetadataRequest> {
|
|
655
|
-
constructor() {
|
|
656
|
-
super("sid.v1.admin.SetProfileMetadataRequest", [
|
|
657
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
658
|
-
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
659
|
-
{ no: 3, name: "value", kind: "message", T: () => Value }
|
|
660
|
-
]);
|
|
661
|
-
}
|
|
662
|
-
create(value?: PartialMessage<SetProfileMetadataRequest>): SetProfileMetadataRequest {
|
|
663
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
664
|
-
message.profileId = "";
|
|
665
|
-
message.key = "";
|
|
666
|
-
if (value !== undefined)
|
|
667
|
-
reflectionMergePartial<SetProfileMetadataRequest>(this, message, value);
|
|
668
|
-
return message;
|
|
669
|
-
}
|
|
670
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetProfileMetadataRequest): SetProfileMetadataRequest {
|
|
671
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
672
|
-
while (reader.pos < end) {
|
|
673
|
-
let [fieldNo, wireType] = reader.tag();
|
|
674
|
-
switch (fieldNo) {
|
|
675
|
-
case /* string profile_id */ 1:
|
|
676
|
-
message.profileId = reader.string();
|
|
677
|
-
break;
|
|
678
|
-
case /* string key */ 2:
|
|
679
|
-
message.key = reader.string();
|
|
680
|
-
break;
|
|
681
|
-
case /* google.protobuf.Value value */ 3:
|
|
682
|
-
message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
|
|
683
|
-
break;
|
|
684
|
-
default:
|
|
685
|
-
let u = options.readUnknownField;
|
|
686
|
-
if (u === "throw")
|
|
687
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
688
|
-
let d = reader.skip(wireType);
|
|
689
|
-
if (u !== false)
|
|
690
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
return message;
|
|
694
|
-
}
|
|
695
|
-
internalBinaryWrite(message: SetProfileMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
696
|
-
/* string profile_id = 1; */
|
|
697
|
-
if (message.profileId !== "")
|
|
698
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
699
|
-
/* string key = 2; */
|
|
700
|
-
if (message.key !== "")
|
|
701
|
-
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
702
|
-
/* google.protobuf.Value value = 3; */
|
|
703
|
-
if (message.value)
|
|
704
|
-
Value.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
705
|
-
let u = options.writeUnknownFields;
|
|
706
|
-
if (u !== false)
|
|
707
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
708
|
-
return writer;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* @generated MessageType for protobuf message sid.v1.admin.SetProfileMetadataRequest
|
|
713
|
-
*/
|
|
714
|
-
export const SetProfileMetadataRequest = new SetProfileMetadataRequest$Type();
|
|
715
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
716
|
-
class DeleteProfileMetadataRequest$Type extends MessageType<DeleteProfileMetadataRequest> {
|
|
717
|
-
constructor() {
|
|
718
|
-
super("sid.v1.admin.DeleteProfileMetadataRequest", [
|
|
719
|
-
{ no: 1, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
720
|
-
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
721
|
-
]);
|
|
722
|
-
}
|
|
723
|
-
create(value?: PartialMessage<DeleteProfileMetadataRequest>): DeleteProfileMetadataRequest {
|
|
724
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
725
|
-
message.profileId = "";
|
|
726
|
-
message.key = "";
|
|
727
|
-
if (value !== undefined)
|
|
728
|
-
reflectionMergePartial<DeleteProfileMetadataRequest>(this, message, value);
|
|
729
|
-
return message;
|
|
730
|
-
}
|
|
731
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProfileMetadataRequest): DeleteProfileMetadataRequest {
|
|
732
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
733
|
-
while (reader.pos < end) {
|
|
734
|
-
let [fieldNo, wireType] = reader.tag();
|
|
735
|
-
switch (fieldNo) {
|
|
736
|
-
case /* string profile_id */ 1:
|
|
737
|
-
message.profileId = reader.string();
|
|
738
|
-
break;
|
|
739
|
-
case /* string key */ 2:
|
|
740
|
-
message.key = reader.string();
|
|
741
|
-
break;
|
|
742
|
-
default:
|
|
743
|
-
let u = options.readUnknownField;
|
|
744
|
-
if (u === "throw")
|
|
745
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
746
|
-
let d = reader.skip(wireType);
|
|
747
|
-
if (u !== false)
|
|
748
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return message;
|
|
752
|
-
}
|
|
753
|
-
internalBinaryWrite(message: DeleteProfileMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
754
|
-
/* string profile_id = 1; */
|
|
755
|
-
if (message.profileId !== "")
|
|
756
|
-
writer.tag(1, WireType.LengthDelimited).string(message.profileId);
|
|
757
|
-
/* string key = 2; */
|
|
758
|
-
if (message.key !== "")
|
|
759
|
-
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
760
|
-
let u = options.writeUnknownFields;
|
|
761
|
-
if (u !== false)
|
|
762
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
763
|
-
return writer;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* @generated MessageType for protobuf message sid.v1.admin.DeleteProfileMetadataRequest
|
|
768
|
-
*/
|
|
769
|
-
export const DeleteProfileMetadataRequest = new DeleteProfileMetadataRequest$Type();
|
|
770
|
-
/**
|
|
771
|
-
* @generated ServiceType for protobuf service sid.v1.admin.AdminService
|
|
772
|
-
*/
|
|
773
|
-
export const AdminService = new ServiceType("sid.v1.admin.AdminService", [
|
|
774
|
-
{ name: "ClaimInstance", options: { "google.api.http": { post: "/v1/admin/claim", body: "*" } }, I: ClaimInstanceRequest, O: Empty },
|
|
775
|
-
{ name: "AdminUpdateProfile", options: { "google.api.http": { patch: "/v1/admin/profiles/{profile_id}", body: "*" } }, I: AdminUpdateProfileRequest, O: AdminUpdateProfileResponse },
|
|
776
|
-
{ name: "RevokeAllSessions", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/profiles/{profile_id}/sessions" } }, I: RevokeAllSessionsRequest, O: RevokeAllSessionsResponse },
|
|
777
|
-
{ name: "ListProfileMetadata", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/profiles/{profile_id}/metadata" } }, I: ListProfileMetadataRequest, O: ListProfileMetadataResponse },
|
|
778
|
-
{ name: "GetProfileMetadata", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/profiles/{profile_id}/metadata/{key}" } }, I: GetProfileMetadataRequest, O: ProfileMetadataEntry },
|
|
779
|
-
{ name: "SetProfileMetadata", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/admin/profiles/{profile_id}/metadata/{key}", body: "*" } }, I: SetProfileMetadataRequest, O: ProfileMetadataEntry },
|
|
780
|
-
{ name: "DeleteProfileMetadata", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/profiles/{profile_id}/metadata/{key}" } }, I: DeleteProfileMetadataRequest, O: Empty }
|
|
781
|
-
]);
|