@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.
Files changed (156) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +47 -0
  3. package/dist/browser-vp/index.cjs +349 -0
  4. package/dist/browser-vp/index.d.cts +287 -0
  5. package/dist/browser-vp/index.d.ts +287 -0
  6. package/dist/browser-vp/index.js +349 -0
  7. package/dist/chunk-C3Q766CY.cjs +125 -0
  8. package/dist/chunk-J5YXRXB5.js +125 -0
  9. package/dist/index.cjs +19360 -0
  10. package/dist/index.d.cts +9536 -0
  11. package/dist/index.d.ts +9536 -0
  12. package/dist/index.js +19360 -0
  13. package/dist/storage-4CB2JTLW.cjs +22 -0
  14. package/dist/storage-THRWREZP.js +22 -0
  15. package/package.json +93 -0
  16. package/src/browser-vp/crypto.ts +254 -0
  17. package/src/browser-vp/index.test.ts +10 -0
  18. package/src/browser-vp/index.ts +118 -0
  19. package/src/browser-vp/prf.ts +181 -0
  20. package/src/browser-vp/storage.test.ts +9 -0
  21. package/src/browser-vp/storage.ts +165 -0
  22. package/src/browser-vp/types.ts +97 -0
  23. package/src/browser-vp/vp.test.ts +43 -0
  24. package/src/browser-vp/vp.ts +113 -0
  25. package/src/components/SidAvatar.vue +106 -0
  26. package/src/components/SidConfirmDialog.vue +125 -0
  27. package/src/components/SidStatusBadge.vue +71 -0
  28. package/src/components/index.ts +5 -0
  29. package/src/composables/index.ts +10 -0
  30. package/src/composables/useAuth.ts +40 -0
  31. package/src/composables/useBffAuth.ts +147 -0
  32. package/src/composables/useGrpc.test.ts +196 -0
  33. package/src/composables/useGrpc.ts +120 -0
  34. package/src/composables/useSession.ts +80 -0
  35. package/src/generated/google/api/http.ts +687 -0
  36. package/src/generated/google/protobuf/descriptor.ts +4865 -0
  37. package/src/generated/google/protobuf/duration.ts +230 -0
  38. package/src/generated/google/protobuf/empty.ts +94 -0
  39. package/src/generated/google/protobuf/struct.ts +484 -0
  40. package/src/generated/google/protobuf/timestamp.ts +287 -0
  41. package/src/generated/sid/v1/account/account.client.ts +527 -0
  42. package/src/generated/sid/v1/account/account.ts +3261 -0
  43. package/src/generated/sid/v1/admin/admin.client.ts +136 -0
  44. package/src/generated/sid/v1/admin/admin.ts +846 -0
  45. package/src/generated/sid/v1/admin/admin_roles.client.ts +181 -0
  46. package/src/generated/sid/v1/admin/admin_roles.ts +1606 -0
  47. package/src/generated/sid/v1/admin/analytics.client.ts +106 -0
  48. package/src/generated/sid/v1/admin/analytics.ts +1017 -0
  49. package/src/generated/sid/v1/admin/branding.client.ts +166 -0
  50. package/src/generated/sid/v1/admin/branding.ts +1906 -0
  51. package/src/generated/sid/v1/admin/enrollment.client.ts +165 -0
  52. package/src/generated/sid/v1/admin/enrollment.ts +1704 -0
  53. package/src/generated/sid/v1/admin/events.client.ts +195 -0
  54. package/src/generated/sid/v1/admin/events.ts +1900 -0
  55. package/src/generated/sid/v1/admin/flow.client.ts +183 -0
  56. package/src/generated/sid/v1/admin/flow.ts +1552 -0
  57. package/src/generated/sid/v1/admin/keys.client.ts +107 -0
  58. package/src/generated/sid/v1/admin/keys.ts +931 -0
  59. package/src/generated/sid/v1/admin/login_experience.client.ts +160 -0
  60. package/src/generated/sid/v1/admin/login_experience.ts +1061 -0
  61. package/src/generated/sid/v1/admin/migration.client.ts +127 -0
  62. package/src/generated/sid/v1/admin/migration.ts +1948 -0
  63. package/src/generated/sid/v1/admin/notifications.client.ts +128 -0
  64. package/src/generated/sid/v1/admin/notifications.ts +1332 -0
  65. package/src/generated/sid/v1/admin/operations.client.ts +241 -0
  66. package/src/generated/sid/v1/admin/operations.ts +2648 -0
  67. package/src/generated/sid/v1/admin/organizations.client.ts +57 -0
  68. package/src/generated/sid/v1/admin/organizations.ts +349 -0
  69. package/src/generated/sid/v1/admin/scopes.client.ts +171 -0
  70. package/src/generated/sid/v1/admin/scopes.ts +1324 -0
  71. package/src/generated/sid/v1/admin/security.client.ts +412 -0
  72. package/src/generated/sid/v1/admin/security.ts +4086 -0
  73. package/src/generated/sid/v1/admin/sessions.client.ts +114 -0
  74. package/src/generated/sid/v1/admin/sessions.ts +923 -0
  75. package/src/generated/sid/v1/admin/settings.client.ts +340 -0
  76. package/src/generated/sid/v1/admin/settings.ts +2395 -0
  77. package/src/generated/sid/v1/admin/user_profile.client.ts +57 -0
  78. package/src/generated/sid/v1/admin/user_profile.ts +730 -0
  79. package/src/generated/sid/v1/admin/webhooks.client.ts +269 -0
  80. package/src/generated/sid/v1/admin/webhooks.ts +2804 -0
  81. package/src/generated/sid/v1/attestation/attestation.client.ts +115 -0
  82. package/src/generated/sid/v1/attestation/attestation.ts +813 -0
  83. package/src/generated/sid/v1/authn/auth.client.ts +900 -0
  84. package/src/generated/sid/v1/authn/auth.ts +9287 -0
  85. package/src/generated/sid/v1/authn/flows.client.ts +413 -0
  86. package/src/generated/sid/v1/authn/flows.ts +3217 -0
  87. package/src/generated/sid/v1/authz/authz.client.ts +459 -0
  88. package/src/generated/sid/v1/authz/authz.ts +5343 -0
  89. package/src/generated/sid/v1/authz/governance.client.ts +102 -0
  90. package/src/generated/sid/v1/authz/governance.ts +818 -0
  91. package/src/generated/sid/v1/common/errors.ts +184 -0
  92. package/src/generated/sid/v1/common/pagination.ts +152 -0
  93. package/src/generated/sid/v1/common/transport.ts +227 -0
  94. package/src/generated/sid/v1/common/types.ts +151 -0
  95. package/src/generated/sid/v1/events/event_stream.client.ts +67 -0
  96. package/src/generated/sid/v1/events/event_stream.ts +374 -0
  97. package/src/generated/sid/v1/federation/upstream.client.ts +142 -0
  98. package/src/generated/sid/v1/federation/upstream.ts +1736 -0
  99. package/src/generated/sid/v1/identity/identity.client.ts +467 -0
  100. package/src/generated/sid/v1/identity/identity.ts +5613 -0
  101. package/src/generated/sid/v1/machine/machine_user.client.ts +219 -0
  102. package/src/generated/sid/v1/machine/machine_user.ts +2400 -0
  103. package/src/generated/sid/v1/machine/pat.client.ts +147 -0
  104. package/src/generated/sid/v1/machine/pat.ts +1268 -0
  105. package/src/generated/sid/v1/projects/projects.client.ts +286 -0
  106. package/src/generated/sid/v1/projects/projects.ts +2714 -0
  107. package/src/generated/sid/v1/scim/scim.client.ts +274 -0
  108. package/src/generated/sid/v1/scim/scim.ts +3043 -0
  109. package/src/generated/sid/v1/test/test.client.ts +232 -0
  110. package/src/generated/sid/v1/test/test.ts +1136 -0
  111. package/src/i18n/index.ts +40 -0
  112. package/src/index.ts +157 -0
  113. package/src/profile/auth.ts +15 -0
  114. package/src/profile/components/ConsentManager.vue +88 -0
  115. package/src/profile/components/ProfileEditor.vue +146 -0
  116. package/src/profile/components/SecuritySettings.vue +170 -0
  117. package/src/profile/components/SessionList.vue +100 -0
  118. package/src/profile/components/SidLoginForm.test.ts +80 -0
  119. package/src/profile/components/SidLoginForm.vue +230 -0
  120. package/src/profile/components/SidMfaChallenge.test.ts +127 -0
  121. package/src/profile/components/SidMfaChallenge.vue +243 -0
  122. package/src/profile/components/SidRegistrationForm.test.ts +79 -0
  123. package/src/profile/components/SidRegistrationForm.vue +317 -0
  124. package/src/profile/components/index.ts +11 -0
  125. package/src/profile/composables/index.ts +6 -0
  126. package/src/profile/composables/useAccountApi.ts +203 -0
  127. package/src/profile/composables/useAuthApi.opaque.test.ts +140 -0
  128. package/src/profile/composables/useAuthApi.ts +617 -0
  129. package/src/profile/composables/useIdentityApi.ts +123 -0
  130. package/src/profile/composables/useLoginSuccess.test.ts +112 -0
  131. package/src/profile/composables/useLoginSuccess.ts +65 -0
  132. package/src/profile/composables/useOpaqueAuth.test.ts +290 -0
  133. package/src/profile/composables/useOpaqueAuth.ts +191 -0
  134. package/src/profile/composables/useSecurityLevel.test.ts +198 -0
  135. package/src/profile/composables/useSecurityLevel.ts +324 -0
  136. package/src/profile/index.ts +18 -0
  137. package/src/quasar/SidPrincipalInput.vue +209 -0
  138. package/src/quasar/index.ts +8 -0
  139. package/src/stores/auth.test.ts +83 -0
  140. package/src/stores/auth.ts +92 -0
  141. package/src/stores/index.ts +1 -0
  142. package/src/transport/adaptive.test.ts +728 -0
  143. package/src/transport/adaptive.ts +308 -0
  144. package/src/transport/framing.test.ts +227 -0
  145. package/src/transport/framing.ts +98 -0
  146. package/src/transport/webtransport.test.ts +728 -0
  147. package/src/transport/webtransport.ts +323 -0
  148. package/src/types/auth.ts +58 -0
  149. package/src/types/index.ts +1 -0
  150. package/src/utils/formatters.test.ts +26 -0
  151. package/src/utils/formatters.ts +69 -0
  152. package/src/utils/index.ts +16 -0
  153. package/src/utils/normalizePrincipal.test.ts +188 -0
  154. package/src/utils/normalizePrincipal.ts +159 -0
  155. package/src/utils/validators.test.ts +75 -0
  156. package/src/utils/validators.ts +36 -0
