@structured-id/ui-core 2.0.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,1324 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/scopes.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
// ── Messages ──
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf message sid.v1.admin.Scope
|
|
19
|
-
*/
|
|
20
|
-
export interface Scope {
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf field: string id = 1
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: string name = 2
|
|
27
|
-
*/
|
|
28
|
-
name: string; // "openid", "profile", "email", "custom:billing"
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: string display_name = 3
|
|
31
|
-
*/
|
|
32
|
-
displayName: string; // Human-readable for consent screen
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: string description = 4
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: sid.v1.admin.ScopeType type = 5
|
|
39
|
-
*/
|
|
40
|
-
type: ScopeType;
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: bool consent_required = 6
|
|
43
|
-
*/
|
|
44
|
-
consentRequired: boolean; // Show on consent screen
|
|
45
|
-
/**
|
|
46
|
-
* @generated from protobuf field: bool include_in_token_scope = 7
|
|
47
|
-
*/
|
|
48
|
-
includeInTokenScope: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf field: repeated sid.v1.admin.ClaimMapping claim_mappings = 8
|
|
51
|
-
*/
|
|
52
|
-
claimMappings: ClaimMapping[];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf message sid.v1.admin.ListScopesResponse
|
|
56
|
-
*/
|
|
57
|
-
export interface ListScopesResponse {
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf field: repeated sid.v1.admin.Scope scopes = 1
|
|
60
|
-
*/
|
|
61
|
-
scopes: Scope[];
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf message sid.v1.admin.GetScopeRequest
|
|
65
|
-
*/
|
|
66
|
-
export interface GetScopeRequest {
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf field: string scope_id = 1
|
|
69
|
-
*/
|
|
70
|
-
scopeId: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @generated from protobuf message sid.v1.admin.CreateScopeRequest
|
|
74
|
-
*/
|
|
75
|
-
export interface CreateScopeRequest {
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf field: string name = 1
|
|
78
|
-
*/
|
|
79
|
-
name: string;
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf field: string display_name = 2
|
|
82
|
-
*/
|
|
83
|
-
displayName: string;
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf field: string description = 3
|
|
86
|
-
*/
|
|
87
|
-
description: string;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf field: bool consent_required = 4
|
|
90
|
-
*/
|
|
91
|
-
consentRequired: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf field: bool include_in_token_scope = 5
|
|
94
|
-
*/
|
|
95
|
-
includeInTokenScope: boolean;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf message sid.v1.admin.UpdateScopeRequest
|
|
99
|
-
*/
|
|
100
|
-
export interface UpdateScopeRequest {
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: string scope_id = 1
|
|
103
|
-
*/
|
|
104
|
-
scopeId: string;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf field: optional string display_name = 2
|
|
107
|
-
*/
|
|
108
|
-
displayName?: string;
|
|
109
|
-
/**
|
|
110
|
-
* @generated from protobuf field: optional string description = 3
|
|
111
|
-
*/
|
|
112
|
-
description?: string;
|
|
113
|
-
/**
|
|
114
|
-
* @generated from protobuf field: optional bool consent_required = 4
|
|
115
|
-
*/
|
|
116
|
-
consentRequired?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* @generated from protobuf field: optional bool include_in_token_scope = 5
|
|
119
|
-
*/
|
|
120
|
-
includeInTokenScope?: boolean;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @generated from protobuf message sid.v1.admin.DeleteScopeRequest
|
|
124
|
-
*/
|
|
125
|
-
export interface DeleteScopeRequest {
|
|
126
|
-
/**
|
|
127
|
-
* @generated from protobuf field: string scope_id = 1
|
|
128
|
-
*/
|
|
129
|
-
scopeId: string;
|
|
130
|
-
}
|
|
131
|
-
// ── Realm Defaults ──
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @generated from protobuf message sid.v1.admin.RealmScopeDefaults
|
|
135
|
-
*/
|
|
136
|
-
export interface RealmScopeDefaults {
|
|
137
|
-
/**
|
|
138
|
-
* @generated from protobuf field: repeated string default_scopes = 1
|
|
139
|
-
*/
|
|
140
|
-
defaultScopes: string[]; // Scopes granted without explicit consent
|
|
141
|
-
/**
|
|
142
|
-
* @generated from protobuf field: repeated string optional_scopes = 2
|
|
143
|
-
*/
|
|
144
|
-
optionalScopes: string[]; // Available but not default
|
|
145
|
-
}
|
|
146
|
-
// ── Claim Mappings ──
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @generated from protobuf message sid.v1.admin.ClaimMapping
|
|
150
|
-
*/
|
|
151
|
-
export interface ClaimMapping {
|
|
152
|
-
/**
|
|
153
|
-
* @generated from protobuf field: string id = 1
|
|
154
|
-
*/
|
|
155
|
-
id: string;
|
|
156
|
-
/**
|
|
157
|
-
* @generated from protobuf field: string claim_name = 2
|
|
158
|
-
*/
|
|
159
|
-
claimName: string; // JWT claim name: "email", "name", "roles"
|
|
160
|
-
/**
|
|
161
|
-
* @generated from protobuf field: sid.v1.admin.ClaimSource source = 3
|
|
162
|
-
*/
|
|
163
|
-
source: ClaimSource;
|
|
164
|
-
/**
|
|
165
|
-
* @generated from protobuf field: string source_key = 4
|
|
166
|
-
*/
|
|
167
|
-
sourceKey: string; // Field path or metadata key
|
|
168
|
-
/**
|
|
169
|
-
* @generated from protobuf field: string static_value = 5
|
|
170
|
-
*/
|
|
171
|
-
staticValue: string; // For STATIC source
|
|
172
|
-
/**
|
|
173
|
-
* @generated from protobuf field: bool multivalued = 6
|
|
174
|
-
*/
|
|
175
|
-
multivalued: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* @generated from protobuf field: bool add_to_id_token = 7
|
|
178
|
-
*/
|
|
179
|
-
addToIdToken: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* @generated from protobuf field: bool add_to_access_token = 8
|
|
182
|
-
*/
|
|
183
|
-
addToAccessToken: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* @generated from protobuf field: bool add_to_userinfo = 9
|
|
186
|
-
*/
|
|
187
|
-
addToUserinfo: boolean;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @generated from protobuf message sid.v1.admin.ListClaimMappingsRequest
|
|
191
|
-
*/
|
|
192
|
-
export interface ListClaimMappingsRequest {
|
|
193
|
-
/**
|
|
194
|
-
* @generated from protobuf field: string scope_id = 1
|
|
195
|
-
*/
|
|
196
|
-
scopeId: string;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf message sid.v1.admin.ListClaimMappingsResponse
|
|
200
|
-
*/
|
|
201
|
-
export interface ListClaimMappingsResponse {
|
|
202
|
-
/**
|
|
203
|
-
* @generated from protobuf field: repeated sid.v1.admin.ClaimMapping mappings = 1
|
|
204
|
-
*/
|
|
205
|
-
mappings: ClaimMapping[];
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @generated from protobuf message sid.v1.admin.AddClaimMappingRequest
|
|
209
|
-
*/
|
|
210
|
-
export interface AddClaimMappingRequest {
|
|
211
|
-
/**
|
|
212
|
-
* @generated from protobuf field: string scope_id = 1
|
|
213
|
-
*/
|
|
214
|
-
scopeId: string;
|
|
215
|
-
/**
|
|
216
|
-
* @generated from protobuf field: string claim_name = 2
|
|
217
|
-
*/
|
|
218
|
-
claimName: string;
|
|
219
|
-
/**
|
|
220
|
-
* @generated from protobuf field: sid.v1.admin.ClaimSource source = 3
|
|
221
|
-
*/
|
|
222
|
-
source: ClaimSource;
|
|
223
|
-
/**
|
|
224
|
-
* @generated from protobuf field: string source_key = 4
|
|
225
|
-
*/
|
|
226
|
-
sourceKey: string;
|
|
227
|
-
/**
|
|
228
|
-
* @generated from protobuf field: string static_value = 5
|
|
229
|
-
*/
|
|
230
|
-
staticValue: string;
|
|
231
|
-
/**
|
|
232
|
-
* @generated from protobuf field: bool multivalued = 6
|
|
233
|
-
*/
|
|
234
|
-
multivalued: boolean;
|
|
235
|
-
/**
|
|
236
|
-
* @generated from protobuf field: bool add_to_id_token = 7
|
|
237
|
-
*/
|
|
238
|
-
addToIdToken: boolean;
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf field: bool add_to_access_token = 8
|
|
241
|
-
*/
|
|
242
|
-
addToAccessToken: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf field: bool add_to_userinfo = 9
|
|
245
|
-
*/
|
|
246
|
-
addToUserinfo: boolean;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* @generated from protobuf message sid.v1.admin.UpdateClaimMappingRequest
|
|
250
|
-
*/
|
|
251
|
-
export interface UpdateClaimMappingRequest {
|
|
252
|
-
/**
|
|
253
|
-
* @generated from protobuf field: string scope_id = 1
|
|
254
|
-
*/
|
|
255
|
-
scopeId: string;
|
|
256
|
-
/**
|
|
257
|
-
* @generated from protobuf field: string mapping_id = 2
|
|
258
|
-
*/
|
|
259
|
-
mappingId: string;
|
|
260
|
-
/**
|
|
261
|
-
* @generated from protobuf field: optional string claim_name = 3
|
|
262
|
-
*/
|
|
263
|
-
claimName?: string;
|
|
264
|
-
/**
|
|
265
|
-
* @generated from protobuf field: optional sid.v1.admin.ClaimSource source = 4
|
|
266
|
-
*/
|
|
267
|
-
source?: ClaimSource;
|
|
268
|
-
/**
|
|
269
|
-
* @generated from protobuf field: optional string source_key = 5
|
|
270
|
-
*/
|
|
271
|
-
sourceKey?: string;
|
|
272
|
-
/**
|
|
273
|
-
* @generated from protobuf field: optional string static_value = 6
|
|
274
|
-
*/
|
|
275
|
-
staticValue?: string;
|
|
276
|
-
/**
|
|
277
|
-
* @generated from protobuf field: optional bool multivalued = 7
|
|
278
|
-
*/
|
|
279
|
-
multivalued?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* @generated from protobuf field: optional bool add_to_id_token = 8
|
|
282
|
-
*/
|
|
283
|
-
addToIdToken?: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* @generated from protobuf field: optional bool add_to_access_token = 9
|
|
286
|
-
*/
|
|
287
|
-
addToAccessToken?: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* @generated from protobuf field: optional bool add_to_userinfo = 10
|
|
290
|
-
*/
|
|
291
|
-
addToUserinfo?: boolean;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* @generated from protobuf message sid.v1.admin.DeleteClaimMappingRequest
|
|
295
|
-
*/
|
|
296
|
-
export interface DeleteClaimMappingRequest {
|
|
297
|
-
/**
|
|
298
|
-
* @generated from protobuf field: string scope_id = 1
|
|
299
|
-
*/
|
|
300
|
-
scopeId: string;
|
|
301
|
-
/**
|
|
302
|
-
* @generated from protobuf field: string mapping_id = 2
|
|
303
|
-
*/
|
|
304
|
-
mappingId: string;
|
|
305
|
-
}
|
|
306
|
-
// ── Enums ──
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* @generated from protobuf enum sid.v1.admin.ScopeType
|
|
310
|
-
*/
|
|
311
|
-
export enum ScopeType {
|
|
312
|
-
/**
|
|
313
|
-
* @generated from protobuf enum value: SCOPE_TYPE_UNSPECIFIED = 0;
|
|
314
|
-
*/
|
|
315
|
-
UNSPECIFIED = 0,
|
|
316
|
-
/**
|
|
317
|
-
* OpenID Connect standard scope
|
|
318
|
-
*
|
|
319
|
-
* @generated from protobuf enum value: SCOPE_TYPE_OPENID = 1;
|
|
320
|
-
*/
|
|
321
|
-
OPENID = 1,
|
|
322
|
-
/**
|
|
323
|
-
* User-defined scope
|
|
324
|
-
*
|
|
325
|
-
* @generated from protobuf enum value: SCOPE_TYPE_CUSTOM = 2;
|
|
326
|
-
*/
|
|
327
|
-
CUSTOM = 2
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* @generated from protobuf enum sid.v1.admin.ClaimSource
|
|
331
|
-
*/
|
|
332
|
-
export enum ClaimSource {
|
|
333
|
-
/**
|
|
334
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_UNSPECIFIED = 0;
|
|
335
|
-
*/
|
|
336
|
-
UNSPECIFIED = 0,
|
|
337
|
-
/**
|
|
338
|
-
* From profile fields (email, name, etc.)
|
|
339
|
-
*
|
|
340
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_PROFILE = 1;
|
|
341
|
-
*/
|
|
342
|
-
PROFILE = 1,
|
|
343
|
-
/**
|
|
344
|
-
* From profile metadata key-value store
|
|
345
|
-
*
|
|
346
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_METADATA = 2;
|
|
347
|
-
*/
|
|
348
|
-
METADATA = 2,
|
|
349
|
-
/**
|
|
350
|
-
* From assigned roles
|
|
351
|
-
*
|
|
352
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_ROLES = 3;
|
|
353
|
-
*/
|
|
354
|
-
ROLES = 3,
|
|
355
|
-
/**
|
|
356
|
-
* From group memberships
|
|
357
|
-
*
|
|
358
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_GROUPS = 4;
|
|
359
|
-
*/
|
|
360
|
-
GROUPS = 4,
|
|
361
|
-
/**
|
|
362
|
-
* Static value
|
|
363
|
-
*
|
|
364
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_STATIC = 5;
|
|
365
|
-
*/
|
|
366
|
-
STATIC = 5,
|
|
367
|
-
/**
|
|
368
|
-
* CEL expression
|
|
369
|
-
*
|
|
370
|
-
* @generated from protobuf enum value: CLAIM_SOURCE_EXPRESSION = 6;
|
|
371
|
-
*/
|
|
372
|
-
EXPRESSION = 6
|
|
373
|
-
}
|
|
374
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
375
|
-
class Scope$Type extends MessageType<Scope> {
|
|
376
|
-
constructor() {
|
|
377
|
-
super("sid.v1.admin.Scope", [
|
|
378
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
379
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
380
|
-
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
381
|
-
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
382
|
-
{ no: 5, name: "type", kind: "enum", T: () => ["sid.v1.admin.ScopeType", ScopeType, "SCOPE_TYPE_"] },
|
|
383
|
-
{ no: 6, name: "consent_required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
384
|
-
{ no: 7, name: "include_in_token_scope", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
385
|
-
{ no: 8, name: "claim_mappings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimMapping }
|
|
386
|
-
]);
|
|
387
|
-
}
|
|
388
|
-
create(value?: PartialMessage<Scope>): Scope {
|
|
389
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
390
|
-
message.id = "";
|
|
391
|
-
message.name = "";
|
|
392
|
-
message.displayName = "";
|
|
393
|
-
message.description = "";
|
|
394
|
-
message.type = 0;
|
|
395
|
-
message.consentRequired = false;
|
|
396
|
-
message.includeInTokenScope = false;
|
|
397
|
-
message.claimMappings = [];
|
|
398
|
-
if (value !== undefined)
|
|
399
|
-
reflectionMergePartial<Scope>(this, message, value);
|
|
400
|
-
return message;
|
|
401
|
-
}
|
|
402
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Scope): Scope {
|
|
403
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
404
|
-
while (reader.pos < end) {
|
|
405
|
-
let [fieldNo, wireType] = reader.tag();
|
|
406
|
-
switch (fieldNo) {
|
|
407
|
-
case /* string id */ 1:
|
|
408
|
-
message.id = reader.string();
|
|
409
|
-
break;
|
|
410
|
-
case /* string name */ 2:
|
|
411
|
-
message.name = reader.string();
|
|
412
|
-
break;
|
|
413
|
-
case /* string display_name */ 3:
|
|
414
|
-
message.displayName = reader.string();
|
|
415
|
-
break;
|
|
416
|
-
case /* string description */ 4:
|
|
417
|
-
message.description = reader.string();
|
|
418
|
-
break;
|
|
419
|
-
case /* sid.v1.admin.ScopeType type */ 5:
|
|
420
|
-
message.type = reader.int32();
|
|
421
|
-
break;
|
|
422
|
-
case /* bool consent_required */ 6:
|
|
423
|
-
message.consentRequired = reader.bool();
|
|
424
|
-
break;
|
|
425
|
-
case /* bool include_in_token_scope */ 7:
|
|
426
|
-
message.includeInTokenScope = reader.bool();
|
|
427
|
-
break;
|
|
428
|
-
case /* repeated sid.v1.admin.ClaimMapping claim_mappings */ 8:
|
|
429
|
-
message.claimMappings.push(ClaimMapping.internalBinaryRead(reader, reader.uint32(), options));
|
|
430
|
-
break;
|
|
431
|
-
default:
|
|
432
|
-
let u = options.readUnknownField;
|
|
433
|
-
if (u === "throw")
|
|
434
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
435
|
-
let d = reader.skip(wireType);
|
|
436
|
-
if (u !== false)
|
|
437
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
return message;
|
|
441
|
-
}
|
|
442
|
-
internalBinaryWrite(message: Scope, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
443
|
-
/* string id = 1; */
|
|
444
|
-
if (message.id !== "")
|
|
445
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
446
|
-
/* string name = 2; */
|
|
447
|
-
if (message.name !== "")
|
|
448
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
449
|
-
/* string display_name = 3; */
|
|
450
|
-
if (message.displayName !== "")
|
|
451
|
-
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
452
|
-
/* string description = 4; */
|
|
453
|
-
if (message.description !== "")
|
|
454
|
-
writer.tag(4, WireType.LengthDelimited).string(message.description);
|
|
455
|
-
/* sid.v1.admin.ScopeType type = 5; */
|
|
456
|
-
if (message.type !== 0)
|
|
457
|
-
writer.tag(5, WireType.Varint).int32(message.type);
|
|
458
|
-
/* bool consent_required = 6; */
|
|
459
|
-
if (message.consentRequired !== false)
|
|
460
|
-
writer.tag(6, WireType.Varint).bool(message.consentRequired);
|
|
461
|
-
/* bool include_in_token_scope = 7; */
|
|
462
|
-
if (message.includeInTokenScope !== false)
|
|
463
|
-
writer.tag(7, WireType.Varint).bool(message.includeInTokenScope);
|
|
464
|
-
/* repeated sid.v1.admin.ClaimMapping claim_mappings = 8; */
|
|
465
|
-
for (let i = 0; i < message.claimMappings.length; i++)
|
|
466
|
-
ClaimMapping.internalBinaryWrite(message.claimMappings[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
467
|
-
let u = options.writeUnknownFields;
|
|
468
|
-
if (u !== false)
|
|
469
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
470
|
-
return writer;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* @generated MessageType for protobuf message sid.v1.admin.Scope
|
|
475
|
-
*/
|
|
476
|
-
export const Scope = new Scope$Type();
|
|
477
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
478
|
-
class ListScopesResponse$Type extends MessageType<ListScopesResponse> {
|
|
479
|
-
constructor() {
|
|
480
|
-
super("sid.v1.admin.ListScopesResponse", [
|
|
481
|
-
{ no: 1, name: "scopes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope }
|
|
482
|
-
]);
|
|
483
|
-
}
|
|
484
|
-
create(value?: PartialMessage<ListScopesResponse>): ListScopesResponse {
|
|
485
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
486
|
-
message.scopes = [];
|
|
487
|
-
if (value !== undefined)
|
|
488
|
-
reflectionMergePartial<ListScopesResponse>(this, message, value);
|
|
489
|
-
return message;
|
|
490
|
-
}
|
|
491
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListScopesResponse): ListScopesResponse {
|
|
492
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
493
|
-
while (reader.pos < end) {
|
|
494
|
-
let [fieldNo, wireType] = reader.tag();
|
|
495
|
-
switch (fieldNo) {
|
|
496
|
-
case /* repeated sid.v1.admin.Scope scopes */ 1:
|
|
497
|
-
message.scopes.push(Scope.internalBinaryRead(reader, reader.uint32(), options));
|
|
498
|
-
break;
|
|
499
|
-
default:
|
|
500
|
-
let u = options.readUnknownField;
|
|
501
|
-
if (u === "throw")
|
|
502
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
503
|
-
let d = reader.skip(wireType);
|
|
504
|
-
if (u !== false)
|
|
505
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
return message;
|
|
509
|
-
}
|
|
510
|
-
internalBinaryWrite(message: ListScopesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
511
|
-
/* repeated sid.v1.admin.Scope scopes = 1; */
|
|
512
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
513
|
-
Scope.internalBinaryWrite(message.scopes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
514
|
-
let u = options.writeUnknownFields;
|
|
515
|
-
if (u !== false)
|
|
516
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
517
|
-
return writer;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListScopesResponse
|
|
522
|
-
*/
|
|
523
|
-
export const ListScopesResponse = new ListScopesResponse$Type();
|
|
524
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
525
|
-
class GetScopeRequest$Type extends MessageType<GetScopeRequest> {
|
|
526
|
-
constructor() {
|
|
527
|
-
super("sid.v1.admin.GetScopeRequest", [
|
|
528
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
529
|
-
]);
|
|
530
|
-
}
|
|
531
|
-
create(value?: PartialMessage<GetScopeRequest>): GetScopeRequest {
|
|
532
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
533
|
-
message.scopeId = "";
|
|
534
|
-
if (value !== undefined)
|
|
535
|
-
reflectionMergePartial<GetScopeRequest>(this, message, value);
|
|
536
|
-
return message;
|
|
537
|
-
}
|
|
538
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetScopeRequest): GetScopeRequest {
|
|
539
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
540
|
-
while (reader.pos < end) {
|
|
541
|
-
let [fieldNo, wireType] = reader.tag();
|
|
542
|
-
switch (fieldNo) {
|
|
543
|
-
case /* string scope_id */ 1:
|
|
544
|
-
message.scopeId = reader.string();
|
|
545
|
-
break;
|
|
546
|
-
default:
|
|
547
|
-
let u = options.readUnknownField;
|
|
548
|
-
if (u === "throw")
|
|
549
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
550
|
-
let d = reader.skip(wireType);
|
|
551
|
-
if (u !== false)
|
|
552
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
return message;
|
|
556
|
-
}
|
|
557
|
-
internalBinaryWrite(message: GetScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
558
|
-
/* string scope_id = 1; */
|
|
559
|
-
if (message.scopeId !== "")
|
|
560
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
561
|
-
let u = options.writeUnknownFields;
|
|
562
|
-
if (u !== false)
|
|
563
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
564
|
-
return writer;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetScopeRequest
|
|
569
|
-
*/
|
|
570
|
-
export const GetScopeRequest = new GetScopeRequest$Type();
|
|
571
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
572
|
-
class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
|
573
|
-
constructor() {
|
|
574
|
-
super("sid.v1.admin.CreateScopeRequest", [
|
|
575
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
576
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
577
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
578
|
-
{ no: 4, name: "consent_required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
579
|
-
{ no: 5, name: "include_in_token_scope", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
580
|
-
]);
|
|
581
|
-
}
|
|
582
|
-
create(value?: PartialMessage<CreateScopeRequest>): CreateScopeRequest {
|
|
583
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
584
|
-
message.name = "";
|
|
585
|
-
message.displayName = "";
|
|
586
|
-
message.description = "";
|
|
587
|
-
message.consentRequired = false;
|
|
588
|
-
message.includeInTokenScope = false;
|
|
589
|
-
if (value !== undefined)
|
|
590
|
-
reflectionMergePartial<CreateScopeRequest>(this, message, value);
|
|
591
|
-
return message;
|
|
592
|
-
}
|
|
593
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateScopeRequest): CreateScopeRequest {
|
|
594
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
595
|
-
while (reader.pos < end) {
|
|
596
|
-
let [fieldNo, wireType] = reader.tag();
|
|
597
|
-
switch (fieldNo) {
|
|
598
|
-
case /* string name */ 1:
|
|
599
|
-
message.name = reader.string();
|
|
600
|
-
break;
|
|
601
|
-
case /* string display_name */ 2:
|
|
602
|
-
message.displayName = reader.string();
|
|
603
|
-
break;
|
|
604
|
-
case /* string description */ 3:
|
|
605
|
-
message.description = reader.string();
|
|
606
|
-
break;
|
|
607
|
-
case /* bool consent_required */ 4:
|
|
608
|
-
message.consentRequired = reader.bool();
|
|
609
|
-
break;
|
|
610
|
-
case /* bool include_in_token_scope */ 5:
|
|
611
|
-
message.includeInTokenScope = reader.bool();
|
|
612
|
-
break;
|
|
613
|
-
default:
|
|
614
|
-
let u = options.readUnknownField;
|
|
615
|
-
if (u === "throw")
|
|
616
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
617
|
-
let d = reader.skip(wireType);
|
|
618
|
-
if (u !== false)
|
|
619
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
return message;
|
|
623
|
-
}
|
|
624
|
-
internalBinaryWrite(message: CreateScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
625
|
-
/* string name = 1; */
|
|
626
|
-
if (message.name !== "")
|
|
627
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
628
|
-
/* string display_name = 2; */
|
|
629
|
-
if (message.displayName !== "")
|
|
630
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
631
|
-
/* string description = 3; */
|
|
632
|
-
if (message.description !== "")
|
|
633
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
634
|
-
/* bool consent_required = 4; */
|
|
635
|
-
if (message.consentRequired !== false)
|
|
636
|
-
writer.tag(4, WireType.Varint).bool(message.consentRequired);
|
|
637
|
-
/* bool include_in_token_scope = 5; */
|
|
638
|
-
if (message.includeInTokenScope !== false)
|
|
639
|
-
writer.tag(5, WireType.Varint).bool(message.includeInTokenScope);
|
|
640
|
-
let u = options.writeUnknownFields;
|
|
641
|
-
if (u !== false)
|
|
642
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
643
|
-
return writer;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
/**
|
|
647
|
-
* @generated MessageType for protobuf message sid.v1.admin.CreateScopeRequest
|
|
648
|
-
*/
|
|
649
|
-
export const CreateScopeRequest = new CreateScopeRequest$Type();
|
|
650
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
651
|
-
class UpdateScopeRequest$Type extends MessageType<UpdateScopeRequest> {
|
|
652
|
-
constructor() {
|
|
653
|
-
super("sid.v1.admin.UpdateScopeRequest", [
|
|
654
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
655
|
-
{ no: 2, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
656
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
657
|
-
{ no: 4, name: "consent_required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
658
|
-
{ no: 5, name: "include_in_token_scope", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
659
|
-
]);
|
|
660
|
-
}
|
|
661
|
-
create(value?: PartialMessage<UpdateScopeRequest>): UpdateScopeRequest {
|
|
662
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
663
|
-
message.scopeId = "";
|
|
664
|
-
if (value !== undefined)
|
|
665
|
-
reflectionMergePartial<UpdateScopeRequest>(this, message, value);
|
|
666
|
-
return message;
|
|
667
|
-
}
|
|
668
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateScopeRequest): UpdateScopeRequest {
|
|
669
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
670
|
-
while (reader.pos < end) {
|
|
671
|
-
let [fieldNo, wireType] = reader.tag();
|
|
672
|
-
switch (fieldNo) {
|
|
673
|
-
case /* string scope_id */ 1:
|
|
674
|
-
message.scopeId = reader.string();
|
|
675
|
-
break;
|
|
676
|
-
case /* optional string display_name */ 2:
|
|
677
|
-
message.displayName = reader.string();
|
|
678
|
-
break;
|
|
679
|
-
case /* optional string description */ 3:
|
|
680
|
-
message.description = reader.string();
|
|
681
|
-
break;
|
|
682
|
-
case /* optional bool consent_required */ 4:
|
|
683
|
-
message.consentRequired = reader.bool();
|
|
684
|
-
break;
|
|
685
|
-
case /* optional bool include_in_token_scope */ 5:
|
|
686
|
-
message.includeInTokenScope = reader.bool();
|
|
687
|
-
break;
|
|
688
|
-
default:
|
|
689
|
-
let u = options.readUnknownField;
|
|
690
|
-
if (u === "throw")
|
|
691
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
692
|
-
let d = reader.skip(wireType);
|
|
693
|
-
if (u !== false)
|
|
694
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
return message;
|
|
698
|
-
}
|
|
699
|
-
internalBinaryWrite(message: UpdateScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
700
|
-
/* string scope_id = 1; */
|
|
701
|
-
if (message.scopeId !== "")
|
|
702
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
703
|
-
/* optional string display_name = 2; */
|
|
704
|
-
if (message.displayName !== undefined)
|
|
705
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
706
|
-
/* optional string description = 3; */
|
|
707
|
-
if (message.description !== undefined)
|
|
708
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
709
|
-
/* optional bool consent_required = 4; */
|
|
710
|
-
if (message.consentRequired !== undefined)
|
|
711
|
-
writer.tag(4, WireType.Varint).bool(message.consentRequired);
|
|
712
|
-
/* optional bool include_in_token_scope = 5; */
|
|
713
|
-
if (message.includeInTokenScope !== undefined)
|
|
714
|
-
writer.tag(5, WireType.Varint).bool(message.includeInTokenScope);
|
|
715
|
-
let u = options.writeUnknownFields;
|
|
716
|
-
if (u !== false)
|
|
717
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
718
|
-
return writer;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* @generated MessageType for protobuf message sid.v1.admin.UpdateScopeRequest
|
|
723
|
-
*/
|
|
724
|
-
export const UpdateScopeRequest = new UpdateScopeRequest$Type();
|
|
725
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
726
|
-
class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
|
727
|
-
constructor() {
|
|
728
|
-
super("sid.v1.admin.DeleteScopeRequest", [
|
|
729
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
730
|
-
]);
|
|
731
|
-
}
|
|
732
|
-
create(value?: PartialMessage<DeleteScopeRequest>): DeleteScopeRequest {
|
|
733
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
734
|
-
message.scopeId = "";
|
|
735
|
-
if (value !== undefined)
|
|
736
|
-
reflectionMergePartial<DeleteScopeRequest>(this, message, value);
|
|
737
|
-
return message;
|
|
738
|
-
}
|
|
739
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteScopeRequest): DeleteScopeRequest {
|
|
740
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
741
|
-
while (reader.pos < end) {
|
|
742
|
-
let [fieldNo, wireType] = reader.tag();
|
|
743
|
-
switch (fieldNo) {
|
|
744
|
-
case /* string scope_id */ 1:
|
|
745
|
-
message.scopeId = reader.string();
|
|
746
|
-
break;
|
|
747
|
-
default:
|
|
748
|
-
let u = options.readUnknownField;
|
|
749
|
-
if (u === "throw")
|
|
750
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
751
|
-
let d = reader.skip(wireType);
|
|
752
|
-
if (u !== false)
|
|
753
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
return message;
|
|
757
|
-
}
|
|
758
|
-
internalBinaryWrite(message: DeleteScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
759
|
-
/* string scope_id = 1; */
|
|
760
|
-
if (message.scopeId !== "")
|
|
761
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
762
|
-
let u = options.writeUnknownFields;
|
|
763
|
-
if (u !== false)
|
|
764
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
765
|
-
return writer;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* @generated MessageType for protobuf message sid.v1.admin.DeleteScopeRequest
|
|
770
|
-
*/
|
|
771
|
-
export const DeleteScopeRequest = new DeleteScopeRequest$Type();
|
|
772
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
773
|
-
class RealmScopeDefaults$Type extends MessageType<RealmScopeDefaults> {
|
|
774
|
-
constructor() {
|
|
775
|
-
super("sid.v1.admin.RealmScopeDefaults", [
|
|
776
|
-
{ no: 1, name: "default_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
777
|
-
{ no: 2, name: "optional_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
778
|
-
]);
|
|
779
|
-
}
|
|
780
|
-
create(value?: PartialMessage<RealmScopeDefaults>): RealmScopeDefaults {
|
|
781
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
782
|
-
message.defaultScopes = [];
|
|
783
|
-
message.optionalScopes = [];
|
|
784
|
-
if (value !== undefined)
|
|
785
|
-
reflectionMergePartial<RealmScopeDefaults>(this, message, value);
|
|
786
|
-
return message;
|
|
787
|
-
}
|
|
788
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RealmScopeDefaults): RealmScopeDefaults {
|
|
789
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
790
|
-
while (reader.pos < end) {
|
|
791
|
-
let [fieldNo, wireType] = reader.tag();
|
|
792
|
-
switch (fieldNo) {
|
|
793
|
-
case /* repeated string default_scopes */ 1:
|
|
794
|
-
message.defaultScopes.push(reader.string());
|
|
795
|
-
break;
|
|
796
|
-
case /* repeated string optional_scopes */ 2:
|
|
797
|
-
message.optionalScopes.push(reader.string());
|
|
798
|
-
break;
|
|
799
|
-
default:
|
|
800
|
-
let u = options.readUnknownField;
|
|
801
|
-
if (u === "throw")
|
|
802
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
803
|
-
let d = reader.skip(wireType);
|
|
804
|
-
if (u !== false)
|
|
805
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
return message;
|
|
809
|
-
}
|
|
810
|
-
internalBinaryWrite(message: RealmScopeDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
811
|
-
/* repeated string default_scopes = 1; */
|
|
812
|
-
for (let i = 0; i < message.defaultScopes.length; i++)
|
|
813
|
-
writer.tag(1, WireType.LengthDelimited).string(message.defaultScopes[i]);
|
|
814
|
-
/* repeated string optional_scopes = 2; */
|
|
815
|
-
for (let i = 0; i < message.optionalScopes.length; i++)
|
|
816
|
-
writer.tag(2, WireType.LengthDelimited).string(message.optionalScopes[i]);
|
|
817
|
-
let u = options.writeUnknownFields;
|
|
818
|
-
if (u !== false)
|
|
819
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
820
|
-
return writer;
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @generated MessageType for protobuf message sid.v1.admin.RealmScopeDefaults
|
|
825
|
-
*/
|
|
826
|
-
export const RealmScopeDefaults = new RealmScopeDefaults$Type();
|
|
827
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
828
|
-
class ClaimMapping$Type extends MessageType<ClaimMapping> {
|
|
829
|
-
constructor() {
|
|
830
|
-
super("sid.v1.admin.ClaimMapping", [
|
|
831
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
832
|
-
{ no: 2, name: "claim_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
833
|
-
{ no: 3, name: "source", kind: "enum", T: () => ["sid.v1.admin.ClaimSource", ClaimSource, "CLAIM_SOURCE_"] },
|
|
834
|
-
{ no: 4, name: "source_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
835
|
-
{ no: 5, name: "static_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
836
|
-
{ no: 6, name: "multivalued", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
837
|
-
{ no: 7, name: "add_to_id_token", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
838
|
-
{ no: 8, name: "add_to_access_token", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
839
|
-
{ no: 9, name: "add_to_userinfo", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
840
|
-
]);
|
|
841
|
-
}
|
|
842
|
-
create(value?: PartialMessage<ClaimMapping>): ClaimMapping {
|
|
843
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
844
|
-
message.id = "";
|
|
845
|
-
message.claimName = "";
|
|
846
|
-
message.source = 0;
|
|
847
|
-
message.sourceKey = "";
|
|
848
|
-
message.staticValue = "";
|
|
849
|
-
message.multivalued = false;
|
|
850
|
-
message.addToIdToken = false;
|
|
851
|
-
message.addToAccessToken = false;
|
|
852
|
-
message.addToUserinfo = false;
|
|
853
|
-
if (value !== undefined)
|
|
854
|
-
reflectionMergePartial<ClaimMapping>(this, message, value);
|
|
855
|
-
return message;
|
|
856
|
-
}
|
|
857
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimMapping): ClaimMapping {
|
|
858
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
859
|
-
while (reader.pos < end) {
|
|
860
|
-
let [fieldNo, wireType] = reader.tag();
|
|
861
|
-
switch (fieldNo) {
|
|
862
|
-
case /* string id */ 1:
|
|
863
|
-
message.id = reader.string();
|
|
864
|
-
break;
|
|
865
|
-
case /* string claim_name */ 2:
|
|
866
|
-
message.claimName = reader.string();
|
|
867
|
-
break;
|
|
868
|
-
case /* sid.v1.admin.ClaimSource source */ 3:
|
|
869
|
-
message.source = reader.int32();
|
|
870
|
-
break;
|
|
871
|
-
case /* string source_key */ 4:
|
|
872
|
-
message.sourceKey = reader.string();
|
|
873
|
-
break;
|
|
874
|
-
case /* string static_value */ 5:
|
|
875
|
-
message.staticValue = reader.string();
|
|
876
|
-
break;
|
|
877
|
-
case /* bool multivalued */ 6:
|
|
878
|
-
message.multivalued = reader.bool();
|
|
879
|
-
break;
|
|
880
|
-
case /* bool add_to_id_token */ 7:
|
|
881
|
-
message.addToIdToken = reader.bool();
|
|
882
|
-
break;
|
|
883
|
-
case /* bool add_to_access_token */ 8:
|
|
884
|
-
message.addToAccessToken = reader.bool();
|
|
885
|
-
break;
|
|
886
|
-
case /* bool add_to_userinfo */ 9:
|
|
887
|
-
message.addToUserinfo = reader.bool();
|
|
888
|
-
break;
|
|
889
|
-
default:
|
|
890
|
-
let u = options.readUnknownField;
|
|
891
|
-
if (u === "throw")
|
|
892
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
893
|
-
let d = reader.skip(wireType);
|
|
894
|
-
if (u !== false)
|
|
895
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
return message;
|
|
899
|
-
}
|
|
900
|
-
internalBinaryWrite(message: ClaimMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
901
|
-
/* string id = 1; */
|
|
902
|
-
if (message.id !== "")
|
|
903
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
904
|
-
/* string claim_name = 2; */
|
|
905
|
-
if (message.claimName !== "")
|
|
906
|
-
writer.tag(2, WireType.LengthDelimited).string(message.claimName);
|
|
907
|
-
/* sid.v1.admin.ClaimSource source = 3; */
|
|
908
|
-
if (message.source !== 0)
|
|
909
|
-
writer.tag(3, WireType.Varint).int32(message.source);
|
|
910
|
-
/* string source_key = 4; */
|
|
911
|
-
if (message.sourceKey !== "")
|
|
912
|
-
writer.tag(4, WireType.LengthDelimited).string(message.sourceKey);
|
|
913
|
-
/* string static_value = 5; */
|
|
914
|
-
if (message.staticValue !== "")
|
|
915
|
-
writer.tag(5, WireType.LengthDelimited).string(message.staticValue);
|
|
916
|
-
/* bool multivalued = 6; */
|
|
917
|
-
if (message.multivalued !== false)
|
|
918
|
-
writer.tag(6, WireType.Varint).bool(message.multivalued);
|
|
919
|
-
/* bool add_to_id_token = 7; */
|
|
920
|
-
if (message.addToIdToken !== false)
|
|
921
|
-
writer.tag(7, WireType.Varint).bool(message.addToIdToken);
|
|
922
|
-
/* bool add_to_access_token = 8; */
|
|
923
|
-
if (message.addToAccessToken !== false)
|
|
924
|
-
writer.tag(8, WireType.Varint).bool(message.addToAccessToken);
|
|
925
|
-
/* bool add_to_userinfo = 9; */
|
|
926
|
-
if (message.addToUserinfo !== false)
|
|
927
|
-
writer.tag(9, WireType.Varint).bool(message.addToUserinfo);
|
|
928
|
-
let u = options.writeUnknownFields;
|
|
929
|
-
if (u !== false)
|
|
930
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
931
|
-
return writer;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
/**
|
|
935
|
-
* @generated MessageType for protobuf message sid.v1.admin.ClaimMapping
|
|
936
|
-
*/
|
|
937
|
-
export const ClaimMapping = new ClaimMapping$Type();
|
|
938
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
939
|
-
class ListClaimMappingsRequest$Type extends MessageType<ListClaimMappingsRequest> {
|
|
940
|
-
constructor() {
|
|
941
|
-
super("sid.v1.admin.ListClaimMappingsRequest", [
|
|
942
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
943
|
-
]);
|
|
944
|
-
}
|
|
945
|
-
create(value?: PartialMessage<ListClaimMappingsRequest>): ListClaimMappingsRequest {
|
|
946
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
947
|
-
message.scopeId = "";
|
|
948
|
-
if (value !== undefined)
|
|
949
|
-
reflectionMergePartial<ListClaimMappingsRequest>(this, message, value);
|
|
950
|
-
return message;
|
|
951
|
-
}
|
|
952
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClaimMappingsRequest): ListClaimMappingsRequest {
|
|
953
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
954
|
-
while (reader.pos < end) {
|
|
955
|
-
let [fieldNo, wireType] = reader.tag();
|
|
956
|
-
switch (fieldNo) {
|
|
957
|
-
case /* string scope_id */ 1:
|
|
958
|
-
message.scopeId = reader.string();
|
|
959
|
-
break;
|
|
960
|
-
default:
|
|
961
|
-
let u = options.readUnknownField;
|
|
962
|
-
if (u === "throw")
|
|
963
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
964
|
-
let d = reader.skip(wireType);
|
|
965
|
-
if (u !== false)
|
|
966
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
return message;
|
|
970
|
-
}
|
|
971
|
-
internalBinaryWrite(message: ListClaimMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
972
|
-
/* string scope_id = 1; */
|
|
973
|
-
if (message.scopeId !== "")
|
|
974
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
975
|
-
let u = options.writeUnknownFields;
|
|
976
|
-
if (u !== false)
|
|
977
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
978
|
-
return writer;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListClaimMappingsRequest
|
|
983
|
-
*/
|
|
984
|
-
export const ListClaimMappingsRequest = new ListClaimMappingsRequest$Type();
|
|
985
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
986
|
-
class ListClaimMappingsResponse$Type extends MessageType<ListClaimMappingsResponse> {
|
|
987
|
-
constructor() {
|
|
988
|
-
super("sid.v1.admin.ListClaimMappingsResponse", [
|
|
989
|
-
{ no: 1, name: "mappings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimMapping }
|
|
990
|
-
]);
|
|
991
|
-
}
|
|
992
|
-
create(value?: PartialMessage<ListClaimMappingsResponse>): ListClaimMappingsResponse {
|
|
993
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
994
|
-
message.mappings = [];
|
|
995
|
-
if (value !== undefined)
|
|
996
|
-
reflectionMergePartial<ListClaimMappingsResponse>(this, message, value);
|
|
997
|
-
return message;
|
|
998
|
-
}
|
|
999
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClaimMappingsResponse): ListClaimMappingsResponse {
|
|
1000
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1001
|
-
while (reader.pos < end) {
|
|
1002
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1003
|
-
switch (fieldNo) {
|
|
1004
|
-
case /* repeated sid.v1.admin.ClaimMapping mappings */ 1:
|
|
1005
|
-
message.mappings.push(ClaimMapping.internalBinaryRead(reader, reader.uint32(), options));
|
|
1006
|
-
break;
|
|
1007
|
-
default:
|
|
1008
|
-
let u = options.readUnknownField;
|
|
1009
|
-
if (u === "throw")
|
|
1010
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1011
|
-
let d = reader.skip(wireType);
|
|
1012
|
-
if (u !== false)
|
|
1013
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
return message;
|
|
1017
|
-
}
|
|
1018
|
-
internalBinaryWrite(message: ListClaimMappingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1019
|
-
/* repeated sid.v1.admin.ClaimMapping mappings = 1; */
|
|
1020
|
-
for (let i = 0; i < message.mappings.length; i++)
|
|
1021
|
-
ClaimMapping.internalBinaryWrite(message.mappings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1022
|
-
let u = options.writeUnknownFields;
|
|
1023
|
-
if (u !== false)
|
|
1024
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1025
|
-
return writer;
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListClaimMappingsResponse
|
|
1030
|
-
*/
|
|
1031
|
-
export const ListClaimMappingsResponse = new ListClaimMappingsResponse$Type();
|
|
1032
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1033
|
-
class AddClaimMappingRequest$Type extends MessageType<AddClaimMappingRequest> {
|
|
1034
|
-
constructor() {
|
|
1035
|
-
super("sid.v1.admin.AddClaimMappingRequest", [
|
|
1036
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1037
|
-
{ no: 2, name: "claim_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1038
|
-
{ no: 3, name: "source", kind: "enum", T: () => ["sid.v1.admin.ClaimSource", ClaimSource, "CLAIM_SOURCE_"] },
|
|
1039
|
-
{ no: 4, name: "source_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1040
|
-
{ no: 5, name: "static_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1041
|
-
{ no: 6, name: "multivalued", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1042
|
-
{ no: 7, name: "add_to_id_token", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1043
|
-
{ no: 8, name: "add_to_access_token", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1044
|
-
{ no: 9, name: "add_to_userinfo", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1045
|
-
]);
|
|
1046
|
-
}
|
|
1047
|
-
create(value?: PartialMessage<AddClaimMappingRequest>): AddClaimMappingRequest {
|
|
1048
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1049
|
-
message.scopeId = "";
|
|
1050
|
-
message.claimName = "";
|
|
1051
|
-
message.source = 0;
|
|
1052
|
-
message.sourceKey = "";
|
|
1053
|
-
message.staticValue = "";
|
|
1054
|
-
message.multivalued = false;
|
|
1055
|
-
message.addToIdToken = false;
|
|
1056
|
-
message.addToAccessToken = false;
|
|
1057
|
-
message.addToUserinfo = false;
|
|
1058
|
-
if (value !== undefined)
|
|
1059
|
-
reflectionMergePartial<AddClaimMappingRequest>(this, message, value);
|
|
1060
|
-
return message;
|
|
1061
|
-
}
|
|
1062
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddClaimMappingRequest): AddClaimMappingRequest {
|
|
1063
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1064
|
-
while (reader.pos < end) {
|
|
1065
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1066
|
-
switch (fieldNo) {
|
|
1067
|
-
case /* string scope_id */ 1:
|
|
1068
|
-
message.scopeId = reader.string();
|
|
1069
|
-
break;
|
|
1070
|
-
case /* string claim_name */ 2:
|
|
1071
|
-
message.claimName = reader.string();
|
|
1072
|
-
break;
|
|
1073
|
-
case /* sid.v1.admin.ClaimSource source */ 3:
|
|
1074
|
-
message.source = reader.int32();
|
|
1075
|
-
break;
|
|
1076
|
-
case /* string source_key */ 4:
|
|
1077
|
-
message.sourceKey = reader.string();
|
|
1078
|
-
break;
|
|
1079
|
-
case /* string static_value */ 5:
|
|
1080
|
-
message.staticValue = reader.string();
|
|
1081
|
-
break;
|
|
1082
|
-
case /* bool multivalued */ 6:
|
|
1083
|
-
message.multivalued = reader.bool();
|
|
1084
|
-
break;
|
|
1085
|
-
case /* bool add_to_id_token */ 7:
|
|
1086
|
-
message.addToIdToken = reader.bool();
|
|
1087
|
-
break;
|
|
1088
|
-
case /* bool add_to_access_token */ 8:
|
|
1089
|
-
message.addToAccessToken = reader.bool();
|
|
1090
|
-
break;
|
|
1091
|
-
case /* bool add_to_userinfo */ 9:
|
|
1092
|
-
message.addToUserinfo = reader.bool();
|
|
1093
|
-
break;
|
|
1094
|
-
default:
|
|
1095
|
-
let u = options.readUnknownField;
|
|
1096
|
-
if (u === "throw")
|
|
1097
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1098
|
-
let d = reader.skip(wireType);
|
|
1099
|
-
if (u !== false)
|
|
1100
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
return message;
|
|
1104
|
-
}
|
|
1105
|
-
internalBinaryWrite(message: AddClaimMappingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1106
|
-
/* string scope_id = 1; */
|
|
1107
|
-
if (message.scopeId !== "")
|
|
1108
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
1109
|
-
/* string claim_name = 2; */
|
|
1110
|
-
if (message.claimName !== "")
|
|
1111
|
-
writer.tag(2, WireType.LengthDelimited).string(message.claimName);
|
|
1112
|
-
/* sid.v1.admin.ClaimSource source = 3; */
|
|
1113
|
-
if (message.source !== 0)
|
|
1114
|
-
writer.tag(3, WireType.Varint).int32(message.source);
|
|
1115
|
-
/* string source_key = 4; */
|
|
1116
|
-
if (message.sourceKey !== "")
|
|
1117
|
-
writer.tag(4, WireType.LengthDelimited).string(message.sourceKey);
|
|
1118
|
-
/* string static_value = 5; */
|
|
1119
|
-
if (message.staticValue !== "")
|
|
1120
|
-
writer.tag(5, WireType.LengthDelimited).string(message.staticValue);
|
|
1121
|
-
/* bool multivalued = 6; */
|
|
1122
|
-
if (message.multivalued !== false)
|
|
1123
|
-
writer.tag(6, WireType.Varint).bool(message.multivalued);
|
|
1124
|
-
/* bool add_to_id_token = 7; */
|
|
1125
|
-
if (message.addToIdToken !== false)
|
|
1126
|
-
writer.tag(7, WireType.Varint).bool(message.addToIdToken);
|
|
1127
|
-
/* bool add_to_access_token = 8; */
|
|
1128
|
-
if (message.addToAccessToken !== false)
|
|
1129
|
-
writer.tag(8, WireType.Varint).bool(message.addToAccessToken);
|
|
1130
|
-
/* bool add_to_userinfo = 9; */
|
|
1131
|
-
if (message.addToUserinfo !== false)
|
|
1132
|
-
writer.tag(9, WireType.Varint).bool(message.addToUserinfo);
|
|
1133
|
-
let u = options.writeUnknownFields;
|
|
1134
|
-
if (u !== false)
|
|
1135
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1136
|
-
return writer;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* @generated MessageType for protobuf message sid.v1.admin.AddClaimMappingRequest
|
|
1141
|
-
*/
|
|
1142
|
-
export const AddClaimMappingRequest = new AddClaimMappingRequest$Type();
|
|
1143
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1144
|
-
class UpdateClaimMappingRequest$Type extends MessageType<UpdateClaimMappingRequest> {
|
|
1145
|
-
constructor() {
|
|
1146
|
-
super("sid.v1.admin.UpdateClaimMappingRequest", [
|
|
1147
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1148
|
-
{ no: 2, name: "mapping_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1149
|
-
{ no: 3, name: "claim_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1150
|
-
{ no: 4, name: "source", kind: "enum", opt: true, T: () => ["sid.v1.admin.ClaimSource", ClaimSource, "CLAIM_SOURCE_"] },
|
|
1151
|
-
{ no: 5, name: "source_key", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1152
|
-
{ no: 6, name: "static_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1153
|
-
{ no: 7, name: "multivalued", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1154
|
-
{ no: 8, name: "add_to_id_token", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1155
|
-
{ no: 9, name: "add_to_access_token", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1156
|
-
{ no: 10, name: "add_to_userinfo", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1157
|
-
]);
|
|
1158
|
-
}
|
|
1159
|
-
create(value?: PartialMessage<UpdateClaimMappingRequest>): UpdateClaimMappingRequest {
|
|
1160
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1161
|
-
message.scopeId = "";
|
|
1162
|
-
message.mappingId = "";
|
|
1163
|
-
if (value !== undefined)
|
|
1164
|
-
reflectionMergePartial<UpdateClaimMappingRequest>(this, message, value);
|
|
1165
|
-
return message;
|
|
1166
|
-
}
|
|
1167
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateClaimMappingRequest): UpdateClaimMappingRequest {
|
|
1168
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1169
|
-
while (reader.pos < end) {
|
|
1170
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1171
|
-
switch (fieldNo) {
|
|
1172
|
-
case /* string scope_id */ 1:
|
|
1173
|
-
message.scopeId = reader.string();
|
|
1174
|
-
break;
|
|
1175
|
-
case /* string mapping_id */ 2:
|
|
1176
|
-
message.mappingId = reader.string();
|
|
1177
|
-
break;
|
|
1178
|
-
case /* optional string claim_name */ 3:
|
|
1179
|
-
message.claimName = reader.string();
|
|
1180
|
-
break;
|
|
1181
|
-
case /* optional sid.v1.admin.ClaimSource source */ 4:
|
|
1182
|
-
message.source = reader.int32();
|
|
1183
|
-
break;
|
|
1184
|
-
case /* optional string source_key */ 5:
|
|
1185
|
-
message.sourceKey = reader.string();
|
|
1186
|
-
break;
|
|
1187
|
-
case /* optional string static_value */ 6:
|
|
1188
|
-
message.staticValue = reader.string();
|
|
1189
|
-
break;
|
|
1190
|
-
case /* optional bool multivalued */ 7:
|
|
1191
|
-
message.multivalued = reader.bool();
|
|
1192
|
-
break;
|
|
1193
|
-
case /* optional bool add_to_id_token */ 8:
|
|
1194
|
-
message.addToIdToken = reader.bool();
|
|
1195
|
-
break;
|
|
1196
|
-
case /* optional bool add_to_access_token */ 9:
|
|
1197
|
-
message.addToAccessToken = reader.bool();
|
|
1198
|
-
break;
|
|
1199
|
-
case /* optional bool add_to_userinfo */ 10:
|
|
1200
|
-
message.addToUserinfo = reader.bool();
|
|
1201
|
-
break;
|
|
1202
|
-
default:
|
|
1203
|
-
let u = options.readUnknownField;
|
|
1204
|
-
if (u === "throw")
|
|
1205
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1206
|
-
let d = reader.skip(wireType);
|
|
1207
|
-
if (u !== false)
|
|
1208
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
return message;
|
|
1212
|
-
}
|
|
1213
|
-
internalBinaryWrite(message: UpdateClaimMappingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1214
|
-
/* string scope_id = 1; */
|
|
1215
|
-
if (message.scopeId !== "")
|
|
1216
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
1217
|
-
/* string mapping_id = 2; */
|
|
1218
|
-
if (message.mappingId !== "")
|
|
1219
|
-
writer.tag(2, WireType.LengthDelimited).string(message.mappingId);
|
|
1220
|
-
/* optional string claim_name = 3; */
|
|
1221
|
-
if (message.claimName !== undefined)
|
|
1222
|
-
writer.tag(3, WireType.LengthDelimited).string(message.claimName);
|
|
1223
|
-
/* optional sid.v1.admin.ClaimSource source = 4; */
|
|
1224
|
-
if (message.source !== undefined)
|
|
1225
|
-
writer.tag(4, WireType.Varint).int32(message.source);
|
|
1226
|
-
/* optional string source_key = 5; */
|
|
1227
|
-
if (message.sourceKey !== undefined)
|
|
1228
|
-
writer.tag(5, WireType.LengthDelimited).string(message.sourceKey);
|
|
1229
|
-
/* optional string static_value = 6; */
|
|
1230
|
-
if (message.staticValue !== undefined)
|
|
1231
|
-
writer.tag(6, WireType.LengthDelimited).string(message.staticValue);
|
|
1232
|
-
/* optional bool multivalued = 7; */
|
|
1233
|
-
if (message.multivalued !== undefined)
|
|
1234
|
-
writer.tag(7, WireType.Varint).bool(message.multivalued);
|
|
1235
|
-
/* optional bool add_to_id_token = 8; */
|
|
1236
|
-
if (message.addToIdToken !== undefined)
|
|
1237
|
-
writer.tag(8, WireType.Varint).bool(message.addToIdToken);
|
|
1238
|
-
/* optional bool add_to_access_token = 9; */
|
|
1239
|
-
if (message.addToAccessToken !== undefined)
|
|
1240
|
-
writer.tag(9, WireType.Varint).bool(message.addToAccessToken);
|
|
1241
|
-
/* optional bool add_to_userinfo = 10; */
|
|
1242
|
-
if (message.addToUserinfo !== undefined)
|
|
1243
|
-
writer.tag(10, WireType.Varint).bool(message.addToUserinfo);
|
|
1244
|
-
let u = options.writeUnknownFields;
|
|
1245
|
-
if (u !== false)
|
|
1246
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1247
|
-
return writer;
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
/**
|
|
1251
|
-
* @generated MessageType for protobuf message sid.v1.admin.UpdateClaimMappingRequest
|
|
1252
|
-
*/
|
|
1253
|
-
export const UpdateClaimMappingRequest = new UpdateClaimMappingRequest$Type();
|
|
1254
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1255
|
-
class DeleteClaimMappingRequest$Type extends MessageType<DeleteClaimMappingRequest> {
|
|
1256
|
-
constructor() {
|
|
1257
|
-
super("sid.v1.admin.DeleteClaimMappingRequest", [
|
|
1258
|
-
{ no: 1, name: "scope_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1259
|
-
{ no: 2, name: "mapping_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1260
|
-
]);
|
|
1261
|
-
}
|
|
1262
|
-
create(value?: PartialMessage<DeleteClaimMappingRequest>): DeleteClaimMappingRequest {
|
|
1263
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1264
|
-
message.scopeId = "";
|
|
1265
|
-
message.mappingId = "";
|
|
1266
|
-
if (value !== undefined)
|
|
1267
|
-
reflectionMergePartial<DeleteClaimMappingRequest>(this, message, value);
|
|
1268
|
-
return message;
|
|
1269
|
-
}
|
|
1270
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClaimMappingRequest): DeleteClaimMappingRequest {
|
|
1271
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1272
|
-
while (reader.pos < end) {
|
|
1273
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1274
|
-
switch (fieldNo) {
|
|
1275
|
-
case /* string scope_id */ 1:
|
|
1276
|
-
message.scopeId = reader.string();
|
|
1277
|
-
break;
|
|
1278
|
-
case /* string mapping_id */ 2:
|
|
1279
|
-
message.mappingId = reader.string();
|
|
1280
|
-
break;
|
|
1281
|
-
default:
|
|
1282
|
-
let u = options.readUnknownField;
|
|
1283
|
-
if (u === "throw")
|
|
1284
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1285
|
-
let d = reader.skip(wireType);
|
|
1286
|
-
if (u !== false)
|
|
1287
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
return message;
|
|
1291
|
-
}
|
|
1292
|
-
internalBinaryWrite(message: DeleteClaimMappingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1293
|
-
/* string scope_id = 1; */
|
|
1294
|
-
if (message.scopeId !== "")
|
|
1295
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopeId);
|
|
1296
|
-
/* string mapping_id = 2; */
|
|
1297
|
-
if (message.mappingId !== "")
|
|
1298
|
-
writer.tag(2, WireType.LengthDelimited).string(message.mappingId);
|
|
1299
|
-
let u = options.writeUnknownFields;
|
|
1300
|
-
if (u !== false)
|
|
1301
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1302
|
-
return writer;
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
/**
|
|
1306
|
-
* @generated MessageType for protobuf message sid.v1.admin.DeleteClaimMappingRequest
|
|
1307
|
-
*/
|
|
1308
|
-
export const DeleteClaimMappingRequest = new DeleteClaimMappingRequest$Type();
|
|
1309
|
-
/**
|
|
1310
|
-
* @generated ServiceType for protobuf service sid.v1.admin.ScopeService
|
|
1311
|
-
*/
|
|
1312
|
-
export const ScopeService = new ServiceType("sid.v1.admin.ScopeService", [
|
|
1313
|
-
{ name: "ListScopes", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/scopes" } }, I: Empty, O: ListScopesResponse },
|
|
1314
|
-
{ name: "GetScope", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/scopes/{scope_id}" } }, I: GetScopeRequest, O: Scope },
|
|
1315
|
-
{ name: "CreateScope", options: { "google.api.http": { post: "/v1/admin/scopes", body: "*" } }, I: CreateScopeRequest, O: Scope },
|
|
1316
|
-
{ name: "UpdateScope", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/scopes/{scope_id}", body: "*" } }, I: UpdateScopeRequest, O: Scope },
|
|
1317
|
-
{ name: "DeleteScope", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/scopes/{scope_id}" } }, I: DeleteScopeRequest, O: Empty },
|
|
1318
|
-
{ name: "GetRealmDefaults", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/scopes/defaults" } }, I: Empty, O: RealmScopeDefaults },
|
|
1319
|
-
{ name: "UpdateRealmDefaults", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/admin/scopes/defaults", body: "*" } }, I: RealmScopeDefaults, O: RealmScopeDefaults },
|
|
1320
|
-
{ name: "ListClaimMappings", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/scopes/{scope_id}/claims" } }, I: ListClaimMappingsRequest, O: ListClaimMappingsResponse },
|
|
1321
|
-
{ name: "AddClaimMapping", options: { "google.api.http": { post: "/v1/admin/scopes/{scope_id}/claims", body: "*" } }, I: AddClaimMappingRequest, O: ClaimMapping },
|
|
1322
|
-
{ name: "UpdateClaimMapping", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/scopes/{scope_id}/claims/{mapping_id}", body: "*" } }, I: UpdateClaimMappingRequest, O: ClaimMapping },
|
|
1323
|
-
{ name: "DeleteClaimMapping", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/scopes/{scope_id}/claims/{mapping_id}" } }, I: DeleteClaimMappingRequest, O: Empty }
|
|
1324
|
-
]);
|