@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,1948 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/migration.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 type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
-
import { WireType } 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
|
-
// ── Blueprint Messages ──
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf message sid.v1.admin.ExportBlueprintRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ExportBlueprintRequest {
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf field: repeated sid.v1.admin.BlueprintCategory categories = 1
|
|
24
|
-
*/
|
|
25
|
-
categories: BlueprintCategory[];
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf field: sid.v1.admin.BlueprintScope scope = 2
|
|
28
|
-
*/
|
|
29
|
-
scope: BlueprintScope;
|
|
30
|
-
/**
|
|
31
|
-
* Scope target: site ID or org ID.
|
|
32
|
-
*
|
|
33
|
-
* @generated from protobuf field: string scope_target_id = 3
|
|
34
|
-
*/
|
|
35
|
-
scopeTargetId: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf message sid.v1.admin.ExportBlueprintResponse
|
|
39
|
-
*/
|
|
40
|
-
export interface ExportBlueprintResponse {
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: string yaml_content = 1
|
|
43
|
-
*/
|
|
44
|
-
yamlContent: string;
|
|
45
|
-
/**
|
|
46
|
-
* @generated from protobuf field: string filename = 2
|
|
47
|
-
*/
|
|
48
|
-
filename: string;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf field: string schema_version = 3
|
|
51
|
-
*/
|
|
52
|
-
schemaVersion: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf message sid.v1.admin.ImportBlueprintRequest
|
|
56
|
-
*/
|
|
57
|
-
export interface ImportBlueprintRequest {
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf field: string yaml_content = 1
|
|
60
|
-
*/
|
|
61
|
-
yamlContent: string;
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: bool dry_run = 2
|
|
64
|
-
*/
|
|
65
|
-
dryRun: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: sid.v1.admin.ConflictResolution default_conflict_resolution = 3
|
|
68
|
-
*/
|
|
69
|
-
defaultConflictResolution: ConflictResolution;
|
|
70
|
-
/**
|
|
71
|
-
* Per-entity conflict overrides.
|
|
72
|
-
*
|
|
73
|
-
* @generated from protobuf field: repeated sid.v1.admin.ConflictOverride conflict_overrides = 4
|
|
74
|
-
*/
|
|
75
|
-
conflictOverrides: ConflictOverride[];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf message sid.v1.admin.ConflictOverride
|
|
79
|
-
*/
|
|
80
|
-
export interface ConflictOverride {
|
|
81
|
-
/**
|
|
82
|
-
* @generated from protobuf field: string entity_type = 1
|
|
83
|
-
*/
|
|
84
|
-
entityType: string;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf field: string entity_name = 2
|
|
87
|
-
*/
|
|
88
|
-
entityName: string;
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: sid.v1.admin.ConflictResolution resolution = 3
|
|
91
|
-
*/
|
|
92
|
-
resolution: ConflictResolution;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @generated from protobuf message sid.v1.admin.ImportPreviewItem
|
|
96
|
-
*/
|
|
97
|
-
export interface ImportPreviewItem {
|
|
98
|
-
/**
|
|
99
|
-
* @generated from protobuf field: string entity_type = 1
|
|
100
|
-
*/
|
|
101
|
-
entityType: string;
|
|
102
|
-
/**
|
|
103
|
-
* @generated from protobuf field: string entity_name = 2
|
|
104
|
-
*/
|
|
105
|
-
entityName: string;
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf field: sid.v1.admin.ImportAction action = 3
|
|
108
|
-
*/
|
|
109
|
-
action: ImportAction;
|
|
110
|
-
/**
|
|
111
|
-
* Diff for updates (unified diff format).
|
|
112
|
-
*
|
|
113
|
-
* @generated from protobuf field: string diff = 4
|
|
114
|
-
*/
|
|
115
|
-
diff: string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @generated from protobuf message sid.v1.admin.ImportBlueprintResponse
|
|
119
|
-
*/
|
|
120
|
-
export interface ImportBlueprintResponse {
|
|
121
|
-
/**
|
|
122
|
-
* @generated from protobuf field: bool dry_run = 1
|
|
123
|
-
*/
|
|
124
|
-
dryRun: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* @generated from protobuf field: repeated sid.v1.admin.ImportPreviewItem items = 2
|
|
127
|
-
*/
|
|
128
|
-
items: ImportPreviewItem[];
|
|
129
|
-
/**
|
|
130
|
-
* @generated from protobuf field: uint32 created = 3
|
|
131
|
-
*/
|
|
132
|
-
created: number;
|
|
133
|
-
/**
|
|
134
|
-
* @generated from protobuf field: uint32 updated = 4
|
|
135
|
-
*/
|
|
136
|
-
updated: number;
|
|
137
|
-
/**
|
|
138
|
-
* @generated from protobuf field: uint32 skipped = 5
|
|
139
|
-
*/
|
|
140
|
-
skipped: number;
|
|
141
|
-
/**
|
|
142
|
-
* @generated from protobuf field: uint32 errors = 6
|
|
143
|
-
*/
|
|
144
|
-
errors: number;
|
|
145
|
-
/**
|
|
146
|
-
* @generated from protobuf field: repeated string error_messages = 7
|
|
147
|
-
*/
|
|
148
|
-
errorMessages: string[];
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* @generated from protobuf message sid.v1.admin.ExportEntityRequest
|
|
152
|
-
*/
|
|
153
|
-
export interface ExportEntityRequest {
|
|
154
|
-
/**
|
|
155
|
-
* @generated from protobuf field: string entity_type = 1
|
|
156
|
-
*/
|
|
157
|
-
entityType: string;
|
|
158
|
-
/**
|
|
159
|
-
* @generated from protobuf field: string entity_id = 2
|
|
160
|
-
*/
|
|
161
|
-
entityId: string;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @generated from protobuf message sid.v1.admin.ExportEntityResponse
|
|
165
|
-
*/
|
|
166
|
-
export interface ExportEntityResponse {
|
|
167
|
-
/**
|
|
168
|
-
* @generated from protobuf field: string yaml_content = 1
|
|
169
|
-
*/
|
|
170
|
-
yamlContent: string;
|
|
171
|
-
}
|
|
172
|
-
// ── Migration Wizard Messages ──
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @generated from protobuf message sid.v1.admin.ParseMigrationFileRequest
|
|
176
|
-
*/
|
|
177
|
-
export interface ParseMigrationFileRequest {
|
|
178
|
-
/**
|
|
179
|
-
* @generated from protobuf field: sid.v1.admin.MigrationSource source = 1
|
|
180
|
-
*/
|
|
181
|
-
source: MigrationSource;
|
|
182
|
-
/**
|
|
183
|
-
* File content (base64-encoded for binary formats).
|
|
184
|
-
*
|
|
185
|
-
* @generated from protobuf field: string file_content = 2
|
|
186
|
-
*/
|
|
187
|
-
fileContent: string;
|
|
188
|
-
/**
|
|
189
|
-
* @generated from protobuf field: string filename = 3
|
|
190
|
-
*/
|
|
191
|
-
filename: string;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* @generated from protobuf message sid.v1.admin.DetectedEntity
|
|
195
|
-
*/
|
|
196
|
-
export interface DetectedEntity {
|
|
197
|
-
/**
|
|
198
|
-
* @generated from protobuf field: string entity_type = 1
|
|
199
|
-
*/
|
|
200
|
-
entityType: string;
|
|
201
|
-
/**
|
|
202
|
-
* @generated from protobuf field: uint32 count = 2
|
|
203
|
-
*/
|
|
204
|
-
count: number;
|
|
205
|
-
/**
|
|
206
|
-
* @generated from protobuf field: string sid_entity = 3
|
|
207
|
-
*/
|
|
208
|
-
sidEntity: string;
|
|
209
|
-
/**
|
|
210
|
-
* @generated from protobuf field: string notes = 4
|
|
211
|
-
*/
|
|
212
|
-
notes: string;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @generated from protobuf message sid.v1.admin.ParseMigrationFileResponse
|
|
216
|
-
*/
|
|
217
|
-
export interface ParseMigrationFileResponse {
|
|
218
|
-
/**
|
|
219
|
-
* @generated from protobuf field: sid.v1.admin.MigrationSource detected_source = 1
|
|
220
|
-
*/
|
|
221
|
-
detectedSource: MigrationSource;
|
|
222
|
-
/**
|
|
223
|
-
* @generated from protobuf field: string source_version = 2
|
|
224
|
-
*/
|
|
225
|
-
sourceVersion: string;
|
|
226
|
-
/**
|
|
227
|
-
* @generated from protobuf field: repeated sid.v1.admin.DetectedEntity entities = 3
|
|
228
|
-
*/
|
|
229
|
-
entities: DetectedEntity[];
|
|
230
|
-
/**
|
|
231
|
-
* @generated from protobuf field: sid.v1.admin.LegacyHashAlgorithm password_algorithm = 4
|
|
232
|
-
*/
|
|
233
|
-
passwordAlgorithm: LegacyHashAlgorithm;
|
|
234
|
-
/**
|
|
235
|
-
* @generated from protobuf field: uint32 user_count = 5
|
|
236
|
-
*/
|
|
237
|
-
userCount: number;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf message sid.v1.admin.EntityMapping
|
|
241
|
-
*/
|
|
242
|
-
export interface EntityMapping {
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf field: string source_entity = 1
|
|
245
|
-
*/
|
|
246
|
-
sourceEntity: string;
|
|
247
|
-
/**
|
|
248
|
-
* @generated from protobuf field: string sid_entity = 2
|
|
249
|
-
*/
|
|
250
|
-
sidEntity: string;
|
|
251
|
-
/**
|
|
252
|
-
* Field-level mapping.
|
|
253
|
-
*
|
|
254
|
-
* @generated from protobuf field: repeated sid.v1.admin.FieldMapping fields = 3
|
|
255
|
-
*/
|
|
256
|
-
fields: FieldMapping[];
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* @generated from protobuf message sid.v1.admin.FieldMapping
|
|
260
|
-
*/
|
|
261
|
-
export interface FieldMapping {
|
|
262
|
-
/**
|
|
263
|
-
* @generated from protobuf field: string source_field = 1
|
|
264
|
-
*/
|
|
265
|
-
sourceField: string;
|
|
266
|
-
/**
|
|
267
|
-
* @generated from protobuf field: string sid_field = 2
|
|
268
|
-
*/
|
|
269
|
-
sidField: string;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* @generated from protobuf message sid.v1.admin.ExecuteMigrationRequest
|
|
273
|
-
*/
|
|
274
|
-
export interface ExecuteMigrationRequest {
|
|
275
|
-
/**
|
|
276
|
-
* @generated from protobuf field: sid.v1.admin.MigrationSource source = 1
|
|
277
|
-
*/
|
|
278
|
-
source: MigrationSource;
|
|
279
|
-
/**
|
|
280
|
-
* @generated from protobuf field: string file_content = 2
|
|
281
|
-
*/
|
|
282
|
-
fileContent: string;
|
|
283
|
-
/**
|
|
284
|
-
* @generated from protobuf field: repeated sid.v1.admin.EntityMapping mappings = 3
|
|
285
|
-
*/
|
|
286
|
-
mappings: EntityMapping[];
|
|
287
|
-
/**
|
|
288
|
-
* @generated from protobuf field: bool dry_run = 4
|
|
289
|
-
*/
|
|
290
|
-
dryRun: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Password migration deadline (null = no deadline).
|
|
293
|
-
*
|
|
294
|
-
* @generated from protobuf field: google.protobuf.Timestamp password_deadline = 5
|
|
295
|
-
*/
|
|
296
|
-
passwordDeadline?: Timestamp;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* @generated from protobuf message sid.v1.admin.ExecuteMigrationResponse
|
|
300
|
-
*/
|
|
301
|
-
export interface ExecuteMigrationResponse {
|
|
302
|
-
/**
|
|
303
|
-
* @generated from protobuf field: string migration_id = 1
|
|
304
|
-
*/
|
|
305
|
-
migrationId: string;
|
|
306
|
-
/**
|
|
307
|
-
* @generated from protobuf field: bool dry_run = 2
|
|
308
|
-
*/
|
|
309
|
-
dryRun: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* @generated from protobuf field: sid.v1.admin.MigrationState state = 3
|
|
312
|
-
*/
|
|
313
|
-
state: MigrationState;
|
|
314
|
-
/**
|
|
315
|
-
* @generated from protobuf field: uint32 total_entities = 4
|
|
316
|
-
*/
|
|
317
|
-
totalEntities: number;
|
|
318
|
-
/**
|
|
319
|
-
* @generated from protobuf field: uint32 processed = 5
|
|
320
|
-
*/
|
|
321
|
-
processed: number;
|
|
322
|
-
/**
|
|
323
|
-
* @generated from protobuf field: uint32 succeeded = 6
|
|
324
|
-
*/
|
|
325
|
-
succeeded: number;
|
|
326
|
-
/**
|
|
327
|
-
* @generated from protobuf field: uint32 failed = 7
|
|
328
|
-
*/
|
|
329
|
-
failed: number;
|
|
330
|
-
/**
|
|
331
|
-
* @generated from protobuf field: repeated string error_messages = 8
|
|
332
|
-
*/
|
|
333
|
-
errorMessages: string[];
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* @generated from protobuf message sid.v1.admin.GetMigrationStatusRequest
|
|
337
|
-
*/
|
|
338
|
-
export interface GetMigrationStatusRequest {
|
|
339
|
-
/**
|
|
340
|
-
* @generated from protobuf field: string migration_id = 1
|
|
341
|
-
*/
|
|
342
|
-
migrationId: string;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @generated from protobuf message sid.v1.admin.MigrationStatus
|
|
346
|
-
*/
|
|
347
|
-
export interface MigrationStatus {
|
|
348
|
-
/**
|
|
349
|
-
* @generated from protobuf field: string migration_id = 1
|
|
350
|
-
*/
|
|
351
|
-
migrationId: string;
|
|
352
|
-
/**
|
|
353
|
-
* @generated from protobuf field: sid.v1.admin.MigrationState state = 2
|
|
354
|
-
*/
|
|
355
|
-
state: MigrationState;
|
|
356
|
-
/**
|
|
357
|
-
* @generated from protobuf field: sid.v1.admin.MigrationSource source = 3
|
|
358
|
-
*/
|
|
359
|
-
source: MigrationSource;
|
|
360
|
-
/**
|
|
361
|
-
* @generated from protobuf field: uint32 total_entities = 4
|
|
362
|
-
*/
|
|
363
|
-
totalEntities: number;
|
|
364
|
-
/**
|
|
365
|
-
* @generated from protobuf field: uint32 processed = 5
|
|
366
|
-
*/
|
|
367
|
-
processed: number;
|
|
368
|
-
/**
|
|
369
|
-
* @generated from protobuf field: uint32 succeeded = 6
|
|
370
|
-
*/
|
|
371
|
-
succeeded: number;
|
|
372
|
-
/**
|
|
373
|
-
* @generated from protobuf field: uint32 failed = 7
|
|
374
|
-
*/
|
|
375
|
-
failed: number;
|
|
376
|
-
/**
|
|
377
|
-
* @generated from protobuf field: google.protobuf.Timestamp started_at = 8
|
|
378
|
-
*/
|
|
379
|
-
startedAt?: Timestamp;
|
|
380
|
-
/**
|
|
381
|
-
* @generated from protobuf field: google.protobuf.Timestamp completed_at = 9
|
|
382
|
-
*/
|
|
383
|
-
completedAt?: Timestamp;
|
|
384
|
-
/**
|
|
385
|
-
* @generated from protobuf field: repeated string error_messages = 10
|
|
386
|
-
*/
|
|
387
|
-
errorMessages: string[];
|
|
388
|
-
}
|
|
389
|
-
// ── Password Migration Progress ──
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* @generated from protobuf message sid.v1.admin.PasswordMigrationProgress
|
|
393
|
-
*/
|
|
394
|
-
export interface PasswordMigrationProgress {
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf field: uint32 total_users = 1
|
|
397
|
-
*/
|
|
398
|
-
totalUsers: number;
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf field: uint32 migrated = 2
|
|
401
|
-
*/
|
|
402
|
-
migrated: number;
|
|
403
|
-
/**
|
|
404
|
-
* @generated from protobuf field: uint32 pending = 3
|
|
405
|
-
*/
|
|
406
|
-
pending: number;
|
|
407
|
-
/**
|
|
408
|
-
* @generated from protobuf field: uint32 failed = 4
|
|
409
|
-
*/
|
|
410
|
-
failed: number;
|
|
411
|
-
/**
|
|
412
|
-
* @generated from protobuf field: sid.v1.admin.LegacyHashAlgorithm algorithm = 5
|
|
413
|
-
*/
|
|
414
|
-
algorithm: LegacyHashAlgorithm;
|
|
415
|
-
/**
|
|
416
|
-
* @generated from protobuf field: google.protobuf.Timestamp deadline = 6
|
|
417
|
-
*/
|
|
418
|
-
deadline?: Timestamp;
|
|
419
|
-
/**
|
|
420
|
-
* Progress as percentage (0.0 – 100.0).
|
|
421
|
-
*
|
|
422
|
-
* @generated from protobuf field: double progress_percent = 7
|
|
423
|
-
*/
|
|
424
|
-
progressPercent: number;
|
|
425
|
-
}
|
|
426
|
-
// ── Enums ──
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* @generated from protobuf enum sid.v1.admin.BlueprintCategory
|
|
430
|
-
*/
|
|
431
|
-
export enum BlueprintCategory {
|
|
432
|
-
/**
|
|
433
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_UNSPECIFIED = 0;
|
|
434
|
-
*/
|
|
435
|
-
UNSPECIFIED = 0,
|
|
436
|
-
/**
|
|
437
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_SITES = 1;
|
|
438
|
-
*/
|
|
439
|
-
SITES = 1,
|
|
440
|
-
/**
|
|
441
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_AUTH_FLOWS = 2;
|
|
442
|
-
*/
|
|
443
|
-
AUTH_FLOWS = 2,
|
|
444
|
-
/**
|
|
445
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_APPLICATIONS = 3;
|
|
446
|
-
*/
|
|
447
|
-
APPLICATIONS = 3,
|
|
448
|
-
/**
|
|
449
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_ROLES = 4;
|
|
450
|
-
*/
|
|
451
|
-
ROLES = 4,
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_IDENTITY_PROVIDERS = 5;
|
|
454
|
-
*/
|
|
455
|
-
IDENTITY_PROVIDERS = 5,
|
|
456
|
-
/**
|
|
457
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_PASSWORD_POLICY = 6;
|
|
458
|
-
*/
|
|
459
|
-
PASSWORD_POLICY = 6,
|
|
460
|
-
/**
|
|
461
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_BRANDING = 7;
|
|
462
|
-
*/
|
|
463
|
-
BRANDING = 7,
|
|
464
|
-
/**
|
|
465
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_FEATURE_FLAGS = 8;
|
|
466
|
-
*/
|
|
467
|
-
FEATURE_FLAGS = 8,
|
|
468
|
-
/**
|
|
469
|
-
* @generated from protobuf enum value: BLUEPRINT_CATEGORY_NOTIFICATION_TEMPLATES = 9;
|
|
470
|
-
*/
|
|
471
|
-
NOTIFICATION_TEMPLATES = 9
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* @generated from protobuf enum sid.v1.admin.BlueprintScope
|
|
475
|
-
*/
|
|
476
|
-
export enum BlueprintScope {
|
|
477
|
-
/**
|
|
478
|
-
* @generated from protobuf enum value: BLUEPRINT_SCOPE_UNSPECIFIED = 0;
|
|
479
|
-
*/
|
|
480
|
-
UNSPECIFIED = 0,
|
|
481
|
-
/**
|
|
482
|
-
* @generated from protobuf enum value: BLUEPRINT_SCOPE_INSTANCE = 1;
|
|
483
|
-
*/
|
|
484
|
-
INSTANCE = 1,
|
|
485
|
-
/**
|
|
486
|
-
* @generated from protobuf enum value: BLUEPRINT_SCOPE_SITE = 2;
|
|
487
|
-
*/
|
|
488
|
-
SITE = 2,
|
|
489
|
-
/**
|
|
490
|
-
* @generated from protobuf enum value: BLUEPRINT_SCOPE_ORGANIZATION = 3;
|
|
491
|
-
*/
|
|
492
|
-
ORGANIZATION = 3
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* @generated from protobuf enum sid.v1.admin.MigrationSource
|
|
496
|
-
*/
|
|
497
|
-
export enum MigrationSource {
|
|
498
|
-
/**
|
|
499
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_UNSPECIFIED = 0;
|
|
500
|
-
*/
|
|
501
|
-
UNSPECIFIED = 0,
|
|
502
|
-
/**
|
|
503
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_KEYCLOAK = 1;
|
|
504
|
-
*/
|
|
505
|
-
KEYCLOAK = 1,
|
|
506
|
-
/**
|
|
507
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_AUTH0 = 2;
|
|
508
|
-
*/
|
|
509
|
-
AUTH0 = 2,
|
|
510
|
-
/**
|
|
511
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_OKTA = 3;
|
|
512
|
-
*/
|
|
513
|
-
OKTA = 3,
|
|
514
|
-
/**
|
|
515
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_ZITADEL = 4;
|
|
516
|
-
*/
|
|
517
|
-
ZITADEL = 4,
|
|
518
|
-
/**
|
|
519
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_AUTHENTIK = 5;
|
|
520
|
-
*/
|
|
521
|
-
AUTHENTIK = 5,
|
|
522
|
-
/**
|
|
523
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_LDAP = 6;
|
|
524
|
-
*/
|
|
525
|
-
LDAP = 6,
|
|
526
|
-
/**
|
|
527
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_SCIM = 7;
|
|
528
|
-
*/
|
|
529
|
-
SCIM = 7,
|
|
530
|
-
/**
|
|
531
|
-
* @generated from protobuf enum value: MIGRATION_SOURCE_CSV = 8;
|
|
532
|
-
*/
|
|
533
|
-
CSV = 8
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* @generated from protobuf enum sid.v1.admin.ConflictResolution
|
|
537
|
-
*/
|
|
538
|
-
export enum ConflictResolution {
|
|
539
|
-
/**
|
|
540
|
-
* @generated from protobuf enum value: CONFLICT_RESOLUTION_UNSPECIFIED = 0;
|
|
541
|
-
*/
|
|
542
|
-
UNSPECIFIED = 0,
|
|
543
|
-
/**
|
|
544
|
-
* @generated from protobuf enum value: CONFLICT_RESOLUTION_SKIP = 1;
|
|
545
|
-
*/
|
|
546
|
-
SKIP = 1,
|
|
547
|
-
/**
|
|
548
|
-
* @generated from protobuf enum value: CONFLICT_RESOLUTION_OVERWRITE = 2;
|
|
549
|
-
*/
|
|
550
|
-
OVERWRITE = 2,
|
|
551
|
-
/**
|
|
552
|
-
* @generated from protobuf enum value: CONFLICT_RESOLUTION_RENAME = 3;
|
|
553
|
-
*/
|
|
554
|
-
RENAME = 3
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* @generated from protobuf enum sid.v1.admin.MigrationState
|
|
558
|
-
*/
|
|
559
|
-
export enum MigrationState {
|
|
560
|
-
/**
|
|
561
|
-
* @generated from protobuf enum value: MIGRATION_STATE_UNSPECIFIED = 0;
|
|
562
|
-
*/
|
|
563
|
-
UNSPECIFIED = 0,
|
|
564
|
-
/**
|
|
565
|
-
* @generated from protobuf enum value: MIGRATION_STATE_PENDING = 1;
|
|
566
|
-
*/
|
|
567
|
-
PENDING = 1,
|
|
568
|
-
/**
|
|
569
|
-
* @generated from protobuf enum value: MIGRATION_STATE_RUNNING = 2;
|
|
570
|
-
*/
|
|
571
|
-
RUNNING = 2,
|
|
572
|
-
/**
|
|
573
|
-
* @generated from protobuf enum value: MIGRATION_STATE_COMPLETED = 3;
|
|
574
|
-
*/
|
|
575
|
-
COMPLETED = 3,
|
|
576
|
-
/**
|
|
577
|
-
* @generated from protobuf enum value: MIGRATION_STATE_FAILED = 4;
|
|
578
|
-
*/
|
|
579
|
-
FAILED = 4
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* @generated from protobuf enum sid.v1.admin.ImportAction
|
|
583
|
-
*/
|
|
584
|
-
export enum ImportAction {
|
|
585
|
-
/**
|
|
586
|
-
* @generated from protobuf enum value: IMPORT_ACTION_UNSPECIFIED = 0;
|
|
587
|
-
*/
|
|
588
|
-
UNSPECIFIED = 0,
|
|
589
|
-
/**
|
|
590
|
-
* @generated from protobuf enum value: IMPORT_ACTION_CREATE = 1;
|
|
591
|
-
*/
|
|
592
|
-
CREATE = 1,
|
|
593
|
-
/**
|
|
594
|
-
* @generated from protobuf enum value: IMPORT_ACTION_UPDATE = 2;
|
|
595
|
-
*/
|
|
596
|
-
UPDATE = 2,
|
|
597
|
-
/**
|
|
598
|
-
* @generated from protobuf enum value: IMPORT_ACTION_CONFLICT = 3;
|
|
599
|
-
*/
|
|
600
|
-
CONFLICT = 3,
|
|
601
|
-
/**
|
|
602
|
-
* @generated from protobuf enum value: IMPORT_ACTION_SKIP = 4;
|
|
603
|
-
*/
|
|
604
|
-
SKIP = 4
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* @generated from protobuf enum sid.v1.admin.LegacyHashAlgorithm
|
|
608
|
-
*/
|
|
609
|
-
export enum LegacyHashAlgorithm {
|
|
610
|
-
/**
|
|
611
|
-
* @generated from protobuf enum value: LEGACY_HASH_ALGORITHM_UNSPECIFIED = 0;
|
|
612
|
-
*/
|
|
613
|
-
UNSPECIFIED = 0,
|
|
614
|
-
/**
|
|
615
|
-
* @generated from protobuf enum value: LEGACY_HASH_ALGORITHM_BCRYPT = 1;
|
|
616
|
-
*/
|
|
617
|
-
BCRYPT = 1,
|
|
618
|
-
/**
|
|
619
|
-
* @generated from protobuf enum value: LEGACY_HASH_ALGORITHM_PBKDF2_SHA256 = 2;
|
|
620
|
-
*/
|
|
621
|
-
PBKDF2_SHA256 = 2,
|
|
622
|
-
/**
|
|
623
|
-
* @generated from protobuf enum value: LEGACY_HASH_ALGORITHM_ARGON2ID = 3;
|
|
624
|
-
*/
|
|
625
|
-
ARGON2ID = 3,
|
|
626
|
-
/**
|
|
627
|
-
* @generated from protobuf enum value: LEGACY_HASH_ALGORITHM_SCRYPT = 4;
|
|
628
|
-
*/
|
|
629
|
-
SCRYPT = 4
|
|
630
|
-
}
|
|
631
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
632
|
-
class ExportBlueprintRequest$Type extends MessageType<ExportBlueprintRequest> {
|
|
633
|
-
constructor() {
|
|
634
|
-
super("sid.v1.admin.ExportBlueprintRequest", [
|
|
635
|
-
{ no: 1, name: "categories", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.admin.BlueprintCategory", BlueprintCategory, "BLUEPRINT_CATEGORY_"] },
|
|
636
|
-
{ no: 2, name: "scope", kind: "enum", T: () => ["sid.v1.admin.BlueprintScope", BlueprintScope, "BLUEPRINT_SCOPE_"] },
|
|
637
|
-
{ no: 3, name: "scope_target_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
638
|
-
]);
|
|
639
|
-
}
|
|
640
|
-
create(value?: PartialMessage<ExportBlueprintRequest>): ExportBlueprintRequest {
|
|
641
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
642
|
-
message.categories = [];
|
|
643
|
-
message.scope = 0;
|
|
644
|
-
message.scopeTargetId = "";
|
|
645
|
-
if (value !== undefined)
|
|
646
|
-
reflectionMergePartial<ExportBlueprintRequest>(this, message, value);
|
|
647
|
-
return message;
|
|
648
|
-
}
|
|
649
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportBlueprintRequest): ExportBlueprintRequest {
|
|
650
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
651
|
-
while (reader.pos < end) {
|
|
652
|
-
let [fieldNo, wireType] = reader.tag();
|
|
653
|
-
switch (fieldNo) {
|
|
654
|
-
case /* repeated sid.v1.admin.BlueprintCategory categories */ 1:
|
|
655
|
-
if (wireType === WireType.LengthDelimited)
|
|
656
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
657
|
-
message.categories.push(reader.int32());
|
|
658
|
-
else
|
|
659
|
-
message.categories.push(reader.int32());
|
|
660
|
-
break;
|
|
661
|
-
case /* sid.v1.admin.BlueprintScope scope */ 2:
|
|
662
|
-
message.scope = reader.int32();
|
|
663
|
-
break;
|
|
664
|
-
case /* string scope_target_id */ 3:
|
|
665
|
-
message.scopeTargetId = reader.string();
|
|
666
|
-
break;
|
|
667
|
-
default:
|
|
668
|
-
let u = options.readUnknownField;
|
|
669
|
-
if (u === "throw")
|
|
670
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
671
|
-
let d = reader.skip(wireType);
|
|
672
|
-
if (u !== false)
|
|
673
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
return message;
|
|
677
|
-
}
|
|
678
|
-
internalBinaryWrite(message: ExportBlueprintRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
679
|
-
/* repeated sid.v1.admin.BlueprintCategory categories = 1; */
|
|
680
|
-
if (message.categories.length) {
|
|
681
|
-
writer.tag(1, WireType.LengthDelimited).fork();
|
|
682
|
-
for (let i = 0; i < message.categories.length; i++)
|
|
683
|
-
writer.int32(message.categories[i]);
|
|
684
|
-
writer.join();
|
|
685
|
-
}
|
|
686
|
-
/* sid.v1.admin.BlueprintScope scope = 2; */
|
|
687
|
-
if (message.scope !== 0)
|
|
688
|
-
writer.tag(2, WireType.Varint).int32(message.scope);
|
|
689
|
-
/* string scope_target_id = 3; */
|
|
690
|
-
if (message.scopeTargetId !== "")
|
|
691
|
-
writer.tag(3, WireType.LengthDelimited).string(message.scopeTargetId);
|
|
692
|
-
let u = options.writeUnknownFields;
|
|
693
|
-
if (u !== false)
|
|
694
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
695
|
-
return writer;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExportBlueprintRequest
|
|
700
|
-
*/
|
|
701
|
-
export const ExportBlueprintRequest = new ExportBlueprintRequest$Type();
|
|
702
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
703
|
-
class ExportBlueprintResponse$Type extends MessageType<ExportBlueprintResponse> {
|
|
704
|
-
constructor() {
|
|
705
|
-
super("sid.v1.admin.ExportBlueprintResponse", [
|
|
706
|
-
{ no: 1, name: "yaml_content", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
707
|
-
{ no: 2, name: "filename", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
708
|
-
{ no: 3, name: "schema_version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
709
|
-
]);
|
|
710
|
-
}
|
|
711
|
-
create(value?: PartialMessage<ExportBlueprintResponse>): ExportBlueprintResponse {
|
|
712
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
713
|
-
message.yamlContent = "";
|
|
714
|
-
message.filename = "";
|
|
715
|
-
message.schemaVersion = "";
|
|
716
|
-
if (value !== undefined)
|
|
717
|
-
reflectionMergePartial<ExportBlueprintResponse>(this, message, value);
|
|
718
|
-
return message;
|
|
719
|
-
}
|
|
720
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportBlueprintResponse): ExportBlueprintResponse {
|
|
721
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
722
|
-
while (reader.pos < end) {
|
|
723
|
-
let [fieldNo, wireType] = reader.tag();
|
|
724
|
-
switch (fieldNo) {
|
|
725
|
-
case /* string yaml_content */ 1:
|
|
726
|
-
message.yamlContent = reader.string();
|
|
727
|
-
break;
|
|
728
|
-
case /* string filename */ 2:
|
|
729
|
-
message.filename = reader.string();
|
|
730
|
-
break;
|
|
731
|
-
case /* string schema_version */ 3:
|
|
732
|
-
message.schemaVersion = reader.string();
|
|
733
|
-
break;
|
|
734
|
-
default:
|
|
735
|
-
let u = options.readUnknownField;
|
|
736
|
-
if (u === "throw")
|
|
737
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
738
|
-
let d = reader.skip(wireType);
|
|
739
|
-
if (u !== false)
|
|
740
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
return message;
|
|
744
|
-
}
|
|
745
|
-
internalBinaryWrite(message: ExportBlueprintResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
746
|
-
/* string yaml_content = 1; */
|
|
747
|
-
if (message.yamlContent !== "")
|
|
748
|
-
writer.tag(1, WireType.LengthDelimited).string(message.yamlContent);
|
|
749
|
-
/* string filename = 2; */
|
|
750
|
-
if (message.filename !== "")
|
|
751
|
-
writer.tag(2, WireType.LengthDelimited).string(message.filename);
|
|
752
|
-
/* string schema_version = 3; */
|
|
753
|
-
if (message.schemaVersion !== "")
|
|
754
|
-
writer.tag(3, WireType.LengthDelimited).string(message.schemaVersion);
|
|
755
|
-
let u = options.writeUnknownFields;
|
|
756
|
-
if (u !== false)
|
|
757
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
758
|
-
return writer;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExportBlueprintResponse
|
|
763
|
-
*/
|
|
764
|
-
export const ExportBlueprintResponse = new ExportBlueprintResponse$Type();
|
|
765
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
766
|
-
class ImportBlueprintRequest$Type extends MessageType<ImportBlueprintRequest> {
|
|
767
|
-
constructor() {
|
|
768
|
-
super("sid.v1.admin.ImportBlueprintRequest", [
|
|
769
|
-
{ no: 1, name: "yaml_content", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
770
|
-
{ no: 2, name: "dry_run", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
771
|
-
{ no: 3, name: "default_conflict_resolution", kind: "enum", T: () => ["sid.v1.admin.ConflictResolution", ConflictResolution, "CONFLICT_RESOLUTION_"] },
|
|
772
|
-
{ no: 4, name: "conflict_overrides", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConflictOverride }
|
|
773
|
-
]);
|
|
774
|
-
}
|
|
775
|
-
create(value?: PartialMessage<ImportBlueprintRequest>): ImportBlueprintRequest {
|
|
776
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
777
|
-
message.yamlContent = "";
|
|
778
|
-
message.dryRun = false;
|
|
779
|
-
message.defaultConflictResolution = 0;
|
|
780
|
-
message.conflictOverrides = [];
|
|
781
|
-
if (value !== undefined)
|
|
782
|
-
reflectionMergePartial<ImportBlueprintRequest>(this, message, value);
|
|
783
|
-
return message;
|
|
784
|
-
}
|
|
785
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportBlueprintRequest): ImportBlueprintRequest {
|
|
786
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
787
|
-
while (reader.pos < end) {
|
|
788
|
-
let [fieldNo, wireType] = reader.tag();
|
|
789
|
-
switch (fieldNo) {
|
|
790
|
-
case /* string yaml_content */ 1:
|
|
791
|
-
message.yamlContent = reader.string();
|
|
792
|
-
break;
|
|
793
|
-
case /* bool dry_run */ 2:
|
|
794
|
-
message.dryRun = reader.bool();
|
|
795
|
-
break;
|
|
796
|
-
case /* sid.v1.admin.ConflictResolution default_conflict_resolution */ 3:
|
|
797
|
-
message.defaultConflictResolution = reader.int32();
|
|
798
|
-
break;
|
|
799
|
-
case /* repeated sid.v1.admin.ConflictOverride conflict_overrides */ 4:
|
|
800
|
-
message.conflictOverrides.push(ConflictOverride.internalBinaryRead(reader, reader.uint32(), options));
|
|
801
|
-
break;
|
|
802
|
-
default:
|
|
803
|
-
let u = options.readUnknownField;
|
|
804
|
-
if (u === "throw")
|
|
805
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
806
|
-
let d = reader.skip(wireType);
|
|
807
|
-
if (u !== false)
|
|
808
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
return message;
|
|
812
|
-
}
|
|
813
|
-
internalBinaryWrite(message: ImportBlueprintRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
814
|
-
/* string yaml_content = 1; */
|
|
815
|
-
if (message.yamlContent !== "")
|
|
816
|
-
writer.tag(1, WireType.LengthDelimited).string(message.yamlContent);
|
|
817
|
-
/* bool dry_run = 2; */
|
|
818
|
-
if (message.dryRun !== false)
|
|
819
|
-
writer.tag(2, WireType.Varint).bool(message.dryRun);
|
|
820
|
-
/* sid.v1.admin.ConflictResolution default_conflict_resolution = 3; */
|
|
821
|
-
if (message.defaultConflictResolution !== 0)
|
|
822
|
-
writer.tag(3, WireType.Varint).int32(message.defaultConflictResolution);
|
|
823
|
-
/* repeated sid.v1.admin.ConflictOverride conflict_overrides = 4; */
|
|
824
|
-
for (let i = 0; i < message.conflictOverrides.length; i++)
|
|
825
|
-
ConflictOverride.internalBinaryWrite(message.conflictOverrides[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
826
|
-
let u = options.writeUnknownFields;
|
|
827
|
-
if (u !== false)
|
|
828
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
829
|
-
return writer;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* @generated MessageType for protobuf message sid.v1.admin.ImportBlueprintRequest
|
|
834
|
-
*/
|
|
835
|
-
export const ImportBlueprintRequest = new ImportBlueprintRequest$Type();
|
|
836
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
837
|
-
class ConflictOverride$Type extends MessageType<ConflictOverride> {
|
|
838
|
-
constructor() {
|
|
839
|
-
super("sid.v1.admin.ConflictOverride", [
|
|
840
|
-
{ no: 1, name: "entity_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
841
|
-
{ no: 2, name: "entity_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
842
|
-
{ no: 3, name: "resolution", kind: "enum", T: () => ["sid.v1.admin.ConflictResolution", ConflictResolution, "CONFLICT_RESOLUTION_"] }
|
|
843
|
-
]);
|
|
844
|
-
}
|
|
845
|
-
create(value?: PartialMessage<ConflictOverride>): ConflictOverride {
|
|
846
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
847
|
-
message.entityType = "";
|
|
848
|
-
message.entityName = "";
|
|
849
|
-
message.resolution = 0;
|
|
850
|
-
if (value !== undefined)
|
|
851
|
-
reflectionMergePartial<ConflictOverride>(this, message, value);
|
|
852
|
-
return message;
|
|
853
|
-
}
|
|
854
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConflictOverride): ConflictOverride {
|
|
855
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
856
|
-
while (reader.pos < end) {
|
|
857
|
-
let [fieldNo, wireType] = reader.tag();
|
|
858
|
-
switch (fieldNo) {
|
|
859
|
-
case /* string entity_type */ 1:
|
|
860
|
-
message.entityType = reader.string();
|
|
861
|
-
break;
|
|
862
|
-
case /* string entity_name */ 2:
|
|
863
|
-
message.entityName = reader.string();
|
|
864
|
-
break;
|
|
865
|
-
case /* sid.v1.admin.ConflictResolution resolution */ 3:
|
|
866
|
-
message.resolution = reader.int32();
|
|
867
|
-
break;
|
|
868
|
-
default:
|
|
869
|
-
let u = options.readUnknownField;
|
|
870
|
-
if (u === "throw")
|
|
871
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
872
|
-
let d = reader.skip(wireType);
|
|
873
|
-
if (u !== false)
|
|
874
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
return message;
|
|
878
|
-
}
|
|
879
|
-
internalBinaryWrite(message: ConflictOverride, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
880
|
-
/* string entity_type = 1; */
|
|
881
|
-
if (message.entityType !== "")
|
|
882
|
-
writer.tag(1, WireType.LengthDelimited).string(message.entityType);
|
|
883
|
-
/* string entity_name = 2; */
|
|
884
|
-
if (message.entityName !== "")
|
|
885
|
-
writer.tag(2, WireType.LengthDelimited).string(message.entityName);
|
|
886
|
-
/* sid.v1.admin.ConflictResolution resolution = 3; */
|
|
887
|
-
if (message.resolution !== 0)
|
|
888
|
-
writer.tag(3, WireType.Varint).int32(message.resolution);
|
|
889
|
-
let u = options.writeUnknownFields;
|
|
890
|
-
if (u !== false)
|
|
891
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
892
|
-
return writer;
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
/**
|
|
896
|
-
* @generated MessageType for protobuf message sid.v1.admin.ConflictOverride
|
|
897
|
-
*/
|
|
898
|
-
export const ConflictOverride = new ConflictOverride$Type();
|
|
899
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
900
|
-
class ImportPreviewItem$Type extends MessageType<ImportPreviewItem> {
|
|
901
|
-
constructor() {
|
|
902
|
-
super("sid.v1.admin.ImportPreviewItem", [
|
|
903
|
-
{ no: 1, name: "entity_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
904
|
-
{ no: 2, name: "entity_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
905
|
-
{ no: 3, name: "action", kind: "enum", T: () => ["sid.v1.admin.ImportAction", ImportAction, "IMPORT_ACTION_"] },
|
|
906
|
-
{ no: 4, name: "diff", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
907
|
-
]);
|
|
908
|
-
}
|
|
909
|
-
create(value?: PartialMessage<ImportPreviewItem>): ImportPreviewItem {
|
|
910
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
911
|
-
message.entityType = "";
|
|
912
|
-
message.entityName = "";
|
|
913
|
-
message.action = 0;
|
|
914
|
-
message.diff = "";
|
|
915
|
-
if (value !== undefined)
|
|
916
|
-
reflectionMergePartial<ImportPreviewItem>(this, message, value);
|
|
917
|
-
return message;
|
|
918
|
-
}
|
|
919
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportPreviewItem): ImportPreviewItem {
|
|
920
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
921
|
-
while (reader.pos < end) {
|
|
922
|
-
let [fieldNo, wireType] = reader.tag();
|
|
923
|
-
switch (fieldNo) {
|
|
924
|
-
case /* string entity_type */ 1:
|
|
925
|
-
message.entityType = reader.string();
|
|
926
|
-
break;
|
|
927
|
-
case /* string entity_name */ 2:
|
|
928
|
-
message.entityName = reader.string();
|
|
929
|
-
break;
|
|
930
|
-
case /* sid.v1.admin.ImportAction action */ 3:
|
|
931
|
-
message.action = reader.int32();
|
|
932
|
-
break;
|
|
933
|
-
case /* string diff */ 4:
|
|
934
|
-
message.diff = reader.string();
|
|
935
|
-
break;
|
|
936
|
-
default:
|
|
937
|
-
let u = options.readUnknownField;
|
|
938
|
-
if (u === "throw")
|
|
939
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
940
|
-
let d = reader.skip(wireType);
|
|
941
|
-
if (u !== false)
|
|
942
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
return message;
|
|
946
|
-
}
|
|
947
|
-
internalBinaryWrite(message: ImportPreviewItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
948
|
-
/* string entity_type = 1; */
|
|
949
|
-
if (message.entityType !== "")
|
|
950
|
-
writer.tag(1, WireType.LengthDelimited).string(message.entityType);
|
|
951
|
-
/* string entity_name = 2; */
|
|
952
|
-
if (message.entityName !== "")
|
|
953
|
-
writer.tag(2, WireType.LengthDelimited).string(message.entityName);
|
|
954
|
-
/* sid.v1.admin.ImportAction action = 3; */
|
|
955
|
-
if (message.action !== 0)
|
|
956
|
-
writer.tag(3, WireType.Varint).int32(message.action);
|
|
957
|
-
/* string diff = 4; */
|
|
958
|
-
if (message.diff !== "")
|
|
959
|
-
writer.tag(4, WireType.LengthDelimited).string(message.diff);
|
|
960
|
-
let u = options.writeUnknownFields;
|
|
961
|
-
if (u !== false)
|
|
962
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
963
|
-
return writer;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* @generated MessageType for protobuf message sid.v1.admin.ImportPreviewItem
|
|
968
|
-
*/
|
|
969
|
-
export const ImportPreviewItem = new ImportPreviewItem$Type();
|
|
970
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
971
|
-
class ImportBlueprintResponse$Type extends MessageType<ImportBlueprintResponse> {
|
|
972
|
-
constructor() {
|
|
973
|
-
super("sid.v1.admin.ImportBlueprintResponse", [
|
|
974
|
-
{ no: 1, name: "dry_run", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
975
|
-
{ no: 2, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ImportPreviewItem },
|
|
976
|
-
{ no: 3, name: "created", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
977
|
-
{ no: 4, name: "updated", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
978
|
-
{ no: 5, name: "skipped", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
979
|
-
{ no: 6, name: "errors", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
980
|
-
{ no: 7, name: "error_messages", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
981
|
-
]);
|
|
982
|
-
}
|
|
983
|
-
create(value?: PartialMessage<ImportBlueprintResponse>): ImportBlueprintResponse {
|
|
984
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
985
|
-
message.dryRun = false;
|
|
986
|
-
message.items = [];
|
|
987
|
-
message.created = 0;
|
|
988
|
-
message.updated = 0;
|
|
989
|
-
message.skipped = 0;
|
|
990
|
-
message.errors = 0;
|
|
991
|
-
message.errorMessages = [];
|
|
992
|
-
if (value !== undefined)
|
|
993
|
-
reflectionMergePartial<ImportBlueprintResponse>(this, message, value);
|
|
994
|
-
return message;
|
|
995
|
-
}
|
|
996
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportBlueprintResponse): ImportBlueprintResponse {
|
|
997
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
998
|
-
while (reader.pos < end) {
|
|
999
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1000
|
-
switch (fieldNo) {
|
|
1001
|
-
case /* bool dry_run */ 1:
|
|
1002
|
-
message.dryRun = reader.bool();
|
|
1003
|
-
break;
|
|
1004
|
-
case /* repeated sid.v1.admin.ImportPreviewItem items */ 2:
|
|
1005
|
-
message.items.push(ImportPreviewItem.internalBinaryRead(reader, reader.uint32(), options));
|
|
1006
|
-
break;
|
|
1007
|
-
case /* uint32 created */ 3:
|
|
1008
|
-
message.created = reader.uint32();
|
|
1009
|
-
break;
|
|
1010
|
-
case /* uint32 updated */ 4:
|
|
1011
|
-
message.updated = reader.uint32();
|
|
1012
|
-
break;
|
|
1013
|
-
case /* uint32 skipped */ 5:
|
|
1014
|
-
message.skipped = reader.uint32();
|
|
1015
|
-
break;
|
|
1016
|
-
case /* uint32 errors */ 6:
|
|
1017
|
-
message.errors = reader.uint32();
|
|
1018
|
-
break;
|
|
1019
|
-
case /* repeated string error_messages */ 7:
|
|
1020
|
-
message.errorMessages.push(reader.string());
|
|
1021
|
-
break;
|
|
1022
|
-
default:
|
|
1023
|
-
let u = options.readUnknownField;
|
|
1024
|
-
if (u === "throw")
|
|
1025
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1026
|
-
let d = reader.skip(wireType);
|
|
1027
|
-
if (u !== false)
|
|
1028
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
return message;
|
|
1032
|
-
}
|
|
1033
|
-
internalBinaryWrite(message: ImportBlueprintResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1034
|
-
/* bool dry_run = 1; */
|
|
1035
|
-
if (message.dryRun !== false)
|
|
1036
|
-
writer.tag(1, WireType.Varint).bool(message.dryRun);
|
|
1037
|
-
/* repeated sid.v1.admin.ImportPreviewItem items = 2; */
|
|
1038
|
-
for (let i = 0; i < message.items.length; i++)
|
|
1039
|
-
ImportPreviewItem.internalBinaryWrite(message.items[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1040
|
-
/* uint32 created = 3; */
|
|
1041
|
-
if (message.created !== 0)
|
|
1042
|
-
writer.tag(3, WireType.Varint).uint32(message.created);
|
|
1043
|
-
/* uint32 updated = 4; */
|
|
1044
|
-
if (message.updated !== 0)
|
|
1045
|
-
writer.tag(4, WireType.Varint).uint32(message.updated);
|
|
1046
|
-
/* uint32 skipped = 5; */
|
|
1047
|
-
if (message.skipped !== 0)
|
|
1048
|
-
writer.tag(5, WireType.Varint).uint32(message.skipped);
|
|
1049
|
-
/* uint32 errors = 6; */
|
|
1050
|
-
if (message.errors !== 0)
|
|
1051
|
-
writer.tag(6, WireType.Varint).uint32(message.errors);
|
|
1052
|
-
/* repeated string error_messages = 7; */
|
|
1053
|
-
for (let i = 0; i < message.errorMessages.length; i++)
|
|
1054
|
-
writer.tag(7, WireType.LengthDelimited).string(message.errorMessages[i]);
|
|
1055
|
-
let u = options.writeUnknownFields;
|
|
1056
|
-
if (u !== false)
|
|
1057
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1058
|
-
return writer;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* @generated MessageType for protobuf message sid.v1.admin.ImportBlueprintResponse
|
|
1063
|
-
*/
|
|
1064
|
-
export const ImportBlueprintResponse = new ImportBlueprintResponse$Type();
|
|
1065
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1066
|
-
class ExportEntityRequest$Type extends MessageType<ExportEntityRequest> {
|
|
1067
|
-
constructor() {
|
|
1068
|
-
super("sid.v1.admin.ExportEntityRequest", [
|
|
1069
|
-
{ no: 1, name: "entity_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1070
|
-
{ no: 2, name: "entity_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1071
|
-
]);
|
|
1072
|
-
}
|
|
1073
|
-
create(value?: PartialMessage<ExportEntityRequest>): ExportEntityRequest {
|
|
1074
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1075
|
-
message.entityType = "";
|
|
1076
|
-
message.entityId = "";
|
|
1077
|
-
if (value !== undefined)
|
|
1078
|
-
reflectionMergePartial<ExportEntityRequest>(this, message, value);
|
|
1079
|
-
return message;
|
|
1080
|
-
}
|
|
1081
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportEntityRequest): ExportEntityRequest {
|
|
1082
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1083
|
-
while (reader.pos < end) {
|
|
1084
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1085
|
-
switch (fieldNo) {
|
|
1086
|
-
case /* string entity_type */ 1:
|
|
1087
|
-
message.entityType = reader.string();
|
|
1088
|
-
break;
|
|
1089
|
-
case /* string entity_id */ 2:
|
|
1090
|
-
message.entityId = reader.string();
|
|
1091
|
-
break;
|
|
1092
|
-
default:
|
|
1093
|
-
let u = options.readUnknownField;
|
|
1094
|
-
if (u === "throw")
|
|
1095
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1096
|
-
let d = reader.skip(wireType);
|
|
1097
|
-
if (u !== false)
|
|
1098
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
return message;
|
|
1102
|
-
}
|
|
1103
|
-
internalBinaryWrite(message: ExportEntityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1104
|
-
/* string entity_type = 1; */
|
|
1105
|
-
if (message.entityType !== "")
|
|
1106
|
-
writer.tag(1, WireType.LengthDelimited).string(message.entityType);
|
|
1107
|
-
/* string entity_id = 2; */
|
|
1108
|
-
if (message.entityId !== "")
|
|
1109
|
-
writer.tag(2, WireType.LengthDelimited).string(message.entityId);
|
|
1110
|
-
let u = options.writeUnknownFields;
|
|
1111
|
-
if (u !== false)
|
|
1112
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1113
|
-
return writer;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExportEntityRequest
|
|
1118
|
-
*/
|
|
1119
|
-
export const ExportEntityRequest = new ExportEntityRequest$Type();
|
|
1120
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1121
|
-
class ExportEntityResponse$Type extends MessageType<ExportEntityResponse> {
|
|
1122
|
-
constructor() {
|
|
1123
|
-
super("sid.v1.admin.ExportEntityResponse", [
|
|
1124
|
-
{ no: 1, name: "yaml_content", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1125
|
-
]);
|
|
1126
|
-
}
|
|
1127
|
-
create(value?: PartialMessage<ExportEntityResponse>): ExportEntityResponse {
|
|
1128
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1129
|
-
message.yamlContent = "";
|
|
1130
|
-
if (value !== undefined)
|
|
1131
|
-
reflectionMergePartial<ExportEntityResponse>(this, message, value);
|
|
1132
|
-
return message;
|
|
1133
|
-
}
|
|
1134
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportEntityResponse): ExportEntityResponse {
|
|
1135
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1136
|
-
while (reader.pos < end) {
|
|
1137
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1138
|
-
switch (fieldNo) {
|
|
1139
|
-
case /* string yaml_content */ 1:
|
|
1140
|
-
message.yamlContent = reader.string();
|
|
1141
|
-
break;
|
|
1142
|
-
default:
|
|
1143
|
-
let u = options.readUnknownField;
|
|
1144
|
-
if (u === "throw")
|
|
1145
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1146
|
-
let d = reader.skip(wireType);
|
|
1147
|
-
if (u !== false)
|
|
1148
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
return message;
|
|
1152
|
-
}
|
|
1153
|
-
internalBinaryWrite(message: ExportEntityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1154
|
-
/* string yaml_content = 1; */
|
|
1155
|
-
if (message.yamlContent !== "")
|
|
1156
|
-
writer.tag(1, WireType.LengthDelimited).string(message.yamlContent);
|
|
1157
|
-
let u = options.writeUnknownFields;
|
|
1158
|
-
if (u !== false)
|
|
1159
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1160
|
-
return writer;
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExportEntityResponse
|
|
1165
|
-
*/
|
|
1166
|
-
export const ExportEntityResponse = new ExportEntityResponse$Type();
|
|
1167
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1168
|
-
class ParseMigrationFileRequest$Type extends MessageType<ParseMigrationFileRequest> {
|
|
1169
|
-
constructor() {
|
|
1170
|
-
super("sid.v1.admin.ParseMigrationFileRequest", [
|
|
1171
|
-
{ no: 1, name: "source", kind: "enum", T: () => ["sid.v1.admin.MigrationSource", MigrationSource, "MIGRATION_SOURCE_"] },
|
|
1172
|
-
{ no: 2, name: "file_content", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1173
|
-
{ no: 3, name: "filename", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1174
|
-
]);
|
|
1175
|
-
}
|
|
1176
|
-
create(value?: PartialMessage<ParseMigrationFileRequest>): ParseMigrationFileRequest {
|
|
1177
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1178
|
-
message.source = 0;
|
|
1179
|
-
message.fileContent = "";
|
|
1180
|
-
message.filename = "";
|
|
1181
|
-
if (value !== undefined)
|
|
1182
|
-
reflectionMergePartial<ParseMigrationFileRequest>(this, message, value);
|
|
1183
|
-
return message;
|
|
1184
|
-
}
|
|
1185
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParseMigrationFileRequest): ParseMigrationFileRequest {
|
|
1186
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1187
|
-
while (reader.pos < end) {
|
|
1188
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1189
|
-
switch (fieldNo) {
|
|
1190
|
-
case /* sid.v1.admin.MigrationSource source */ 1:
|
|
1191
|
-
message.source = reader.int32();
|
|
1192
|
-
break;
|
|
1193
|
-
case /* string file_content */ 2:
|
|
1194
|
-
message.fileContent = reader.string();
|
|
1195
|
-
break;
|
|
1196
|
-
case /* string filename */ 3:
|
|
1197
|
-
message.filename = reader.string();
|
|
1198
|
-
break;
|
|
1199
|
-
default:
|
|
1200
|
-
let u = options.readUnknownField;
|
|
1201
|
-
if (u === "throw")
|
|
1202
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1203
|
-
let d = reader.skip(wireType);
|
|
1204
|
-
if (u !== false)
|
|
1205
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
return message;
|
|
1209
|
-
}
|
|
1210
|
-
internalBinaryWrite(message: ParseMigrationFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1211
|
-
/* sid.v1.admin.MigrationSource source = 1; */
|
|
1212
|
-
if (message.source !== 0)
|
|
1213
|
-
writer.tag(1, WireType.Varint).int32(message.source);
|
|
1214
|
-
/* string file_content = 2; */
|
|
1215
|
-
if (message.fileContent !== "")
|
|
1216
|
-
writer.tag(2, WireType.LengthDelimited).string(message.fileContent);
|
|
1217
|
-
/* string filename = 3; */
|
|
1218
|
-
if (message.filename !== "")
|
|
1219
|
-
writer.tag(3, WireType.LengthDelimited).string(message.filename);
|
|
1220
|
-
let u = options.writeUnknownFields;
|
|
1221
|
-
if (u !== false)
|
|
1222
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1223
|
-
return writer;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
/**
|
|
1227
|
-
* @generated MessageType for protobuf message sid.v1.admin.ParseMigrationFileRequest
|
|
1228
|
-
*/
|
|
1229
|
-
export const ParseMigrationFileRequest = new ParseMigrationFileRequest$Type();
|
|
1230
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1231
|
-
class DetectedEntity$Type extends MessageType<DetectedEntity> {
|
|
1232
|
-
constructor() {
|
|
1233
|
-
super("sid.v1.admin.DetectedEntity", [
|
|
1234
|
-
{ no: 1, name: "entity_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1235
|
-
{ no: 2, name: "count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1236
|
-
{ no: 3, name: "sid_entity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1237
|
-
{ no: 4, name: "notes", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1238
|
-
]);
|
|
1239
|
-
}
|
|
1240
|
-
create(value?: PartialMessage<DetectedEntity>): DetectedEntity {
|
|
1241
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1242
|
-
message.entityType = "";
|
|
1243
|
-
message.count = 0;
|
|
1244
|
-
message.sidEntity = "";
|
|
1245
|
-
message.notes = "";
|
|
1246
|
-
if (value !== undefined)
|
|
1247
|
-
reflectionMergePartial<DetectedEntity>(this, message, value);
|
|
1248
|
-
return message;
|
|
1249
|
-
}
|
|
1250
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DetectedEntity): DetectedEntity {
|
|
1251
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1252
|
-
while (reader.pos < end) {
|
|
1253
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1254
|
-
switch (fieldNo) {
|
|
1255
|
-
case /* string entity_type */ 1:
|
|
1256
|
-
message.entityType = reader.string();
|
|
1257
|
-
break;
|
|
1258
|
-
case /* uint32 count */ 2:
|
|
1259
|
-
message.count = reader.uint32();
|
|
1260
|
-
break;
|
|
1261
|
-
case /* string sid_entity */ 3:
|
|
1262
|
-
message.sidEntity = reader.string();
|
|
1263
|
-
break;
|
|
1264
|
-
case /* string notes */ 4:
|
|
1265
|
-
message.notes = reader.string();
|
|
1266
|
-
break;
|
|
1267
|
-
default:
|
|
1268
|
-
let u = options.readUnknownField;
|
|
1269
|
-
if (u === "throw")
|
|
1270
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1271
|
-
let d = reader.skip(wireType);
|
|
1272
|
-
if (u !== false)
|
|
1273
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
return message;
|
|
1277
|
-
}
|
|
1278
|
-
internalBinaryWrite(message: DetectedEntity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1279
|
-
/* string entity_type = 1; */
|
|
1280
|
-
if (message.entityType !== "")
|
|
1281
|
-
writer.tag(1, WireType.LengthDelimited).string(message.entityType);
|
|
1282
|
-
/* uint32 count = 2; */
|
|
1283
|
-
if (message.count !== 0)
|
|
1284
|
-
writer.tag(2, WireType.Varint).uint32(message.count);
|
|
1285
|
-
/* string sid_entity = 3; */
|
|
1286
|
-
if (message.sidEntity !== "")
|
|
1287
|
-
writer.tag(3, WireType.LengthDelimited).string(message.sidEntity);
|
|
1288
|
-
/* string notes = 4; */
|
|
1289
|
-
if (message.notes !== "")
|
|
1290
|
-
writer.tag(4, WireType.LengthDelimited).string(message.notes);
|
|
1291
|
-
let u = options.writeUnknownFields;
|
|
1292
|
-
if (u !== false)
|
|
1293
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1294
|
-
return writer;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* @generated MessageType for protobuf message sid.v1.admin.DetectedEntity
|
|
1299
|
-
*/
|
|
1300
|
-
export const DetectedEntity = new DetectedEntity$Type();
|
|
1301
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1302
|
-
class ParseMigrationFileResponse$Type extends MessageType<ParseMigrationFileResponse> {
|
|
1303
|
-
constructor() {
|
|
1304
|
-
super("sid.v1.admin.ParseMigrationFileResponse", [
|
|
1305
|
-
{ no: 1, name: "detected_source", kind: "enum", T: () => ["sid.v1.admin.MigrationSource", MigrationSource, "MIGRATION_SOURCE_"] },
|
|
1306
|
-
{ no: 2, name: "source_version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1307
|
-
{ no: 3, name: "entities", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DetectedEntity },
|
|
1308
|
-
{ no: 4, name: "password_algorithm", kind: "enum", T: () => ["sid.v1.admin.LegacyHashAlgorithm", LegacyHashAlgorithm, "LEGACY_HASH_ALGORITHM_"] },
|
|
1309
|
-
{ no: 5, name: "user_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1310
|
-
]);
|
|
1311
|
-
}
|
|
1312
|
-
create(value?: PartialMessage<ParseMigrationFileResponse>): ParseMigrationFileResponse {
|
|
1313
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1314
|
-
message.detectedSource = 0;
|
|
1315
|
-
message.sourceVersion = "";
|
|
1316
|
-
message.entities = [];
|
|
1317
|
-
message.passwordAlgorithm = 0;
|
|
1318
|
-
message.userCount = 0;
|
|
1319
|
-
if (value !== undefined)
|
|
1320
|
-
reflectionMergePartial<ParseMigrationFileResponse>(this, message, value);
|
|
1321
|
-
return message;
|
|
1322
|
-
}
|
|
1323
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParseMigrationFileResponse): ParseMigrationFileResponse {
|
|
1324
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1325
|
-
while (reader.pos < end) {
|
|
1326
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1327
|
-
switch (fieldNo) {
|
|
1328
|
-
case /* sid.v1.admin.MigrationSource detected_source */ 1:
|
|
1329
|
-
message.detectedSource = reader.int32();
|
|
1330
|
-
break;
|
|
1331
|
-
case /* string source_version */ 2:
|
|
1332
|
-
message.sourceVersion = reader.string();
|
|
1333
|
-
break;
|
|
1334
|
-
case /* repeated sid.v1.admin.DetectedEntity entities */ 3:
|
|
1335
|
-
message.entities.push(DetectedEntity.internalBinaryRead(reader, reader.uint32(), options));
|
|
1336
|
-
break;
|
|
1337
|
-
case /* sid.v1.admin.LegacyHashAlgorithm password_algorithm */ 4:
|
|
1338
|
-
message.passwordAlgorithm = reader.int32();
|
|
1339
|
-
break;
|
|
1340
|
-
case /* uint32 user_count */ 5:
|
|
1341
|
-
message.userCount = reader.uint32();
|
|
1342
|
-
break;
|
|
1343
|
-
default:
|
|
1344
|
-
let u = options.readUnknownField;
|
|
1345
|
-
if (u === "throw")
|
|
1346
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1347
|
-
let d = reader.skip(wireType);
|
|
1348
|
-
if (u !== false)
|
|
1349
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
return message;
|
|
1353
|
-
}
|
|
1354
|
-
internalBinaryWrite(message: ParseMigrationFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1355
|
-
/* sid.v1.admin.MigrationSource detected_source = 1; */
|
|
1356
|
-
if (message.detectedSource !== 0)
|
|
1357
|
-
writer.tag(1, WireType.Varint).int32(message.detectedSource);
|
|
1358
|
-
/* string source_version = 2; */
|
|
1359
|
-
if (message.sourceVersion !== "")
|
|
1360
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sourceVersion);
|
|
1361
|
-
/* repeated sid.v1.admin.DetectedEntity entities = 3; */
|
|
1362
|
-
for (let i = 0; i < message.entities.length; i++)
|
|
1363
|
-
DetectedEntity.internalBinaryWrite(message.entities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1364
|
-
/* sid.v1.admin.LegacyHashAlgorithm password_algorithm = 4; */
|
|
1365
|
-
if (message.passwordAlgorithm !== 0)
|
|
1366
|
-
writer.tag(4, WireType.Varint).int32(message.passwordAlgorithm);
|
|
1367
|
-
/* uint32 user_count = 5; */
|
|
1368
|
-
if (message.userCount !== 0)
|
|
1369
|
-
writer.tag(5, WireType.Varint).uint32(message.userCount);
|
|
1370
|
-
let u = options.writeUnknownFields;
|
|
1371
|
-
if (u !== false)
|
|
1372
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1373
|
-
return writer;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
/**
|
|
1377
|
-
* @generated MessageType for protobuf message sid.v1.admin.ParseMigrationFileResponse
|
|
1378
|
-
*/
|
|
1379
|
-
export const ParseMigrationFileResponse = new ParseMigrationFileResponse$Type();
|
|
1380
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1381
|
-
class EntityMapping$Type extends MessageType<EntityMapping> {
|
|
1382
|
-
constructor() {
|
|
1383
|
-
super("sid.v1.admin.EntityMapping", [
|
|
1384
|
-
{ no: 1, name: "source_entity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1385
|
-
{ no: 2, name: "sid_entity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1386
|
-
{ no: 3, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldMapping }
|
|
1387
|
-
]);
|
|
1388
|
-
}
|
|
1389
|
-
create(value?: PartialMessage<EntityMapping>): EntityMapping {
|
|
1390
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1391
|
-
message.sourceEntity = "";
|
|
1392
|
-
message.sidEntity = "";
|
|
1393
|
-
message.fields = [];
|
|
1394
|
-
if (value !== undefined)
|
|
1395
|
-
reflectionMergePartial<EntityMapping>(this, message, value);
|
|
1396
|
-
return message;
|
|
1397
|
-
}
|
|
1398
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EntityMapping): EntityMapping {
|
|
1399
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1400
|
-
while (reader.pos < end) {
|
|
1401
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1402
|
-
switch (fieldNo) {
|
|
1403
|
-
case /* string source_entity */ 1:
|
|
1404
|
-
message.sourceEntity = reader.string();
|
|
1405
|
-
break;
|
|
1406
|
-
case /* string sid_entity */ 2:
|
|
1407
|
-
message.sidEntity = reader.string();
|
|
1408
|
-
break;
|
|
1409
|
-
case /* repeated sid.v1.admin.FieldMapping fields */ 3:
|
|
1410
|
-
message.fields.push(FieldMapping.internalBinaryRead(reader, reader.uint32(), options));
|
|
1411
|
-
break;
|
|
1412
|
-
default:
|
|
1413
|
-
let u = options.readUnknownField;
|
|
1414
|
-
if (u === "throw")
|
|
1415
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1416
|
-
let d = reader.skip(wireType);
|
|
1417
|
-
if (u !== false)
|
|
1418
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
return message;
|
|
1422
|
-
}
|
|
1423
|
-
internalBinaryWrite(message: EntityMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1424
|
-
/* string source_entity = 1; */
|
|
1425
|
-
if (message.sourceEntity !== "")
|
|
1426
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sourceEntity);
|
|
1427
|
-
/* string sid_entity = 2; */
|
|
1428
|
-
if (message.sidEntity !== "")
|
|
1429
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sidEntity);
|
|
1430
|
-
/* repeated sid.v1.admin.FieldMapping fields = 3; */
|
|
1431
|
-
for (let i = 0; i < message.fields.length; i++)
|
|
1432
|
-
FieldMapping.internalBinaryWrite(message.fields[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1433
|
-
let u = options.writeUnknownFields;
|
|
1434
|
-
if (u !== false)
|
|
1435
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1436
|
-
return writer;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
/**
|
|
1440
|
-
* @generated MessageType for protobuf message sid.v1.admin.EntityMapping
|
|
1441
|
-
*/
|
|
1442
|
-
export const EntityMapping = new EntityMapping$Type();
|
|
1443
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1444
|
-
class FieldMapping$Type extends MessageType<FieldMapping> {
|
|
1445
|
-
constructor() {
|
|
1446
|
-
super("sid.v1.admin.FieldMapping", [
|
|
1447
|
-
{ no: 1, name: "source_field", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1448
|
-
{ no: 2, name: "sid_field", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1449
|
-
]);
|
|
1450
|
-
}
|
|
1451
|
-
create(value?: PartialMessage<FieldMapping>): FieldMapping {
|
|
1452
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1453
|
-
message.sourceField = "";
|
|
1454
|
-
message.sidField = "";
|
|
1455
|
-
if (value !== undefined)
|
|
1456
|
-
reflectionMergePartial<FieldMapping>(this, message, value);
|
|
1457
|
-
return message;
|
|
1458
|
-
}
|
|
1459
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldMapping): FieldMapping {
|
|
1460
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1461
|
-
while (reader.pos < end) {
|
|
1462
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1463
|
-
switch (fieldNo) {
|
|
1464
|
-
case /* string source_field */ 1:
|
|
1465
|
-
message.sourceField = reader.string();
|
|
1466
|
-
break;
|
|
1467
|
-
case /* string sid_field */ 2:
|
|
1468
|
-
message.sidField = reader.string();
|
|
1469
|
-
break;
|
|
1470
|
-
default:
|
|
1471
|
-
let u = options.readUnknownField;
|
|
1472
|
-
if (u === "throw")
|
|
1473
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1474
|
-
let d = reader.skip(wireType);
|
|
1475
|
-
if (u !== false)
|
|
1476
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
return message;
|
|
1480
|
-
}
|
|
1481
|
-
internalBinaryWrite(message: FieldMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1482
|
-
/* string source_field = 1; */
|
|
1483
|
-
if (message.sourceField !== "")
|
|
1484
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sourceField);
|
|
1485
|
-
/* string sid_field = 2; */
|
|
1486
|
-
if (message.sidField !== "")
|
|
1487
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sidField);
|
|
1488
|
-
let u = options.writeUnknownFields;
|
|
1489
|
-
if (u !== false)
|
|
1490
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1491
|
-
return writer;
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
/**
|
|
1495
|
-
* @generated MessageType for protobuf message sid.v1.admin.FieldMapping
|
|
1496
|
-
*/
|
|
1497
|
-
export const FieldMapping = new FieldMapping$Type();
|
|
1498
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1499
|
-
class ExecuteMigrationRequest$Type extends MessageType<ExecuteMigrationRequest> {
|
|
1500
|
-
constructor() {
|
|
1501
|
-
super("sid.v1.admin.ExecuteMigrationRequest", [
|
|
1502
|
-
{ no: 1, name: "source", kind: "enum", T: () => ["sid.v1.admin.MigrationSource", MigrationSource, "MIGRATION_SOURCE_"] },
|
|
1503
|
-
{ no: 2, name: "file_content", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1504
|
-
{ no: 3, name: "mappings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityMapping },
|
|
1505
|
-
{ no: 4, name: "dry_run", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1506
|
-
{ no: 5, name: "password_deadline", kind: "message", T: () => Timestamp }
|
|
1507
|
-
]);
|
|
1508
|
-
}
|
|
1509
|
-
create(value?: PartialMessage<ExecuteMigrationRequest>): ExecuteMigrationRequest {
|
|
1510
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1511
|
-
message.source = 0;
|
|
1512
|
-
message.fileContent = "";
|
|
1513
|
-
message.mappings = [];
|
|
1514
|
-
message.dryRun = false;
|
|
1515
|
-
if (value !== undefined)
|
|
1516
|
-
reflectionMergePartial<ExecuteMigrationRequest>(this, message, value);
|
|
1517
|
-
return message;
|
|
1518
|
-
}
|
|
1519
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecuteMigrationRequest): ExecuteMigrationRequest {
|
|
1520
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1521
|
-
while (reader.pos < end) {
|
|
1522
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1523
|
-
switch (fieldNo) {
|
|
1524
|
-
case /* sid.v1.admin.MigrationSource source */ 1:
|
|
1525
|
-
message.source = reader.int32();
|
|
1526
|
-
break;
|
|
1527
|
-
case /* string file_content */ 2:
|
|
1528
|
-
message.fileContent = reader.string();
|
|
1529
|
-
break;
|
|
1530
|
-
case /* repeated sid.v1.admin.EntityMapping mappings */ 3:
|
|
1531
|
-
message.mappings.push(EntityMapping.internalBinaryRead(reader, reader.uint32(), options));
|
|
1532
|
-
break;
|
|
1533
|
-
case /* bool dry_run */ 4:
|
|
1534
|
-
message.dryRun = reader.bool();
|
|
1535
|
-
break;
|
|
1536
|
-
case /* google.protobuf.Timestamp password_deadline */ 5:
|
|
1537
|
-
message.passwordDeadline = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.passwordDeadline);
|
|
1538
|
-
break;
|
|
1539
|
-
default:
|
|
1540
|
-
let u = options.readUnknownField;
|
|
1541
|
-
if (u === "throw")
|
|
1542
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1543
|
-
let d = reader.skip(wireType);
|
|
1544
|
-
if (u !== false)
|
|
1545
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
return message;
|
|
1549
|
-
}
|
|
1550
|
-
internalBinaryWrite(message: ExecuteMigrationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1551
|
-
/* sid.v1.admin.MigrationSource source = 1; */
|
|
1552
|
-
if (message.source !== 0)
|
|
1553
|
-
writer.tag(1, WireType.Varint).int32(message.source);
|
|
1554
|
-
/* string file_content = 2; */
|
|
1555
|
-
if (message.fileContent !== "")
|
|
1556
|
-
writer.tag(2, WireType.LengthDelimited).string(message.fileContent);
|
|
1557
|
-
/* repeated sid.v1.admin.EntityMapping mappings = 3; */
|
|
1558
|
-
for (let i = 0; i < message.mappings.length; i++)
|
|
1559
|
-
EntityMapping.internalBinaryWrite(message.mappings[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1560
|
-
/* bool dry_run = 4; */
|
|
1561
|
-
if (message.dryRun !== false)
|
|
1562
|
-
writer.tag(4, WireType.Varint).bool(message.dryRun);
|
|
1563
|
-
/* google.protobuf.Timestamp password_deadline = 5; */
|
|
1564
|
-
if (message.passwordDeadline)
|
|
1565
|
-
Timestamp.internalBinaryWrite(message.passwordDeadline, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1566
|
-
let u = options.writeUnknownFields;
|
|
1567
|
-
if (u !== false)
|
|
1568
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1569
|
-
return writer;
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
/**
|
|
1573
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExecuteMigrationRequest
|
|
1574
|
-
*/
|
|
1575
|
-
export const ExecuteMigrationRequest = new ExecuteMigrationRequest$Type();
|
|
1576
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1577
|
-
class ExecuteMigrationResponse$Type extends MessageType<ExecuteMigrationResponse> {
|
|
1578
|
-
constructor() {
|
|
1579
|
-
super("sid.v1.admin.ExecuteMigrationResponse", [
|
|
1580
|
-
{ no: 1, name: "migration_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1581
|
-
{ no: 2, name: "dry_run", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1582
|
-
{ no: 3, name: "state", kind: "enum", T: () => ["sid.v1.admin.MigrationState", MigrationState, "MIGRATION_STATE_"] },
|
|
1583
|
-
{ no: 4, name: "total_entities", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1584
|
-
{ no: 5, name: "processed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1585
|
-
{ no: 6, name: "succeeded", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1586
|
-
{ no: 7, name: "failed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1587
|
-
{ no: 8, name: "error_messages", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1588
|
-
]);
|
|
1589
|
-
}
|
|
1590
|
-
create(value?: PartialMessage<ExecuteMigrationResponse>): ExecuteMigrationResponse {
|
|
1591
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1592
|
-
message.migrationId = "";
|
|
1593
|
-
message.dryRun = false;
|
|
1594
|
-
message.state = 0;
|
|
1595
|
-
message.totalEntities = 0;
|
|
1596
|
-
message.processed = 0;
|
|
1597
|
-
message.succeeded = 0;
|
|
1598
|
-
message.failed = 0;
|
|
1599
|
-
message.errorMessages = [];
|
|
1600
|
-
if (value !== undefined)
|
|
1601
|
-
reflectionMergePartial<ExecuteMigrationResponse>(this, message, value);
|
|
1602
|
-
return message;
|
|
1603
|
-
}
|
|
1604
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecuteMigrationResponse): ExecuteMigrationResponse {
|
|
1605
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1606
|
-
while (reader.pos < end) {
|
|
1607
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1608
|
-
switch (fieldNo) {
|
|
1609
|
-
case /* string migration_id */ 1:
|
|
1610
|
-
message.migrationId = reader.string();
|
|
1611
|
-
break;
|
|
1612
|
-
case /* bool dry_run */ 2:
|
|
1613
|
-
message.dryRun = reader.bool();
|
|
1614
|
-
break;
|
|
1615
|
-
case /* sid.v1.admin.MigrationState state */ 3:
|
|
1616
|
-
message.state = reader.int32();
|
|
1617
|
-
break;
|
|
1618
|
-
case /* uint32 total_entities */ 4:
|
|
1619
|
-
message.totalEntities = reader.uint32();
|
|
1620
|
-
break;
|
|
1621
|
-
case /* uint32 processed */ 5:
|
|
1622
|
-
message.processed = reader.uint32();
|
|
1623
|
-
break;
|
|
1624
|
-
case /* uint32 succeeded */ 6:
|
|
1625
|
-
message.succeeded = reader.uint32();
|
|
1626
|
-
break;
|
|
1627
|
-
case /* uint32 failed */ 7:
|
|
1628
|
-
message.failed = reader.uint32();
|
|
1629
|
-
break;
|
|
1630
|
-
case /* repeated string error_messages */ 8:
|
|
1631
|
-
message.errorMessages.push(reader.string());
|
|
1632
|
-
break;
|
|
1633
|
-
default:
|
|
1634
|
-
let u = options.readUnknownField;
|
|
1635
|
-
if (u === "throw")
|
|
1636
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1637
|
-
let d = reader.skip(wireType);
|
|
1638
|
-
if (u !== false)
|
|
1639
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
return message;
|
|
1643
|
-
}
|
|
1644
|
-
internalBinaryWrite(message: ExecuteMigrationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1645
|
-
/* string migration_id = 1; */
|
|
1646
|
-
if (message.migrationId !== "")
|
|
1647
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationId);
|
|
1648
|
-
/* bool dry_run = 2; */
|
|
1649
|
-
if (message.dryRun !== false)
|
|
1650
|
-
writer.tag(2, WireType.Varint).bool(message.dryRun);
|
|
1651
|
-
/* sid.v1.admin.MigrationState state = 3; */
|
|
1652
|
-
if (message.state !== 0)
|
|
1653
|
-
writer.tag(3, WireType.Varint).int32(message.state);
|
|
1654
|
-
/* uint32 total_entities = 4; */
|
|
1655
|
-
if (message.totalEntities !== 0)
|
|
1656
|
-
writer.tag(4, WireType.Varint).uint32(message.totalEntities);
|
|
1657
|
-
/* uint32 processed = 5; */
|
|
1658
|
-
if (message.processed !== 0)
|
|
1659
|
-
writer.tag(5, WireType.Varint).uint32(message.processed);
|
|
1660
|
-
/* uint32 succeeded = 6; */
|
|
1661
|
-
if (message.succeeded !== 0)
|
|
1662
|
-
writer.tag(6, WireType.Varint).uint32(message.succeeded);
|
|
1663
|
-
/* uint32 failed = 7; */
|
|
1664
|
-
if (message.failed !== 0)
|
|
1665
|
-
writer.tag(7, WireType.Varint).uint32(message.failed);
|
|
1666
|
-
/* repeated string error_messages = 8; */
|
|
1667
|
-
for (let i = 0; i < message.errorMessages.length; i++)
|
|
1668
|
-
writer.tag(8, WireType.LengthDelimited).string(message.errorMessages[i]);
|
|
1669
|
-
let u = options.writeUnknownFields;
|
|
1670
|
-
if (u !== false)
|
|
1671
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1672
|
-
return writer;
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
/**
|
|
1676
|
-
* @generated MessageType for protobuf message sid.v1.admin.ExecuteMigrationResponse
|
|
1677
|
-
*/
|
|
1678
|
-
export const ExecuteMigrationResponse = new ExecuteMigrationResponse$Type();
|
|
1679
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1680
|
-
class GetMigrationStatusRequest$Type extends MessageType<GetMigrationStatusRequest> {
|
|
1681
|
-
constructor() {
|
|
1682
|
-
super("sid.v1.admin.GetMigrationStatusRequest", [
|
|
1683
|
-
{ no: 1, name: "migration_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1684
|
-
]);
|
|
1685
|
-
}
|
|
1686
|
-
create(value?: PartialMessage<GetMigrationStatusRequest>): GetMigrationStatusRequest {
|
|
1687
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1688
|
-
message.migrationId = "";
|
|
1689
|
-
if (value !== undefined)
|
|
1690
|
-
reflectionMergePartial<GetMigrationStatusRequest>(this, message, value);
|
|
1691
|
-
return message;
|
|
1692
|
-
}
|
|
1693
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMigrationStatusRequest): GetMigrationStatusRequest {
|
|
1694
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1695
|
-
while (reader.pos < end) {
|
|
1696
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1697
|
-
switch (fieldNo) {
|
|
1698
|
-
case /* string migration_id */ 1:
|
|
1699
|
-
message.migrationId = reader.string();
|
|
1700
|
-
break;
|
|
1701
|
-
default:
|
|
1702
|
-
let u = options.readUnknownField;
|
|
1703
|
-
if (u === "throw")
|
|
1704
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1705
|
-
let d = reader.skip(wireType);
|
|
1706
|
-
if (u !== false)
|
|
1707
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
return message;
|
|
1711
|
-
}
|
|
1712
|
-
internalBinaryWrite(message: GetMigrationStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1713
|
-
/* string migration_id = 1; */
|
|
1714
|
-
if (message.migrationId !== "")
|
|
1715
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationId);
|
|
1716
|
-
let u = options.writeUnknownFields;
|
|
1717
|
-
if (u !== false)
|
|
1718
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1719
|
-
return writer;
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
/**
|
|
1723
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetMigrationStatusRequest
|
|
1724
|
-
*/
|
|
1725
|
-
export const GetMigrationStatusRequest = new GetMigrationStatusRequest$Type();
|
|
1726
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1727
|
-
class MigrationStatus$Type extends MessageType<MigrationStatus> {
|
|
1728
|
-
constructor() {
|
|
1729
|
-
super("sid.v1.admin.MigrationStatus", [
|
|
1730
|
-
{ no: 1, name: "migration_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1731
|
-
{ no: 2, name: "state", kind: "enum", T: () => ["sid.v1.admin.MigrationState", MigrationState, "MIGRATION_STATE_"] },
|
|
1732
|
-
{ no: 3, name: "source", kind: "enum", T: () => ["sid.v1.admin.MigrationSource", MigrationSource, "MIGRATION_SOURCE_"] },
|
|
1733
|
-
{ no: 4, name: "total_entities", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1734
|
-
{ no: 5, name: "processed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1735
|
-
{ no: 6, name: "succeeded", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1736
|
-
{ no: 7, name: "failed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1737
|
-
{ no: 8, name: "started_at", kind: "message", T: () => Timestamp },
|
|
1738
|
-
{ no: 9, name: "completed_at", kind: "message", T: () => Timestamp },
|
|
1739
|
-
{ no: 10, name: "error_messages", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1740
|
-
]);
|
|
1741
|
-
}
|
|
1742
|
-
create(value?: PartialMessage<MigrationStatus>): MigrationStatus {
|
|
1743
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1744
|
-
message.migrationId = "";
|
|
1745
|
-
message.state = 0;
|
|
1746
|
-
message.source = 0;
|
|
1747
|
-
message.totalEntities = 0;
|
|
1748
|
-
message.processed = 0;
|
|
1749
|
-
message.succeeded = 0;
|
|
1750
|
-
message.failed = 0;
|
|
1751
|
-
message.errorMessages = [];
|
|
1752
|
-
if (value !== undefined)
|
|
1753
|
-
reflectionMergePartial<MigrationStatus>(this, message, value);
|
|
1754
|
-
return message;
|
|
1755
|
-
}
|
|
1756
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MigrationStatus): MigrationStatus {
|
|
1757
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1758
|
-
while (reader.pos < end) {
|
|
1759
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1760
|
-
switch (fieldNo) {
|
|
1761
|
-
case /* string migration_id */ 1:
|
|
1762
|
-
message.migrationId = reader.string();
|
|
1763
|
-
break;
|
|
1764
|
-
case /* sid.v1.admin.MigrationState state */ 2:
|
|
1765
|
-
message.state = reader.int32();
|
|
1766
|
-
break;
|
|
1767
|
-
case /* sid.v1.admin.MigrationSource source */ 3:
|
|
1768
|
-
message.source = reader.int32();
|
|
1769
|
-
break;
|
|
1770
|
-
case /* uint32 total_entities */ 4:
|
|
1771
|
-
message.totalEntities = reader.uint32();
|
|
1772
|
-
break;
|
|
1773
|
-
case /* uint32 processed */ 5:
|
|
1774
|
-
message.processed = reader.uint32();
|
|
1775
|
-
break;
|
|
1776
|
-
case /* uint32 succeeded */ 6:
|
|
1777
|
-
message.succeeded = reader.uint32();
|
|
1778
|
-
break;
|
|
1779
|
-
case /* uint32 failed */ 7:
|
|
1780
|
-
message.failed = reader.uint32();
|
|
1781
|
-
break;
|
|
1782
|
-
case /* google.protobuf.Timestamp started_at */ 8:
|
|
1783
|
-
message.startedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
1784
|
-
break;
|
|
1785
|
-
case /* google.protobuf.Timestamp completed_at */ 9:
|
|
1786
|
-
message.completedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.completedAt);
|
|
1787
|
-
break;
|
|
1788
|
-
case /* repeated string error_messages */ 10:
|
|
1789
|
-
message.errorMessages.push(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: MigrationStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1803
|
-
/* string migration_id = 1; */
|
|
1804
|
-
if (message.migrationId !== "")
|
|
1805
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationId);
|
|
1806
|
-
/* sid.v1.admin.MigrationState state = 2; */
|
|
1807
|
-
if (message.state !== 0)
|
|
1808
|
-
writer.tag(2, WireType.Varint).int32(message.state);
|
|
1809
|
-
/* sid.v1.admin.MigrationSource source = 3; */
|
|
1810
|
-
if (message.source !== 0)
|
|
1811
|
-
writer.tag(3, WireType.Varint).int32(message.source);
|
|
1812
|
-
/* uint32 total_entities = 4; */
|
|
1813
|
-
if (message.totalEntities !== 0)
|
|
1814
|
-
writer.tag(4, WireType.Varint).uint32(message.totalEntities);
|
|
1815
|
-
/* uint32 processed = 5; */
|
|
1816
|
-
if (message.processed !== 0)
|
|
1817
|
-
writer.tag(5, WireType.Varint).uint32(message.processed);
|
|
1818
|
-
/* uint32 succeeded = 6; */
|
|
1819
|
-
if (message.succeeded !== 0)
|
|
1820
|
-
writer.tag(6, WireType.Varint).uint32(message.succeeded);
|
|
1821
|
-
/* uint32 failed = 7; */
|
|
1822
|
-
if (message.failed !== 0)
|
|
1823
|
-
writer.tag(7, WireType.Varint).uint32(message.failed);
|
|
1824
|
-
/* google.protobuf.Timestamp started_at = 8; */
|
|
1825
|
-
if (message.startedAt)
|
|
1826
|
-
Timestamp.internalBinaryWrite(message.startedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1827
|
-
/* google.protobuf.Timestamp completed_at = 9; */
|
|
1828
|
-
if (message.completedAt)
|
|
1829
|
-
Timestamp.internalBinaryWrite(message.completedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1830
|
-
/* repeated string error_messages = 10; */
|
|
1831
|
-
for (let i = 0; i < message.errorMessages.length; i++)
|
|
1832
|
-
writer.tag(10, WireType.LengthDelimited).string(message.errorMessages[i]);
|
|
1833
|
-
let u = options.writeUnknownFields;
|
|
1834
|
-
if (u !== false)
|
|
1835
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1836
|
-
return writer;
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
/**
|
|
1840
|
-
* @generated MessageType for protobuf message sid.v1.admin.MigrationStatus
|
|
1841
|
-
*/
|
|
1842
|
-
export const MigrationStatus = new MigrationStatus$Type();
|
|
1843
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1844
|
-
class PasswordMigrationProgress$Type extends MessageType<PasswordMigrationProgress> {
|
|
1845
|
-
constructor() {
|
|
1846
|
-
super("sid.v1.admin.PasswordMigrationProgress", [
|
|
1847
|
-
{ no: 1, name: "total_users", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1848
|
-
{ no: 2, name: "migrated", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1849
|
-
{ no: 3, name: "pending", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1850
|
-
{ no: 4, name: "failed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1851
|
-
{ no: 5, name: "algorithm", kind: "enum", T: () => ["sid.v1.admin.LegacyHashAlgorithm", LegacyHashAlgorithm, "LEGACY_HASH_ALGORITHM_"] },
|
|
1852
|
-
{ no: 6, name: "deadline", kind: "message", T: () => Timestamp },
|
|
1853
|
-
{ no: 7, name: "progress_percent", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
1854
|
-
]);
|
|
1855
|
-
}
|
|
1856
|
-
create(value?: PartialMessage<PasswordMigrationProgress>): PasswordMigrationProgress {
|
|
1857
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1858
|
-
message.totalUsers = 0;
|
|
1859
|
-
message.migrated = 0;
|
|
1860
|
-
message.pending = 0;
|
|
1861
|
-
message.failed = 0;
|
|
1862
|
-
message.algorithm = 0;
|
|
1863
|
-
message.progressPercent = 0;
|
|
1864
|
-
if (value !== undefined)
|
|
1865
|
-
reflectionMergePartial<PasswordMigrationProgress>(this, message, value);
|
|
1866
|
-
return message;
|
|
1867
|
-
}
|
|
1868
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordMigrationProgress): PasswordMigrationProgress {
|
|
1869
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1870
|
-
while (reader.pos < end) {
|
|
1871
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1872
|
-
switch (fieldNo) {
|
|
1873
|
-
case /* uint32 total_users */ 1:
|
|
1874
|
-
message.totalUsers = reader.uint32();
|
|
1875
|
-
break;
|
|
1876
|
-
case /* uint32 migrated */ 2:
|
|
1877
|
-
message.migrated = reader.uint32();
|
|
1878
|
-
break;
|
|
1879
|
-
case /* uint32 pending */ 3:
|
|
1880
|
-
message.pending = reader.uint32();
|
|
1881
|
-
break;
|
|
1882
|
-
case /* uint32 failed */ 4:
|
|
1883
|
-
message.failed = reader.uint32();
|
|
1884
|
-
break;
|
|
1885
|
-
case /* sid.v1.admin.LegacyHashAlgorithm algorithm */ 5:
|
|
1886
|
-
message.algorithm = reader.int32();
|
|
1887
|
-
break;
|
|
1888
|
-
case /* google.protobuf.Timestamp deadline */ 6:
|
|
1889
|
-
message.deadline = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deadline);
|
|
1890
|
-
break;
|
|
1891
|
-
case /* double progress_percent */ 7:
|
|
1892
|
-
message.progressPercent = reader.double();
|
|
1893
|
-
break;
|
|
1894
|
-
default:
|
|
1895
|
-
let u = options.readUnknownField;
|
|
1896
|
-
if (u === "throw")
|
|
1897
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1898
|
-
let d = reader.skip(wireType);
|
|
1899
|
-
if (u !== false)
|
|
1900
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
return message;
|
|
1904
|
-
}
|
|
1905
|
-
internalBinaryWrite(message: PasswordMigrationProgress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1906
|
-
/* uint32 total_users = 1; */
|
|
1907
|
-
if (message.totalUsers !== 0)
|
|
1908
|
-
writer.tag(1, WireType.Varint).uint32(message.totalUsers);
|
|
1909
|
-
/* uint32 migrated = 2; */
|
|
1910
|
-
if (message.migrated !== 0)
|
|
1911
|
-
writer.tag(2, WireType.Varint).uint32(message.migrated);
|
|
1912
|
-
/* uint32 pending = 3; */
|
|
1913
|
-
if (message.pending !== 0)
|
|
1914
|
-
writer.tag(3, WireType.Varint).uint32(message.pending);
|
|
1915
|
-
/* uint32 failed = 4; */
|
|
1916
|
-
if (message.failed !== 0)
|
|
1917
|
-
writer.tag(4, WireType.Varint).uint32(message.failed);
|
|
1918
|
-
/* sid.v1.admin.LegacyHashAlgorithm algorithm = 5; */
|
|
1919
|
-
if (message.algorithm !== 0)
|
|
1920
|
-
writer.tag(5, WireType.Varint).int32(message.algorithm);
|
|
1921
|
-
/* google.protobuf.Timestamp deadline = 6; */
|
|
1922
|
-
if (message.deadline)
|
|
1923
|
-
Timestamp.internalBinaryWrite(message.deadline, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1924
|
-
/* double progress_percent = 7; */
|
|
1925
|
-
if (message.progressPercent !== 0)
|
|
1926
|
-
writer.tag(7, WireType.Bit64).double(message.progressPercent);
|
|
1927
|
-
let u = options.writeUnknownFields;
|
|
1928
|
-
if (u !== false)
|
|
1929
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1930
|
-
return writer;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
/**
|
|
1934
|
-
* @generated MessageType for protobuf message sid.v1.admin.PasswordMigrationProgress
|
|
1935
|
-
*/
|
|
1936
|
-
export const PasswordMigrationProgress = new PasswordMigrationProgress$Type();
|
|
1937
|
-
/**
|
|
1938
|
-
* @generated ServiceType for protobuf service sid.v1.admin.MigrationService
|
|
1939
|
-
*/
|
|
1940
|
-
export const MigrationService = new ServiceType("sid.v1.admin.MigrationService", [
|
|
1941
|
-
{ name: "ExportBlueprint", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/admin/migration/blueprints/export", body: "*" } }, I: ExportBlueprintRequest, O: ExportBlueprintResponse },
|
|
1942
|
-
{ name: "ImportBlueprint", options: { "google.api.http": { post: "/v1/admin/migration/blueprints/import", body: "*" } }, I: ImportBlueprintRequest, O: ImportBlueprintResponse },
|
|
1943
|
-
{ name: "ExportEntity", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/admin/migration/blueprints/export-entity", body: "*" } }, I: ExportEntityRequest, O: ExportEntityResponse },
|
|
1944
|
-
{ name: "ParseMigrationFile", options: { "google.api.http": { post: "/v1/admin/migration/parse", body: "*" } }, I: ParseMigrationFileRequest, O: ParseMigrationFileResponse },
|
|
1945
|
-
{ name: "ExecuteMigration", options: { "google.api.http": { post: "/v1/admin/migration/execute", body: "*" } }, I: ExecuteMigrationRequest, O: ExecuteMigrationResponse },
|
|
1946
|
-
{ name: "GetMigrationStatus", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/migration/{migration_id}/status" } }, I: GetMigrationStatusRequest, O: MigrationStatus },
|
|
1947
|
-
{ name: "GetPasswordMigrationProgress", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/migration/password-progress" } }, I: Empty, O: PasswordMigrationProgress }
|
|
1948
|
-
]);
|