@@ -0,0 +1,2714 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
2
+ // @generated from protobuf file "sid/v1/projects/projects.proto" (package "sid.v1.projects", syntax proto3)
3
+ // tslint:disable
4
+ import { Role } from "../authz/authz";
5
+ import { Empty } from "../../../google/protobuf/empty";
6
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
7
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
9
+ import { WireType } from "@protobuf-ts/runtime";
10
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
11
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
12
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
13
+ import type { PartialMessage } from "@protobuf-ts/runtime";
14
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
15
+ import { MessageType } from "@protobuf-ts/runtime";
16
+ import { Timestamp } from "../../../google/protobuf/timestamp";
17
+ /**
18
+ * Project is a container for related applications that share authorization scope.
19
+ *
20
+ * @generated from protobuf message sid.v1.projects.Project
21
+ */
22
+ export interface Project {
23
+ /**
24
+ * @generated from protobuf field: string id = 1
25
+ */
26
+ id: string;
27
+ /**
28
+ * @generated from protobuf field: string name = 2
29
+ */
30
+ name: string;
31
+ /**
32
+ * @generated from protobuf field: string description = 3
33
+ */
34
+ description: string;
35
+ /**
36
+ * @generated from protobuf field: string owner_profile_id = 4
37
+ */
38
+ ownerProfileId: string;
39
+ /**
40
+ * @generated from protobuf field: bool is_system = 5
41
+ */
42
+ isSystem: boolean;
43
+ /**
44
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 6
45
+ */
46
+ createdAt?: Timestamp;
47
+ /**
48
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 7
49
+ */
50
+ updatedAt?: Timestamp;
51
+ }
52
+ /**
53
+ * Application represents an OIDC client within a project.
54
+ *
55
+ * @generated from protobuf message sid.v1.projects.Application
56
+ */
57
+ export interface Application {
58
+ /**
59
+ * @generated from protobuf field: string client_id = 1
60
+ */
61
+ clientId: string;
62
+ /**
63
+ * @generated from protobuf field: string project_id = 2
64
+ */
65
+ projectId: string;
66
+ /**
67
+ * @generated from protobuf field: string name = 3
68
+ */
69
+ name: string;
70
+ /**
71
+ * @generated from protobuf field: sid.v1.projects.ApplicationType type = 4
72
+ */
73
+ type: ApplicationType;
74
+ /**
75
+ * OIDC configuration.
76
+ *
77
+ * @generated from protobuf field: repeated string redirect_uris = 5
78
+ */
79
+ redirectUris: string[];
80
+ /**
81
+ * @generated from protobuf field: repeated string allowed_scopes = 6
82
+ */
83
+ allowedScopes: string[];
84
+ /**
85
+ * @generated from protobuf field: repeated string grant_types = 7
86
+ */
87
+ grantTypes: string[];
88
+ /**
89
+ * @generated from protobuf field: bool active = 8
90
+ */
91
+ active: boolean;
92
+ /**
93
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 9
94
+ */
95
+ createdAt?: Timestamp;
96
+ /**
97
+ * DCR fields (RFC 7591).
98
+ *
99
+ * @generated from protobuf field: sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 10
100
+ */
101
+ tokenEndpointAuthMethod: TokenEndpointAuthMethod;
102
+ /**
103
+ * @generated from protobuf field: repeated string response_types = 11
104
+ */
105
+ responseTypes: string[];
106
+ /**
107
+ * @generated from protobuf field: sid.v1.projects.SubjectType subject_type = 12
108
+ */
109
+ subjectType: SubjectType;
110
+ /**
111
+ * @generated from protobuf field: optional string sector_identifier_uri = 13
112
+ */
113
+ sectorIdentifierUri?: string;
114
+ /**
115
+ * @generated from protobuf field: repeated string contacts = 14
116
+ */
117
+ contacts: string[];
118
+ /**
119
+ * @generated from protobuf field: google.protobuf.Timestamp client_id_issued_at = 15
120
+ */
121
+ clientIdIssuedAt?: Timestamp;
122
+ /**
123
+ * @generated from protobuf field: optional google.protobuf.Timestamp client_secret_expires_at = 16
124
+ */
125
+ clientSecretExpiresAt?: Timestamp;
126
+ /**
127
+ * @generated from protobuf field: bool dynamically_registered = 17
128
+ */
129
+ dynamicallyRegistered: boolean;
130
+ }
131
+ /**
132
+ * Initial Access Token constrains DCR registrations.
133
+ *
134
+ * @generated from protobuf message sid.v1.projects.InitialAccessToken
135
+ */
136
+ export interface InitialAccessToken {
137
+ /**
138
+ * @generated from protobuf field: string id = 1
139
+ */
140
+ id: string;
141
+ /**
142
+ * @generated from protobuf field: string project_id = 2
143
+ */
144
+ projectId: string;
145
+ /**
146
+ * @generated from protobuf field: uint32 max_clients = 3
147
+ */
148
+ maxClients: number;
149
+ /**
150
+ * @generated from protobuf field: uint32 clients_registered = 4
151
+ */
152
+ clientsRegistered: number;
153
+ /**
154
+ * @generated from protobuf field: repeated string allowed_scopes = 5
155
+ */
156
+ allowedScopes: string[];
157
+ /**
158
+ * @generated from protobuf field: repeated string allowed_grant_types = 6
159
+ */
160
+ allowedGrantTypes: string[];
161
+ /**
162
+ * @generated from protobuf field: repeated string allowed_redirect_patterns = 7
163
+ */
164
+ allowedRedirectPatterns: string[];
165
+ /**
166
+ * @generated from protobuf field: google.protobuf.Timestamp expires_at = 8
167
+ */
168
+ expiresAt?: Timestamp;
169
+ /**
170
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 9
171
+ */
172
+ createdAt?: Timestamp;
173
+ /**
174
+ * @generated from protobuf field: string created_by = 10
175
+ */
176
+ createdBy: string;
177
+ /**
178
+ * @generated from protobuf field: bool revoked = 11
179
+ */
180
+ revoked: boolean;
181
+ }
182
+ // ── Project messages ──
183
+
184
+ /**
185
+ * @generated from protobuf message sid.v1.projects.CreateProjectRequest
186
+ */
187
+ export interface CreateProjectRequest {
188
+ /**
189
+ * @generated from protobuf field: string name = 1
190
+ */
191
+ name: string;
192
+ /**
193
+ * @generated from protobuf field: string description = 2
194
+ */
195
+ description: string;
196
+ /**
197
+ * @generated from protobuf field: string owner_profile_id = 3
198
+ */
199
+ ownerProfileId: string;
200
+ }
201
+ /**
202
+ * @generated from protobuf message sid.v1.projects.GetProjectRequest
203
+ */
204
+ export interface GetProjectRequest {
205
+ /**
206
+ * @generated from protobuf field: string id = 1
207
+ */
208
+ id: string;
209
+ }
210
+ /**
211
+ * @generated from protobuf message sid.v1.projects.ListProjectsRequest
212
+ */
213
+ export interface ListProjectsRequest {
214
+ /**
215
+ * @generated from protobuf field: int32 page_size = 1
216
+ */
217
+ pageSize: number;
218
+ /**
219
+ * @generated from protobuf field: string page_token = 2
220
+ */
221
+ pageToken: string;
222
+ }
223
+ /**
224
+ * @generated from protobuf message sid.v1.projects.ListProjectsResponse
225
+ */
226
+ export interface ListProjectsResponse {
227
+ /**
228
+ * @generated from protobuf field: repeated sid.v1.projects.Project projects = 1
229
+ */
230
+ projects: Project[];
231
+ /**
232
+ * @generated from protobuf field: string next_page_token = 2
233
+ */
234
+ nextPageToken: string;
235
+ }
236
+ /**
237
+ * @generated from protobuf message sid.v1.projects.UpdateProjectRequest
238
+ */
239
+ export interface UpdateProjectRequest {
240
+ /**
241
+ * @generated from protobuf field: string id = 1
242
+ */
243
+ id: string;
244
+ /**
245
+ * @generated from protobuf field: optional string name = 2
246
+ */
247
+ name?: string;
248
+ /**
249
+ * @generated from protobuf field: optional string description = 3
250
+ */
251
+ description?: string;
252
+ }
253
+ /**
254
+ * @generated from protobuf message sid.v1.projects.DeleteProjectRequest
255
+ */
256
+ export interface DeleteProjectRequest {
257
+ /**
258
+ * @generated from protobuf field: string id = 1
259
+ */
260
+ id: string;
261
+ }
262
+ // ── Application messages ──
263
+
264
+ /**
265
+ * @generated from protobuf message sid.v1.projects.CreateApplicationRequest
266
+ */
267
+ export interface CreateApplicationRequest {
268
+ /**
269
+ * @generated from protobuf field: string project_id = 1
270
+ */
271
+ projectId: string;
272
+ /**
273
+ * @generated from protobuf field: string name = 2
274
+ */
275
+ name: string;
276
+ /**
277
+ * @generated from protobuf field: sid.v1.projects.ApplicationType type = 3
278
+ */
279
+ type: ApplicationType;
280
+ /**
281
+ * @generated from protobuf field: repeated string redirect_uris = 4
282
+ */
283
+ redirectUris: string[];
284
+ /**
285
+ * @generated from protobuf field: repeated string allowed_scopes = 5
286
+ */
287
+ allowedScopes: string[];
288
+ /**
289
+ * @generated from protobuf field: repeated string grant_types = 6
290
+ */
291
+ grantTypes: string[];
292
+ }
293
+ /**
294
+ * Returns client_secret in plaintext (only on creation, never stored).
295
+ *
296
+ * @generated from protobuf message sid.v1.projects.CreateApplicationResponse
297
+ */
298
+ export interface CreateApplicationResponse {
299
+ /**
300
+ * @generated from protobuf field: sid.v1.projects.Application application = 1
301
+ */
302
+ application?: Application;
303
+ /**
304
+ * @generated from protobuf field: string client_secret = 2
305
+ */
306
+ clientSecret: string;
307
+ }
308
+ /**
309
+ * @generated from protobuf message sid.v1.projects.GetApplicationRequest
310
+ */
311
+ export interface GetApplicationRequest {
312
+ /**
313
+ * @generated from protobuf field: string client_id = 1
314
+ */
315
+ clientId: string;
316
+ }
317
+ /**
318
+ * @generated from protobuf message sid.v1.projects.ListApplicationsRequest
319
+ */
320
+ export interface ListApplicationsRequest {
321
+ /**
322
+ * @generated from protobuf field: string project_id = 1
323
+ */
324
+ projectId: string;
325
+ /**
326
+ * @generated from protobuf field: int32 page_size = 2
327
+ */
328
+ pageSize: number;
329
+ /**
330
+ * @generated from protobuf field: string page_token = 3
331
+ */
332
+ pageToken: string;
333
+ }
334
+ /**
335
+ * @generated from protobuf message sid.v1.projects.ListApplicationsResponse
336
+ */
337
+ export interface ListApplicationsResponse {
338
+ /**
339
+ * @generated from protobuf field: repeated sid.v1.projects.Application applications = 1
340
+ */
341
+ applications: Application[];
342
+ /**
343
+ * @generated from protobuf field: string next_page_token = 2
344
+ */
345
+ nextPageToken: string;
346
+ }
347
+ /**
348
+ * @generated from protobuf message sid.v1.projects.UpdateApplicationRequest
349
+ */
350
+ export interface UpdateApplicationRequest {
351
+ /**
352
+ * @generated from protobuf field: string client_id = 1
353
+ */
354
+ clientId: string;
355
+ /**
356
+ * @generated from protobuf field: optional string name = 2
357
+ */
358
+ name?: string;
359
+ /**
360
+ * @generated from protobuf field: repeated string redirect_uris = 3
361
+ */
362
+ redirectUris: string[];
363
+ /**
364
+ * @generated from protobuf field: repeated string allowed_scopes = 4
365
+ */
366
+ allowedScopes: string[];
367
+ /**
368
+ * @generated from protobuf field: repeated string grant_types = 5
369
+ */
370
+ grantTypes: string[];
371
+ /**
372
+ * @generated from protobuf field: optional bool active = 6
373
+ */
374
+ active?: boolean;
375
+ /**
376
+ * "public" or "pairwise". Changing from public→pairwise triggers
377
+ * 90-day dual-sub transition (sid_legacy_sub in tokens).
378
+ *
379
+ * @generated from protobuf field: optional string subject_type = 7
380
+ */
381
+ subjectType?: string;
382
+ }
383
+ /**
384
+ * @generated from protobuf message sid.v1.projects.DeleteApplicationRequest
385
+ */
386
+ export interface DeleteApplicationRequest {
387
+ /**
388
+ * @generated from protobuf field: string client_id = 1
389
+ */
390
+ clientId: string;
391
+ }
392
+ // ── Role messages (AddRole/RemoveRole specific to ProjectService) ──
393
+
394
+ /**
395
+ * @generated from protobuf message sid.v1.projects.AddRoleRequest
396
+ */
397
+ export interface AddRoleRequest {
398
+ /**
399
+ * @generated from protobuf field: string project_id = 1
400
+ */
401
+ projectId: string;
402
+ /**
403
+ * @generated from protobuf field: string key = 2
404
+ */
405
+ key: string;
406
+ /**
407
+ * @generated from protobuf field: string display_name = 3
408
+ */
409
+ displayName: string;
410
+ /**
411
+ * @generated from protobuf field: optional string description = 4
412
+ */
413
+ description?: string;
414
+ /**
415
+ * @generated from protobuf field: optional string group = 5
416
+ */
417
+ group?: string;
418
+ /**
419
+ * @generated from protobuf field: repeated string permissions = 6
420
+ */
421
+ permissions: string[];
422
+ }
423
+ /**
424
+ * @generated from protobuf message sid.v1.projects.RemoveRoleRequest
425
+ */
426
+ export interface RemoveRoleRequest {
427
+ /**
428
+ * @generated from protobuf field: string project_id = 1
429
+ */
430
+ projectId: string;
431
+ /**
432
+ * @generated from protobuf field: string role_id = 2
433
+ */
434
+ roleId: string;
435
+ }
436
+ // ── Dynamic Client Registration messages (RFC 7591/7592) ──
437
+
438
+ /**
439
+ * @generated from protobuf message sid.v1.projects.RegisterClientRequest
440
+ */
441
+ export interface RegisterClientRequest {
442
+ /**
443
+ * Bearer initial_access_token in gRPC metadata (authorization header).
444
+ *
445
+ * @generated from protobuf field: string client_name = 1
446
+ */
447
+ clientName: string;
448
+ /**
449
+ * @generated from protobuf field: repeated string redirect_uris = 2
450
+ */
451
+ redirectUris: string[];
452
+ /**
453
+ * @generated from protobuf field: repeated string grant_types = 3
454
+ */
455
+ grantTypes: string[];
456
+ /**
457
+ * @generated from protobuf field: repeated string response_types = 4
458
+ */
459
+ responseTypes: string[];
460
+ /**
461
+ * @generated from protobuf field: sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 5
462
+ */
463
+ tokenEndpointAuthMethod: TokenEndpointAuthMethod;
464
+ /**
465
+ * @generated from protobuf field: sid.v1.projects.ApplicationType application_type = 6
466
+ */
467
+ applicationType: ApplicationType;
468
+ /**
469
+ * @generated from protobuf field: sid.v1.projects.SubjectType subject_type = 7
470
+ */
471
+ subjectType: SubjectType;
472
+ /**
473
+ * @generated from protobuf field: optional string sector_identifier_uri = 8
474
+ */
475
+ sectorIdentifierUri?: string;
476
+ /**
477
+ * @generated from protobuf field: repeated string contacts = 9
478
+ */
479
+ contacts: string[];
480
+ /**
481
+ * @generated from protobuf field: repeated string scope = 10
482
+ */
483
+ scope: string[];
484
+ }
485
+ /**
486
+ * @generated from protobuf message sid.v1.projects.RegisterClientResponse
487
+ */
488
+ export interface RegisterClientResponse {
489
+ /**
490
+ * @generated from protobuf field: sid.v1.projects.Application application = 1
491
+ */
492
+ application?: Application;
493
+ /**
494
+ * Plaintext secret — only returned on registration. Never stored.
495
+ *
496
+ * @generated from protobuf field: optional string client_secret = 2
497
+ */
498
+ clientSecret?: string;
499
+ /**
500
+ * Registration Access Token for future management (RFC 7592).
501
+ *
502
+ * @generated from protobuf field: string registration_access_token = 3
503
+ */
504
+ registrationAccessToken: string;
505
+ }
506
+ /**
507
+ * RFC 7592: client reads own registration. RAT in authorization header.
508
+ *
509
+ * @generated from protobuf message sid.v1.projects.GetRegisteredClientRequest
510
+ */
511
+ export interface GetRegisteredClientRequest {
512
+ /**
513
+ * @generated from protobuf field: string client_id = 1
514
+ */
515
+ clientId: string;
516
+ }
517
+ /**
518
+ * RFC 7592: client updates own registration. RAT in authorization header.
519
+ *
520
+ * @generated from protobuf message sid.v1.projects.UpdateRegisteredClientRequest
521
+ */
522
+ export interface UpdateRegisteredClientRequest {
523
+ /**
524
+ * @generated from protobuf field: string client_id = 1
525
+ */
526
+ clientId: string;
527
+ /**
528
+ * @generated from protobuf field: optional string client_name = 2
529
+ */
530
+ clientName?: string;
531
+ /**
532
+ * @generated from protobuf field: repeated string redirect_uris = 3
533
+ */
534
+ redirectUris: string[];
535
+ /**
536
+ * @generated from protobuf field: repeated string grant_types = 4
537
+ */
538
+ grantTypes: string[];
539
+ /**
540
+ * @generated from protobuf field: repeated string response_types = 5
541
+ */
542
+ responseTypes: string[];
543
+ /**
544
+ * @generated from protobuf field: optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 6
545
+ */
546
+ tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
547
+ /**
548
+ * @generated from protobuf field: optional sid.v1.projects.SubjectType subject_type = 7
549
+ */
550
+ subjectType?: SubjectType;
551
+ /**
552
+ * @generated from protobuf field: optional string sector_identifier_uri = 8
553
+ */
554
+ sectorIdentifierUri?: string;
555
+ /**
556
+ * @generated from protobuf field: repeated string contacts = 9
557
+ */
558
+ contacts: string[];
559
+ /**
560
+ * @generated from protobuf field: repeated string scope = 10
561
+ */
562
+ scope: string[];
563
+ }
564
+ /**
565
+ * RFC 7592: client deletes own registration. RAT in authorization header.
566
+ *
567
+ * @generated from protobuf message sid.v1.projects.DeleteRegisteredClientRequest
568
+ */
569
+ export interface DeleteRegisteredClientRequest {
570
+ /**
571
+ * @generated from protobuf field: string client_id = 1
572
+ */
573
+ clientId: string;
574
+ }
575
+ // ── Initial Access Token messages ──
576
+
577
+ /**
578
+ * @generated from protobuf message sid.v1.projects.CreateInitialAccessTokenRequest
579
+ */
580
+ export interface CreateInitialAccessTokenRequest {
581
+ /**
582
+ * @generated from protobuf field: string project_id = 1
583
+ */
584
+ projectId: string;
585
+ /**
586
+ * @generated from protobuf field: uint32 max_clients = 2
587
+ */
588
+ maxClients: number;
589
+ /**
590
+ * @generated from protobuf field: repeated string allowed_scopes = 3
591
+ */
592
+ allowedScopes: string[];
593
+ /**
594
+ * @generated from protobuf field: repeated string allowed_grant_types = 4
595
+ */
596
+ allowedGrantTypes: string[];
597
+ /**
598
+ * @generated from protobuf field: repeated string allowed_redirect_patterns = 5
599
+ */
600
+ allowedRedirectPatterns: string[];
601
+ /**
602
+ * Token lifetime in seconds.
603
+ *
604
+ * @generated from protobuf field: int64 expires_in_seconds = 6
605
+ */
606
+ expiresInSeconds: bigint;
607
+ }
608
+ /**
609
+ * Returns plaintext token — only on creation.
610
+ *
611
+ * @generated from protobuf message sid.v1.projects.CreateInitialAccessTokenResponse
612
+ */
613
+ export interface CreateInitialAccessTokenResponse {
614
+ /**
615
+ * @generated from protobuf field: sid.v1.projects.InitialAccessToken token = 1
616
+ */
617
+ token?: InitialAccessToken;
618
+ /**
619
+ * Plaintext bearer token — never stored, never returned again.
620
+ *
621
+ * @generated from protobuf field: string token_value = 2
622
+ */
623
+ tokenValue: string;
624
+ }
625
+ /**
626
+ * @generated from protobuf message sid.v1.projects.ListInitialAccessTokensRequest
627
+ */
628
+ export interface ListInitialAccessTokensRequest {
629
+ /**
630
+ * @generated from protobuf field: string project_id = 1
631
+ */
632
+ projectId: string;
633
+ }
634
+ /**
635
+ * @generated from protobuf message sid.v1.projects.ListInitialAccessTokensResponse
636
+ */
637
+ export interface ListInitialAccessTokensResponse {
638
+ /**
639
+ * @generated from protobuf field: repeated sid.v1.projects.InitialAccessToken tokens = 1
640
+ */
641
+ tokens: InitialAccessToken[];
642
+ }
643
+ /**
644
+ * @generated from protobuf message sid.v1.projects.RevokeInitialAccessTokenRequest
645
+ */
646
+ export interface RevokeInitialAccessTokenRequest {
647
+ /**
648
+ * @generated from protobuf field: string id = 1
649
+ */
650
+ id: string;
651
+ }
652
+ /**
653
+ * @generated from protobuf enum sid.v1.projects.TokenEndpointAuthMethod
654
+ */
655
+ export enum TokenEndpointAuthMethod {
656
+ /**
657
+ * @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED = 0;
658
+ */
659
+ UNSPECIFIED = 0,
660
+ /**
661
+ * @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_POST = 1;
662
+ */
663
+ CLIENT_SECRET_POST = 1,
664
+ /**
665
+ * @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC = 2;
666
+ */
667
+ CLIENT_SECRET_BASIC = 2,
668
+ /**
669
+ * @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_NONE = 3;
670
+ */
671
+ NONE = 3,
672
+ /**
673
+ * @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT = 4;
674
+ */
675
+ PRIVATE_KEY_JWT = 4
676
+ }
677
+ /**
678
+ * @generated from protobuf enum sid.v1.projects.SubjectType
679
+ */
680
+ export enum SubjectType {
681
+ /**
682
+ * @generated from protobuf enum value: SUBJECT_TYPE_UNSPECIFIED = 0;
683
+ */
684
+ UNSPECIFIED = 0,
685
+ /**
686
+ * @generated from protobuf enum value: SUBJECT_TYPE_PAIRWISE = 1;
687
+ */
688
+ PAIRWISE = 1,
689
+ /**
690
+ * @generated from protobuf enum value: SUBJECT_TYPE_PUBLIC = 2;
691
+ */
692
+ PUBLIC = 2
693
+ }
694
+ /**
695
+ * @generated from protobuf enum sid.v1.projects.ApplicationType
696
+ */
697
+ export enum ApplicationType {
698
+ /**
699
+ * @generated from protobuf enum value: APPLICATION_TYPE_UNSPECIFIED = 0;
700
+ */
701
+ UNSPECIFIED = 0,
702
+ /**
703
+ * @generated from protobuf enum value: APPLICATION_TYPE_WEB = 1;
704
+ */
705
+ WEB = 1,
706
+ /**
707
+ * @generated from protobuf enum value: APPLICATION_TYPE_NATIVE = 2;
708
+ */
709
+ NATIVE = 2,
710
+ /**
711
+ * @generated from protobuf enum value: APPLICATION_TYPE_API = 3;
712
+ */
713
+ API = 3,
714
+ /**
715
+ * @generated from protobuf enum value: APPLICATION_TYPE_SPA = 4;
716
+ */
717
+ SPA = 4
718
+ }
719
+ // @generated message type with reflection information, may provide speed optimized methods
720
+ class Project$Type extends MessageType<Project> {
721
+ constructor() {
722
+ super("sid.v1.projects.Project", [
723
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
724
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
725
+ { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
726
+ { no: 4, name: "owner_profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
727
+ { no: 5, name: "is_system", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
728
+ { no: 6, name: "created_at", kind: "message", T: () => Timestamp },
729
+ { no: 7, name: "updated_at", kind: "message", T: () => Timestamp }
730
+ ]);
731
+ }
732
+ create(value?: PartialMessage<Project>): Project {
733
+ const message = globalThis.Object.create((this.messagePrototype!));
734
+ message.id = "";
735
+ message.name = "";
736
+ message.description = "";
737
+ message.ownerProfileId = "";
738
+ message.isSystem = false;
739
+ if (value !== undefined)
740
+ reflectionMergePartial<Project>(this, message, value);
741
+ return message;
742
+ }
743
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project): Project {
744
+ let message = target ?? this.create(), end = reader.pos + length;
745
+ while (reader.pos < end) {
746
+ let [fieldNo, wireType] = reader.tag();
747
+ switch (fieldNo) {
748
+ case /* string id */ 1:
749
+ message.id = reader.string();
750
+ break;
751
+ case /* string name */ 2:
752
+ message.name = reader.string();
753
+ break;
754
+ case /* string description */ 3:
755
+ message.description = reader.string();
756
+ break;
757
+ case /* string owner_profile_id */ 4:
758
+ message.ownerProfileId = reader.string();
759
+ break;
760
+ case /* bool is_system */ 5:
761
+ message.isSystem = reader.bool();
762
+ break;
763
+ case /* google.protobuf.Timestamp created_at */ 6:
764
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
765
+ break;
766
+ case /* google.protobuf.Timestamp updated_at */ 7:
767
+ message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
768
+ break;
769
+ default:
770
+ let u = options.readUnknownField;
771
+ if (u === "throw")
772
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
773
+ let d = reader.skip(wireType);
774
+ if (u !== false)
775
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
776
+ }
777
+ }
778
+ return message;
779
+ }
780
+ internalBinaryWrite(message: Project, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
781
+ /* string id = 1; */
782
+ if (message.id !== "")
783
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
784
+ /* string name = 2; */
785
+ if (message.name !== "")
786
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
787
+ /* string description = 3; */
788
+ if (message.description !== "")
789
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
790
+ /* string owner_profile_id = 4; */
791
+ if (message.ownerProfileId !== "")
792
+ writer.tag(4, WireType.LengthDelimited).string(message.ownerProfileId);
793
+ /* bool is_system = 5; */
794
+ if (message.isSystem !== false)
795
+ writer.tag(5, WireType.Varint).bool(message.isSystem);
796
+ /* google.protobuf.Timestamp created_at = 6; */
797
+ if (message.createdAt)
798
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
799
+ /* google.protobuf.Timestamp updated_at = 7; */
800
+ if (message.updatedAt)
801
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
802
+ let u = options.writeUnknownFields;
803
+ if (u !== false)
804
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
805
+ return writer;
806
+ }
807
+ }
808
+ /**
809
+ * @generated MessageType for protobuf message sid.v1.projects.Project
810
+ */
811
+ export const Project = new Project$Type();
812
+ // @generated message type with reflection information, may provide speed optimized methods
813
+ class Application$Type extends MessageType<Application> {
814
+ constructor() {
815
+ super("sid.v1.projects.Application", [
816
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
817
+ { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
818
+ { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
819
+ { no: 4, name: "type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
820
+ { no: 5, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
821
+ { no: 6, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
822
+ { no: 7, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
823
+ { no: 8, name: "active", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
824
+ { no: 9, name: "created_at", kind: "message", T: () => Timestamp },
825
+ { no: 10, name: "token_endpoint_auth_method", kind: "enum", T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
826
+ { no: 11, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
827
+ { no: 12, name: "subject_type", kind: "enum", T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
828
+ { no: 13, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
829
+ { no: 14, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
830
+ { no: 15, name: "client_id_issued_at", kind: "message", T: () => Timestamp },
831
+ { no: 16, name: "client_secret_expires_at", kind: "message", T: () => Timestamp },
832
+ { no: 17, name: "dynamically_registered", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
833
+ ]);
834
+ }
835
+ create(value?: PartialMessage<Application>): Application {
836
+ const message = globalThis.Object.create((this.messagePrototype!));
837
+ message.clientId = "";
838
+ message.projectId = "";
839
+ message.name = "";
840
+ message.type = 0;
841
+ message.redirectUris = [];
842
+ message.allowedScopes = [];
843
+ message.grantTypes = [];
844
+ message.active = false;
845
+ message.tokenEndpointAuthMethod = 0;
846
+ message.responseTypes = [];
847
+ message.subjectType = 0;
848
+ message.contacts = [];
849
+ message.dynamicallyRegistered = false;
850
+ if (value !== undefined)
851
+ reflectionMergePartial<Application>(this, message, value);
852
+ return message;
853
+ }
854
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Application): Application {
855
+ let message = target ?? this.create(), end = reader.pos + length;
856
+ while (reader.pos < end) {
857
+ let [fieldNo, wireType] = reader.tag();
858
+ switch (fieldNo) {
859
+ case /* string client_id */ 1:
860
+ message.clientId = reader.string();
861
+ break;
862
+ case /* string project_id */ 2:
863
+ message.projectId = reader.string();
864
+ break;
865
+ case /* string name */ 3:
866
+ message.name = reader.string();
867
+ break;
868
+ case /* sid.v1.projects.ApplicationType type */ 4:
869
+ message.type = reader.int32();
870
+ break;
871
+ case /* repeated string redirect_uris */ 5:
872
+ message.redirectUris.push(reader.string());
873
+ break;
874
+ case /* repeated string allowed_scopes */ 6:
875
+ message.allowedScopes.push(reader.string());
876
+ break;
877
+ case /* repeated string grant_types */ 7:
878
+ message.grantTypes.push(reader.string());
879
+ break;
880
+ case /* bool active */ 8:
881
+ message.active = reader.bool();
882
+ break;
883
+ case /* google.protobuf.Timestamp created_at */ 9:
884
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
885
+ break;
886
+ case /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 10:
887
+ message.tokenEndpointAuthMethod = reader.int32();
888
+ break;
889
+ case /* repeated string response_types */ 11:
890
+ message.responseTypes.push(reader.string());
891
+ break;
892
+ case /* sid.v1.projects.SubjectType subject_type */ 12:
893
+ message.subjectType = reader.int32();
894
+ break;
895
+ case /* optional string sector_identifier_uri */ 13:
896
+ message.sectorIdentifierUri = reader.string();
897
+ break;
898
+ case /* repeated string contacts */ 14:
899
+ message.contacts.push(reader.string());
900
+ break;
901
+ case /* google.protobuf.Timestamp client_id_issued_at */ 15:
902
+ message.clientIdIssuedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.clientIdIssuedAt);
903
+ break;
904
+ case /* optional google.protobuf.Timestamp client_secret_expires_at */ 16:
905
+ message.clientSecretExpiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.clientSecretExpiresAt);
906
+ break;
907
+ case /* bool dynamically_registered */ 17:
908
+ message.dynamicallyRegistered = reader.bool();
909
+ break;
910
+ default:
911
+ let u = options.readUnknownField;
912
+ if (u === "throw")
913
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
914
+ let d = reader.skip(wireType);
915
+ if (u !== false)
916
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
917
+ }
918
+ }
919
+ return message;
920
+ }
921
+ internalBinaryWrite(message: Application, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
922
+ /* string client_id = 1; */
923
+ if (message.clientId !== "")
924
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
925
+ /* string project_id = 2; */
926
+ if (message.projectId !== "")
927
+ writer.tag(2, WireType.LengthDelimited).string(message.projectId);
928
+ /* string name = 3; */
929
+ if (message.name !== "")
930
+ writer.tag(3, WireType.LengthDelimited).string(message.name);
931
+ /* sid.v1.projects.ApplicationType type = 4; */
932
+ if (message.type !== 0)
933
+ writer.tag(4, WireType.Varint).int32(message.type);
934
+ /* repeated string redirect_uris = 5; */
935
+ for (let i = 0; i < message.redirectUris.length; i++)
936
+ writer.tag(5, WireType.LengthDelimited).string(message.redirectUris[i]);
937
+ /* repeated string allowed_scopes = 6; */
938
+ for (let i = 0; i < message.allowedScopes.length; i++)
939
+ writer.tag(6, WireType.LengthDelimited).string(message.allowedScopes[i]);
940
+ /* repeated string grant_types = 7; */
941
+ for (let i = 0; i < message.grantTypes.length; i++)
942
+ writer.tag(7, WireType.LengthDelimited).string(message.grantTypes[i]);
943
+ /* bool active = 8; */
944
+ if (message.active !== false)
945
+ writer.tag(8, WireType.Varint).bool(message.active);
946
+ /* google.protobuf.Timestamp created_at = 9; */
947
+ if (message.createdAt)
948
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
949
+ /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 10; */
950
+ if (message.tokenEndpointAuthMethod !== 0)
951
+ writer.tag(10, WireType.Varint).int32(message.tokenEndpointAuthMethod);
952
+ /* repeated string response_types = 11; */
953
+ for (let i = 0; i < message.responseTypes.length; i++)
954
+ writer.tag(11, WireType.LengthDelimited).string(message.responseTypes[i]);
955
+ /* sid.v1.projects.SubjectType subject_type = 12; */
956
+ if (message.subjectType !== 0)
957
+ writer.tag(12, WireType.Varint).int32(message.subjectType);
958
+ /* optional string sector_identifier_uri = 13; */
959
+ if (message.sectorIdentifierUri !== undefined)
960
+ writer.tag(13, WireType.LengthDelimited).string(message.sectorIdentifierUri);
961
+ /* repeated string contacts = 14; */
962
+ for (let i = 0; i < message.contacts.length; i++)
963
+ writer.tag(14, WireType.LengthDelimited).string(message.contacts[i]);
964
+ /* google.protobuf.Timestamp client_id_issued_at = 15; */
965
+ if (message.clientIdIssuedAt)
966
+ Timestamp.internalBinaryWrite(message.clientIdIssuedAt, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
967
+ /* optional google.protobuf.Timestamp client_secret_expires_at = 16; */
968
+ if (message.clientSecretExpiresAt)
969
+ Timestamp.internalBinaryWrite(message.clientSecretExpiresAt, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
970
+ /* bool dynamically_registered = 17; */
971
+ if (message.dynamicallyRegistered !== false)
972
+ writer.tag(17, WireType.Varint).bool(message.dynamicallyRegistered);
973
+ let u = options.writeUnknownFields;
974
+ if (u !== false)
975
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
976
+ return writer;
977
+ }
978
+ }
979
+ /**
980
+ * @generated MessageType for protobuf message sid.v1.projects.Application
981
+ */
982
+ export const Application = new Application$Type();
983
+ // @generated message type with reflection information, may provide speed optimized methods
984
+ class InitialAccessToken$Type extends MessageType<InitialAccessToken> {
985
+ constructor() {
986
+ super("sid.v1.projects.InitialAccessToken", [
987
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
988
+ { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
989
+ { no: 3, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
990
+ { no: 4, name: "clients_registered", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
991
+ { no: 5, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
992
+ { no: 6, name: "allowed_grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
993
+ { no: 7, name: "allowed_redirect_patterns", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
994
+ { no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
995
+ { no: 9, name: "created_at", kind: "message", T: () => Timestamp },
996
+ { no: 10, name: "created_by", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
997
+ { no: 11, name: "revoked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
998
+ ]);
999
+ }
1000
+ create(value?: PartialMessage<InitialAccessToken>): InitialAccessToken {
1001
+ const message = globalThis.Object.create((this.messagePrototype!));
1002
+ message.id = "";
1003
+ message.projectId = "";
1004
+ message.maxClients = 0;
1005
+ message.clientsRegistered = 0;
1006
+ message.allowedScopes = [];
1007
+ message.allowedGrantTypes = [];
1008
+ message.allowedRedirectPatterns = [];
1009
+ message.createdBy = "";
1010
+ message.revoked = false;
1011
+ if (value !== undefined)
1012
+ reflectionMergePartial<InitialAccessToken>(this, message, value);
1013
+ return message;
1014
+ }
1015
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitialAccessToken): InitialAccessToken {
1016
+ let message = target ?? this.create(), end = reader.pos + length;
1017
+ while (reader.pos < end) {
1018
+ let [fieldNo, wireType] = reader.tag();
1019
+ switch (fieldNo) {
1020
+ case /* string id */ 1:
1021
+ message.id = reader.string();
1022
+ break;
1023
+ case /* string project_id */ 2:
1024
+ message.projectId = reader.string();
1025
+ break;
1026
+ case /* uint32 max_clients */ 3:
1027
+ message.maxClients = reader.uint32();
1028
+ break;
1029
+ case /* uint32 clients_registered */ 4:
1030
+ message.clientsRegistered = reader.uint32();
1031
+ break;
1032
+ case /* repeated string allowed_scopes */ 5:
1033
+ message.allowedScopes.push(reader.string());
1034
+ break;
1035
+ case /* repeated string allowed_grant_types */ 6:
1036
+ message.allowedGrantTypes.push(reader.string());
1037
+ break;
1038
+ case /* repeated string allowed_redirect_patterns */ 7:
1039
+ message.allowedRedirectPatterns.push(reader.string());
1040
+ break;
1041
+ case /* google.protobuf.Timestamp expires_at */ 8:
1042
+ message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
1043
+ break;
1044
+ case /* google.protobuf.Timestamp created_at */ 9:
1045
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
1046
+ break;
1047
+ case /* string created_by */ 10:
1048
+ message.createdBy = reader.string();
1049
+ break;
1050
+ case /* bool revoked */ 11:
1051
+ message.revoked = reader.bool();
1052
+ break;
1053
+ default:
1054
+ let u = options.readUnknownField;
1055
+ if (u === "throw")
1056
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1057
+ let d = reader.skip(wireType);
1058
+ if (u !== false)
1059
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1060
+ }
1061
+ }
1062
+ return message;
1063
+ }
1064
+ internalBinaryWrite(message: InitialAccessToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1065
+ /* string id = 1; */
1066
+ if (message.id !== "")
1067
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1068
+ /* string project_id = 2; */
1069
+ if (message.projectId !== "")
1070
+ writer.tag(2, WireType.LengthDelimited).string(message.projectId);
1071
+ /* uint32 max_clients = 3; */
1072
+ if (message.maxClients !== 0)
1073
+ writer.tag(3, WireType.Varint).uint32(message.maxClients);
1074
+ /* uint32 clients_registered = 4; */
1075
+ if (message.clientsRegistered !== 0)
1076
+ writer.tag(4, WireType.Varint).uint32(message.clientsRegistered);
1077
+ /* repeated string allowed_scopes = 5; */
1078
+ for (let i = 0; i < message.allowedScopes.length; i++)
1079
+ writer.tag(5, WireType.LengthDelimited).string(message.allowedScopes[i]);
1080
+ /* repeated string allowed_grant_types = 6; */
1081
+ for (let i = 0; i < message.allowedGrantTypes.length; i++)
1082
+ writer.tag(6, WireType.LengthDelimited).string(message.allowedGrantTypes[i]);
1083
+ /* repeated string allowed_redirect_patterns = 7; */
1084
+ for (let i = 0; i < message.allowedRedirectPatterns.length; i++)
1085
+ writer.tag(7, WireType.LengthDelimited).string(message.allowedRedirectPatterns[i]);
1086
+ /* google.protobuf.Timestamp expires_at = 8; */
1087
+ if (message.expiresAt)
1088
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
1089
+ /* google.protobuf.Timestamp created_at = 9; */
1090
+ if (message.createdAt)
1091
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
1092
+ /* string created_by = 10; */
1093
+ if (message.createdBy !== "")
1094
+ writer.tag(10, WireType.LengthDelimited).string(message.createdBy);
1095
+ /* bool revoked = 11; */
1096
+ if (message.revoked !== false)
1097
+ writer.tag(11, WireType.Varint).bool(message.revoked);
1098
+ let u = options.writeUnknownFields;
1099
+ if (u !== false)
1100
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1101
+ return writer;
1102
+ }
1103
+ }
1104
+ /**
1105
+ * @generated MessageType for protobuf message sid.v1.projects.InitialAccessToken
1106
+ */
1107
+ export const InitialAccessToken = new InitialAccessToken$Type();
1108
+ // @generated message type with reflection information, may provide speed optimized methods
1109
+ class CreateProjectRequest$Type extends MessageType<CreateProjectRequest> {
1110
+ constructor() {
1111
+ super("sid.v1.projects.CreateProjectRequest", [
1112
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1113
+ { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1114
+ { no: 3, name: "owner_profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1115
+ ]);
1116
+ }
1117
+ create(value?: PartialMessage<CreateProjectRequest>): CreateProjectRequest {
1118
+ const message = globalThis.Object.create((this.messagePrototype!));
1119
+ message.name = "";
1120
+ message.description = "";
1121
+ message.ownerProfileId = "";
1122
+ if (value !== undefined)
1123
+ reflectionMergePartial<CreateProjectRequest>(this, message, value);
1124
+ return message;
1125
+ }
1126
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectRequest): CreateProjectRequest {
1127
+ let message = target ?? this.create(), end = reader.pos + length;
1128
+ while (reader.pos < end) {
1129
+ let [fieldNo, wireType] = reader.tag();
1130
+ switch (fieldNo) {
1131
+ case /* string name */ 1:
1132
+ message.name = reader.string();
1133
+ break;
1134
+ case /* string description */ 2:
1135
+ message.description = reader.string();
1136
+ break;
1137
+ case /* string owner_profile_id */ 3:
1138
+ message.ownerProfileId = reader.string();
1139
+ break;
1140
+ default:
1141
+ let u = options.readUnknownField;
1142
+ if (u === "throw")
1143
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1144
+ let d = reader.skip(wireType);
1145
+ if (u !== false)
1146
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1147
+ }
1148
+ }
1149
+ return message;
1150
+ }
1151
+ internalBinaryWrite(message: CreateProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1152
+ /* string name = 1; */
1153
+ if (message.name !== "")
1154
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
1155
+ /* string description = 2; */
1156
+ if (message.description !== "")
1157
+ writer.tag(2, WireType.LengthDelimited).string(message.description);
1158
+ /* string owner_profile_id = 3; */
1159
+ if (message.ownerProfileId !== "")
1160
+ writer.tag(3, WireType.LengthDelimited).string(message.ownerProfileId);
1161
+ let u = options.writeUnknownFields;
1162
+ if (u !== false)
1163
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1164
+ return writer;
1165
+ }
1166
+ }
1167
+ /**
1168
+ * @generated MessageType for protobuf message sid.v1.projects.CreateProjectRequest
1169
+ */
1170
+ export const CreateProjectRequest = new CreateProjectRequest$Type();
1171
+ // @generated message type with reflection information, may provide speed optimized methods
1172
+ class GetProjectRequest$Type extends MessageType<GetProjectRequest> {
1173
+ constructor() {
1174
+ super("sid.v1.projects.GetProjectRequest", [
1175
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1176
+ ]);
1177
+ }
1178
+ create(value?: PartialMessage<GetProjectRequest>): GetProjectRequest {
1179
+ const message = globalThis.Object.create((this.messagePrototype!));
1180
+ message.id = "";
1181
+ if (value !== undefined)
1182
+ reflectionMergePartial<GetProjectRequest>(this, message, value);
1183
+ return message;
1184
+ }
1185
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectRequest): GetProjectRequest {
1186
+ let message = target ?? this.create(), end = reader.pos + length;
1187
+ while (reader.pos < end) {
1188
+ let [fieldNo, wireType] = reader.tag();
1189
+ switch (fieldNo) {
1190
+ case /* string id */ 1:
1191
+ message.id = reader.string();
1192
+ break;
1193
+ default:
1194
+ let u = options.readUnknownField;
1195
+ if (u === "throw")
1196
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1197
+ let d = reader.skip(wireType);
1198
+ if (u !== false)
1199
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1200
+ }
1201
+ }
1202
+ return message;
1203
+ }
1204
+ internalBinaryWrite(message: GetProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1205
+ /* string id = 1; */
1206
+ if (message.id !== "")
1207
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1208
+ let u = options.writeUnknownFields;
1209
+ if (u !== false)
1210
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1211
+ return writer;
1212
+ }
1213
+ }
1214
+ /**
1215
+ * @generated MessageType for protobuf message sid.v1.projects.GetProjectRequest
1216
+ */
1217
+ export const GetProjectRequest = new GetProjectRequest$Type();
1218
+ // @generated message type with reflection information, may provide speed optimized methods
1219
+ class ListProjectsRequest$Type extends MessageType<ListProjectsRequest> {
1220
+ constructor() {
1221
+ super("sid.v1.projects.ListProjectsRequest", [
1222
+ { no: 1, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1223
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1224
+ ]);
1225
+ }
1226
+ create(value?: PartialMessage<ListProjectsRequest>): ListProjectsRequest {
1227
+ const message = globalThis.Object.create((this.messagePrototype!));
1228
+ message.pageSize = 0;
1229
+ message.pageToken = "";
1230
+ if (value !== undefined)
1231
+ reflectionMergePartial<ListProjectsRequest>(this, message, value);
1232
+ return message;
1233
+ }
1234
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectsRequest): ListProjectsRequest {
1235
+ let message = target ?? this.create(), end = reader.pos + length;
1236
+ while (reader.pos < end) {
1237
+ let [fieldNo, wireType] = reader.tag();
1238
+ switch (fieldNo) {
1239
+ case /* int32 page_size */ 1:
1240
+ message.pageSize = reader.int32();
1241
+ break;
1242
+ case /* string page_token */ 2:
1243
+ message.pageToken = reader.string();
1244
+ break;
1245
+ default:
1246
+ let u = options.readUnknownField;
1247
+ if (u === "throw")
1248
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1249
+ let d = reader.skip(wireType);
1250
+ if (u !== false)
1251
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1252
+ }
1253
+ }
1254
+ return message;
1255
+ }
1256
+ internalBinaryWrite(message: ListProjectsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1257
+ /* int32 page_size = 1; */
1258
+ if (message.pageSize !== 0)
1259
+ writer.tag(1, WireType.Varint).int32(message.pageSize);
1260
+ /* string page_token = 2; */
1261
+ if (message.pageToken !== "")
1262
+ writer.tag(2, WireType.LengthDelimited).string(message.pageToken);
1263
+ let u = options.writeUnknownFields;
1264
+ if (u !== false)
1265
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1266
+ return writer;
1267
+ }
1268
+ }
1269
+ /**
1270
+ * @generated MessageType for protobuf message sid.v1.projects.ListProjectsRequest
1271
+ */
1272
+ export const ListProjectsRequest = new ListProjectsRequest$Type();
1273
+ // @generated message type with reflection information, may provide speed optimized methods
1274
+ class ListProjectsResponse$Type extends MessageType<ListProjectsResponse> {
1275
+ constructor() {
1276
+ super("sid.v1.projects.ListProjectsResponse", [
1277
+ { no: 1, name: "projects", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project },
1278
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1279
+ ]);
1280
+ }
1281
+ create(value?: PartialMessage<ListProjectsResponse>): ListProjectsResponse {
1282
+ const message = globalThis.Object.create((this.messagePrototype!));
1283
+ message.projects = [];
1284
+ message.nextPageToken = "";
1285
+ if (value !== undefined)
1286
+ reflectionMergePartial<ListProjectsResponse>(this, message, value);
1287
+ return message;
1288
+ }
1289
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectsResponse): ListProjectsResponse {
1290
+ let message = target ?? this.create(), end = reader.pos + length;
1291
+ while (reader.pos < end) {
1292
+ let [fieldNo, wireType] = reader.tag();
1293
+ switch (fieldNo) {
1294
+ case /* repeated sid.v1.projects.Project projects */ 1:
1295
+ message.projects.push(Project.internalBinaryRead(reader, reader.uint32(), options));
1296
+ break;
1297
+ case /* string next_page_token */ 2:
1298
+ message.nextPageToken = reader.string();
1299
+ break;
1300
+ default:
1301
+ let u = options.readUnknownField;
1302
+ if (u === "throw")
1303
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1304
+ let d = reader.skip(wireType);
1305
+ if (u !== false)
1306
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1307
+ }
1308
+ }
1309
+ return message;
1310
+ }
1311
+ internalBinaryWrite(message: ListProjectsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1312
+ /* repeated sid.v1.projects.Project projects = 1; */
1313
+ for (let i = 0; i < message.projects.length; i++)
1314
+ Project.internalBinaryWrite(message.projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1315
+ /* string next_page_token = 2; */
1316
+ if (message.nextPageToken !== "")
1317
+ writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
1318
+ let u = options.writeUnknownFields;
1319
+ if (u !== false)
1320
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1321
+ return writer;
1322
+ }
1323
+ }
1324
+ /**
1325
+ * @generated MessageType for protobuf message sid.v1.projects.ListProjectsResponse
1326
+ */
1327
+ export const ListProjectsResponse = new ListProjectsResponse$Type();
1328
+ // @generated message type with reflection information, may provide speed optimized methods
1329
+ class UpdateProjectRequest$Type extends MessageType<UpdateProjectRequest> {
1330
+ constructor() {
1331
+ super("sid.v1.projects.UpdateProjectRequest", [
1332
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1333
+ { no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1334
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1335
+ ]);
1336
+ }
1337
+ create(value?: PartialMessage<UpdateProjectRequest>): UpdateProjectRequest {
1338
+ const message = globalThis.Object.create((this.messagePrototype!));
1339
+ message.id = "";
1340
+ if (value !== undefined)
1341
+ reflectionMergePartial<UpdateProjectRequest>(this, message, value);
1342
+ return message;
1343
+ }
1344
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectRequest): UpdateProjectRequest {
1345
+ let message = target ?? this.create(), end = reader.pos + length;
1346
+ while (reader.pos < end) {
1347
+ let [fieldNo, wireType] = reader.tag();
1348
+ switch (fieldNo) {
1349
+ case /* string id */ 1:
1350
+ message.id = reader.string();
1351
+ break;
1352
+ case /* optional string name */ 2:
1353
+ message.name = reader.string();
1354
+ break;
1355
+ case /* optional string description */ 3:
1356
+ message.description = reader.string();
1357
+ break;
1358
+ default:
1359
+ let u = options.readUnknownField;
1360
+ if (u === "throw")
1361
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1362
+ let d = reader.skip(wireType);
1363
+ if (u !== false)
1364
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1365
+ }
1366
+ }
1367
+ return message;
1368
+ }
1369
+ internalBinaryWrite(message: UpdateProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1370
+ /* string id = 1; */
1371
+ if (message.id !== "")
1372
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1373
+ /* optional string name = 2; */
1374
+ if (message.name !== undefined)
1375
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1376
+ /* optional string description = 3; */
1377
+ if (message.description !== undefined)
1378
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
1379
+ let u = options.writeUnknownFields;
1380
+ if (u !== false)
1381
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1382
+ return writer;
1383
+ }
1384
+ }
1385
+ /**
1386
+ * @generated MessageType for protobuf message sid.v1.projects.UpdateProjectRequest
1387
+ */
1388
+ export const UpdateProjectRequest = new UpdateProjectRequest$Type();
1389
+ // @generated message type with reflection information, may provide speed optimized methods
1390
+ class DeleteProjectRequest$Type extends MessageType<DeleteProjectRequest> {
1391
+ constructor() {
1392
+ super("sid.v1.projects.DeleteProjectRequest", [
1393
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1394
+ ]);
1395
+ }
1396
+ create(value?: PartialMessage<DeleteProjectRequest>): DeleteProjectRequest {
1397
+ const message = globalThis.Object.create((this.messagePrototype!));
1398
+ message.id = "";
1399
+ if (value !== undefined)
1400
+ reflectionMergePartial<DeleteProjectRequest>(this, message, value);
1401
+ return message;
1402
+ }
1403
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectRequest): DeleteProjectRequest {
1404
+ let message = target ?? this.create(), end = reader.pos + length;
1405
+ while (reader.pos < end) {
1406
+ let [fieldNo, wireType] = reader.tag();
1407
+ switch (fieldNo) {
1408
+ case /* string id */ 1:
1409
+ message.id = reader.string();
1410
+ break;
1411
+ default:
1412
+ let u = options.readUnknownField;
1413
+ if (u === "throw")
1414
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1415
+ let d = reader.skip(wireType);
1416
+ if (u !== false)
1417
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1418
+ }
1419
+ }
1420
+ return message;
1421
+ }
1422
+ internalBinaryWrite(message: DeleteProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1423
+ /* string id = 1; */
1424
+ if (message.id !== "")
1425
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1426
+ let u = options.writeUnknownFields;
1427
+ if (u !== false)
1428
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1429
+ return writer;
1430
+ }
1431
+ }
1432
+ /**
1433
+ * @generated MessageType for protobuf message sid.v1.projects.DeleteProjectRequest
1434
+ */
1435
+ export const DeleteProjectRequest = new DeleteProjectRequest$Type();
1436
+ // @generated message type with reflection information, may provide speed optimized methods
1437
+ class CreateApplicationRequest$Type extends MessageType<CreateApplicationRequest> {
1438
+ constructor() {
1439
+ super("sid.v1.projects.CreateApplicationRequest", [
1440
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1441
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1442
+ { no: 3, name: "type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
1443
+ { no: 4, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1444
+ { no: 5, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1445
+ { no: 6, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1446
+ ]);
1447
+ }
1448
+ create(value?: PartialMessage<CreateApplicationRequest>): CreateApplicationRequest {
1449
+ const message = globalThis.Object.create((this.messagePrototype!));
1450
+ message.projectId = "";
1451
+ message.name = "";
1452
+ message.type = 0;
1453
+ message.redirectUris = [];
1454
+ message.allowedScopes = [];
1455
+ message.grantTypes = [];
1456
+ if (value !== undefined)
1457
+ reflectionMergePartial<CreateApplicationRequest>(this, message, value);
1458
+ return message;
1459
+ }
1460
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateApplicationRequest): CreateApplicationRequest {
1461
+ let message = target ?? this.create(), end = reader.pos + length;
1462
+ while (reader.pos < end) {
1463
+ let [fieldNo, wireType] = reader.tag();
1464
+ switch (fieldNo) {
1465
+ case /* string project_id */ 1:
1466
+ message.projectId = reader.string();
1467
+ break;
1468
+ case /* string name */ 2:
1469
+ message.name = reader.string();
1470
+ break;
1471
+ case /* sid.v1.projects.ApplicationType type */ 3:
1472
+ message.type = reader.int32();
1473
+ break;
1474
+ case /* repeated string redirect_uris */ 4:
1475
+ message.redirectUris.push(reader.string());
1476
+ break;
1477
+ case /* repeated string allowed_scopes */ 5:
1478
+ message.allowedScopes.push(reader.string());
1479
+ break;
1480
+ case /* repeated string grant_types */ 6:
1481
+ message.grantTypes.push(reader.string());
1482
+ break;
1483
+ default:
1484
+ let u = options.readUnknownField;
1485
+ if (u === "throw")
1486
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1487
+ let d = reader.skip(wireType);
1488
+ if (u !== false)
1489
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1490
+ }
1491
+ }
1492
+ return message;
1493
+ }
1494
+ internalBinaryWrite(message: CreateApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1495
+ /* string project_id = 1; */
1496
+ if (message.projectId !== "")
1497
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1498
+ /* string name = 2; */
1499
+ if (message.name !== "")
1500
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1501
+ /* sid.v1.projects.ApplicationType type = 3; */
1502
+ if (message.type !== 0)
1503
+ writer.tag(3, WireType.Varint).int32(message.type);
1504
+ /* repeated string redirect_uris = 4; */
1505
+ for (let i = 0; i < message.redirectUris.length; i++)
1506
+ writer.tag(4, WireType.LengthDelimited).string(message.redirectUris[i]);
1507
+ /* repeated string allowed_scopes = 5; */
1508
+ for (let i = 0; i < message.allowedScopes.length; i++)
1509
+ writer.tag(5, WireType.LengthDelimited).string(message.allowedScopes[i]);
1510
+ /* repeated string grant_types = 6; */
1511
+ for (let i = 0; i < message.grantTypes.length; i++)
1512
+ writer.tag(6, WireType.LengthDelimited).string(message.grantTypes[i]);
1513
+ let u = options.writeUnknownFields;
1514
+ if (u !== false)
1515
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1516
+ return writer;
1517
+ }
1518
+ }
1519
+ /**
1520
+ * @generated MessageType for protobuf message sid.v1.projects.CreateApplicationRequest
1521
+ */
1522
+ export const CreateApplicationRequest = new CreateApplicationRequest$Type();
1523
+ // @generated message type with reflection information, may provide speed optimized methods
1524
+ class CreateApplicationResponse$Type extends MessageType<CreateApplicationResponse> {
1525
+ constructor() {
1526
+ super("sid.v1.projects.CreateApplicationResponse", [
1527
+ { no: 1, name: "application", kind: "message", T: () => Application },
1528
+ { no: 2, name: "client_secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1529
+ ]);
1530
+ }
1531
+ create(value?: PartialMessage<CreateApplicationResponse>): CreateApplicationResponse {
1532
+ const message = globalThis.Object.create((this.messagePrototype!));
1533
+ message.clientSecret = "";
1534
+ if (value !== undefined)
1535
+ reflectionMergePartial<CreateApplicationResponse>(this, message, value);
1536
+ return message;
1537
+ }
1538
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateApplicationResponse): CreateApplicationResponse {
1539
+ let message = target ?? this.create(), end = reader.pos + length;
1540
+ while (reader.pos < end) {
1541
+ let [fieldNo, wireType] = reader.tag();
1542
+ switch (fieldNo) {
1543
+ case /* sid.v1.projects.Application application */ 1:
1544
+ message.application = Application.internalBinaryRead(reader, reader.uint32(), options, message.application);
1545
+ break;
1546
+ case /* string client_secret */ 2:
1547
+ message.clientSecret = reader.string();
1548
+ break;
1549
+ default:
1550
+ let u = options.readUnknownField;
1551
+ if (u === "throw")
1552
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1553
+ let d = reader.skip(wireType);
1554
+ if (u !== false)
1555
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1556
+ }
1557
+ }
1558
+ return message;
1559
+ }
1560
+ internalBinaryWrite(message: CreateApplicationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1561
+ /* sid.v1.projects.Application application = 1; */
1562
+ if (message.application)
1563
+ Application.internalBinaryWrite(message.application, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1564
+ /* string client_secret = 2; */
1565
+ if (message.clientSecret !== "")
1566
+ writer.tag(2, WireType.LengthDelimited).string(message.clientSecret);
1567
+ let u = options.writeUnknownFields;
1568
+ if (u !== false)
1569
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1570
+ return writer;
1571
+ }
1572
+ }
1573
+ /**
1574
+ * @generated MessageType for protobuf message sid.v1.projects.CreateApplicationResponse
1575
+ */
1576
+ export const CreateApplicationResponse = new CreateApplicationResponse$Type();
1577
+ // @generated message type with reflection information, may provide speed optimized methods
1578
+ class GetApplicationRequest$Type extends MessageType<GetApplicationRequest> {
1579
+ constructor() {
1580
+ super("sid.v1.projects.GetApplicationRequest", [
1581
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1582
+ ]);
1583
+ }
1584
+ create(value?: PartialMessage<GetApplicationRequest>): GetApplicationRequest {
1585
+ const message = globalThis.Object.create((this.messagePrototype!));
1586
+ message.clientId = "";
1587
+ if (value !== undefined)
1588
+ reflectionMergePartial<GetApplicationRequest>(this, message, value);
1589
+ return message;
1590
+ }
1591
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetApplicationRequest): GetApplicationRequest {
1592
+ let message = target ?? this.create(), end = reader.pos + length;
1593
+ while (reader.pos < end) {
1594
+ let [fieldNo, wireType] = reader.tag();
1595
+ switch (fieldNo) {
1596
+ case /* string client_id */ 1:
1597
+ message.clientId = reader.string();
1598
+ break;
1599
+ default:
1600
+ let u = options.readUnknownField;
1601
+ if (u === "throw")
1602
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1603
+ let d = reader.skip(wireType);
1604
+ if (u !== false)
1605
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1606
+ }
1607
+ }
1608
+ return message;
1609
+ }
1610
+ internalBinaryWrite(message: GetApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1611
+ /* string client_id = 1; */
1612
+ if (message.clientId !== "")
1613
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
1614
+ let u = options.writeUnknownFields;
1615
+ if (u !== false)
1616
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1617
+ return writer;
1618
+ }
1619
+ }
1620
+ /**
1621
+ * @generated MessageType for protobuf message sid.v1.projects.GetApplicationRequest
1622
+ */
1623
+ export const GetApplicationRequest = new GetApplicationRequest$Type();
1624
+ // @generated message type with reflection information, may provide speed optimized methods
1625
+ class ListApplicationsRequest$Type extends MessageType<ListApplicationsRequest> {
1626
+ constructor() {
1627
+ super("sid.v1.projects.ListApplicationsRequest", [
1628
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1629
+ { no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1630
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1631
+ ]);
1632
+ }
1633
+ create(value?: PartialMessage<ListApplicationsRequest>): ListApplicationsRequest {
1634
+ const message = globalThis.Object.create((this.messagePrototype!));
1635
+ message.projectId = "";
1636
+ message.pageSize = 0;
1637
+ message.pageToken = "";
1638
+ if (value !== undefined)
1639
+ reflectionMergePartial<ListApplicationsRequest>(this, message, value);
1640
+ return message;
1641
+ }
1642
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListApplicationsRequest): ListApplicationsRequest {
1643
+ let message = target ?? this.create(), end = reader.pos + length;
1644
+ while (reader.pos < end) {
1645
+ let [fieldNo, wireType] = reader.tag();
1646
+ switch (fieldNo) {
1647
+ case /* string project_id */ 1:
1648
+ message.projectId = reader.string();
1649
+ break;
1650
+ case /* int32 page_size */ 2:
1651
+ message.pageSize = reader.int32();
1652
+ break;
1653
+ case /* string page_token */ 3:
1654
+ message.pageToken = reader.string();
1655
+ break;
1656
+ default:
1657
+ let u = options.readUnknownField;
1658
+ if (u === "throw")
1659
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1660
+ let d = reader.skip(wireType);
1661
+ if (u !== false)
1662
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1663
+ }
1664
+ }
1665
+ return message;
1666
+ }
1667
+ internalBinaryWrite(message: ListApplicationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1668
+ /* string project_id = 1; */
1669
+ if (message.projectId !== "")
1670
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1671
+ /* int32 page_size = 2; */
1672
+ if (message.pageSize !== 0)
1673
+ writer.tag(2, WireType.Varint).int32(message.pageSize);
1674
+ /* string page_token = 3; */
1675
+ if (message.pageToken !== "")
1676
+ writer.tag(3, WireType.LengthDelimited).string(message.pageToken);
1677
+ let u = options.writeUnknownFields;
1678
+ if (u !== false)
1679
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1680
+ return writer;
1681
+ }
1682
+ }
1683
+ /**
1684
+ * @generated MessageType for protobuf message sid.v1.projects.ListApplicationsRequest
1685
+ */
1686
+ export const ListApplicationsRequest = new ListApplicationsRequest$Type();
1687
+ // @generated message type with reflection information, may provide speed optimized methods
1688
+ class ListApplicationsResponse$Type extends MessageType<ListApplicationsResponse> {
1689
+ constructor() {
1690
+ super("sid.v1.projects.ListApplicationsResponse", [
1691
+ { no: 1, name: "applications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Application },
1692
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1693
+ ]);
1694
+ }
1695
+ create(value?: PartialMessage<ListApplicationsResponse>): ListApplicationsResponse {
1696
+ const message = globalThis.Object.create((this.messagePrototype!));
1697
+ message.applications = [];
1698
+ message.nextPageToken = "";
1699
+ if (value !== undefined)
1700
+ reflectionMergePartial<ListApplicationsResponse>(this, message, value);
1701
+ return message;
1702
+ }
1703
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListApplicationsResponse): ListApplicationsResponse {
1704
+ let message = target ?? this.create(), end = reader.pos + length;
1705
+ while (reader.pos < end) {
1706
+ let [fieldNo, wireType] = reader.tag();
1707
+ switch (fieldNo) {
1708
+ case /* repeated sid.v1.projects.Application applications */ 1:
1709
+ message.applications.push(Application.internalBinaryRead(reader, reader.uint32(), options));
1710
+ break;
1711
+ case /* string next_page_token */ 2:
1712
+ message.nextPageToken = reader.string();
1713
+ break;
1714
+ default:
1715
+ let u = options.readUnknownField;
1716
+ if (u === "throw")
1717
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1718
+ let d = reader.skip(wireType);
1719
+ if (u !== false)
1720
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1721
+ }
1722
+ }
1723
+ return message;
1724
+ }
1725
+ internalBinaryWrite(message: ListApplicationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1726
+ /* repeated sid.v1.projects.Application applications = 1; */
1727
+ for (let i = 0; i < message.applications.length; i++)
1728
+ Application.internalBinaryWrite(message.applications[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1729
+ /* string next_page_token = 2; */
1730
+ if (message.nextPageToken !== "")
1731
+ writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
1732
+ let u = options.writeUnknownFields;
1733
+ if (u !== false)
1734
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1735
+ return writer;
1736
+ }
1737
+ }
1738
+ /**
1739
+ * @generated MessageType for protobuf message sid.v1.projects.ListApplicationsResponse
1740
+ */
1741
+ export const ListApplicationsResponse = new ListApplicationsResponse$Type();
1742
+ // @generated message type with reflection information, may provide speed optimized methods
1743
+ class UpdateApplicationRequest$Type extends MessageType<UpdateApplicationRequest> {
1744
+ constructor() {
1745
+ super("sid.v1.projects.UpdateApplicationRequest", [
1746
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1747
+ { no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1748
+ { no: 3, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1749
+ { no: 4, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1750
+ { no: 5, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1751
+ { no: 6, name: "active", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
1752
+ { no: 7, name: "subject_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1753
+ ]);
1754
+ }
1755
+ create(value?: PartialMessage<UpdateApplicationRequest>): UpdateApplicationRequest {
1756
+ const message = globalThis.Object.create((this.messagePrototype!));
1757
+ message.clientId = "";
1758
+ message.redirectUris = [];
1759
+ message.allowedScopes = [];
1760
+ message.grantTypes = [];
1761
+ if (value !== undefined)
1762
+ reflectionMergePartial<UpdateApplicationRequest>(this, message, value);
1763
+ return message;
1764
+ }
1765
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateApplicationRequest): UpdateApplicationRequest {
1766
+ let message = target ?? this.create(), end = reader.pos + length;
1767
+ while (reader.pos < end) {
1768
+ let [fieldNo, wireType] = reader.tag();
1769
+ switch (fieldNo) {
1770
+ case /* string client_id */ 1:
1771
+ message.clientId = reader.string();
1772
+ break;
1773
+ case /* optional string name */ 2:
1774
+ message.name = reader.string();
1775
+ break;
1776
+ case /* repeated string redirect_uris */ 3:
1777
+ message.redirectUris.push(reader.string());
1778
+ break;
1779
+ case /* repeated string allowed_scopes */ 4:
1780
+ message.allowedScopes.push(reader.string());
1781
+ break;
1782
+ case /* repeated string grant_types */ 5:
1783
+ message.grantTypes.push(reader.string());
1784
+ break;
1785
+ case /* optional bool active */ 6:
1786
+ message.active = reader.bool();
1787
+ break;
1788
+ case /* optional string subject_type */ 7:
1789
+ message.subjectType = reader.string();
1790
+ break;
1791
+ default:
1792
+ let u = options.readUnknownField;
1793
+ if (u === "throw")
1794
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1795
+ let d = reader.skip(wireType);
1796
+ if (u !== false)
1797
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1798
+ }
1799
+ }
1800
+ return message;
1801
+ }
1802
+ internalBinaryWrite(message: UpdateApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1803
+ /* string client_id = 1; */
1804
+ if (message.clientId !== "")
1805
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
1806
+ /* optional string name = 2; */
1807
+ if (message.name !== undefined)
1808
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1809
+ /* repeated string redirect_uris = 3; */
1810
+ for (let i = 0; i < message.redirectUris.length; i++)
1811
+ writer.tag(3, WireType.LengthDelimited).string(message.redirectUris[i]);
1812
+ /* repeated string allowed_scopes = 4; */
1813
+ for (let i = 0; i < message.allowedScopes.length; i++)
1814
+ writer.tag(4, WireType.LengthDelimited).string(message.allowedScopes[i]);
1815
+ /* repeated string grant_types = 5; */
1816
+ for (let i = 0; i < message.grantTypes.length; i++)
1817
+ writer.tag(5, WireType.LengthDelimited).string(message.grantTypes[i]);
1818
+ /* optional bool active = 6; */
1819
+ if (message.active !== undefined)
1820
+ writer.tag(6, WireType.Varint).bool(message.active);
1821
+ /* optional string subject_type = 7; */
1822
+ if (message.subjectType !== undefined)
1823
+ writer.tag(7, WireType.LengthDelimited).string(message.subjectType);
1824
+ let u = options.writeUnknownFields;
1825
+ if (u !== false)
1826
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1827
+ return writer;
1828
+ }
1829
+ }
1830
+ /**
1831
+ * @generated MessageType for protobuf message sid.v1.projects.UpdateApplicationRequest
1832
+ */
1833
+ export const UpdateApplicationRequest = new UpdateApplicationRequest$Type();
1834
+ // @generated message type with reflection information, may provide speed optimized methods
1835
+ class DeleteApplicationRequest$Type extends MessageType<DeleteApplicationRequest> {
1836
+ constructor() {
1837
+ super("sid.v1.projects.DeleteApplicationRequest", [
1838
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1839
+ ]);
1840
+ }
1841
+ create(value?: PartialMessage<DeleteApplicationRequest>): DeleteApplicationRequest {
1842
+ const message = globalThis.Object.create((this.messagePrototype!));
1843
+ message.clientId = "";
1844
+ if (value !== undefined)
1845
+ reflectionMergePartial<DeleteApplicationRequest>(this, message, value);
1846
+ return message;
1847
+ }
1848
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteApplicationRequest): DeleteApplicationRequest {
1849
+ let message = target ?? this.create(), end = reader.pos + length;
1850
+ while (reader.pos < end) {
1851
+ let [fieldNo, wireType] = reader.tag();
1852
+ switch (fieldNo) {
1853
+ case /* string client_id */ 1:
1854
+ message.clientId = reader.string();
1855
+ break;
1856
+ default:
1857
+ let u = options.readUnknownField;
1858
+ if (u === "throw")
1859
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1860
+ let d = reader.skip(wireType);
1861
+ if (u !== false)
1862
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1863
+ }
1864
+ }
1865
+ return message;
1866
+ }
1867
+ internalBinaryWrite(message: DeleteApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1868
+ /* string client_id = 1; */
1869
+ if (message.clientId !== "")
1870
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
1871
+ let u = options.writeUnknownFields;
1872
+ if (u !== false)
1873
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1874
+ return writer;
1875
+ }
1876
+ }
1877
+ /**
1878
+ * @generated MessageType for protobuf message sid.v1.projects.DeleteApplicationRequest
1879
+ */
1880
+ export const DeleteApplicationRequest = new DeleteApplicationRequest$Type();
1881
+ // @generated message type with reflection information, may provide speed optimized methods
1882
+ class AddRoleRequest$Type extends MessageType<AddRoleRequest> {
1883
+ constructor() {
1884
+ super("sid.v1.projects.AddRoleRequest", [
1885
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1886
+ { no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1887
+ { no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1888
+ { no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1889
+ { no: 5, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1890
+ { no: 6, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1891
+ ]);
1892
+ }
1893
+ create(value?: PartialMessage<AddRoleRequest>): AddRoleRequest {
1894
+ const message = globalThis.Object.create((this.messagePrototype!));
1895
+ message.projectId = "";
1896
+ message.key = "";
1897
+ message.displayName = "";
1898
+ message.permissions = [];
1899
+ if (value !== undefined)
1900
+ reflectionMergePartial<AddRoleRequest>(this, message, value);
1901
+ return message;
1902
+ }
1903
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddRoleRequest): AddRoleRequest {
1904
+ let message = target ?? this.create(), end = reader.pos + length;
1905
+ while (reader.pos < end) {
1906
+ let [fieldNo, wireType] = reader.tag();
1907
+ switch (fieldNo) {
1908
+ case /* string project_id */ 1:
1909
+ message.projectId = reader.string();
1910
+ break;
1911
+ case /* string key */ 2:
1912
+ message.key = reader.string();
1913
+ break;
1914
+ case /* string display_name */ 3:
1915
+ message.displayName = reader.string();
1916
+ break;
1917
+ case /* optional string description */ 4:
1918
+ message.description = reader.string();
1919
+ break;
1920
+ case /* optional string group */ 5:
1921
+ message.group = reader.string();
1922
+ break;
1923
+ case /* repeated string permissions */ 6:
1924
+ message.permissions.push(reader.string());
1925
+ break;
1926
+ default:
1927
+ let u = options.readUnknownField;
1928
+ if (u === "throw")
1929
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1930
+ let d = reader.skip(wireType);
1931
+ if (u !== false)
1932
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1933
+ }
1934
+ }
1935
+ return message;
1936
+ }
1937
+ internalBinaryWrite(message: AddRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1938
+ /* string project_id = 1; */
1939
+ if (message.projectId !== "")
1940
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1941
+ /* string key = 2; */
1942
+ if (message.key !== "")
1943
+ writer.tag(2, WireType.LengthDelimited).string(message.key);
1944
+ /* string display_name = 3; */
1945
+ if (message.displayName !== "")
1946
+ writer.tag(3, WireType.LengthDelimited).string(message.displayName);
1947
+ /* optional string description = 4; */
1948
+ if (message.description !== undefined)
1949
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
1950
+ /* optional string group = 5; */
1951
+ if (message.group !== undefined)
1952
+ writer.tag(5, WireType.LengthDelimited).string(message.group);
1953
+ /* repeated string permissions = 6; */
1954
+ for (let i = 0; i < message.permissions.length; i++)
1955
+ writer.tag(6, WireType.LengthDelimited).string(message.permissions[i]);
1956
+ let u = options.writeUnknownFields;
1957
+ if (u !== false)
1958
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1959
+ return writer;
1960
+ }
1961
+ }
1962
+ /**
1963
+ * @generated MessageType for protobuf message sid.v1.projects.AddRoleRequest
1964
+ */
1965
+ export const AddRoleRequest = new AddRoleRequest$Type();
1966
+ // @generated message type with reflection information, may provide speed optimized methods
1967
+ class RemoveRoleRequest$Type extends MessageType<RemoveRoleRequest> {
1968
+ constructor() {
1969
+ super("sid.v1.projects.RemoveRoleRequest", [
1970
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1971
+ { no: 2, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1972
+ ]);
1973
+ }
1974
+ create(value?: PartialMessage<RemoveRoleRequest>): RemoveRoleRequest {
1975
+ const message = globalThis.Object.create((this.messagePrototype!));
1976
+ message.projectId = "";
1977
+ message.roleId = "";
1978
+ if (value !== undefined)
1979
+ reflectionMergePartial<RemoveRoleRequest>(this, message, value);
1980
+ return message;
1981
+ }
1982
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveRoleRequest): RemoveRoleRequest {
1983
+ let message = target ?? this.create(), end = reader.pos + length;
1984
+ while (reader.pos < end) {
1985
+ let [fieldNo, wireType] = reader.tag();
1986
+ switch (fieldNo) {
1987
+ case /* string project_id */ 1:
1988
+ message.projectId = reader.string();
1989
+ break;
1990
+ case /* string role_id */ 2:
1991
+ message.roleId = reader.string();
1992
+ break;
1993
+ default:
1994
+ let u = options.readUnknownField;
1995
+ if (u === "throw")
1996
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1997
+ let d = reader.skip(wireType);
1998
+ if (u !== false)
1999
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2000
+ }
2001
+ }
2002
+ return message;
2003
+ }
2004
+ internalBinaryWrite(message: RemoveRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2005
+ /* string project_id = 1; */
2006
+ if (message.projectId !== "")
2007
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
2008
+ /* string role_id = 2; */
2009
+ if (message.roleId !== "")
2010
+ writer.tag(2, WireType.LengthDelimited).string(message.roleId);
2011
+ let u = options.writeUnknownFields;
2012
+ if (u !== false)
2013
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2014
+ return writer;
2015
+ }
2016
+ }
2017
+ /**
2018
+ * @generated MessageType for protobuf message sid.v1.projects.RemoveRoleRequest
2019
+ */
2020
+ export const RemoveRoleRequest = new RemoveRoleRequest$Type();
2021
+ // @generated message type with reflection information, may provide speed optimized methods
2022
+ class RegisterClientRequest$Type extends MessageType<RegisterClientRequest> {
2023
+ constructor() {
2024
+ super("sid.v1.projects.RegisterClientRequest", [
2025
+ { no: 1, name: "client_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2026
+ { no: 2, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2027
+ { no: 3, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2028
+ { no: 4, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2029
+ { no: 5, name: "token_endpoint_auth_method", kind: "enum", T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
2030
+ { no: 6, name: "application_type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
2031
+ { no: 7, name: "subject_type", kind: "enum", T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
2032
+ { no: 8, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2033
+ { no: 9, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2034
+ { no: 10, name: "scope", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2035
+ ]);
2036
+ }
2037
+ create(value?: PartialMessage<RegisterClientRequest>): RegisterClientRequest {
2038
+ const message = globalThis.Object.create((this.messagePrototype!));
2039
+ message.clientName = "";
2040
+ message.redirectUris = [];
2041
+ message.grantTypes = [];
2042
+ message.responseTypes = [];
2043
+ message.tokenEndpointAuthMethod = 0;
2044
+ message.applicationType = 0;
2045
+ message.subjectType = 0;
2046
+ message.contacts = [];
2047
+ message.scope = [];
2048
+ if (value !== undefined)
2049
+ reflectionMergePartial<RegisterClientRequest>(this, message, value);
2050
+ return message;
2051
+ }
2052
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterClientRequest): RegisterClientRequest {
2053
+ let message = target ?? this.create(), end = reader.pos + length;
2054
+ while (reader.pos < end) {
2055
+ let [fieldNo, wireType] = reader.tag();
2056
+ switch (fieldNo) {
2057
+ case /* string client_name */ 1:
2058
+ message.clientName = reader.string();
2059
+ break;
2060
+ case /* repeated string redirect_uris */ 2:
2061
+ message.redirectUris.push(reader.string());
2062
+ break;
2063
+ case /* repeated string grant_types */ 3:
2064
+ message.grantTypes.push(reader.string());
2065
+ break;
2066
+ case /* repeated string response_types */ 4:
2067
+ message.responseTypes.push(reader.string());
2068
+ break;
2069
+ case /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 5:
2070
+ message.tokenEndpointAuthMethod = reader.int32();
2071
+ break;
2072
+ case /* sid.v1.projects.ApplicationType application_type */ 6:
2073
+ message.applicationType = reader.int32();
2074
+ break;
2075
+ case /* sid.v1.projects.SubjectType subject_type */ 7:
2076
+ message.subjectType = reader.int32();
2077
+ break;
2078
+ case /* optional string sector_identifier_uri */ 8:
2079
+ message.sectorIdentifierUri = reader.string();
2080
+ break;
2081
+ case /* repeated string contacts */ 9:
2082
+ message.contacts.push(reader.string());
2083
+ break;
2084
+ case /* repeated string scope */ 10:
2085
+ message.scope.push(reader.string());
2086
+ break;
2087
+ default:
2088
+ let u = options.readUnknownField;
2089
+ if (u === "throw")
2090
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2091
+ let d = reader.skip(wireType);
2092
+ if (u !== false)
2093
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2094
+ }
2095
+ }
2096
+ return message;
2097
+ }
2098
+ internalBinaryWrite(message: RegisterClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2099
+ /* string client_name = 1; */
2100
+ if (message.clientName !== "")
2101
+ writer.tag(1, WireType.LengthDelimited).string(message.clientName);
2102
+ /* repeated string redirect_uris = 2; */
2103
+ for (let i = 0; i < message.redirectUris.length; i++)
2104
+ writer.tag(2, WireType.LengthDelimited).string(message.redirectUris[i]);
2105
+ /* repeated string grant_types = 3; */
2106
+ for (let i = 0; i < message.grantTypes.length; i++)
2107
+ writer.tag(3, WireType.LengthDelimited).string(message.grantTypes[i]);
2108
+ /* repeated string response_types = 4; */
2109
+ for (let i = 0; i < message.responseTypes.length; i++)
2110
+ writer.tag(4, WireType.LengthDelimited).string(message.responseTypes[i]);
2111
+ /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 5; */
2112
+ if (message.tokenEndpointAuthMethod !== 0)
2113
+ writer.tag(5, WireType.Varint).int32(message.tokenEndpointAuthMethod);
2114
+ /* sid.v1.projects.ApplicationType application_type = 6; */
2115
+ if (message.applicationType !== 0)
2116
+ writer.tag(6, WireType.Varint).int32(message.applicationType);
2117
+ /* sid.v1.projects.SubjectType subject_type = 7; */
2118
+ if (message.subjectType !== 0)
2119
+ writer.tag(7, WireType.Varint).int32(message.subjectType);
2120
+ /* optional string sector_identifier_uri = 8; */
2121
+ if (message.sectorIdentifierUri !== undefined)
2122
+ writer.tag(8, WireType.LengthDelimited).string(message.sectorIdentifierUri);
2123
+ /* repeated string contacts = 9; */
2124
+ for (let i = 0; i < message.contacts.length; i++)
2125
+ writer.tag(9, WireType.LengthDelimited).string(message.contacts[i]);
2126
+ /* repeated string scope = 10; */
2127
+ for (let i = 0; i < message.scope.length; i++)
2128
+ writer.tag(10, WireType.LengthDelimited).string(message.scope[i]);
2129
+ let u = options.writeUnknownFields;
2130
+ if (u !== false)
2131
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2132
+ return writer;
2133
+ }
2134
+ }
2135
+ /**
2136
+ * @generated MessageType for protobuf message sid.v1.projects.RegisterClientRequest
2137
+ */
2138
+ export const RegisterClientRequest = new RegisterClientRequest$Type();
2139
+ // @generated message type with reflection information, may provide speed optimized methods
2140
+ class RegisterClientResponse$Type extends MessageType<RegisterClientResponse> {
2141
+ constructor() {
2142
+ super("sid.v1.projects.RegisterClientResponse", [
2143
+ { no: 1, name: "application", kind: "message", T: () => Application },
2144
+ { no: 2, name: "client_secret", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2145
+ { no: 3, name: "registration_access_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2146
+ ]);
2147
+ }
2148
+ create(value?: PartialMessage<RegisterClientResponse>): RegisterClientResponse {
2149
+ const message = globalThis.Object.create((this.messagePrototype!));
2150
+ message.registrationAccessToken = "";
2151
+ if (value !== undefined)
2152
+ reflectionMergePartial<RegisterClientResponse>(this, message, value);
2153
+ return message;
2154
+ }
2155
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterClientResponse): RegisterClientResponse {
2156
+ let message = target ?? this.create(), end = reader.pos + length;
2157
+ while (reader.pos < end) {
2158
+ let [fieldNo, wireType] = reader.tag();
2159
+ switch (fieldNo) {
2160
+ case /* sid.v1.projects.Application application */ 1:
2161
+ message.application = Application.internalBinaryRead(reader, reader.uint32(), options, message.application);
2162
+ break;
2163
+ case /* optional string client_secret */ 2:
2164
+ message.clientSecret = reader.string();
2165
+ break;
2166
+ case /* string registration_access_token */ 3:
2167
+ message.registrationAccessToken = reader.string();
2168
+ break;
2169
+ default:
2170
+ let u = options.readUnknownField;
2171
+ if (u === "throw")
2172
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2173
+ let d = reader.skip(wireType);
2174
+ if (u !== false)
2175
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2176
+ }
2177
+ }
2178
+ return message;
2179
+ }
2180
+ internalBinaryWrite(message: RegisterClientResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2181
+ /* sid.v1.projects.Application application = 1; */
2182
+ if (message.application)
2183
+ Application.internalBinaryWrite(message.application, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2184
+ /* optional string client_secret = 2; */
2185
+ if (message.clientSecret !== undefined)
2186
+ writer.tag(2, WireType.LengthDelimited).string(message.clientSecret);
2187
+ /* string registration_access_token = 3; */
2188
+ if (message.registrationAccessToken !== "")
2189
+ writer.tag(3, WireType.LengthDelimited).string(message.registrationAccessToken);
2190
+ let u = options.writeUnknownFields;
2191
+ if (u !== false)
2192
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2193
+ return writer;
2194
+ }
2195
+ }
2196
+ /**
2197
+ * @generated MessageType for protobuf message sid.v1.projects.RegisterClientResponse
2198
+ */
2199
+ export const RegisterClientResponse = new RegisterClientResponse$Type();
2200
+ // @generated message type with reflection information, may provide speed optimized methods
2201
+ class GetRegisteredClientRequest$Type extends MessageType<GetRegisteredClientRequest> {
2202
+ constructor() {
2203
+ super("sid.v1.projects.GetRegisteredClientRequest", [
2204
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2205
+ ]);
2206
+ }
2207
+ create(value?: PartialMessage<GetRegisteredClientRequest>): GetRegisteredClientRequest {
2208
+ const message = globalThis.Object.create((this.messagePrototype!));
2209
+ message.clientId = "";
2210
+ if (value !== undefined)
2211
+ reflectionMergePartial<GetRegisteredClientRequest>(this, message, value);
2212
+ return message;
2213
+ }
2214
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetRegisteredClientRequest): GetRegisteredClientRequest {
2215
+ let message = target ?? this.create(), end = reader.pos + length;
2216
+ while (reader.pos < end) {
2217
+ let [fieldNo, wireType] = reader.tag();
2218
+ switch (fieldNo) {
2219
+ case /* string client_id */ 1:
2220
+ message.clientId = reader.string();
2221
+ break;
2222
+ default:
2223
+ let u = options.readUnknownField;
2224
+ if (u === "throw")
2225
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2226
+ let d = reader.skip(wireType);
2227
+ if (u !== false)
2228
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2229
+ }
2230
+ }
2231
+ return message;
2232
+ }
2233
+ internalBinaryWrite(message: GetRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2234
+ /* string client_id = 1; */
2235
+ if (message.clientId !== "")
2236
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
2237
+ let u = options.writeUnknownFields;
2238
+ if (u !== false)
2239
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2240
+ return writer;
2241
+ }
2242
+ }
2243
+ /**
2244
+ * @generated MessageType for protobuf message sid.v1.projects.GetRegisteredClientRequest
2245
+ */
2246
+ export const GetRegisteredClientRequest = new GetRegisteredClientRequest$Type();
2247
+ // @generated message type with reflection information, may provide speed optimized methods
2248
+ class UpdateRegisteredClientRequest$Type extends MessageType<UpdateRegisteredClientRequest> {
2249
+ constructor() {
2250
+ super("sid.v1.projects.UpdateRegisteredClientRequest", [
2251
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2252
+ { no: 2, name: "client_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2253
+ { no: 3, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2254
+ { no: 4, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2255
+ { no: 5, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2256
+ { no: 6, name: "token_endpoint_auth_method", kind: "enum", opt: true, T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
2257
+ { no: 7, name: "subject_type", kind: "enum", opt: true, T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
2258
+ { no: 8, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2259
+ { no: 9, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2260
+ { no: 10, name: "scope", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2261
+ ]);
2262
+ }
2263
+ create(value?: PartialMessage<UpdateRegisteredClientRequest>): UpdateRegisteredClientRequest {
2264
+ const message = globalThis.Object.create((this.messagePrototype!));
2265
+ message.clientId = "";
2266
+ message.redirectUris = [];
2267
+ message.grantTypes = [];
2268
+ message.responseTypes = [];
2269
+ message.contacts = [];
2270
+ message.scope = [];
2271
+ if (value !== undefined)
2272
+ reflectionMergePartial<UpdateRegisteredClientRequest>(this, message, value);
2273
+ return message;
2274
+ }
2275
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateRegisteredClientRequest): UpdateRegisteredClientRequest {
2276
+ let message = target ?? this.create(), end = reader.pos + length;
2277
+ while (reader.pos < end) {
2278
+ let [fieldNo, wireType] = reader.tag();
2279
+ switch (fieldNo) {
2280
+ case /* string client_id */ 1:
2281
+ message.clientId = reader.string();
2282
+ break;
2283
+ case /* optional string client_name */ 2:
2284
+ message.clientName = reader.string();
2285
+ break;
2286
+ case /* repeated string redirect_uris */ 3:
2287
+ message.redirectUris.push(reader.string());
2288
+ break;
2289
+ case /* repeated string grant_types */ 4:
2290
+ message.grantTypes.push(reader.string());
2291
+ break;
2292
+ case /* repeated string response_types */ 5:
2293
+ message.responseTypes.push(reader.string());
2294
+ break;
2295
+ case /* optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 6:
2296
+ message.tokenEndpointAuthMethod = reader.int32();
2297
+ break;
2298
+ case /* optional sid.v1.projects.SubjectType subject_type */ 7:
2299
+ message.subjectType = reader.int32();
2300
+ break;
2301
+ case /* optional string sector_identifier_uri */ 8:
2302
+ message.sectorIdentifierUri = reader.string();
2303
+ break;
2304
+ case /* repeated string contacts */ 9:
2305
+ message.contacts.push(reader.string());
2306
+ break;
2307
+ case /* repeated string scope */ 10:
2308
+ message.scope.push(reader.string());
2309
+ break;
2310
+ default:
2311
+ let u = options.readUnknownField;
2312
+ if (u === "throw")
2313
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2314
+ let d = reader.skip(wireType);
2315
+ if (u !== false)
2316
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2317
+ }
2318
+ }
2319
+ return message;
2320
+ }
2321
+ internalBinaryWrite(message: UpdateRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2322
+ /* string client_id = 1; */
2323
+ if (message.clientId !== "")
2324
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
2325
+ /* optional string client_name = 2; */
2326
+ if (message.clientName !== undefined)
2327
+ writer.tag(2, WireType.LengthDelimited).string(message.clientName);
2328
+ /* repeated string redirect_uris = 3; */
2329
+ for (let i = 0; i < message.redirectUris.length; i++)
2330
+ writer.tag(3, WireType.LengthDelimited).string(message.redirectUris[i]);
2331
+ /* repeated string grant_types = 4; */
2332
+ for (let i = 0; i < message.grantTypes.length; i++)
2333
+ writer.tag(4, WireType.LengthDelimited).string(message.grantTypes[i]);
2334
+ /* repeated string response_types = 5; */
2335
+ for (let i = 0; i < message.responseTypes.length; i++)
2336
+ writer.tag(5, WireType.LengthDelimited).string(message.responseTypes[i]);
2337
+ /* optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 6; */
2338
+ if (message.tokenEndpointAuthMethod !== undefined)
2339
+ writer.tag(6, WireType.Varint).int32(message.tokenEndpointAuthMethod);
2340
+ /* optional sid.v1.projects.SubjectType subject_type = 7; */
2341
+ if (message.subjectType !== undefined)
2342
+ writer.tag(7, WireType.Varint).int32(message.subjectType);
2343
+ /* optional string sector_identifier_uri = 8; */
2344
+ if (message.sectorIdentifierUri !== undefined)
2345
+ writer.tag(8, WireType.LengthDelimited).string(message.sectorIdentifierUri);
2346
+ /* repeated string contacts = 9; */
2347
+ for (let i = 0; i < message.contacts.length; i++)
2348
+ writer.tag(9, WireType.LengthDelimited).string(message.contacts[i]);
2349
+ /* repeated string scope = 10; */
2350
+ for (let i = 0; i < message.scope.length; i++)
2351
+ writer.tag(10, WireType.LengthDelimited).string(message.scope[i]);
2352
+ let u = options.writeUnknownFields;
2353
+ if (u !== false)
2354
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2355
+ return writer;
2356
+ }
2357
+ }
2358
+ /**
2359
+ * @generated MessageType for protobuf message sid.v1.projects.UpdateRegisteredClientRequest
2360
+ */
2361
+ export const UpdateRegisteredClientRequest = new UpdateRegisteredClientRequest$Type();
2362
+ // @generated message type with reflection information, may provide speed optimized methods
2363
+ class DeleteRegisteredClientRequest$Type extends MessageType<DeleteRegisteredClientRequest> {
2364
+ constructor() {
2365
+ super("sid.v1.projects.DeleteRegisteredClientRequest", [
2366
+ { no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2367
+ ]);
2368
+ }
2369
+ create(value?: PartialMessage<DeleteRegisteredClientRequest>): DeleteRegisteredClientRequest {
2370
+ const message = globalThis.Object.create((this.messagePrototype!));
2371
+ message.clientId = "";
2372
+ if (value !== undefined)
2373
+ reflectionMergePartial<DeleteRegisteredClientRequest>(this, message, value);
2374
+ return message;
2375
+ }
2376
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRegisteredClientRequest): DeleteRegisteredClientRequest {
2377
+ let message = target ?? this.create(), end = reader.pos + length;
2378
+ while (reader.pos < end) {
2379
+ let [fieldNo, wireType] = reader.tag();
2380
+ switch (fieldNo) {
2381
+ case /* string client_id */ 1:
2382
+ message.clientId = reader.string();
2383
+ break;
2384
+ default:
2385
+ let u = options.readUnknownField;
2386
+ if (u === "throw")
2387
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2388
+ let d = reader.skip(wireType);
2389
+ if (u !== false)
2390
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2391
+ }
2392
+ }
2393
+ return message;
2394
+ }
2395
+ internalBinaryWrite(message: DeleteRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2396
+ /* string client_id = 1; */
2397
+ if (message.clientId !== "")
2398
+ writer.tag(1, WireType.LengthDelimited).string(message.clientId);
2399
+ let u = options.writeUnknownFields;
2400
+ if (u !== false)
2401
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2402
+ return writer;
2403
+ }
2404
+ }
2405
+ /**
2406
+ * @generated MessageType for protobuf message sid.v1.projects.DeleteRegisteredClientRequest
2407
+ */
2408
+ export const DeleteRegisteredClientRequest = new DeleteRegisteredClientRequest$Type();
2409
+ // @generated message type with reflection information, may provide speed optimized methods
2410
+ class CreateInitialAccessTokenRequest$Type extends MessageType<CreateInitialAccessTokenRequest> {
2411
+ constructor() {
2412
+ super("sid.v1.projects.CreateInitialAccessTokenRequest", [
2413
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2414
+ { no: 2, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
2415
+ { no: 3, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2416
+ { no: 4, name: "allowed_grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2417
+ { no: 5, name: "allowed_redirect_patterns", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2418
+ { no: 6, name: "expires_in_seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
2419
+ ]);
2420
+ }
2421
+ create(value?: PartialMessage<CreateInitialAccessTokenRequest>): CreateInitialAccessTokenRequest {
2422
+ const message = globalThis.Object.create((this.messagePrototype!));
2423
+ message.projectId = "";
2424
+ message.maxClients = 0;
2425
+ message.allowedScopes = [];
2426
+ message.allowedGrantTypes = [];
2427
+ message.allowedRedirectPatterns = [];
2428
+ message.expiresInSeconds = 0n;
2429
+ if (value !== undefined)
2430
+ reflectionMergePartial<CreateInitialAccessTokenRequest>(this, message, value);
2431
+ return message;
2432
+ }
2433
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateInitialAccessTokenRequest): CreateInitialAccessTokenRequest {
2434
+ let message = target ?? this.create(), end = reader.pos + length;
2435
+ while (reader.pos < end) {
2436
+ let [fieldNo, wireType] = reader.tag();
2437
+ switch (fieldNo) {
2438
+ case /* string project_id */ 1:
2439
+ message.projectId = reader.string();
2440
+ break;
2441
+ case /* uint32 max_clients */ 2:
2442
+ message.maxClients = reader.uint32();
2443
+ break;
2444
+ case /* repeated string allowed_scopes */ 3:
2445
+ message.allowedScopes.push(reader.string());
2446
+ break;
2447
+ case /* repeated string allowed_grant_types */ 4:
2448
+ message.allowedGrantTypes.push(reader.string());
2449
+ break;
2450
+ case /* repeated string allowed_redirect_patterns */ 5:
2451
+ message.allowedRedirectPatterns.push(reader.string());
2452
+ break;
2453
+ case /* int64 expires_in_seconds */ 6:
2454
+ message.expiresInSeconds = reader.int64().toBigInt();
2455
+ break;
2456
+ default:
2457
+ let u = options.readUnknownField;
2458
+ if (u === "throw")
2459
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2460
+ let d = reader.skip(wireType);
2461
+ if (u !== false)
2462
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2463
+ }
2464
+ }
2465
+ return message;
2466
+ }
2467
+ internalBinaryWrite(message: CreateInitialAccessTokenRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2468
+ /* string project_id = 1; */
2469
+ if (message.projectId !== "")
2470
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
2471
+ /* uint32 max_clients = 2; */
2472
+ if (message.maxClients !== 0)
2473
+ writer.tag(2, WireType.Varint).uint32(message.maxClients);
2474
+ /* repeated string allowed_scopes = 3; */
2475
+ for (let i = 0; i < message.allowedScopes.length; i++)
2476
+ writer.tag(3, WireType.LengthDelimited).string(message.allowedScopes[i]);
2477
+ /* repeated string allowed_grant_types = 4; */
2478
+ for (let i = 0; i < message.allowedGrantTypes.length; i++)
2479
+ writer.tag(4, WireType.LengthDelimited).string(message.allowedGrantTypes[i]);
2480
+ /* repeated string allowed_redirect_patterns = 5; */
2481
+ for (let i = 0; i < message.allowedRedirectPatterns.length; i++)
2482
+ writer.tag(5, WireType.LengthDelimited).string(message.allowedRedirectPatterns[i]);
2483
+ /* int64 expires_in_seconds = 6; */
2484
+ if (message.expiresInSeconds !== 0n)
2485
+ writer.tag(6, WireType.Varint).int64(message.expiresInSeconds);
2486
+ let u = options.writeUnknownFields;
2487
+ if (u !== false)
2488
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2489
+ return writer;
2490
+ }
2491
+ }
2492
+ /**
2493
+ * @generated MessageType for protobuf message sid.v1.projects.CreateInitialAccessTokenRequest
2494
+ */
2495
+ export const CreateInitialAccessTokenRequest = new CreateInitialAccessTokenRequest$Type();
2496
+ // @generated message type with reflection information, may provide speed optimized methods
2497
+ class CreateInitialAccessTokenResponse$Type extends MessageType<CreateInitialAccessTokenResponse> {
2498
+ constructor() {
2499
+ super("sid.v1.projects.CreateInitialAccessTokenResponse", [
2500
+ { no: 1, name: "token", kind: "message", T: () => InitialAccessToken },
2501
+ { no: 2, name: "token_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2502
+ ]);
2503
+ }
2504
+ create(value?: PartialMessage<CreateInitialAccessTokenResponse>): CreateInitialAccessTokenResponse {
2505
+ const message = globalThis.Object.create((this.messagePrototype!));
2506
+ message.tokenValue = "";
2507
+ if (value !== undefined)
2508
+ reflectionMergePartial<CreateInitialAccessTokenResponse>(this, message, value);
2509
+ return message;
2510
+ }
2511
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateInitialAccessTokenResponse): CreateInitialAccessTokenResponse {
2512
+ let message = target ?? this.create(), end = reader.pos + length;
2513
+ while (reader.pos < end) {
2514
+ let [fieldNo, wireType] = reader.tag();
2515
+ switch (fieldNo) {
2516
+ case /* sid.v1.projects.InitialAccessToken token */ 1:
2517
+ message.token = InitialAccessToken.internalBinaryRead(reader, reader.uint32(), options, message.token);
2518
+ break;
2519
+ case /* string token_value */ 2:
2520
+ message.tokenValue = reader.string();
2521
+ break;
2522
+ default:
2523
+ let u = options.readUnknownField;
2524
+ if (u === "throw")
2525
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2526
+ let d = reader.skip(wireType);
2527
+ if (u !== false)
2528
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2529
+ }
2530
+ }
2531
+ return message;
2532
+ }
2533
+ internalBinaryWrite(message: CreateInitialAccessTokenResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2534
+ /* sid.v1.projects.InitialAccessToken token = 1; */
2535
+ if (message.token)
2536
+ InitialAccessToken.internalBinaryWrite(message.token, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2537
+ /* string token_value = 2; */
2538
+ if (message.tokenValue !== "")
2539
+ writer.tag(2, WireType.LengthDelimited).string(message.tokenValue);
2540
+ let u = options.writeUnknownFields;
2541
+ if (u !== false)
2542
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2543
+ return writer;
2544
+ }
2545
+ }
2546
+ /**
2547
+ * @generated MessageType for protobuf message sid.v1.projects.CreateInitialAccessTokenResponse
2548
+ */
2549
+ export const CreateInitialAccessTokenResponse = new CreateInitialAccessTokenResponse$Type();
2550
+ // @generated message type with reflection information, may provide speed optimized methods
2551
+ class ListInitialAccessTokensRequest$Type extends MessageType<ListInitialAccessTokensRequest> {
2552
+ constructor() {
2553
+ super("sid.v1.projects.ListInitialAccessTokensRequest", [
2554
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2555
+ ]);
2556
+ }
2557
+ create(value?: PartialMessage<ListInitialAccessTokensRequest>): ListInitialAccessTokensRequest {
2558
+ const message = globalThis.Object.create((this.messagePrototype!));
2559
+ message.projectId = "";
2560
+ if (value !== undefined)
2561
+ reflectionMergePartial<ListInitialAccessTokensRequest>(this, message, value);
2562
+ return message;
2563
+ }
2564
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInitialAccessTokensRequest): ListInitialAccessTokensRequest {
2565
+ let message = target ?? this.create(), end = reader.pos + length;
2566
+ while (reader.pos < end) {
2567
+ let [fieldNo, wireType] = reader.tag();
2568
+ switch (fieldNo) {
2569
+ case /* string project_id */ 1:
2570
+ message.projectId = reader.string();
2571
+ break;
2572
+ default:
2573
+ let u = options.readUnknownField;
2574
+ if (u === "throw")
2575
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2576
+ let d = reader.skip(wireType);
2577
+ if (u !== false)
2578
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2579
+ }
2580
+ }
2581
+ return message;
2582
+ }
2583
+ internalBinaryWrite(message: ListInitialAccessTokensRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2584
+ /* string project_id = 1; */
2585
+ if (message.projectId !== "")
2586
+ writer.tag(1, WireType.LengthDelimited).string(message.projectId);
2587
+ let u = options.writeUnknownFields;
2588
+ if (u !== false)
2589
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2590
+ return writer;
2591
+ }
2592
+ }
2593
+ /**
2594
+ * @generated MessageType for protobuf message sid.v1.projects.ListInitialAccessTokensRequest
2595
+ */
2596
+ export const ListInitialAccessTokensRequest = new ListInitialAccessTokensRequest$Type();
2597
+ // @generated message type with reflection information, may provide speed optimized methods
2598
+ class ListInitialAccessTokensResponse$Type extends MessageType<ListInitialAccessTokensResponse> {
2599
+ constructor() {
2600
+ super("sid.v1.projects.ListInitialAccessTokensResponse", [
2601
+ { no: 1, name: "tokens", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => InitialAccessToken }
2602
+ ]);
2603
+ }
2604
+ create(value?: PartialMessage<ListInitialAccessTokensResponse>): ListInitialAccessTokensResponse {
2605
+ const message = globalThis.Object.create((this.messagePrototype!));
2606
+ message.tokens = [];
2607
+ if (value !== undefined)
2608
+ reflectionMergePartial<ListInitialAccessTokensResponse>(this, message, value);
2609
+ return message;
2610
+ }
2611
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInitialAccessTokensResponse): ListInitialAccessTokensResponse {
2612
+ let message = target ?? this.create(), end = reader.pos + length;
2613
+ while (reader.pos < end) {
2614
+ let [fieldNo, wireType] = reader.tag();
2615
+ switch (fieldNo) {
2616
+ case /* repeated sid.v1.projects.InitialAccessToken tokens */ 1:
2617
+ message.tokens.push(InitialAccessToken.internalBinaryRead(reader, reader.uint32(), options));
2618
+ break;
2619
+ default:
2620
+ let u = options.readUnknownField;
2621
+ if (u === "throw")
2622
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2623
+ let d = reader.skip(wireType);
2624
+ if (u !== false)
2625
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2626
+ }
2627
+ }
2628
+ return message;
2629
+ }
2630
+ internalBinaryWrite(message: ListInitialAccessTokensResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2631
+ /* repeated sid.v1.projects.InitialAccessToken tokens = 1; */
2632
+ for (let i = 0; i < message.tokens.length; i++)
2633
+ InitialAccessToken.internalBinaryWrite(message.tokens[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2634
+ let u = options.writeUnknownFields;
2635
+ if (u !== false)
2636
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2637
+ return writer;
2638
+ }
2639
+ }
2640
+ /**
2641
+ * @generated MessageType for protobuf message sid.v1.projects.ListInitialAccessTokensResponse
2642
+ */
2643
+ export const ListInitialAccessTokensResponse = new ListInitialAccessTokensResponse$Type();
2644
+ // @generated message type with reflection information, may provide speed optimized methods
2645
+ class RevokeInitialAccessTokenRequest$Type extends MessageType<RevokeInitialAccessTokenRequest> {
2646
+ constructor() {
2647
+ super("sid.v1.projects.RevokeInitialAccessTokenRequest", [
2648
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2649
+ ]);
2650
+ }
2651
+ create(value?: PartialMessage<RevokeInitialAccessTokenRequest>): RevokeInitialAccessTokenRequest {
2652
+ const message = globalThis.Object.create((this.messagePrototype!));
2653
+ message.id = "";
2654
+ if (value !== undefined)
2655
+ reflectionMergePartial<RevokeInitialAccessTokenRequest>(this, message, value);
2656
+ return message;
2657
+ }
2658
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeInitialAccessTokenRequest): RevokeInitialAccessTokenRequest {
2659
+ let message = target ?? this.create(), end = reader.pos + length;
2660
+ while (reader.pos < end) {
2661
+ let [fieldNo, wireType] = reader.tag();
2662
+ switch (fieldNo) {
2663
+ case /* string id */ 1:
2664
+ message.id = reader.string();
2665
+ break;
2666
+ default:
2667
+ let u = options.readUnknownField;
2668
+ if (u === "throw")
2669
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2670
+ let d = reader.skip(wireType);
2671
+ if (u !== false)
2672
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2673
+ }
2674
+ }
2675
+ return message;
2676
+ }
2677
+ internalBinaryWrite(message: RevokeInitialAccessTokenRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2678
+ /* string id = 1; */
2679
+ if (message.id !== "")
2680
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
2681
+ let u = options.writeUnknownFields;
2682
+ if (u !== false)
2683
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2684
+ return writer;
2685
+ }
2686
+ }
2687
+ /**
2688
+ * @generated MessageType for protobuf message sid.v1.projects.RevokeInitialAccessTokenRequest
2689
+ */
2690
+ export const RevokeInitialAccessTokenRequest = new RevokeInitialAccessTokenRequest$Type();
2691
+ /**
2692
+ * @generated ServiceType for protobuf service sid.v1.projects.ProjectService
2693
+ */
2694
+ export const ProjectService = new ServiceType("sid.v1.projects.ProjectService", [
2695
+ { name: "CreateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects", body: "*" } }, I: CreateProjectRequest, O: Project },
2696
+ { name: "GetProject", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{id}" } }, I: GetProjectRequest, O: Project },
2697
+ { name: "ListProjects", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects" } }, I: ListProjectsRequest, O: ListProjectsResponse },
2698
+ { name: "UpdateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{id}", body: "*" } }, I: UpdateProjectRequest, O: Project },
2699
+ { name: "DeleteProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{id}" } }, I: DeleteProjectRequest, O: Empty },
2700
+ { name: "CreateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/applications", body: "*" } }, I: CreateApplicationRequest, O: CreateApplicationResponse },
2701
+ { name: "GetApplication", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/applications/{client_id}" } }, I: GetApplicationRequest, O: Application },
2702
+ { name: "ListApplications", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/applications" } }, I: ListApplicationsRequest, O: ListApplicationsResponse },
2703
+ { name: "UpdateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/applications/{client_id}", body: "*" } }, I: UpdateApplicationRequest, O: Application },
2704
+ { name: "DeleteApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/applications/{client_id}" } }, I: DeleteApplicationRequest, O: Empty },
2705
+ { name: "AddRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/roles", body: "*" } }, I: AddRoleRequest, O: Role },
2706
+ { name: "RemoveRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id}/roles/{role_id}" } }, I: RemoveRoleRequest, O: Empty },
2707
+ { name: "RegisterClient", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/dcr/register", body: "*" } }, I: RegisterClientRequest, O: RegisterClientResponse },
2708
+ { name: "GetRegisteredClient", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/dcr/clients/{client_id}" } }, I: GetRegisteredClientRequest, O: Application },
2709
+ { name: "UpdateRegisteredClient", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/projects/dcr/clients/{client_id}", body: "*" } }, I: UpdateRegisteredClientRequest, O: Application },
2710
+ { name: "DeleteRegisteredClient", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/dcr/clients/{client_id}" } }, I: DeleteRegisteredClientRequest, O: Empty },
2711
+ { name: "CreateInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/iat", body: "*" } }, I: CreateInitialAccessTokenRequest, O: CreateInitialAccessTokenResponse },
2712
+ { name: "ListInitialAccessTokens", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/iat" } }, I: ListInitialAccessTokensRequest, O: ListInitialAccessTokensResponse },
2713
+ { name: "RevokeInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/iat/{id}" } }, I: RevokeInitialAccessTokenRequest, O: Empty }
2714
+ ]);