@structured-id/ui-core 0.1.5
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/LICENSE +661 -0
- package/README.md +47 -0
- package/dist/browser-vp/index.cjs +349 -0
- package/dist/browser-vp/index.d.cts +287 -0
- package/dist/browser-vp/index.d.ts +287 -0
- package/dist/browser-vp/index.js +349 -0
- package/dist/chunk-C3Q766CY.cjs +125 -0
- package/dist/chunk-J5YXRXB5.js +125 -0
- package/dist/index.cjs +19360 -0
- package/dist/index.d.cts +9536 -0
- package/dist/index.d.ts +9536 -0
- package/dist/index.js +19360 -0
- package/dist/storage-4CB2JTLW.cjs +22 -0
- package/dist/storage-THRWREZP.js +22 -0
- package/package.json +93 -0
- package/src/browser-vp/crypto.ts +254 -0
- package/src/browser-vp/index.test.ts +10 -0
- package/src/browser-vp/index.ts +118 -0
- package/src/browser-vp/prf.ts +181 -0
- package/src/browser-vp/storage.test.ts +9 -0
- package/src/browser-vp/storage.ts +165 -0
- package/src/browser-vp/types.ts +97 -0
- package/src/browser-vp/vp.test.ts +43 -0
- package/src/browser-vp/vp.ts +113 -0
- package/src/components/SidAvatar.vue +106 -0
- package/src/components/SidConfirmDialog.vue +125 -0
- package/src/components/SidStatusBadge.vue +71 -0
- package/src/components/index.ts +5 -0
- package/src/composables/index.ts +10 -0
- package/src/composables/useAuth.ts +40 -0
- package/src/composables/useBffAuth.ts +147 -0
- package/src/composables/useGrpc.test.ts +196 -0
- package/src/composables/useGrpc.ts +120 -0
- package/src/composables/useSession.ts +80 -0
- package/src/generated/google/api/http.ts +687 -0
- package/src/generated/google/protobuf/descriptor.ts +4865 -0
- package/src/generated/google/protobuf/duration.ts +230 -0
- package/src/generated/google/protobuf/empty.ts +94 -0
- package/src/generated/google/protobuf/struct.ts +484 -0
- package/src/generated/google/protobuf/timestamp.ts +287 -0
- package/src/generated/sid/v1/account/account.client.ts +527 -0
- package/src/generated/sid/v1/account/account.ts +3261 -0
- package/src/generated/sid/v1/admin/admin.client.ts +136 -0
- package/src/generated/sid/v1/admin/admin.ts +846 -0
- package/src/generated/sid/v1/admin/admin_roles.client.ts +181 -0
- package/src/generated/sid/v1/admin/admin_roles.ts +1606 -0
- package/src/generated/sid/v1/admin/analytics.client.ts +106 -0
- package/src/generated/sid/v1/admin/analytics.ts +1017 -0
- package/src/generated/sid/v1/admin/branding.client.ts +166 -0
- package/src/generated/sid/v1/admin/branding.ts +1906 -0
- package/src/generated/sid/v1/admin/enrollment.client.ts +165 -0
- package/src/generated/sid/v1/admin/enrollment.ts +1704 -0
- package/src/generated/sid/v1/admin/events.client.ts +195 -0
- package/src/generated/sid/v1/admin/events.ts +1900 -0
- package/src/generated/sid/v1/admin/flow.client.ts +183 -0
- package/src/generated/sid/v1/admin/flow.ts +1552 -0
- package/src/generated/sid/v1/admin/keys.client.ts +107 -0
- package/src/generated/sid/v1/admin/keys.ts +931 -0
- package/src/generated/sid/v1/admin/login_experience.client.ts +160 -0
- package/src/generated/sid/v1/admin/login_experience.ts +1061 -0
- package/src/generated/sid/v1/admin/migration.client.ts +127 -0
- package/src/generated/sid/v1/admin/migration.ts +1948 -0
- package/src/generated/sid/v1/admin/notifications.client.ts +128 -0
- package/src/generated/sid/v1/admin/notifications.ts +1332 -0
- package/src/generated/sid/v1/admin/operations.client.ts +241 -0
- package/src/generated/sid/v1/admin/operations.ts +2648 -0
- package/src/generated/sid/v1/admin/organizations.client.ts +57 -0
- package/src/generated/sid/v1/admin/organizations.ts +349 -0
- package/src/generated/sid/v1/admin/scopes.client.ts +171 -0
- package/src/generated/sid/v1/admin/scopes.ts +1324 -0
- package/src/generated/sid/v1/admin/security.client.ts +412 -0
- package/src/generated/sid/v1/admin/security.ts +4086 -0
- package/src/generated/sid/v1/admin/sessions.client.ts +114 -0
- package/src/generated/sid/v1/admin/sessions.ts +923 -0
- package/src/generated/sid/v1/admin/settings.client.ts +340 -0
- package/src/generated/sid/v1/admin/settings.ts +2395 -0
- package/src/generated/sid/v1/admin/user_profile.client.ts +57 -0
- package/src/generated/sid/v1/admin/user_profile.ts +730 -0
- package/src/generated/sid/v1/admin/webhooks.client.ts +269 -0
- package/src/generated/sid/v1/admin/webhooks.ts +2804 -0
- package/src/generated/sid/v1/attestation/attestation.client.ts +115 -0
- package/src/generated/sid/v1/attestation/attestation.ts +813 -0
- package/src/generated/sid/v1/authn/auth.client.ts +900 -0
- package/src/generated/sid/v1/authn/auth.ts +9287 -0
- package/src/generated/sid/v1/authn/flows.client.ts +413 -0
- package/src/generated/sid/v1/authn/flows.ts +3217 -0
- package/src/generated/sid/v1/authz/authz.client.ts +459 -0
- package/src/generated/sid/v1/authz/authz.ts +5343 -0
- package/src/generated/sid/v1/authz/governance.client.ts +102 -0
- package/src/generated/sid/v1/authz/governance.ts +818 -0
- package/src/generated/sid/v1/common/errors.ts +184 -0
- package/src/generated/sid/v1/common/pagination.ts +152 -0
- package/src/generated/sid/v1/common/transport.ts +227 -0
- package/src/generated/sid/v1/common/types.ts +151 -0
- package/src/generated/sid/v1/events/event_stream.client.ts +67 -0
- package/src/generated/sid/v1/events/event_stream.ts +374 -0
- package/src/generated/sid/v1/federation/upstream.client.ts +142 -0
- package/src/generated/sid/v1/federation/upstream.ts +1736 -0
- package/src/generated/sid/v1/identity/identity.client.ts +467 -0
- package/src/generated/sid/v1/identity/identity.ts +5613 -0
- package/src/generated/sid/v1/machine/machine_user.client.ts +219 -0
- package/src/generated/sid/v1/machine/machine_user.ts +2400 -0
- package/src/generated/sid/v1/machine/pat.client.ts +147 -0
- package/src/generated/sid/v1/machine/pat.ts +1268 -0
- package/src/generated/sid/v1/projects/projects.client.ts +286 -0
- package/src/generated/sid/v1/projects/projects.ts +2714 -0
- package/src/generated/sid/v1/scim/scim.client.ts +274 -0
- package/src/generated/sid/v1/scim/scim.ts +3043 -0
- package/src/generated/sid/v1/test/test.client.ts +232 -0
- package/src/generated/sid/v1/test/test.ts +1136 -0
- package/src/i18n/index.ts +40 -0
- package/src/index.ts +157 -0
- package/src/profile/auth.ts +15 -0
- package/src/profile/components/ConsentManager.vue +88 -0
- package/src/profile/components/ProfileEditor.vue +146 -0
- package/src/profile/components/SecuritySettings.vue +170 -0
- package/src/profile/components/SessionList.vue +100 -0
- package/src/profile/components/SidLoginForm.test.ts +80 -0
- package/src/profile/components/SidLoginForm.vue +230 -0
- package/src/profile/components/SidMfaChallenge.test.ts +127 -0
- package/src/profile/components/SidMfaChallenge.vue +243 -0
- package/src/profile/components/SidRegistrationForm.test.ts +79 -0
- package/src/profile/components/SidRegistrationForm.vue +317 -0
- package/src/profile/components/index.ts +11 -0
- package/src/profile/composables/index.ts +6 -0
- package/src/profile/composables/useAccountApi.ts +203 -0
- package/src/profile/composables/useAuthApi.opaque.test.ts +140 -0
- package/src/profile/composables/useAuthApi.ts +617 -0
- package/src/profile/composables/useIdentityApi.ts +123 -0
- package/src/profile/composables/useLoginSuccess.test.ts +112 -0
- package/src/profile/composables/useLoginSuccess.ts +65 -0
- package/src/profile/composables/useOpaqueAuth.test.ts +290 -0
- package/src/profile/composables/useOpaqueAuth.ts +191 -0
- package/src/profile/composables/useSecurityLevel.test.ts +198 -0
- package/src/profile/composables/useSecurityLevel.ts +324 -0
- package/src/profile/index.ts +18 -0
- package/src/quasar/SidPrincipalInput.vue +209 -0
- package/src/quasar/index.ts +8 -0
- package/src/stores/auth.test.ts +83 -0
- package/src/stores/auth.ts +92 -0
- package/src/stores/index.ts +1 -0
- package/src/transport/adaptive.test.ts +728 -0
- package/src/transport/adaptive.ts +308 -0
- package/src/transport/framing.test.ts +227 -0
- package/src/transport/framing.ts +98 -0
- package/src/transport/webtransport.test.ts +728 -0
- package/src/transport/webtransport.ts +323 -0
- package/src/types/auth.ts +58 -0
- package/src/types/index.ts +1 -0
- package/src/utils/formatters.test.ts +26 -0
- package/src/utils/formatters.ts +69 -0
- package/src/utils/index.ts +16 -0
- package/src/utils/normalizePrincipal.test.ts +188 -0
- package/src/utils/normalizePrincipal.ts +159 -0
- package/src/utils/validators.test.ts +75 -0
- package/src/utils/validators.ts +36 -0
|
@@ -0,0 +1,1736 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
+
// @generated from protobuf file "sid/v1/federation/upstream.proto" (package "sid.v1.federation", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } 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 type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
15
|
+
/**
|
|
16
|
+
* UpstreamProvider represents a configured upstream identity provider.
|
|
17
|
+
* NOTE: client_secret is write-only and NEVER included in responses.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message sid.v1.federation.UpstreamProvider
|
|
20
|
+
*/
|
|
21
|
+
export interface UpstreamProvider {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: string id = 1
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: string name = 2
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamProtocol protocol = 3
|
|
32
|
+
*/
|
|
33
|
+
protocol: UpstreamProtocol;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: sid.v1.federation.TrustCategory trust_category = 4
|
|
36
|
+
*/
|
|
37
|
+
trustCategory: TrustCategory;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: bool enabled = 5
|
|
40
|
+
*/
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: string client_id = 6
|
|
44
|
+
*/
|
|
45
|
+
clientId: string; // Field 7 reserved: client_secret is write-only (in create/update requests only).
|
|
46
|
+
/**
|
|
47
|
+
* OIDC discovery or manual endpoint configuration.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf field: string discovery_url = 8
|
|
50
|
+
*/
|
|
51
|
+
discoveryUrl: string;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: string authorization_endpoint = 9
|
|
54
|
+
*/
|
|
55
|
+
authorizationEndpoint: string;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: string token_endpoint = 10
|
|
58
|
+
*/
|
|
59
|
+
tokenEndpoint: string;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: string userinfo_endpoint = 11
|
|
62
|
+
*/
|
|
63
|
+
userinfoEndpoint: string;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: repeated string scopes = 12
|
|
66
|
+
*/
|
|
67
|
+
scopes: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Login screen display settings.
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf field: bool show_on_login = 13
|
|
72
|
+
*/
|
|
73
|
+
showOnLogin: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: int32 display_order = 14
|
|
76
|
+
*/
|
|
77
|
+
displayOrder: number;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: string logo_url = 15
|
|
80
|
+
*/
|
|
81
|
+
logoUrl: string;
|
|
82
|
+
/**
|
|
83
|
+
* Timestamps.
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf field: google.protobuf.Timestamp created_at = 16
|
|
86
|
+
*/
|
|
87
|
+
createdAt?: Timestamp;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 17
|
|
90
|
+
*/
|
|
91
|
+
updatedAt?: Timestamp;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Minimal provider info for the login screen (public, no admin details).
|
|
95
|
+
*
|
|
96
|
+
* @generated from protobuf message sid.v1.federation.EnabledProviderInfo
|
|
97
|
+
*/
|
|
98
|
+
export interface EnabledProviderInfo {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: string id = 1
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: string name = 2
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamProtocol protocol = 3
|
|
109
|
+
*/
|
|
110
|
+
protocol: UpstreamProtocol;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf field: sid.v1.federation.TrustCategory trust_category = 4
|
|
113
|
+
*/
|
|
114
|
+
trustCategory: TrustCategory;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: string logo_url = 5
|
|
117
|
+
*/
|
|
118
|
+
logoUrl: string;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from protobuf field: int32 display_order = 6
|
|
121
|
+
*/
|
|
122
|
+
displayOrder: number;
|
|
123
|
+
}
|
|
124
|
+
// ── Provider CRUD messages ──
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf message sid.v1.federation.CreateUpstreamProviderRequest
|
|
128
|
+
*/
|
|
129
|
+
export interface CreateUpstreamProviderRequest {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf field: string name = 1
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamProtocol protocol = 2
|
|
136
|
+
*/
|
|
137
|
+
protocol: UpstreamProtocol;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf field: sid.v1.federation.TrustCategory trust_category = 3
|
|
140
|
+
*/
|
|
141
|
+
trustCategory: TrustCategory;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf field: string client_id = 4
|
|
144
|
+
*/
|
|
145
|
+
clientId: string;
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf field: string client_secret = 5
|
|
148
|
+
*/
|
|
149
|
+
clientSecret: string; // Plaintext; encrypted by server before storage.
|
|
150
|
+
/**
|
|
151
|
+
* @generated from protobuf field: string discovery_url = 6
|
|
152
|
+
*/
|
|
153
|
+
discoveryUrl: string;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf field: string authorization_endpoint = 7
|
|
156
|
+
*/
|
|
157
|
+
authorizationEndpoint: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf field: string token_endpoint = 8
|
|
160
|
+
*/
|
|
161
|
+
tokenEndpoint: string;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf field: string userinfo_endpoint = 9
|
|
164
|
+
*/
|
|
165
|
+
userinfoEndpoint: string;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from protobuf field: repeated string scopes = 10
|
|
168
|
+
*/
|
|
169
|
+
scopes: string[];
|
|
170
|
+
/**
|
|
171
|
+
* @generated from protobuf field: bool show_on_login = 11
|
|
172
|
+
*/
|
|
173
|
+
showOnLogin: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf field: int32 display_order = 12
|
|
176
|
+
*/
|
|
177
|
+
displayOrder: number;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf field: string logo_url = 13
|
|
180
|
+
*/
|
|
181
|
+
logoUrl: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @generated from protobuf message sid.v1.federation.UpstreamProviderResponse
|
|
185
|
+
*/
|
|
186
|
+
export interface UpstreamProviderResponse {
|
|
187
|
+
/**
|
|
188
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamProvider provider = 1
|
|
189
|
+
*/
|
|
190
|
+
provider?: UpstreamProvider;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @generated from protobuf message sid.v1.federation.GetUpstreamProviderRequest
|
|
194
|
+
*/
|
|
195
|
+
export interface GetUpstreamProviderRequest {
|
|
196
|
+
/**
|
|
197
|
+
* @generated from protobuf field: string provider_id = 1
|
|
198
|
+
*/
|
|
199
|
+
providerId: string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @generated from protobuf message sid.v1.federation.UpdateUpstreamProviderRequest
|
|
203
|
+
*/
|
|
204
|
+
export interface UpdateUpstreamProviderRequest {
|
|
205
|
+
/**
|
|
206
|
+
* @generated from protobuf field: string provider_id = 1
|
|
207
|
+
*/
|
|
208
|
+
providerId: string;
|
|
209
|
+
/**
|
|
210
|
+
* @generated from protobuf field: optional string name = 2
|
|
211
|
+
*/
|
|
212
|
+
name?: string;
|
|
213
|
+
/**
|
|
214
|
+
* @generated from protobuf field: optional sid.v1.federation.UpstreamProtocol protocol = 3
|
|
215
|
+
*/
|
|
216
|
+
protocol?: UpstreamProtocol;
|
|
217
|
+
/**
|
|
218
|
+
* @generated from protobuf field: optional sid.v1.federation.TrustCategory trust_category = 4
|
|
219
|
+
*/
|
|
220
|
+
trustCategory?: TrustCategory;
|
|
221
|
+
/**
|
|
222
|
+
* @generated from protobuf field: optional bool enabled = 5
|
|
223
|
+
*/
|
|
224
|
+
enabled?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* @generated from protobuf field: optional string client_id = 6
|
|
227
|
+
*/
|
|
228
|
+
clientId?: string;
|
|
229
|
+
/**
|
|
230
|
+
* @generated from protobuf field: optional string client_secret = 7
|
|
231
|
+
*/
|
|
232
|
+
clientSecret?: string; // Write-only; encrypted by server.
|
|
233
|
+
/**
|
|
234
|
+
* @generated from protobuf field: optional string discovery_url = 8
|
|
235
|
+
*/
|
|
236
|
+
discoveryUrl?: string;
|
|
237
|
+
/**
|
|
238
|
+
* @generated from protobuf field: optional string authorization_endpoint = 9
|
|
239
|
+
*/
|
|
240
|
+
authorizationEndpoint?: string;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf field: optional string token_endpoint = 10
|
|
243
|
+
*/
|
|
244
|
+
tokenEndpoint?: string;
|
|
245
|
+
/**
|
|
246
|
+
* @generated from protobuf field: optional string userinfo_endpoint = 11
|
|
247
|
+
*/
|
|
248
|
+
userinfoEndpoint?: string;
|
|
249
|
+
/**
|
|
250
|
+
* @generated from protobuf field: repeated string scopes = 12
|
|
251
|
+
*/
|
|
252
|
+
scopes: string[];
|
|
253
|
+
/**
|
|
254
|
+
* @generated from protobuf field: optional bool show_on_login = 13
|
|
255
|
+
*/
|
|
256
|
+
showOnLogin?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* @generated from protobuf field: optional int32 display_order = 14
|
|
259
|
+
*/
|
|
260
|
+
displayOrder?: number;
|
|
261
|
+
/**
|
|
262
|
+
* @generated from protobuf field: optional string logo_url = 15
|
|
263
|
+
*/
|
|
264
|
+
logoUrl?: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @generated from protobuf message sid.v1.federation.DeleteUpstreamProviderRequest
|
|
268
|
+
*/
|
|
269
|
+
export interface DeleteUpstreamProviderRequest {
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf field: string provider_id = 1
|
|
272
|
+
*/
|
|
273
|
+
providerId: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* @generated from protobuf message sid.v1.federation.DeleteUpstreamProviderResponse
|
|
277
|
+
*/
|
|
278
|
+
export interface DeleteUpstreamProviderResponse {
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @generated from protobuf message sid.v1.federation.ListUpstreamProvidersRequest
|
|
282
|
+
*/
|
|
283
|
+
export interface ListUpstreamProvidersRequest {
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @generated from protobuf message sid.v1.federation.ListUpstreamProvidersResponse
|
|
287
|
+
*/
|
|
288
|
+
export interface ListUpstreamProvidersResponse {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from protobuf field: repeated sid.v1.federation.UpstreamProvider providers = 1
|
|
291
|
+
*/
|
|
292
|
+
providers: UpstreamProvider[];
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @generated from protobuf message sid.v1.federation.ListEnabledProvidersRequest
|
|
296
|
+
*/
|
|
297
|
+
export interface ListEnabledProvidersRequest {
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @generated from protobuf message sid.v1.federation.ListEnabledProvidersResponse
|
|
301
|
+
*/
|
|
302
|
+
export interface ListEnabledProvidersResponse {
|
|
303
|
+
/**
|
|
304
|
+
* @generated from protobuf field: repeated sid.v1.federation.EnabledProviderInfo providers = 1
|
|
305
|
+
*/
|
|
306
|
+
providers: EnabledProviderInfo[];
|
|
307
|
+
}
|
|
308
|
+
// ── Upstream auth flow messages ──
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @generated from protobuf message sid.v1.federation.InitiateUpstreamAuthRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface InitiateUpstreamAuthRequest {
|
|
314
|
+
/**
|
|
315
|
+
* @generated from protobuf field: string provider_id = 1
|
|
316
|
+
*/
|
|
317
|
+
providerId: string;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from protobuf field: string redirect_uri = 2
|
|
320
|
+
*/
|
|
321
|
+
redirectUri: string;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @generated from protobuf message sid.v1.federation.InitiateUpstreamAuthResponse
|
|
325
|
+
*/
|
|
326
|
+
export interface InitiateUpstreamAuthResponse {
|
|
327
|
+
/**
|
|
328
|
+
* @generated from protobuf field: string authorization_url = 1
|
|
329
|
+
*/
|
|
330
|
+
authorizationUrl: string;
|
|
331
|
+
/**
|
|
332
|
+
* @generated from protobuf field: string state_token = 2
|
|
333
|
+
*/
|
|
334
|
+
stateToken: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* @generated from protobuf message sid.v1.federation.HandleUpstreamCallbackRequest
|
|
338
|
+
*/
|
|
339
|
+
export interface HandleUpstreamCallbackRequest {
|
|
340
|
+
/**
|
|
341
|
+
* @generated from protobuf field: string provider_id = 1
|
|
342
|
+
*/
|
|
343
|
+
providerId: string;
|
|
344
|
+
/**
|
|
345
|
+
* @generated from protobuf field: string code = 2
|
|
346
|
+
*/
|
|
347
|
+
code: string;
|
|
348
|
+
/**
|
|
349
|
+
* @generated from protobuf field: string state = 3
|
|
350
|
+
*/
|
|
351
|
+
state: string;
|
|
352
|
+
/**
|
|
353
|
+
* @generated from protobuf field: string redirect_uri = 4
|
|
354
|
+
*/
|
|
355
|
+
redirectUri: string;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* @generated from protobuf message sid.v1.federation.HandleUpstreamCallbackResponse
|
|
359
|
+
*/
|
|
360
|
+
export interface HandleUpstreamCallbackResponse {
|
|
361
|
+
/**
|
|
362
|
+
* @generated from protobuf oneof: result
|
|
363
|
+
*/
|
|
364
|
+
result: {
|
|
365
|
+
oneofKind: "success";
|
|
366
|
+
/**
|
|
367
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamAuthSuccess success = 1
|
|
368
|
+
*/
|
|
369
|
+
success: UpstreamAuthSuccess;
|
|
370
|
+
} | {
|
|
371
|
+
oneofKind: "linkingRequired";
|
|
372
|
+
/**
|
|
373
|
+
* @generated from protobuf field: sid.v1.federation.UpstreamLinkingRequired linking_required = 2
|
|
374
|
+
*/
|
|
375
|
+
linkingRequired: UpstreamLinkingRequired;
|
|
376
|
+
} | {
|
|
377
|
+
oneofKind: undefined;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @generated from protobuf message sid.v1.federation.UpstreamAuthSuccess
|
|
382
|
+
*/
|
|
383
|
+
export interface UpstreamAuthSuccess {
|
|
384
|
+
/**
|
|
385
|
+
* @generated from protobuf field: string session_id = 1
|
|
386
|
+
*/
|
|
387
|
+
sessionId: string;
|
|
388
|
+
/**
|
|
389
|
+
* @generated from protobuf field: string access_token = 2
|
|
390
|
+
*/
|
|
391
|
+
accessToken: string;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from protobuf field: int64 expires_in = 3
|
|
394
|
+
*/
|
|
395
|
+
expiresIn: bigint;
|
|
396
|
+
/**
|
|
397
|
+
* @generated from protobuf field: bool new_profile_created = 4
|
|
398
|
+
*/
|
|
399
|
+
newProfileCreated: boolean;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @generated from protobuf message sid.v1.federation.UpstreamLinkingRequired
|
|
403
|
+
*/
|
|
404
|
+
export interface UpstreamLinkingRequired {
|
|
405
|
+
/**
|
|
406
|
+
* @generated from protobuf field: string linking_token = 1
|
|
407
|
+
*/
|
|
408
|
+
linkingToken: string;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from protobuf field: string upstream_email = 2
|
|
411
|
+
*/
|
|
412
|
+
upstreamEmail: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Protocol used by the upstream identity provider.
|
|
416
|
+
*
|
|
417
|
+
* @generated from protobuf enum sid.v1.federation.UpstreamProtocol
|
|
418
|
+
*/
|
|
419
|
+
export enum UpstreamProtocol {
|
|
420
|
+
/**
|
|
421
|
+
* @generated from protobuf enum value: UPSTREAM_PROTOCOL_UNSPECIFIED = 0;
|
|
422
|
+
*/
|
|
423
|
+
UNSPECIFIED = 0,
|
|
424
|
+
/**
|
|
425
|
+
* @generated from protobuf enum value: UPSTREAM_PROTOCOL_OIDC = 1;
|
|
426
|
+
*/
|
|
427
|
+
OIDC = 1,
|
|
428
|
+
/**
|
|
429
|
+
* @generated from protobuf enum value: UPSTREAM_PROTOCOL_OAUTH2 = 2;
|
|
430
|
+
*/
|
|
431
|
+
OAUTH2 = 2
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Trust category for the upstream provider.
|
|
435
|
+
*
|
|
436
|
+
* @generated from protobuf enum sid.v1.federation.TrustCategory
|
|
437
|
+
*/
|
|
438
|
+
export enum TrustCategory {
|
|
439
|
+
/**
|
|
440
|
+
* @generated from protobuf enum value: TRUST_CATEGORY_UNSPECIFIED = 0;
|
|
441
|
+
*/
|
|
442
|
+
UNSPECIFIED = 0,
|
|
443
|
+
/**
|
|
444
|
+
* Google, GitHub, Apple, etc.
|
|
445
|
+
*
|
|
446
|
+
* @generated from protobuf enum value: TRUST_CATEGORY_SOCIAL = 1;
|
|
447
|
+
*/
|
|
448
|
+
SOCIAL = 1,
|
|
449
|
+
/**
|
|
450
|
+
* Azure AD, Okta, etc.
|
|
451
|
+
*
|
|
452
|
+
* @generated from protobuf enum value: TRUST_CATEGORY_CORPORATE = 2;
|
|
453
|
+
*/
|
|
454
|
+
CORPORATE = 2,
|
|
455
|
+
/**
|
|
456
|
+
* eID, DigiD, etc.
|
|
457
|
+
*
|
|
458
|
+
* @generated from protobuf enum value: TRUST_CATEGORY_GOVERNMENT = 3;
|
|
459
|
+
*/
|
|
460
|
+
GOVERNMENT = 3,
|
|
461
|
+
/**
|
|
462
|
+
* Bank-issued identity.
|
|
463
|
+
*
|
|
464
|
+
* @generated from protobuf enum value: TRUST_CATEGORY_FINANCIAL = 4;
|
|
465
|
+
*/
|
|
466
|
+
FINANCIAL = 4
|
|
467
|
+
}
|
|
468
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
469
|
+
class UpstreamProvider$Type extends MessageType<UpstreamProvider> {
|
|
470
|
+
constructor() {
|
|
471
|
+
super("sid.v1.federation.UpstreamProvider", [
|
|
472
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
473
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
474
|
+
{ no: 3, name: "protocol", kind: "enum", T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
475
|
+
{ no: 4, name: "trust_category", kind: "enum", T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
476
|
+
{ no: 5, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
477
|
+
{ no: 6, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
478
|
+
{ no: 8, name: "discovery_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
479
|
+
{ no: 9, name: "authorization_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
480
|
+
{ no: 10, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
481
|
+
{ no: 11, name: "userinfo_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
482
|
+
{ no: 12, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
483
|
+
{ no: 13, name: "show_on_login", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
484
|
+
{ no: 14, name: "display_order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
485
|
+
{ no: 15, name: "logo_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
486
|
+
{ no: 16, name: "created_at", kind: "message", T: () => Timestamp },
|
|
487
|
+
{ no: 17, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
488
|
+
]);
|
|
489
|
+
}
|
|
490
|
+
create(value?: PartialMessage<UpstreamProvider>): UpstreamProvider {
|
|
491
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
492
|
+
message.id = "";
|
|
493
|
+
message.name = "";
|
|
494
|
+
message.protocol = 0;
|
|
495
|
+
message.trustCategory = 0;
|
|
496
|
+
message.enabled = false;
|
|
497
|
+
message.clientId = "";
|
|
498
|
+
message.discoveryUrl = "";
|
|
499
|
+
message.authorizationEndpoint = "";
|
|
500
|
+
message.tokenEndpoint = "";
|
|
501
|
+
message.userinfoEndpoint = "";
|
|
502
|
+
message.scopes = [];
|
|
503
|
+
message.showOnLogin = false;
|
|
504
|
+
message.displayOrder = 0;
|
|
505
|
+
message.logoUrl = "";
|
|
506
|
+
if (value !== undefined)
|
|
507
|
+
reflectionMergePartial<UpstreamProvider>(this, message, value);
|
|
508
|
+
return message;
|
|
509
|
+
}
|
|
510
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpstreamProvider): UpstreamProvider {
|
|
511
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
512
|
+
while (reader.pos < end) {
|
|
513
|
+
let [fieldNo, wireType] = reader.tag();
|
|
514
|
+
switch (fieldNo) {
|
|
515
|
+
case /* string id */ 1:
|
|
516
|
+
message.id = reader.string();
|
|
517
|
+
break;
|
|
518
|
+
case /* string name */ 2:
|
|
519
|
+
message.name = reader.string();
|
|
520
|
+
break;
|
|
521
|
+
case /* sid.v1.federation.UpstreamProtocol protocol */ 3:
|
|
522
|
+
message.protocol = reader.int32();
|
|
523
|
+
break;
|
|
524
|
+
case /* sid.v1.federation.TrustCategory trust_category */ 4:
|
|
525
|
+
message.trustCategory = reader.int32();
|
|
526
|
+
break;
|
|
527
|
+
case /* bool enabled */ 5:
|
|
528
|
+
message.enabled = reader.bool();
|
|
529
|
+
break;
|
|
530
|
+
case /* string client_id */ 6:
|
|
531
|
+
message.clientId = reader.string();
|
|
532
|
+
break;
|
|
533
|
+
case /* string discovery_url */ 8:
|
|
534
|
+
message.discoveryUrl = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case /* string authorization_endpoint */ 9:
|
|
537
|
+
message.authorizationEndpoint = reader.string();
|
|
538
|
+
break;
|
|
539
|
+
case /* string token_endpoint */ 10:
|
|
540
|
+
message.tokenEndpoint = reader.string();
|
|
541
|
+
break;
|
|
542
|
+
case /* string userinfo_endpoint */ 11:
|
|
543
|
+
message.userinfoEndpoint = reader.string();
|
|
544
|
+
break;
|
|
545
|
+
case /* repeated string scopes */ 12:
|
|
546
|
+
message.scopes.push(reader.string());
|
|
547
|
+
break;
|
|
548
|
+
case /* bool show_on_login */ 13:
|
|
549
|
+
message.showOnLogin = reader.bool();
|
|
550
|
+
break;
|
|
551
|
+
case /* int32 display_order */ 14:
|
|
552
|
+
message.displayOrder = reader.int32();
|
|
553
|
+
break;
|
|
554
|
+
case /* string logo_url */ 15:
|
|
555
|
+
message.logoUrl = reader.string();
|
|
556
|
+
break;
|
|
557
|
+
case /* google.protobuf.Timestamp created_at */ 16:
|
|
558
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
559
|
+
break;
|
|
560
|
+
case /* google.protobuf.Timestamp updated_at */ 17:
|
|
561
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
let u = options.readUnknownField;
|
|
565
|
+
if (u === "throw")
|
|
566
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
567
|
+
let d = reader.skip(wireType);
|
|
568
|
+
if (u !== false)
|
|
569
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return message;
|
|
573
|
+
}
|
|
574
|
+
internalBinaryWrite(message: UpstreamProvider, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
575
|
+
/* string id = 1; */
|
|
576
|
+
if (message.id !== "")
|
|
577
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
578
|
+
/* string name = 2; */
|
|
579
|
+
if (message.name !== "")
|
|
580
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
581
|
+
/* sid.v1.federation.UpstreamProtocol protocol = 3; */
|
|
582
|
+
if (message.protocol !== 0)
|
|
583
|
+
writer.tag(3, WireType.Varint).int32(message.protocol);
|
|
584
|
+
/* sid.v1.federation.TrustCategory trust_category = 4; */
|
|
585
|
+
if (message.trustCategory !== 0)
|
|
586
|
+
writer.tag(4, WireType.Varint).int32(message.trustCategory);
|
|
587
|
+
/* bool enabled = 5; */
|
|
588
|
+
if (message.enabled !== false)
|
|
589
|
+
writer.tag(5, WireType.Varint).bool(message.enabled);
|
|
590
|
+
/* string client_id = 6; */
|
|
591
|
+
if (message.clientId !== "")
|
|
592
|
+
writer.tag(6, WireType.LengthDelimited).string(message.clientId);
|
|
593
|
+
/* string discovery_url = 8; */
|
|
594
|
+
if (message.discoveryUrl !== "")
|
|
595
|
+
writer.tag(8, WireType.LengthDelimited).string(message.discoveryUrl);
|
|
596
|
+
/* string authorization_endpoint = 9; */
|
|
597
|
+
if (message.authorizationEndpoint !== "")
|
|
598
|
+
writer.tag(9, WireType.LengthDelimited).string(message.authorizationEndpoint);
|
|
599
|
+
/* string token_endpoint = 10; */
|
|
600
|
+
if (message.tokenEndpoint !== "")
|
|
601
|
+
writer.tag(10, WireType.LengthDelimited).string(message.tokenEndpoint);
|
|
602
|
+
/* string userinfo_endpoint = 11; */
|
|
603
|
+
if (message.userinfoEndpoint !== "")
|
|
604
|
+
writer.tag(11, WireType.LengthDelimited).string(message.userinfoEndpoint);
|
|
605
|
+
/* repeated string scopes = 12; */
|
|
606
|
+
for (let i = 0; i < message.scopes.length; i++)
|
|
607
|
+
writer.tag(12, WireType.LengthDelimited).string(message.scopes[i]);
|
|
608
|
+
/* bool show_on_login = 13; */
|
|
609
|
+
if (message.showOnLogin !== false)
|
|
610
|
+
writer.tag(13, WireType.Varint).bool(message.showOnLogin);
|
|
611
|
+
/* int32 display_order = 14; */
|
|
612
|
+
if (message.displayOrder !== 0)
|
|
613
|
+
writer.tag(14, WireType.Varint).int32(message.displayOrder);
|
|
614
|
+
/* string logo_url = 15; */
|
|
615
|
+
if (message.logoUrl !== "")
|
|
616
|
+
writer.tag(15, WireType.LengthDelimited).string(message.logoUrl);
|
|
617
|
+
/* google.protobuf.Timestamp created_at = 16; */
|
|
618
|
+
if (message.createdAt)
|
|
619
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
620
|
+
/* google.protobuf.Timestamp updated_at = 17; */
|
|
621
|
+
if (message.updatedAt)
|
|
622
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
623
|
+
let u = options.writeUnknownFields;
|
|
624
|
+
if (u !== false)
|
|
625
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
626
|
+
return writer;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* @generated MessageType for protobuf message sid.v1.federation.UpstreamProvider
|
|
631
|
+
*/
|
|
632
|
+
export const UpstreamProvider = new UpstreamProvider$Type();
|
|
633
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
634
|
+
class EnabledProviderInfo$Type extends MessageType<EnabledProviderInfo> {
|
|
635
|
+
constructor() {
|
|
636
|
+
super("sid.v1.federation.EnabledProviderInfo", [
|
|
637
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
638
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
639
|
+
{ no: 3, name: "protocol", kind: "enum", T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
640
|
+
{ no: 4, name: "trust_category", kind: "enum", T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
641
|
+
{ no: 5, name: "logo_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
642
|
+
{ no: 6, name: "display_order", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
643
|
+
]);
|
|
644
|
+
}
|
|
645
|
+
create(value?: PartialMessage<EnabledProviderInfo>): EnabledProviderInfo {
|
|
646
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
647
|
+
message.id = "";
|
|
648
|
+
message.name = "";
|
|
649
|
+
message.protocol = 0;
|
|
650
|
+
message.trustCategory = 0;
|
|
651
|
+
message.logoUrl = "";
|
|
652
|
+
message.displayOrder = 0;
|
|
653
|
+
if (value !== undefined)
|
|
654
|
+
reflectionMergePartial<EnabledProviderInfo>(this, message, value);
|
|
655
|
+
return message;
|
|
656
|
+
}
|
|
657
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnabledProviderInfo): EnabledProviderInfo {
|
|
658
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
659
|
+
while (reader.pos < end) {
|
|
660
|
+
let [fieldNo, wireType] = reader.tag();
|
|
661
|
+
switch (fieldNo) {
|
|
662
|
+
case /* string id */ 1:
|
|
663
|
+
message.id = reader.string();
|
|
664
|
+
break;
|
|
665
|
+
case /* string name */ 2:
|
|
666
|
+
message.name = reader.string();
|
|
667
|
+
break;
|
|
668
|
+
case /* sid.v1.federation.UpstreamProtocol protocol */ 3:
|
|
669
|
+
message.protocol = reader.int32();
|
|
670
|
+
break;
|
|
671
|
+
case /* sid.v1.federation.TrustCategory trust_category */ 4:
|
|
672
|
+
message.trustCategory = reader.int32();
|
|
673
|
+
break;
|
|
674
|
+
case /* string logo_url */ 5:
|
|
675
|
+
message.logoUrl = reader.string();
|
|
676
|
+
break;
|
|
677
|
+
case /* int32 display_order */ 6:
|
|
678
|
+
message.displayOrder = reader.int32();
|
|
679
|
+
break;
|
|
680
|
+
default:
|
|
681
|
+
let u = options.readUnknownField;
|
|
682
|
+
if (u === "throw")
|
|
683
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
684
|
+
let d = reader.skip(wireType);
|
|
685
|
+
if (u !== false)
|
|
686
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return message;
|
|
690
|
+
}
|
|
691
|
+
internalBinaryWrite(message: EnabledProviderInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
692
|
+
/* string id = 1; */
|
|
693
|
+
if (message.id !== "")
|
|
694
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
695
|
+
/* string name = 2; */
|
|
696
|
+
if (message.name !== "")
|
|
697
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
698
|
+
/* sid.v1.federation.UpstreamProtocol protocol = 3; */
|
|
699
|
+
if (message.protocol !== 0)
|
|
700
|
+
writer.tag(3, WireType.Varint).int32(message.protocol);
|
|
701
|
+
/* sid.v1.federation.TrustCategory trust_category = 4; */
|
|
702
|
+
if (message.trustCategory !== 0)
|
|
703
|
+
writer.tag(4, WireType.Varint).int32(message.trustCategory);
|
|
704
|
+
/* string logo_url = 5; */
|
|
705
|
+
if (message.logoUrl !== "")
|
|
706
|
+
writer.tag(5, WireType.LengthDelimited).string(message.logoUrl);
|
|
707
|
+
/* int32 display_order = 6; */
|
|
708
|
+
if (message.displayOrder !== 0)
|
|
709
|
+
writer.tag(6, WireType.Varint).int32(message.displayOrder);
|
|
710
|
+
let u = options.writeUnknownFields;
|
|
711
|
+
if (u !== false)
|
|
712
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
713
|
+
return writer;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @generated MessageType for protobuf message sid.v1.federation.EnabledProviderInfo
|
|
718
|
+
*/
|
|
719
|
+
export const EnabledProviderInfo = new EnabledProviderInfo$Type();
|
|
720
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
721
|
+
class CreateUpstreamProviderRequest$Type extends MessageType<CreateUpstreamProviderRequest> {
|
|
722
|
+
constructor() {
|
|
723
|
+
super("sid.v1.federation.CreateUpstreamProviderRequest", [
|
|
724
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
725
|
+
{ no: 2, name: "protocol", kind: "enum", T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
726
|
+
{ no: 3, name: "trust_category", kind: "enum", T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
727
|
+
{ no: 4, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
728
|
+
{ no: 5, name: "client_secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
729
|
+
{ no: 6, name: "discovery_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
730
|
+
{ no: 7, name: "authorization_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
731
|
+
{ no: 8, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
732
|
+
{ no: 9, name: "userinfo_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
733
|
+
{ no: 10, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
734
|
+
{ no: 11, name: "show_on_login", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
735
|
+
{ no: 12, name: "display_order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
736
|
+
{ no: 13, name: "logo_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
737
|
+
]);
|
|
738
|
+
}
|
|
739
|
+
create(value?: PartialMessage<CreateUpstreamProviderRequest>): CreateUpstreamProviderRequest {
|
|
740
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
741
|
+
message.name = "";
|
|
742
|
+
message.protocol = 0;
|
|
743
|
+
message.trustCategory = 0;
|
|
744
|
+
message.clientId = "";
|
|
745
|
+
message.clientSecret = "";
|
|
746
|
+
message.discoveryUrl = "";
|
|
747
|
+
message.authorizationEndpoint = "";
|
|
748
|
+
message.tokenEndpoint = "";
|
|
749
|
+
message.userinfoEndpoint = "";
|
|
750
|
+
message.scopes = [];
|
|
751
|
+
message.showOnLogin = false;
|
|
752
|
+
message.displayOrder = 0;
|
|
753
|
+
message.logoUrl = "";
|
|
754
|
+
if (value !== undefined)
|
|
755
|
+
reflectionMergePartial<CreateUpstreamProviderRequest>(this, message, value);
|
|
756
|
+
return message;
|
|
757
|
+
}
|
|
758
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateUpstreamProviderRequest): CreateUpstreamProviderRequest {
|
|
759
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
760
|
+
while (reader.pos < end) {
|
|
761
|
+
let [fieldNo, wireType] = reader.tag();
|
|
762
|
+
switch (fieldNo) {
|
|
763
|
+
case /* string name */ 1:
|
|
764
|
+
message.name = reader.string();
|
|
765
|
+
break;
|
|
766
|
+
case /* sid.v1.federation.UpstreamProtocol protocol */ 2:
|
|
767
|
+
message.protocol = reader.int32();
|
|
768
|
+
break;
|
|
769
|
+
case /* sid.v1.federation.TrustCategory trust_category */ 3:
|
|
770
|
+
message.trustCategory = reader.int32();
|
|
771
|
+
break;
|
|
772
|
+
case /* string client_id */ 4:
|
|
773
|
+
message.clientId = reader.string();
|
|
774
|
+
break;
|
|
775
|
+
case /* string client_secret */ 5:
|
|
776
|
+
message.clientSecret = reader.string();
|
|
777
|
+
break;
|
|
778
|
+
case /* string discovery_url */ 6:
|
|
779
|
+
message.discoveryUrl = reader.string();
|
|
780
|
+
break;
|
|
781
|
+
case /* string authorization_endpoint */ 7:
|
|
782
|
+
message.authorizationEndpoint = reader.string();
|
|
783
|
+
break;
|
|
784
|
+
case /* string token_endpoint */ 8:
|
|
785
|
+
message.tokenEndpoint = reader.string();
|
|
786
|
+
break;
|
|
787
|
+
case /* string userinfo_endpoint */ 9:
|
|
788
|
+
message.userinfoEndpoint = reader.string();
|
|
789
|
+
break;
|
|
790
|
+
case /* repeated string scopes */ 10:
|
|
791
|
+
message.scopes.push(reader.string());
|
|
792
|
+
break;
|
|
793
|
+
case /* bool show_on_login */ 11:
|
|
794
|
+
message.showOnLogin = reader.bool();
|
|
795
|
+
break;
|
|
796
|
+
case /* int32 display_order */ 12:
|
|
797
|
+
message.displayOrder = reader.int32();
|
|
798
|
+
break;
|
|
799
|
+
case /* string logo_url */ 13:
|
|
800
|
+
message.logoUrl = reader.string();
|
|
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: CreateUpstreamProviderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
814
|
+
/* string name = 1; */
|
|
815
|
+
if (message.name !== "")
|
|
816
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
817
|
+
/* sid.v1.federation.UpstreamProtocol protocol = 2; */
|
|
818
|
+
if (message.protocol !== 0)
|
|
819
|
+
writer.tag(2, WireType.Varint).int32(message.protocol);
|
|
820
|
+
/* sid.v1.federation.TrustCategory trust_category = 3; */
|
|
821
|
+
if (message.trustCategory !== 0)
|
|
822
|
+
writer.tag(3, WireType.Varint).int32(message.trustCategory);
|
|
823
|
+
/* string client_id = 4; */
|
|
824
|
+
if (message.clientId !== "")
|
|
825
|
+
writer.tag(4, WireType.LengthDelimited).string(message.clientId);
|
|
826
|
+
/* string client_secret = 5; */
|
|
827
|
+
if (message.clientSecret !== "")
|
|
828
|
+
writer.tag(5, WireType.LengthDelimited).string(message.clientSecret);
|
|
829
|
+
/* string discovery_url = 6; */
|
|
830
|
+
if (message.discoveryUrl !== "")
|
|
831
|
+
writer.tag(6, WireType.LengthDelimited).string(message.discoveryUrl);
|
|
832
|
+
/* string authorization_endpoint = 7; */
|
|
833
|
+
if (message.authorizationEndpoint !== "")
|
|
834
|
+
writer.tag(7, WireType.LengthDelimited).string(message.authorizationEndpoint);
|
|
835
|
+
/* string token_endpoint = 8; */
|
|
836
|
+
if (message.tokenEndpoint !== "")
|
|
837
|
+
writer.tag(8, WireType.LengthDelimited).string(message.tokenEndpoint);
|
|
838
|
+
/* string userinfo_endpoint = 9; */
|
|
839
|
+
if (message.userinfoEndpoint !== "")
|
|
840
|
+
writer.tag(9, WireType.LengthDelimited).string(message.userinfoEndpoint);
|
|
841
|
+
/* repeated string scopes = 10; */
|
|
842
|
+
for (let i = 0; i < message.scopes.length; i++)
|
|
843
|
+
writer.tag(10, WireType.LengthDelimited).string(message.scopes[i]);
|
|
844
|
+
/* bool show_on_login = 11; */
|
|
845
|
+
if (message.showOnLogin !== false)
|
|
846
|
+
writer.tag(11, WireType.Varint).bool(message.showOnLogin);
|
|
847
|
+
/* int32 display_order = 12; */
|
|
848
|
+
if (message.displayOrder !== 0)
|
|
849
|
+
writer.tag(12, WireType.Varint).int32(message.displayOrder);
|
|
850
|
+
/* string logo_url = 13; */
|
|
851
|
+
if (message.logoUrl !== "")
|
|
852
|
+
writer.tag(13, WireType.LengthDelimited).string(message.logoUrl);
|
|
853
|
+
let u = options.writeUnknownFields;
|
|
854
|
+
if (u !== false)
|
|
855
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
856
|
+
return writer;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* @generated MessageType for protobuf message sid.v1.federation.CreateUpstreamProviderRequest
|
|
861
|
+
*/
|
|
862
|
+
export const CreateUpstreamProviderRequest = new CreateUpstreamProviderRequest$Type();
|
|
863
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
864
|
+
class UpstreamProviderResponse$Type extends MessageType<UpstreamProviderResponse> {
|
|
865
|
+
constructor() {
|
|
866
|
+
super("sid.v1.federation.UpstreamProviderResponse", [
|
|
867
|
+
{ no: 1, name: "provider", kind: "message", T: () => UpstreamProvider }
|
|
868
|
+
]);
|
|
869
|
+
}
|
|
870
|
+
create(value?: PartialMessage<UpstreamProviderResponse>): UpstreamProviderResponse {
|
|
871
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
872
|
+
if (value !== undefined)
|
|
873
|
+
reflectionMergePartial<UpstreamProviderResponse>(this, message, value);
|
|
874
|
+
return message;
|
|
875
|
+
}
|
|
876
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpstreamProviderResponse): UpstreamProviderResponse {
|
|
877
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
878
|
+
while (reader.pos < end) {
|
|
879
|
+
let [fieldNo, wireType] = reader.tag();
|
|
880
|
+
switch (fieldNo) {
|
|
881
|
+
case /* sid.v1.federation.UpstreamProvider provider */ 1:
|
|
882
|
+
message.provider = UpstreamProvider.internalBinaryRead(reader, reader.uint32(), options, message.provider);
|
|
883
|
+
break;
|
|
884
|
+
default:
|
|
885
|
+
let u = options.readUnknownField;
|
|
886
|
+
if (u === "throw")
|
|
887
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
888
|
+
let d = reader.skip(wireType);
|
|
889
|
+
if (u !== false)
|
|
890
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
return message;
|
|
894
|
+
}
|
|
895
|
+
internalBinaryWrite(message: UpstreamProviderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
896
|
+
/* sid.v1.federation.UpstreamProvider provider = 1; */
|
|
897
|
+
if (message.provider)
|
|
898
|
+
UpstreamProvider.internalBinaryWrite(message.provider, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
899
|
+
let u = options.writeUnknownFields;
|
|
900
|
+
if (u !== false)
|
|
901
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
902
|
+
return writer;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* @generated MessageType for protobuf message sid.v1.federation.UpstreamProviderResponse
|
|
907
|
+
*/
|
|
908
|
+
export const UpstreamProviderResponse = new UpstreamProviderResponse$Type();
|
|
909
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
910
|
+
class GetUpstreamProviderRequest$Type extends MessageType<GetUpstreamProviderRequest> {
|
|
911
|
+
constructor() {
|
|
912
|
+
super("sid.v1.federation.GetUpstreamProviderRequest", [
|
|
913
|
+
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
914
|
+
]);
|
|
915
|
+
}
|
|
916
|
+
create(value?: PartialMessage<GetUpstreamProviderRequest>): GetUpstreamProviderRequest {
|
|
917
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
918
|
+
message.providerId = "";
|
|
919
|
+
if (value !== undefined)
|
|
920
|
+
reflectionMergePartial<GetUpstreamProviderRequest>(this, message, value);
|
|
921
|
+
return message;
|
|
922
|
+
}
|
|
923
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUpstreamProviderRequest): GetUpstreamProviderRequest {
|
|
924
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
925
|
+
while (reader.pos < end) {
|
|
926
|
+
let [fieldNo, wireType] = reader.tag();
|
|
927
|
+
switch (fieldNo) {
|
|
928
|
+
case /* string provider_id */ 1:
|
|
929
|
+
message.providerId = reader.string();
|
|
930
|
+
break;
|
|
931
|
+
default:
|
|
932
|
+
let u = options.readUnknownField;
|
|
933
|
+
if (u === "throw")
|
|
934
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
935
|
+
let d = reader.skip(wireType);
|
|
936
|
+
if (u !== false)
|
|
937
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
return message;
|
|
941
|
+
}
|
|
942
|
+
internalBinaryWrite(message: GetUpstreamProviderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
943
|
+
/* string provider_id = 1; */
|
|
944
|
+
if (message.providerId !== "")
|
|
945
|
+
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
946
|
+
let u = options.writeUnknownFields;
|
|
947
|
+
if (u !== false)
|
|
948
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
949
|
+
return writer;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* @generated MessageType for protobuf message sid.v1.federation.GetUpstreamProviderRequest
|
|
954
|
+
*/
|
|
955
|
+
export const GetUpstreamProviderRequest = new GetUpstreamProviderRequest$Type();
|
|
956
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
957
|
+
class UpdateUpstreamProviderRequest$Type extends MessageType<UpdateUpstreamProviderRequest> {
|
|
958
|
+
constructor() {
|
|
959
|
+
super("sid.v1.federation.UpdateUpstreamProviderRequest", [
|
|
960
|
+
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
961
|
+
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
962
|
+
{ no: 3, name: "protocol", kind: "enum", opt: true, T: () => ["sid.v1.federation.UpstreamProtocol", UpstreamProtocol, "UPSTREAM_PROTOCOL_"] },
|
|
963
|
+
{ no: 4, name: "trust_category", kind: "enum", opt: true, T: () => ["sid.v1.federation.TrustCategory", TrustCategory, "TRUST_CATEGORY_"] },
|
|
964
|
+
{ no: 5, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
965
|
+
{ no: 6, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
966
|
+
{ no: 7, name: "client_secret", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
967
|
+
{ no: 8, name: "discovery_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
968
|
+
{ no: 9, name: "authorization_endpoint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
969
|
+
{ no: 10, name: "token_endpoint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
970
|
+
{ no: 11, name: "userinfo_endpoint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
971
|
+
{ no: 12, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
972
|
+
{ no: 13, name: "show_on_login", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
973
|
+
{ no: 14, name: "display_order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
974
|
+
{ no: 15, name: "logo_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
975
|
+
]);
|
|
976
|
+
}
|
|
977
|
+
create(value?: PartialMessage<UpdateUpstreamProviderRequest>): UpdateUpstreamProviderRequest {
|
|
978
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
979
|
+
message.providerId = "";
|
|
980
|
+
message.scopes = [];
|
|
981
|
+
if (value !== undefined)
|
|
982
|
+
reflectionMergePartial<UpdateUpstreamProviderRequest>(this, message, value);
|
|
983
|
+
return message;
|
|
984
|
+
}
|
|
985
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateUpstreamProviderRequest): UpdateUpstreamProviderRequest {
|
|
986
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
987
|
+
while (reader.pos < end) {
|
|
988
|
+
let [fieldNo, wireType] = reader.tag();
|
|
989
|
+
switch (fieldNo) {
|
|
990
|
+
case /* string provider_id */ 1:
|
|
991
|
+
message.providerId = reader.string();
|
|
992
|
+
break;
|
|
993
|
+
case /* optional string name */ 2:
|
|
994
|
+
message.name = reader.string();
|
|
995
|
+
break;
|
|
996
|
+
case /* optional sid.v1.federation.UpstreamProtocol protocol */ 3:
|
|
997
|
+
message.protocol = reader.int32();
|
|
998
|
+
break;
|
|
999
|
+
case /* optional sid.v1.federation.TrustCategory trust_category */ 4:
|
|
1000
|
+
message.trustCategory = reader.int32();
|
|
1001
|
+
break;
|
|
1002
|
+
case /* optional bool enabled */ 5:
|
|
1003
|
+
message.enabled = reader.bool();
|
|
1004
|
+
break;
|
|
1005
|
+
case /* optional string client_id */ 6:
|
|
1006
|
+
message.clientId = reader.string();
|
|
1007
|
+
break;
|
|
1008
|
+
case /* optional string client_secret */ 7:
|
|
1009
|
+
message.clientSecret = reader.string();
|
|
1010
|
+
break;
|
|
1011
|
+
case /* optional string discovery_url */ 8:
|
|
1012
|
+
message.discoveryUrl = reader.string();
|
|
1013
|
+
break;
|
|
1014
|
+
case /* optional string authorization_endpoint */ 9:
|
|
1015
|
+
message.authorizationEndpoint = reader.string();
|
|
1016
|
+
break;
|
|
1017
|
+
case /* optional string token_endpoint */ 10:
|
|
1018
|
+
message.tokenEndpoint = reader.string();
|
|
1019
|
+
break;
|
|
1020
|
+
case /* optional string userinfo_endpoint */ 11:
|
|
1021
|
+
message.userinfoEndpoint = reader.string();
|
|
1022
|
+
break;
|
|
1023
|
+
case /* repeated string scopes */ 12:
|
|
1024
|
+
message.scopes.push(reader.string());
|
|
1025
|
+
break;
|
|
1026
|
+
case /* optional bool show_on_login */ 13:
|
|
1027
|
+
message.showOnLogin = reader.bool();
|
|
1028
|
+
break;
|
|
1029
|
+
case /* optional int32 display_order */ 14:
|
|
1030
|
+
message.displayOrder = reader.int32();
|
|
1031
|
+
break;
|
|
1032
|
+
case /* optional string logo_url */ 15:
|
|
1033
|
+
message.logoUrl = reader.string();
|
|
1034
|
+
break;
|
|
1035
|
+
default:
|
|
1036
|
+
let u = options.readUnknownField;
|
|
1037
|
+
if (u === "throw")
|
|
1038
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1039
|
+
let d = reader.skip(wireType);
|
|
1040
|
+
if (u !== false)
|
|
1041
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
return message;
|
|
1045
|
+
}
|
|
1046
|
+
internalBinaryWrite(message: UpdateUpstreamProviderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1047
|
+
/* string provider_id = 1; */
|
|
1048
|
+
if (message.providerId !== "")
|
|
1049
|
+
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
1050
|
+
/* optional string name = 2; */
|
|
1051
|
+
if (message.name !== undefined)
|
|
1052
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1053
|
+
/* optional sid.v1.federation.UpstreamProtocol protocol = 3; */
|
|
1054
|
+
if (message.protocol !== undefined)
|
|
1055
|
+
writer.tag(3, WireType.Varint).int32(message.protocol);
|
|
1056
|
+
/* optional sid.v1.federation.TrustCategory trust_category = 4; */
|
|
1057
|
+
if (message.trustCategory !== undefined)
|
|
1058
|
+
writer.tag(4, WireType.Varint).int32(message.trustCategory);
|
|
1059
|
+
/* optional bool enabled = 5; */
|
|
1060
|
+
if (message.enabled !== undefined)
|
|
1061
|
+
writer.tag(5, WireType.Varint).bool(message.enabled);
|
|
1062
|
+
/* optional string client_id = 6; */
|
|
1063
|
+
if (message.clientId !== undefined)
|
|
1064
|
+
writer.tag(6, WireType.LengthDelimited).string(message.clientId);
|
|
1065
|
+
/* optional string client_secret = 7; */
|
|
1066
|
+
if (message.clientSecret !== undefined)
|
|
1067
|
+
writer.tag(7, WireType.LengthDelimited).string(message.clientSecret);
|
|
1068
|
+
/* optional string discovery_url = 8; */
|
|
1069
|
+
if (message.discoveryUrl !== undefined)
|
|
1070
|
+
writer.tag(8, WireType.LengthDelimited).string(message.discoveryUrl);
|
|
1071
|
+
/* optional string authorization_endpoint = 9; */
|
|
1072
|
+
if (message.authorizationEndpoint !== undefined)
|
|
1073
|
+
writer.tag(9, WireType.LengthDelimited).string(message.authorizationEndpoint);
|
|
1074
|
+
/* optional string token_endpoint = 10; */
|
|
1075
|
+
if (message.tokenEndpoint !== undefined)
|
|
1076
|
+
writer.tag(10, WireType.LengthDelimited).string(message.tokenEndpoint);
|
|
1077
|
+
/* optional string userinfo_endpoint = 11; */
|
|
1078
|
+
if (message.userinfoEndpoint !== undefined)
|
|
1079
|
+
writer.tag(11, WireType.LengthDelimited).string(message.userinfoEndpoint);
|
|
1080
|
+
/* repeated string scopes = 12; */
|
|
1081
|
+
for (let i = 0; i < message.scopes.length; i++)
|
|
1082
|
+
writer.tag(12, WireType.LengthDelimited).string(message.scopes[i]);
|
|
1083
|
+
/* optional bool show_on_login = 13; */
|
|
1084
|
+
if (message.showOnLogin !== undefined)
|
|
1085
|
+
writer.tag(13, WireType.Varint).bool(message.showOnLogin);
|
|
1086
|
+
/* optional int32 display_order = 14; */
|
|
1087
|
+
if (message.displayOrder !== undefined)
|
|
1088
|
+
writer.tag(14, WireType.Varint).int32(message.displayOrder);
|
|
1089
|
+
/* optional string logo_url = 15; */
|
|
1090
|
+
if (message.logoUrl !== undefined)
|
|
1091
|
+
writer.tag(15, WireType.LengthDelimited).string(message.logoUrl);
|
|
1092
|
+
let u = options.writeUnknownFields;
|
|
1093
|
+
if (u !== false)
|
|
1094
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1095
|
+
return writer;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* @generated MessageType for protobuf message sid.v1.federation.UpdateUpstreamProviderRequest
|
|
1100
|
+
*/
|
|
1101
|
+
export const UpdateUpstreamProviderRequest = new UpdateUpstreamProviderRequest$Type();
|
|
1102
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1103
|
+
class DeleteUpstreamProviderRequest$Type extends MessageType<DeleteUpstreamProviderRequest> {
|
|
1104
|
+
constructor() {
|
|
1105
|
+
super("sid.v1.federation.DeleteUpstreamProviderRequest", [
|
|
1106
|
+
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1107
|
+
]);
|
|
1108
|
+
}
|
|
1109
|
+
create(value?: PartialMessage<DeleteUpstreamProviderRequest>): DeleteUpstreamProviderRequest {
|
|
1110
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1111
|
+
message.providerId = "";
|
|
1112
|
+
if (value !== undefined)
|
|
1113
|
+
reflectionMergePartial<DeleteUpstreamProviderRequest>(this, message, value);
|
|
1114
|
+
return message;
|
|
1115
|
+
}
|
|
1116
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteUpstreamProviderRequest): DeleteUpstreamProviderRequest {
|
|
1117
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1118
|
+
while (reader.pos < end) {
|
|
1119
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1120
|
+
switch (fieldNo) {
|
|
1121
|
+
case /* string provider_id */ 1:
|
|
1122
|
+
message.providerId = reader.string();
|
|
1123
|
+
break;
|
|
1124
|
+
default:
|
|
1125
|
+
let u = options.readUnknownField;
|
|
1126
|
+
if (u === "throw")
|
|
1127
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1128
|
+
let d = reader.skip(wireType);
|
|
1129
|
+
if (u !== false)
|
|
1130
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return message;
|
|
1134
|
+
}
|
|
1135
|
+
internalBinaryWrite(message: DeleteUpstreamProviderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1136
|
+
/* string provider_id = 1; */
|
|
1137
|
+
if (message.providerId !== "")
|
|
1138
|
+
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
1139
|
+
let u = options.writeUnknownFields;
|
|
1140
|
+
if (u !== false)
|
|
1141
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1142
|
+
return writer;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* @generated MessageType for protobuf message sid.v1.federation.DeleteUpstreamProviderRequest
|
|
1147
|
+
*/
|
|
1148
|
+
export const DeleteUpstreamProviderRequest = new DeleteUpstreamProviderRequest$Type();
|
|
1149
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1150
|
+
class DeleteUpstreamProviderResponse$Type extends MessageType<DeleteUpstreamProviderResponse> {
|
|
1151
|
+
constructor() {
|
|
1152
|
+
super("sid.v1.federation.DeleteUpstreamProviderResponse", []);
|
|
1153
|
+
}
|
|
1154
|
+
create(value?: PartialMessage<DeleteUpstreamProviderResponse>): DeleteUpstreamProviderResponse {
|
|
1155
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1156
|
+
if (value !== undefined)
|
|
1157
|
+
reflectionMergePartial<DeleteUpstreamProviderResponse>(this, message, value);
|
|
1158
|
+
return message;
|
|
1159
|
+
}
|
|
1160
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteUpstreamProviderResponse): DeleteUpstreamProviderResponse {
|
|
1161
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1162
|
+
while (reader.pos < end) {
|
|
1163
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1164
|
+
switch (fieldNo) {
|
|
1165
|
+
default:
|
|
1166
|
+
let u = options.readUnknownField;
|
|
1167
|
+
if (u === "throw")
|
|
1168
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1169
|
+
let d = reader.skip(wireType);
|
|
1170
|
+
if (u !== false)
|
|
1171
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
return message;
|
|
1175
|
+
}
|
|
1176
|
+
internalBinaryWrite(message: DeleteUpstreamProviderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1177
|
+
let u = options.writeUnknownFields;
|
|
1178
|
+
if (u !== false)
|
|
1179
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1180
|
+
return writer;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* @generated MessageType for protobuf message sid.v1.federation.DeleteUpstreamProviderResponse
|
|
1185
|
+
*/
|
|
1186
|
+
export const DeleteUpstreamProviderResponse = new DeleteUpstreamProviderResponse$Type();
|
|
1187
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1188
|
+
class ListUpstreamProvidersRequest$Type extends MessageType<ListUpstreamProvidersRequest> {
|
|
1189
|
+
constructor() {
|
|
1190
|
+
super("sid.v1.federation.ListUpstreamProvidersRequest", []);
|
|
1191
|
+
}
|
|
1192
|
+
create(value?: PartialMessage<ListUpstreamProvidersRequest>): ListUpstreamProvidersRequest {
|
|
1193
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1194
|
+
if (value !== undefined)
|
|
1195
|
+
reflectionMergePartial<ListUpstreamProvidersRequest>(this, message, value);
|
|
1196
|
+
return message;
|
|
1197
|
+
}
|
|
1198
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUpstreamProvidersRequest): ListUpstreamProvidersRequest {
|
|
1199
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1200
|
+
while (reader.pos < end) {
|
|
1201
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1202
|
+
switch (fieldNo) {
|
|
1203
|
+
default:
|
|
1204
|
+
let u = options.readUnknownField;
|
|
1205
|
+
if (u === "throw")
|
|
1206
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1207
|
+
let d = reader.skip(wireType);
|
|
1208
|
+
if (u !== false)
|
|
1209
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
return message;
|
|
1213
|
+
}
|
|
1214
|
+
internalBinaryWrite(message: ListUpstreamProvidersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1215
|
+
let u = options.writeUnknownFields;
|
|
1216
|
+
if (u !== false)
|
|
1217
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1218
|
+
return writer;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* @generated MessageType for protobuf message sid.v1.federation.ListUpstreamProvidersRequest
|
|
1223
|
+
*/
|
|
1224
|
+
export const ListUpstreamProvidersRequest = new ListUpstreamProvidersRequest$Type();
|
|
1225
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1226
|
+
class ListUpstreamProvidersResponse$Type extends MessageType<ListUpstreamProvidersResponse> {
|
|
1227
|
+
constructor() {
|
|
1228
|
+
super("sid.v1.federation.ListUpstreamProvidersResponse", [
|
|
1229
|
+
{ no: 1, name: "providers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UpstreamProvider }
|
|
1230
|
+
]);
|
|
1231
|
+
}
|
|
1232
|
+
create(value?: PartialMessage<ListUpstreamProvidersResponse>): ListUpstreamProvidersResponse {
|
|
1233
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1234
|
+
message.providers = [];
|
|
1235
|
+
if (value !== undefined)
|
|
1236
|
+
reflectionMergePartial<ListUpstreamProvidersResponse>(this, message, value);
|
|
1237
|
+
return message;
|
|
1238
|
+
}
|
|
1239
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUpstreamProvidersResponse): ListUpstreamProvidersResponse {
|
|
1240
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1241
|
+
while (reader.pos < end) {
|
|
1242
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1243
|
+
switch (fieldNo) {
|
|
1244
|
+
case /* repeated sid.v1.federation.UpstreamProvider providers */ 1:
|
|
1245
|
+
message.providers.push(UpstreamProvider.internalBinaryRead(reader, reader.uint32(), options));
|
|
1246
|
+
break;
|
|
1247
|
+
default:
|
|
1248
|
+
let u = options.readUnknownField;
|
|
1249
|
+
if (u === "throw")
|
|
1250
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1251
|
+
let d = reader.skip(wireType);
|
|
1252
|
+
if (u !== false)
|
|
1253
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return message;
|
|
1257
|
+
}
|
|
1258
|
+
internalBinaryWrite(message: ListUpstreamProvidersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1259
|
+
/* repeated sid.v1.federation.UpstreamProvider providers = 1; */
|
|
1260
|
+
for (let i = 0; i < message.providers.length; i++)
|
|
1261
|
+
UpstreamProvider.internalBinaryWrite(message.providers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1262
|
+
let u = options.writeUnknownFields;
|
|
1263
|
+
if (u !== false)
|
|
1264
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1265
|
+
return writer;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @generated MessageType for protobuf message sid.v1.federation.ListUpstreamProvidersResponse
|
|
1270
|
+
*/
|
|
1271
|
+
export const ListUpstreamProvidersResponse = new ListUpstreamProvidersResponse$Type();
|
|
1272
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1273
|
+
class ListEnabledProvidersRequest$Type extends MessageType<ListEnabledProvidersRequest> {
|
|
1274
|
+
constructor() {
|
|
1275
|
+
super("sid.v1.federation.ListEnabledProvidersRequest", []);
|
|
1276
|
+
}
|
|
1277
|
+
create(value?: PartialMessage<ListEnabledProvidersRequest>): ListEnabledProvidersRequest {
|
|
1278
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1279
|
+
if (value !== undefined)
|
|
1280
|
+
reflectionMergePartial<ListEnabledProvidersRequest>(this, message, value);
|
|
1281
|
+
return message;
|
|
1282
|
+
}
|
|
1283
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEnabledProvidersRequest): ListEnabledProvidersRequest {
|
|
1284
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1285
|
+
while (reader.pos < end) {
|
|
1286
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1287
|
+
switch (fieldNo) {
|
|
1288
|
+
default:
|
|
1289
|
+
let u = options.readUnknownField;
|
|
1290
|
+
if (u === "throw")
|
|
1291
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1292
|
+
let d = reader.skip(wireType);
|
|
1293
|
+
if (u !== false)
|
|
1294
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
return message;
|
|
1298
|
+
}
|
|
1299
|
+
internalBinaryWrite(message: ListEnabledProvidersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1300
|
+
let u = options.writeUnknownFields;
|
|
1301
|
+
if (u !== false)
|
|
1302
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1303
|
+
return writer;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* @generated MessageType for protobuf message sid.v1.federation.ListEnabledProvidersRequest
|
|
1308
|
+
*/
|
|
1309
|
+
export const ListEnabledProvidersRequest = new ListEnabledProvidersRequest$Type();
|
|
1310
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1311
|
+
class ListEnabledProvidersResponse$Type extends MessageType<ListEnabledProvidersResponse> {
|
|
1312
|
+
constructor() {
|
|
1313
|
+
super("sid.v1.federation.ListEnabledProvidersResponse", [
|
|
1314
|
+
{ no: 1, name: "providers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnabledProviderInfo }
|
|
1315
|
+
]);
|
|
1316
|
+
}
|
|
1317
|
+
create(value?: PartialMessage<ListEnabledProvidersResponse>): ListEnabledProvidersResponse {
|
|
1318
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1319
|
+
message.providers = [];
|
|
1320
|
+
if (value !== undefined)
|
|
1321
|
+
reflectionMergePartial<ListEnabledProvidersResponse>(this, message, value);
|
|
1322
|
+
return message;
|
|
1323
|
+
}
|
|
1324
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEnabledProvidersResponse): ListEnabledProvidersResponse {
|
|
1325
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1326
|
+
while (reader.pos < end) {
|
|
1327
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1328
|
+
switch (fieldNo) {
|
|
1329
|
+
case /* repeated sid.v1.federation.EnabledProviderInfo providers */ 1:
|
|
1330
|
+
message.providers.push(EnabledProviderInfo.internalBinaryRead(reader, reader.uint32(), options));
|
|
1331
|
+
break;
|
|
1332
|
+
default:
|
|
1333
|
+
let u = options.readUnknownField;
|
|
1334
|
+
if (u === "throw")
|
|
1335
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1336
|
+
let d = reader.skip(wireType);
|
|
1337
|
+
if (u !== false)
|
|
1338
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
return message;
|
|
1342
|
+
}
|
|
1343
|
+
internalBinaryWrite(message: ListEnabledProvidersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1344
|
+
/* repeated sid.v1.federation.EnabledProviderInfo providers = 1; */
|
|
1345
|
+
for (let i = 0; i < message.providers.length; i++)
|
|
1346
|
+
EnabledProviderInfo.internalBinaryWrite(message.providers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1347
|
+
let u = options.writeUnknownFields;
|
|
1348
|
+
if (u !== false)
|
|
1349
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1350
|
+
return writer;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* @generated MessageType for protobuf message sid.v1.federation.ListEnabledProvidersResponse
|
|
1355
|
+
*/
|
|
1356
|
+
export const ListEnabledProvidersResponse = new ListEnabledProvidersResponse$Type();
|
|
1357
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1358
|
+
class InitiateUpstreamAuthRequest$Type extends MessageType<InitiateUpstreamAuthRequest> {
|
|
1359
|
+
constructor() {
|
|
1360
|
+
super("sid.v1.federation.InitiateUpstreamAuthRequest", [
|
|
1361
|
+
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1362
|
+
{ no: 2, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1363
|
+
]);
|
|
1364
|
+
}
|
|
1365
|
+
create(value?: PartialMessage<InitiateUpstreamAuthRequest>): InitiateUpstreamAuthRequest {
|
|
1366
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1367
|
+
message.providerId = "";
|
|
1368
|
+
message.redirectUri = "";
|
|
1369
|
+
if (value !== undefined)
|
|
1370
|
+
reflectionMergePartial<InitiateUpstreamAuthRequest>(this, message, value);
|
|
1371
|
+
return message;
|
|
1372
|
+
}
|
|
1373
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitiateUpstreamAuthRequest): InitiateUpstreamAuthRequest {
|
|
1374
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1375
|
+
while (reader.pos < end) {
|
|
1376
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1377
|
+
switch (fieldNo) {
|
|
1378
|
+
case /* string provider_id */ 1:
|
|
1379
|
+
message.providerId = reader.string();
|
|
1380
|
+
break;
|
|
1381
|
+
case /* string redirect_uri */ 2:
|
|
1382
|
+
message.redirectUri = reader.string();
|
|
1383
|
+
break;
|
|
1384
|
+
default:
|
|
1385
|
+
let u = options.readUnknownField;
|
|
1386
|
+
if (u === "throw")
|
|
1387
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1388
|
+
let d = reader.skip(wireType);
|
|
1389
|
+
if (u !== false)
|
|
1390
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
return message;
|
|
1394
|
+
}
|
|
1395
|
+
internalBinaryWrite(message: InitiateUpstreamAuthRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1396
|
+
/* string provider_id = 1; */
|
|
1397
|
+
if (message.providerId !== "")
|
|
1398
|
+
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
1399
|
+
/* string redirect_uri = 2; */
|
|
1400
|
+
if (message.redirectUri !== "")
|
|
1401
|
+
writer.tag(2, WireType.LengthDelimited).string(message.redirectUri);
|
|
1402
|
+
let u = options.writeUnknownFields;
|
|
1403
|
+
if (u !== false)
|
|
1404
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1405
|
+
return writer;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* @generated MessageType for protobuf message sid.v1.federation.InitiateUpstreamAuthRequest
|
|
1410
|
+
*/
|
|
1411
|
+
export const InitiateUpstreamAuthRequest = new InitiateUpstreamAuthRequest$Type();
|
|
1412
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1413
|
+
class InitiateUpstreamAuthResponse$Type extends MessageType<InitiateUpstreamAuthResponse> {
|
|
1414
|
+
constructor() {
|
|
1415
|
+
super("sid.v1.federation.InitiateUpstreamAuthResponse", [
|
|
1416
|
+
{ no: 1, name: "authorization_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1417
|
+
{ no: 2, name: "state_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1418
|
+
]);
|
|
1419
|
+
}
|
|
1420
|
+
create(value?: PartialMessage<InitiateUpstreamAuthResponse>): InitiateUpstreamAuthResponse {
|
|
1421
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1422
|
+
message.authorizationUrl = "";
|
|
1423
|
+
message.stateToken = "";
|
|
1424
|
+
if (value !== undefined)
|
|
1425
|
+
reflectionMergePartial<InitiateUpstreamAuthResponse>(this, message, value);
|
|
1426
|
+
return message;
|
|
1427
|
+
}
|
|
1428
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitiateUpstreamAuthResponse): InitiateUpstreamAuthResponse {
|
|
1429
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1430
|
+
while (reader.pos < end) {
|
|
1431
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1432
|
+
switch (fieldNo) {
|
|
1433
|
+
case /* string authorization_url */ 1:
|
|
1434
|
+
message.authorizationUrl = reader.string();
|
|
1435
|
+
break;
|
|
1436
|
+
case /* string state_token */ 2:
|
|
1437
|
+
message.stateToken = reader.string();
|
|
1438
|
+
break;
|
|
1439
|
+
default:
|
|
1440
|
+
let u = options.readUnknownField;
|
|
1441
|
+
if (u === "throw")
|
|
1442
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1443
|
+
let d = reader.skip(wireType);
|
|
1444
|
+
if (u !== false)
|
|
1445
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
return message;
|
|
1449
|
+
}
|
|
1450
|
+
internalBinaryWrite(message: InitiateUpstreamAuthResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1451
|
+
/* string authorization_url = 1; */
|
|
1452
|
+
if (message.authorizationUrl !== "")
|
|
1453
|
+
writer.tag(1, WireType.LengthDelimited).string(message.authorizationUrl);
|
|
1454
|
+
/* string state_token = 2; */
|
|
1455
|
+
if (message.stateToken !== "")
|
|
1456
|
+
writer.tag(2, WireType.LengthDelimited).string(message.stateToken);
|
|
1457
|
+
let u = options.writeUnknownFields;
|
|
1458
|
+
if (u !== false)
|
|
1459
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1460
|
+
return writer;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* @generated MessageType for protobuf message sid.v1.federation.InitiateUpstreamAuthResponse
|
|
1465
|
+
*/
|
|
1466
|
+
export const InitiateUpstreamAuthResponse = new InitiateUpstreamAuthResponse$Type();
|
|
1467
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1468
|
+
class HandleUpstreamCallbackRequest$Type extends MessageType<HandleUpstreamCallbackRequest> {
|
|
1469
|
+
constructor() {
|
|
1470
|
+
super("sid.v1.federation.HandleUpstreamCallbackRequest", [
|
|
1471
|
+
{ no: 1, name: "provider_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1472
|
+
{ no: 2, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1473
|
+
{ no: 3, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1474
|
+
{ no: 4, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1475
|
+
]);
|
|
1476
|
+
}
|
|
1477
|
+
create(value?: PartialMessage<HandleUpstreamCallbackRequest>): HandleUpstreamCallbackRequest {
|
|
1478
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1479
|
+
message.providerId = "";
|
|
1480
|
+
message.code = "";
|
|
1481
|
+
message.state = "";
|
|
1482
|
+
message.redirectUri = "";
|
|
1483
|
+
if (value !== undefined)
|
|
1484
|
+
reflectionMergePartial<HandleUpstreamCallbackRequest>(this, message, value);
|
|
1485
|
+
return message;
|
|
1486
|
+
}
|
|
1487
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandleUpstreamCallbackRequest): HandleUpstreamCallbackRequest {
|
|
1488
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1489
|
+
while (reader.pos < end) {
|
|
1490
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1491
|
+
switch (fieldNo) {
|
|
1492
|
+
case /* string provider_id */ 1:
|
|
1493
|
+
message.providerId = reader.string();
|
|
1494
|
+
break;
|
|
1495
|
+
case /* string code */ 2:
|
|
1496
|
+
message.code = reader.string();
|
|
1497
|
+
break;
|
|
1498
|
+
case /* string state */ 3:
|
|
1499
|
+
message.state = reader.string();
|
|
1500
|
+
break;
|
|
1501
|
+
case /* string redirect_uri */ 4:
|
|
1502
|
+
message.redirectUri = reader.string();
|
|
1503
|
+
break;
|
|
1504
|
+
default:
|
|
1505
|
+
let u = options.readUnknownField;
|
|
1506
|
+
if (u === "throw")
|
|
1507
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1508
|
+
let d = reader.skip(wireType);
|
|
1509
|
+
if (u !== false)
|
|
1510
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
return message;
|
|
1514
|
+
}
|
|
1515
|
+
internalBinaryWrite(message: HandleUpstreamCallbackRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1516
|
+
/* string provider_id = 1; */
|
|
1517
|
+
if (message.providerId !== "")
|
|
1518
|
+
writer.tag(1, WireType.LengthDelimited).string(message.providerId);
|
|
1519
|
+
/* string code = 2; */
|
|
1520
|
+
if (message.code !== "")
|
|
1521
|
+
writer.tag(2, WireType.LengthDelimited).string(message.code);
|
|
1522
|
+
/* string state = 3; */
|
|
1523
|
+
if (message.state !== "")
|
|
1524
|
+
writer.tag(3, WireType.LengthDelimited).string(message.state);
|
|
1525
|
+
/* string redirect_uri = 4; */
|
|
1526
|
+
if (message.redirectUri !== "")
|
|
1527
|
+
writer.tag(4, WireType.LengthDelimited).string(message.redirectUri);
|
|
1528
|
+
let u = options.writeUnknownFields;
|
|
1529
|
+
if (u !== false)
|
|
1530
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1531
|
+
return writer;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated MessageType for protobuf message sid.v1.federation.HandleUpstreamCallbackRequest
|
|
1536
|
+
*/
|
|
1537
|
+
export const HandleUpstreamCallbackRequest = new HandleUpstreamCallbackRequest$Type();
|
|
1538
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1539
|
+
class HandleUpstreamCallbackResponse$Type extends MessageType<HandleUpstreamCallbackResponse> {
|
|
1540
|
+
constructor() {
|
|
1541
|
+
super("sid.v1.federation.HandleUpstreamCallbackResponse", [
|
|
1542
|
+
{ no: 1, name: "success", kind: "message", oneof: "result", T: () => UpstreamAuthSuccess },
|
|
1543
|
+
{ no: 2, name: "linking_required", kind: "message", oneof: "result", T: () => UpstreamLinkingRequired }
|
|
1544
|
+
]);
|
|
1545
|
+
}
|
|
1546
|
+
create(value?: PartialMessage<HandleUpstreamCallbackResponse>): HandleUpstreamCallbackResponse {
|
|
1547
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1548
|
+
message.result = { oneofKind: undefined };
|
|
1549
|
+
if (value !== undefined)
|
|
1550
|
+
reflectionMergePartial<HandleUpstreamCallbackResponse>(this, message, value);
|
|
1551
|
+
return message;
|
|
1552
|
+
}
|
|
1553
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandleUpstreamCallbackResponse): HandleUpstreamCallbackResponse {
|
|
1554
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1555
|
+
while (reader.pos < end) {
|
|
1556
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1557
|
+
switch (fieldNo) {
|
|
1558
|
+
case /* sid.v1.federation.UpstreamAuthSuccess success */ 1:
|
|
1559
|
+
message.result = {
|
|
1560
|
+
oneofKind: "success",
|
|
1561
|
+
success: UpstreamAuthSuccess.internalBinaryRead(reader, reader.uint32(), options, (message.result as any).success)
|
|
1562
|
+
};
|
|
1563
|
+
break;
|
|
1564
|
+
case /* sid.v1.federation.UpstreamLinkingRequired linking_required */ 2:
|
|
1565
|
+
message.result = {
|
|
1566
|
+
oneofKind: "linkingRequired",
|
|
1567
|
+
linkingRequired: UpstreamLinkingRequired.internalBinaryRead(reader, reader.uint32(), options, (message.result as any).linkingRequired)
|
|
1568
|
+
};
|
|
1569
|
+
break;
|
|
1570
|
+
default:
|
|
1571
|
+
let u = options.readUnknownField;
|
|
1572
|
+
if (u === "throw")
|
|
1573
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1574
|
+
let d = reader.skip(wireType);
|
|
1575
|
+
if (u !== false)
|
|
1576
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
return message;
|
|
1580
|
+
}
|
|
1581
|
+
internalBinaryWrite(message: HandleUpstreamCallbackResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1582
|
+
/* sid.v1.federation.UpstreamAuthSuccess success = 1; */
|
|
1583
|
+
if (message.result.oneofKind === "success")
|
|
1584
|
+
UpstreamAuthSuccess.internalBinaryWrite(message.result.success, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1585
|
+
/* sid.v1.federation.UpstreamLinkingRequired linking_required = 2; */
|
|
1586
|
+
if (message.result.oneofKind === "linkingRequired")
|
|
1587
|
+
UpstreamLinkingRequired.internalBinaryWrite(message.result.linkingRequired, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1588
|
+
let u = options.writeUnknownFields;
|
|
1589
|
+
if (u !== false)
|
|
1590
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1591
|
+
return writer;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* @generated MessageType for protobuf message sid.v1.federation.HandleUpstreamCallbackResponse
|
|
1596
|
+
*/
|
|
1597
|
+
export const HandleUpstreamCallbackResponse = new HandleUpstreamCallbackResponse$Type();
|
|
1598
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1599
|
+
class UpstreamAuthSuccess$Type extends MessageType<UpstreamAuthSuccess> {
|
|
1600
|
+
constructor() {
|
|
1601
|
+
super("sid.v1.federation.UpstreamAuthSuccess", [
|
|
1602
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1603
|
+
{ no: 2, name: "access_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1604
|
+
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1605
|
+
{ no: 4, name: "new_profile_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1606
|
+
]);
|
|
1607
|
+
}
|
|
1608
|
+
create(value?: PartialMessage<UpstreamAuthSuccess>): UpstreamAuthSuccess {
|
|
1609
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1610
|
+
message.sessionId = "";
|
|
1611
|
+
message.accessToken = "";
|
|
1612
|
+
message.expiresIn = 0n;
|
|
1613
|
+
message.newProfileCreated = false;
|
|
1614
|
+
if (value !== undefined)
|
|
1615
|
+
reflectionMergePartial<UpstreamAuthSuccess>(this, message, value);
|
|
1616
|
+
return message;
|
|
1617
|
+
}
|
|
1618
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpstreamAuthSuccess): UpstreamAuthSuccess {
|
|
1619
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1620
|
+
while (reader.pos < end) {
|
|
1621
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1622
|
+
switch (fieldNo) {
|
|
1623
|
+
case /* string session_id */ 1:
|
|
1624
|
+
message.sessionId = reader.string();
|
|
1625
|
+
break;
|
|
1626
|
+
case /* string access_token */ 2:
|
|
1627
|
+
message.accessToken = reader.string();
|
|
1628
|
+
break;
|
|
1629
|
+
case /* int64 expires_in */ 3:
|
|
1630
|
+
message.expiresIn = reader.int64().toBigInt();
|
|
1631
|
+
break;
|
|
1632
|
+
case /* bool new_profile_created */ 4:
|
|
1633
|
+
message.newProfileCreated = reader.bool();
|
|
1634
|
+
break;
|
|
1635
|
+
default:
|
|
1636
|
+
let u = options.readUnknownField;
|
|
1637
|
+
if (u === "throw")
|
|
1638
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1639
|
+
let d = reader.skip(wireType);
|
|
1640
|
+
if (u !== false)
|
|
1641
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
return message;
|
|
1645
|
+
}
|
|
1646
|
+
internalBinaryWrite(message: UpstreamAuthSuccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1647
|
+
/* string session_id = 1; */
|
|
1648
|
+
if (message.sessionId !== "")
|
|
1649
|
+
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
1650
|
+
/* string access_token = 2; */
|
|
1651
|
+
if (message.accessToken !== "")
|
|
1652
|
+
writer.tag(2, WireType.LengthDelimited).string(message.accessToken);
|
|
1653
|
+
/* int64 expires_in = 3; */
|
|
1654
|
+
if (message.expiresIn !== 0n)
|
|
1655
|
+
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
1656
|
+
/* bool new_profile_created = 4; */
|
|
1657
|
+
if (message.newProfileCreated !== false)
|
|
1658
|
+
writer.tag(4, WireType.Varint).bool(message.newProfileCreated);
|
|
1659
|
+
let u = options.writeUnknownFields;
|
|
1660
|
+
if (u !== false)
|
|
1661
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1662
|
+
return writer;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* @generated MessageType for protobuf message sid.v1.federation.UpstreamAuthSuccess
|
|
1667
|
+
*/
|
|
1668
|
+
export const UpstreamAuthSuccess = new UpstreamAuthSuccess$Type();
|
|
1669
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1670
|
+
class UpstreamLinkingRequired$Type extends MessageType<UpstreamLinkingRequired> {
|
|
1671
|
+
constructor() {
|
|
1672
|
+
super("sid.v1.federation.UpstreamLinkingRequired", [
|
|
1673
|
+
{ no: 1, name: "linking_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1674
|
+
{ no: 2, name: "upstream_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1675
|
+
]);
|
|
1676
|
+
}
|
|
1677
|
+
create(value?: PartialMessage<UpstreamLinkingRequired>): UpstreamLinkingRequired {
|
|
1678
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1679
|
+
message.linkingToken = "";
|
|
1680
|
+
message.upstreamEmail = "";
|
|
1681
|
+
if (value !== undefined)
|
|
1682
|
+
reflectionMergePartial<UpstreamLinkingRequired>(this, message, value);
|
|
1683
|
+
return message;
|
|
1684
|
+
}
|
|
1685
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpstreamLinkingRequired): UpstreamLinkingRequired {
|
|
1686
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1687
|
+
while (reader.pos < end) {
|
|
1688
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1689
|
+
switch (fieldNo) {
|
|
1690
|
+
case /* string linking_token */ 1:
|
|
1691
|
+
message.linkingToken = reader.string();
|
|
1692
|
+
break;
|
|
1693
|
+
case /* string upstream_email */ 2:
|
|
1694
|
+
message.upstreamEmail = reader.string();
|
|
1695
|
+
break;
|
|
1696
|
+
default:
|
|
1697
|
+
let u = options.readUnknownField;
|
|
1698
|
+
if (u === "throw")
|
|
1699
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1700
|
+
let d = reader.skip(wireType);
|
|
1701
|
+
if (u !== false)
|
|
1702
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
return message;
|
|
1706
|
+
}
|
|
1707
|
+
internalBinaryWrite(message: UpstreamLinkingRequired, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1708
|
+
/* string linking_token = 1; */
|
|
1709
|
+
if (message.linkingToken !== "")
|
|
1710
|
+
writer.tag(1, WireType.LengthDelimited).string(message.linkingToken);
|
|
1711
|
+
/* string upstream_email = 2; */
|
|
1712
|
+
if (message.upstreamEmail !== "")
|
|
1713
|
+
writer.tag(2, WireType.LengthDelimited).string(message.upstreamEmail);
|
|
1714
|
+
let u = options.writeUnknownFields;
|
|
1715
|
+
if (u !== false)
|
|
1716
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1717
|
+
return writer;
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* @generated MessageType for protobuf message sid.v1.federation.UpstreamLinkingRequired
|
|
1722
|
+
*/
|
|
1723
|
+
export const UpstreamLinkingRequired = new UpstreamLinkingRequired$Type();
|
|
1724
|
+
/**
|
|
1725
|
+
* @generated ServiceType for protobuf service sid.v1.federation.UpstreamService
|
|
1726
|
+
*/
|
|
1727
|
+
export const UpstreamService = new ServiceType("sid.v1.federation.UpstreamService", [
|
|
1728
|
+
{ name: "CreateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/upstream/providers", body: "*" } }, I: CreateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1729
|
+
{ name: "GetUpstreamProvider", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/{provider_id}" } }, I: GetUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1730
|
+
{ name: "UpdateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/upstream/providers/{provider_id}", body: "*" } }, I: UpdateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1731
|
+
{ name: "DeleteUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/upstream/providers/{provider_id}" } }, I: DeleteUpstreamProviderRequest, O: DeleteUpstreamProviderResponse },
|
|
1732
|
+
{ name: "ListUpstreamProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers" } }, I: ListUpstreamProvidersRequest, O: ListUpstreamProvidersResponse },
|
|
1733
|
+
{ name: "ListEnabledProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/enabled" } }, I: ListEnabledProvidersRequest, O: ListEnabledProvidersResponse },
|
|
1734
|
+
{ name: "InitiateUpstreamAuth", options: { "google.api.http": { post: "/v1/upstream/auth/initiate", body: "*" } }, I: InitiateUpstreamAuthRequest, O: InitiateUpstreamAuthResponse },
|
|
1735
|
+
{ name: "HandleUpstreamCallback", options: { "google.api.http": { post: "/v1/upstream/auth/callback", body: "*" } }, I: HandleUpstreamCallbackRequest, O: HandleUpstreamCallbackResponse }
|
|
1736
|
+
]);
|